sodcalculator

02 Yard and Garden

Compost Calculator: How Much Do You Need?

Tag 02-2810 · Updated · Standard formula, shown below

Volume 9.26 yd³
Volume
250.0 ft³
Result
Lawn length
40 ft
You entered
Lawn width
25 ft
You entered
You enter
Lawn length, Lawn width, Depth
You get
Volume, Volume
Rounding
2 dp · 1 dp

A compost calculator for compost bins works out the volume of compost you need to fill a bin, raised bed, or garden area, based on the length, width, and depth you enter. You input the three dimensions, and the calculator returns the volume in cubic yards and cubic feet, which you can then use to order the right amount of compost. This article explains the formula, shows a worked example, and covers how to choose the right depth for your project.

Formula

The calculator uses the standard volume formula for a rectangular prism:

Volume (yd³) = Length (ft) × Width (ft) × Depth (in) ÷ 324

Where:

  • Length (l) – the length of the area in feet (ft)
  • Width (w) – the width of the area in feet (ft)
  • Depth (d) – the desired depth of compost in inches (in)

The number 324 comes from converting inches to feet (12 in/ft) and cubic feet to cubic yards (27 ft³/yd³): 12 × 27 = 324. So the formula is the same as (l × w × d/12) / 27.

The second output, cubic feet, uses the simpler expression: Volume (ft³) = l × w × d / 12 – that’s just the area in square feet times the depth in feet.

Worked Example

Using the default values from the calculator above – a 40 ft long, 25 ft wide area, with a 3-inch depth – the calculation goes like this:

  1. First, find the area: 40 ft × 25 ft = 1,000 ft².
  2. Convert depth to feet: 3 in ÷ 12 = 0.25 ft.
  3. Multiply area by depth: 1,000 ft² × 0.25 ft = 250 ft³.
  4. Convert to cubic yards: 250 ft³ ÷ 27 = 9.26 yd³.

The calculator returns 9.26 yd³ (and 250.0 ft³), which matches the manual calculation. That’s the amount of compost you’d need to cover a 40×25 ft bed at 3 inches deep.

When to Use a Compost Calculator

You’d use this calculator any time you need to order bulk compost, topsoil, or similar material for a garden bed, lawn topdressing, or a new planting area. Common situations include:

  • Filling a new raised garden bed – you’ll need the interior dimensions, not the outside.
  • Topdressing an existing lawn – typically 1/4 to 1/2 inch of compost spread over the grass.
  • Amending a vegetable garden before planting – usually 2 to 3 inches worked into the soil.
  • Creating a new flower bed – often 4 to 6 inches of compost mixed with existing soil.

The calculator gives you the volume in cubic yards, which is how bulk compost is sold by landscape suppliers. If you’re buying bagged compost, you’ll need to convert – see the FAQ below.

How to Choose the Right Depth

The depth you enter is the single most important input, and it depends entirely on your project:

  • 1/4 inch – light lawn topdressing to add organic matter without smothering grass.
  • 1 to 2 inches – typical for improving existing garden soil or overseeding lawns.
  • 3 inches – a common depth for new raised beds when mixed with existing soil.
  • 4 to 6 inches – filling a brand-new raised bed or creating a deep planting area.

For raised beds, don’t fill the entire bed with pure compost – that can be too rich and expensive. A common mix is 1/3 compost, 1/3 topsoil, and 1/3 coarse sand or perlite. Calculate the total volume, then use only a third of that for the compost portion.

Common Mistakes and How to Avoid Them

Even with a simple formula, errors happen. The most frequent ones are:

  • Mixing units – entering length in yards but width in feet, or depth in inches when the formula expects feet. Always convert everything to feet and inches as the calculator expects.
  • Using outside dimensions for raised beds – if the bed walls are thick, the inside volume is smaller. Measure the interior length and width.
  • Forgetting that compost settles – fresh compost can settle by 10–20% after watering. Ordering 10% extra is a practical buffer.
  • Rounding too early – if you round the cubic feet to 250 and then divide by 27, you get 9.26, but if you round to 9 yd³ and order that, you’ll be short. Keep the decimals until you’re ready to order.

Another common issue: compost is sold by volume (cubic yard), not by weight. A cubic yard of compost can weigh anywhere from 400 to 1,000 pounds depending on moisture content. Don’t try to convert from weight – always use volume.

Limits of the Formula

This calculator assumes a perfectly rectangular area with a uniform depth. Real-world beds may be curved, sloped, or have irregular shapes. For those, break the area into rectangles, calculate each separately, and add the volumes. Also, the formula gives you the volume of material you need to fill the space – it doesn’t account for compaction over time. Fresh compost will settle, so consider ordering slightly more than the calculated amount.

The calculator also doesn’t tell you how much compost you can make in your own bin – that depends on the bin size, the materials you add, and how fast they break down. If you’re trying to estimate how much finished compost your bin will produce, a general rule is that the finished volume is roughly 30–50% of the volume of raw materials you put in, but that varies widely with the mix and climate.

Bagged vs. Bulk Compost

Bulk compost is sold by the cubic yard, and you’ll typically have it delivered in a truck. Bagged compost is sold by cubic foot (usually 1 to 2 cubic feet per bag). To convert your cubic feet result to bags, just divide by the bag size. For example, if your project needs 250 ft³ and you’re buying 1.5 ft³ bags, you’d need 167 bags (250 ÷ 1.5 = 166.7, round up).

Bulk is almost always cheaper per cubic foot, but you need a place to dump it and a way to move it. Bagged is easier for small projects but the cost adds up quickly. For anything over about 2 cubic yards, bulk is usually the practical choice.

Frequently Asked Questions

How many bags of compost do I need?

Take the cubic feet result from the calculator and divide by the bag size (in cubic feet). For instance, if you need 250 ft³ and bags are 2 ft³ each, you need 125 bags. Always round up to the nearest whole bag, and consider buying one or two extra to account for settling.

What is the difference between compost and topsoil?

Compost is fully decomposed organic matter, rich in nutrients and beneficial microbes. Topsoil is the natural mineral-rich upper layer of soil, which may or may not contain organic matter. For filling raised beds, a mix of both is often best – pure compost can be too dense and may hold too much water.

Can I use this calculator for a round compost bin?

No – this calculator is for rectangular areas. For a round bin, use the formula for a cylinder: π × radius² × height. If your bin is 3 feet in diameter and 3 feet tall, that’s π × (1.5)² × 3 ≈ 21.2 ft³, or about 0.79 yd³.

How deep should compost be for a new lawn?

For topdressing an existing lawn, 1/4 to 1/2 inch is enough. For preparing a new lawn area, you can till in 2 to 3 inches of compost before seeding or laying sod. Deeper than that is wasteful and can create a spongy surface.

Does compost shrink after I spread it?

Yes, compost continues to decompose and settle. Fresh, chunky compost can lose 10–20% of its volume within the first few months. That’s why ordering 10–15% extra is a common practice for projects where final level matters.

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

The whole Yard and Garden bed →