The density of a carpet pile refers to the amount of yarn in the carpet and how closely packed together the fibers are. It is typically measured in ounces per square yard or grams per square meter. A higher density generally indicates a higher quality carpet with better durability and resilience.