Measure the length of your room, from the farthest points. For instance, if your room has a carpeted closet, measure to the back wall of the closet. Measure the width of the room in the same way. If your room is L-shaped, break it into two rectangles and measure the length and width of each one.
Multiply the length of the room by its width to calculate its square footage. For example, a 12-by-12-foot room is 144 square feet. If you have an L-shaped room, calculate each section's square footage, then add them together to get the total square footage.
Divide the room's square footage by 9. This gives you the number of square yards of carpeting needed to cover the room.