This compost calculator works out the volume of compost you need to cover a garden bed or lawn area at a chosen depth. You enter the length and width of the area in feet and the desired compost depth in inches, and it returns the volume in cubic yards and cubic feet. The result tells you how much bulk compost to order or how many bags to buy.
Formula
The calculator uses the standard volume formula for a rectangular prism: Volume = Length × Width × Depth. Since you enter the depth in inches but the length and width in feet, the formula converts inches to feet first (divide by 12), then divides by 27 to convert cubic feet to cubic yards.
In symbols: V (yd³) = (L × W × D) / 324, where L is length in feet, W is width in feet, D is depth in inches, and 324 is the combined conversion factor (12 inches per foot × 27 cubic feet per cubic yard).
The second output shows cubic feet directly: V (ft³) = (L × W × D) / 12.
Worked Example
Using the default values: a bed 40 feet long, 25 feet wide, with a 3-inch compost layer.
- Convert depth to feet: 3 inches ÷ 12 = 0.25 ft.
- Calculate volume in cubic feet: 40 × 25 × 0.25 = 250 ft³.
- Convert to cubic yards: 250 ÷ 27 = 9.26 yd³.
The calculator rounds to 9.26 cubic yards. The cubic feet output shows 250 ft³. If you order bulk compost, you would ask for about 9.3 cubic yards (or round up to 10 to account for settling).
Why Compost Depth Matters
The depth you choose directly changes the volume, and different gardening tasks call for different depths. A common mistake is using the same depth for every project. Here are typical depth guidelines:
- Topdressing an existing lawn: ¼ to ½ inch (0.25–0.5 in) – a light layer that improves soil without smothering grass.
- New garden bed or vegetable plot: 2 to 3 inches – enough to enrich the soil before planting.
- Mixing into poor soil: 4 to 6 inches – often tilled in rather than left on top.
- Raised bed fill (if using compost as the main growing medium): 6 to 12 inches – but note that pure compost may be too rich; many gardeners blend it with topsoil.
For a 40×25 ft bed, going from 2 inches to 4 inches doubles the volume from about 6.2 to 12.3 cubic yards. That is a significant difference in cost and labor, so measure your intended depth before ordering.
Bulk vs. Bagged Compost
The calculator gives you a total volume, but you still need to decide how to buy. Bulk compost is sold by the cubic yard and delivered in a truck. Bagged compost is sold in bags, typically 1 to 2 cubic feet each (some are 40 lbs but the volume varies).
To convert your result to bags, divide the cubic feet output by the bag size. For example, 250 ft³ ÷ 1.5 ft³ per bag = 167 bags. That is a lot of bags, so for large areas bulk is usually the practical choice. For small beds, bags are easier to transport and store.
One cubic yard of compost weighs roughly 800–1,000 lbs depending on moisture content, so a full yard is heavy. If you are hauling it yourself, check your vehicle’s capacity and remember that wet compost is heavier than dry.
Common Mistakes and How to Avoid Them
The most frequent error is mixing units. If you measure the bed in yards and the depth in inches, the formula breaks. Always keep length and width in the same unit (feet) and depth in inches for this calculator.
Another mistake is forgetting that compost settles. Fresh compost can compress by 10–20% after watering or a few weeks. If you want a final depth of 3 inches, you may need to order slightly more than the calculated volume, especially for loose, fluffy compost.
Also, the calculator assumes a perfectly rectangular area. If your bed is curved or irregular, break it into rectangles, calculate each, and add them together. For a circle, use a different formula (π × radius² × depth).
When to Apply Compost
Timing affects how well the compost works. For vegetable gardens, apply compost in the spring before planting or in the fall after harvest. For lawns, topdress in early spring or fall when the grass is actively growing. Avoid applying thick layers in midsummer heat, as it can stress the grass.
Compost is not a fertilizer with a guaranteed N-P-K analysis; it is a soil amendment that improves structure, drainage, and microbial life. You still need to test your soil and add specific nutrients if needed.
Limits of the Calculator
This calculator gives a volume, not a weight or a price. Compost density varies with moisture and source, so weight per cubic yard can range from about 600 lbs for dry, screened compost to over 1,200 lbs for wet, coarse material. If you need weight for transport or application rates, ask your supplier for the density of their specific product.
The depth you enter is the target depth, but real-world spreading is uneven. A rake or spreader will not produce a perfectly uniform layer, so the result is an estimate. For large projects, order 5–10% extra to cover low spots and settling.
Frequently Asked Questions
How many bags of compost do I need for 1 cubic yard?
It depends on bag size. A 1-cubic-foot bag means you need 27 bags per cubic yard. A 1.5-cubic-foot bag means 18 bags. A 2-cubic-foot bag means 13.5 bags (so buy 14). Always check the bag label for volume, not just weight.
Can I use this calculator for mulch or topsoil?
Yes, the formula works for any material spread at a uniform depth. The volume is the same; only the weight and cost differ. Mulch is lighter, topsoil is heavier, but the cubic yards are calculated identically.
How deep should compost be on a new lawn?
For a new lawn, you usually till in 2–3 inches of compost into the top 6 inches of soil. That is a heavier application than topdressing an existing lawn. Use the calculator with your bed dimensions and a depth of 2–3 inches.
What if my area is not a rectangle?
Break it into smaller rectangles, calculate each with the calculator, and sum the results. For a triangular area, multiply base × height × 0.5 × depth. For a circle, use π × radius² × depth (in feet) and divide by 27 to get cubic yards.
Is it better to order slightly more or less compost?
Order slightly more – about 5–10% extra – because compost settles and you will likely have low spots. Leftover compost can always be used as a top dressing or in potting mixes, but running short mid-project is inconvenient.
How do I convert cubic feet to cubic yards without a calculator?
Divide the cubic feet by 27. For example, 250 ft³ ÷ 27 = 9.26 yd³. Remember that 1 yard = 3 feet, and volume is cubic, so 3 × 3 × 3 = 27.
Related
Formula used
in l | Lawn length | ft | 40 | 0 | 100000 in w | Lawn width | ft | 25 | 0 | 100000 in d | Depth | in | 3 | 0 | 120 out yd | Volume | yd³ | l * w * d / 324 | 2 out ft3 | Volume | ft³ | l * w * d / 12 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More in this bed
- Planting Calculator: When to Start Your Garden
- Potting Mix Volume: How Much Does a Garden Pot Hold?
- Spacing Collards in a Square Foot Garden16 plants
- Compost Heap for Waste Fertilizer: How to Convert0.050 lb/ft³
- Ratio Fertilizer for Rosewood Trees: Feeding Guide9.26 yd³
- Lime per Acre: How Much to Apply0.50 tons/acre