Enter the area and how thick you want the compost, and get the cubic yards for a bulk order and the number of bags.
How compost is calculated
Cubic feet = area (sq ft) × depth (in) ÷ 12
Cubic yards = cubic feet ÷ 27
Bags = cubic feet ÷ bag size, rounded up
Worked example
A 20 × 10 ft garden bed (200 sq ft) with 2 inches of compost: 200 × 2 ÷ 12 = 33.3 cubic feet, ÷ 27 = 1.23 cubic yards. In 1 cu ft bags that's 34 bags; in 2 cu ft bags, 17.
How deep should compost be?
The San Antonio Water System publishes these rates for using compost to improve soil:
| Use | Depth | How |
|---|
| New garden beds (shrubs and trees) | ½ to 2¼ in | Mix into the top 6 to 8 in of soil |
| New lawns | ½ to 2 in | Mix into the top 4 to 6 in |
| Lawn top dressing | 1/10 to ¼ in | Spread over the grass |
| Existing beds | 1/10 to ⅕ in | Spread on the soil, or work in |
Very thin layers like ¼ in are easier to think of by volume: ¼ in over 1,000 sq ft is 1,000 × 0.25 ÷ 12 = 20.8 cubic feet, or 0.77 cubic yards.
Getting a realistic number
- Compost settles and shrinks a little as it breaks down; bulk loads are measured loose.
- Bags vary: check whether a bag is labeled in cubic feet or quarts (1 cu ft is about 25.7 dry quarts).
- Bulk is usually cheaper for more than a cubic yard, but ask about delivery fees and the quality (finished, screened compost).
- Acid-loving plants: SAWS notes compost can raise soil pH and shouldn't be used heavily where azaleas or similar plants will grow.
Sources
How we checked this
Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:
- 20 × 10 ft at 2 in: 33.33 cu ft = 1.23 cubic yards ✓
- Same in 1 cu ft bags: 34 bags ✓
- 1,000 sq ft top dressing at ¼ in: 0.77 cubic yards ✓
- Edge: a depth of 0 asks for a depth ✓
Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.
Questions people ask
How much compost do I need for a 4 × 8 raised bed?
For 2 in mixed into the top, 32 × 2 ÷ 12 = 5.3 cubic feet. To fill the whole bed, use the raised bed soil calculator.
How many bags of compost make a yard?
27 bags of 1 cu ft, 18 bags of 1.5 cu ft or 13.5 bags of 2 cu ft.
How much area does a yard of compost cover?
324 sq ft at 1 in deep, 162 sq ft at 2 in, and about 1,296 sq ft at ¼ in.
How much compost to top dress a lawn?
SAWS suggests 1/10 to ¼ in. For 1,000 sq ft at ¼ in, about 21 cubic feet (0.77 cubic yards).
Is compost the same as topsoil?
No. Compost is decomposed organic matter used to improve soil. Topsoil is the mineral soil itself. Beds are often a blend of the two.