You can use this formula for most rectangular areas:
Cubic Yards = Length × Width × Depth (in feet) ÷ 27
If your depth is measured in inches:
Cubic Yards = Length × Width × Depth (in inches) ÷ 324
For irregularly shaped areas, divide the space into smaller rectangles or sections, calculate each section separately, and add the results together.
It is also common to order a little extra dirt to account for settling, uneven ground, or measurement differences. For an easy calculation, use a Dirt Calculator to estimate how many cubic yards you need before ordering.