Compost Calculator

Work out how much compost to order for a garden bed, a new lawn or a topdressing, in cubic feet, cubic yards and bags. A second mode helps you build a compost pile: it finds how much brown material to add to your greens to reach a carbon to nitrogen ratio of about 30:1.

Enter your project

Units

Oregon State University Extension gives 3 to 4 in for a new garden bed, 1/4 to 1 in a year on an existing bed and 1/4 to 1/2 in to topdress a lawn.

The volume printed on the bag.

You need about

0.926 cubic yards

25 cu ft · 25 bags of 1 cu ft

Compost to spread
Area10 ft × 10 ft = 100 sq ft
Depth3 in
Volume, cubic feet25 cu ft
Volume, cubic yards0.926 yd³
Volume, cubic meters0.708 m³
Bags of 1 cu ft25

Formula: volume = length × width × depth; cubic yards = cubic feet ÷ 27; bags = cubic feet ÷ bag size, rounded up. Compost settles, so order a little extra if you want the full depth after it settles.

Volume of compost to spread

Oregon State University Extension puts it simply: the volume is the thickness of the compost layer times the area you cover. Measure the bed, choose the depth, and the calculator converts the result to cubic yards for a bulk order and to bags for a store order.

Cubic feet = length (ft) × width (ft) × depth (in) ÷ 12
Cubic yards = cubic feet ÷ 27
Bags = cubic feet ÷ bag size, rounded up

A bag of 1 cubic foot covers 12 square feet at 1 inch deep, the figure given in the same publication. Compost settles after it is spread and watered, so order a little more if you want the full depth afterward.

How deep to spread compost

The publication EM 9308, How to use compost in gardens and landscapes (Oregon State University Extension, February 2021, reviewed 2025), gives these depths. It calls the 1-inch layer the largest amount to add each year to an existing vegetable area.

How deep to spread compost, Oregon State University Extension (EM 9308)
UseDepth
New garden bed or vegetable garden3 to 4 in, mixed into the top 8 to 12 in
Existing garden bed, each year1/4 to 1 in
Landscape area before planting3 to 4 in, mixed into the top 6 to 8 in
New lawn, while preparing the soil1 to 2 in
Topdressing an existing lawn1/4 to 1/2 in

A soil test and your local extension service can refine these numbers for your garden.

Worked example: a 10 by 10 foot bed

A bed of 10 by 10 feet gets 3 inches of compost.

  • Volume: 10 × 10 × 3 ÷ 12 = 25 cubic feet
  • Cubic yards: 25 ÷ 27 = 0.926 cubic yards
  • Bags of 1 cubic foot: 25

Oregon State gives the same answer, 25 bags. A 40 by 20 foot area (800 square feet) at 3 inches needs 200 cubic feet, or 7.41 cubic yards, which the publication rounds to about 7.5. Topdressing a 50 by 40 foot lawn at 1/4 inch takes 41.67 cubic feet, or 1.54 cubic yards.

Greens, browns and the C:N ratio

Cornell Composting, from the Cornell Waste Management Institute, gives around 30:1 as the ideal carbon to nitrogen ratio for composting. Greens such as grass clippings and vegetable scraps are high in nitrogen. Browns such as autumn leaves, straw and wood chips are high in carbon. Cornell lists grass clippings at 15 to 25:1, autumn leaves at 30 to 80:1 and straw at 40 to 100:1.

A pile mixed by volume or by eye can miss the target by a wide margin, because the ratio depends on the dry matter in each material. The mix mode uses the formula from Cornell's C/N ratio page, by Tom Richard and Nancy Trautmann.

C:N of the mix = Σ weight × carbon % × (100 − moisture %) ÷ Σ weight × nitrogen % × (100 − moisture %)

The calculator solves it for the weight of brown material that brings the mix to your target. Carbon and nitrogen are percents of dry weight, and the weights are as is, wet.

Worked example: grass clippings and leaves

Cornell's own example mixes 10 kilograms of grass clippings (45 percent carbon, 2.4 percent nitrogen, 77 percent moisture) with leaves (50 percent carbon, 0.75 percent nitrogen, 35 percent moisture), aiming at 30:1.

  • C:N of the grass: 45 ÷ 2.4 = 18.75
  • C:N of the leaves: 50 ÷ 0.75 = 66.67
  • Leaves needed: 3.47 kilograms, about the 3.5 kilograms Cornell finds
  • Moisture of the mix: 66.2 percent

Cornell notes that this mix is over 66 percent moisture, wetter than its 60 percent goal. With 6.8 kilograms of leaves, the amount it finds for that moisture goal, the C:N rises to 36.7:1, a little less than 37:1. The two goals pull in different directions, so balance them, or add a drier material. For the soil under your plants, see the topsoil calculator and the mulch calculator.

Compost Calculator FAQ

How much compost do I need for a garden bed?

Multiply the area by the depth. A 10 by 10 foot bed at 3 inches takes 25 cubic feet, about 0.93 cubic yard, or 25 bags of 1 cubic foot.

How many square feet does a cubic yard of compost cover?

A cubic yard is 27 cubic feet, so it covers 324 square feet at 1 inch, 108 square feet at 3 inches and 1,296 square feet at 1/4 inch.

What is the right ratio of greens to browns?

Cornell Composting aims for a carbon to nitrogen ratio around 30:1. The weight of each material that gives it depends on their carbon, nitrogen and moisture, which the mix mode takes into account.

Where do I find the carbon and nitrogen of my materials?

From a lab test or a published table. The defaults are the grass clippings and leaves in Cornell's worked example.

Can I add compost to a lawn?

Yes. Oregon State University Extension suggests a quarter to a half inch spread across an existing lawn, and 1 to 2 inches worked in when preparing a new one.

Guides

Last updated . Free to use, no sign-up. How we check our numbers.