Free Compost Calculator - Cubic Yards for Garden Beds

Calculate how much compost you need for top dressing, new beds, or soil improvement from area size and depth.

Compost Calculator

Calculate compost volume

Enter length, width, and a depth preset to get cubic yards and bag equivalents.

Guide to using this tool

Compost Calculator

Basil plant used for compost and growing-media planning

Compost is one of those garden materials that sounds simple until you have to order it. A one-inch layer over a vegetable bed, a half-inch top dressing over a lawn, and a 25 percent compost blend for a raised bed all produce very different quantities. The Compost Calculator turns the bed size and target depth into cubic feet, cubic yards, and bag counts so you can buy material with fewer guesses.

Use the result as a planning number, not as a promise that every supplier, compost product, or planting situation will behave the same way. Finished compost varies by feedstock, moisture, screening, maturity, and bulk density. The calculator gives you the volume. Good compost use still depends on choosing the right depth, mixing it correctly, and checking whether your soil actually needs more organic amendment.

What the Compost Calculator does

The calculator estimates the volume of compost needed for a rectangular area. Enter the length, width, and target compost depth, and it returns the amount in cubic feet and cubic yards. It also converts the same volume into common 1 cubic foot and 2 cubic foot bag equivalents so you can compare bulk delivery against bagged compost.

That is especially useful when the project is too large for mental math but too small for a formal landscape quote. A 4 by 8 foot bed at 1 inch is a light top dressing. The same bed at 12 inches is a full fill. The footprint is identical, but the material order is twelve times larger. The calculator makes that jump visible before you are standing in a garden center aisle or negotiating a bulk delivery.

What it does not do is test compost quality, predict nutrient release, or decide whether compost is the right amendment for your soil. Compost can improve soil structure and water behavior, but it is also a nutrient source. In gardens that already test high in phosphorus, repeated heavy compost applications can be the wrong move even when the bed “looks tired.”

The formula behind the estimate

The math is basic volume:

Cubic feet = length in feet x width in feet x depth in inches / 12

Cubic yards = cubic feet / 27

A cubic yard contains 27 cubic feet because it is 3 feet by 3 feet by 3 feet. If you spread compost 1 inch deep, the depth in feet is 1 / 12. If you spread it 3 inches deep, the depth in feet is 3 / 12, or 0.25. The calculator does the unit conversion for you so the input can stay in the measurements gardeners actually use.

For a 10 by 20 foot vegetable bed with a 1 inch top dressing, the area is 200 square feet. The volume is 200 x 1 / 12, or 16.7 cubic feet. Divide by 27 and the result is about 0.62 cubic yards. If your supplier sells only in half-yard increments, that points to a 1 cubic yard order if you want a margin, or roughly nine 2 cubic foot bags if bagged compost is easier to transport.

Compost depths that usually make sense

Depth is the input most likely to be misused. A bigger number is not automatically better. Oregon State University Extension recommends 3 to 4 inches of compost for new garden beds, incorporated into the top 8 to 12 inches of soil, and only one-quarter inch to 1 inch per year for existing garden beds new garden beds. University of Minnesota Extension gives even lighter soil-building rates for routine garden and lawn use: about 1/2 inch over vegetable and flower gardens and about 1/4 inch over lawns soil-building rates.

Those ranges explain why this calculator includes depth presets instead of asking you to invent a number. A 1 inch setting fits many maintenance top-dressing jobs. A 2 inch setting is a stronger annual amendment where organic matter is low and the compost is known to be mature. A 3 to 4 inch setting belongs to new beds or poor soil improvement, especially when it will be incorporated rather than left as a thick surface layer.

For lawns, be more conservative. A thin top dressing can settle between grass blades; a heavy layer can smother turf, create bumps, and interfere with mowing. For established perennials and shrubs, compost should be kept away from crowns and woody stems, much like mulch, so moisture does not sit against vulnerable tissue.

What to measure before you enter numbers

Measure the actual growing area, not the whole yard. For a framed raised bed, use the inside dimensions. For a border with curves, divide the shape into rectangles or triangles, calculate each section, then add them together. For a bed with paths, stepping stones, containers, or permanent structures, subtract areas that will not receive compost.

Depth deserves the same care. One inch is enough to change a compost order by many bags over a large bed. If you are top-dressing, imagine the finished settled layer, not the fluffy depth when the compost first falls from the shovel. If the compost is wet, clumpy, or unscreened, it may not spread evenly at very shallow depths.

If the site is uneven, measure the practical average. Do not use compost to correct major grade problems unless that is the actual project. Soil leveling, drainage repair, and bed construction may need topsoil, mineral soil, sand in specific engineered contexts, or a planting mix, not just a deeper compost layer.

Choosing between bagged compost and bulk delivery

Bagged compost is convenient for balconies, small beds, and projects where you need a predictable number of units. Bulk compost is usually more practical for larger beds, lawn top-dressing, community gardens, and new landscape areas. The calculator shows both because the best choice is often logistical rather than purely mathematical.

A 2 cubic foot bag is easy to price, carry, and stage near a bed. But twenty 2 cubic foot bags equal 40 cubic feet, or about 1.48 cubic yards. At that point, a bulk delivery may be cheaper and less wasteful if you have a place to dump it and enough help to move it quickly.

Bulk compost has its own trade-offs. Suppliers may sell by the cubic yard, by half-yard increments, or by weight. Moisture matters. Oregon State University Extension notes that screened compost around 50 percent moisture may have a bulk density of about 1,000 pounds per cubic yard, while very wet compost can exceed 1,500 pounds per cubic yard bulk density. If a supplier quotes weight, ask how they convert to volume and whether the compost is unusually wet.

Worked example: raised bed top dressing

Say you have four raised beds, each 4 feet wide and 8 feet long. The total area is 4 x 8 x 4 beds, or 128 square feet. You want a 1 inch layer of finished compost before planting.

The volume is 128 x 1 / 12, which equals 10.7 cubic feet. In cubic yards, that is 10.7 / 27, or 0.40 cubic yards. In bag terms, you need about eleven 1 cubic foot bags or six 2 cubic foot bags, before any rounding for waste and uneven spreading.

This is a good use case for bagged compost if the beds are near a driveway or patio and you do not want a bulk pile. It is also a good reminder that maintenance top dressing is modest. If you accidentally choose 4 inches instead of 1 inch, the order jumps to 42.7 cubic feet, or 1.58 cubic yards. That may be appropriate for a new-bed amendment, but it is not the same project.

Worked example: new vegetable bed

Now imagine a new 10 by 20 foot vegetable bed with compacted, low-organic-matter soil. You choose 3 inches because you plan to incorporate the compost into the upper soil profile before planting.

The area is 200 square feet. The volume is 200 x 3 / 12, or 50 cubic feet. Divide by 27 and the result is 1.85 cubic yards. A practical order might be 2 cubic yards if you are buying in bulk, especially because spreading and incorporation are rarely perfect.

The key detail is incorporation. A 3 inch layer sitting on top of a new bed is not the same as 3 inches mixed into the top 8 to 12 inches. OSU Extension’s new-bed guidance is built around mixing compost into mineral soil, not replacing the soil with compost. That distinction affects drainage, root anchorage, nutrient release, and how quickly the surface dries after rain.

Worked example: lawn top dressing

For an established lawn, suppose the area is 1,000 square feet and you want a 1/4 inch compost top dressing. The volume is 1,000 x 0.25 / 12, or 20.8 cubic feet. In cubic yards, that is 0.77 cubic yards.

At 1/2 inch, the same lawn needs 41.7 cubic feet, or 1.54 cubic yards. That difference is why lawn projects should be measured carefully. A layer that looks thin in a wheelbarrow can become too heavy once spread across turf, especially if the compost is damp.

For lawns, screen quality matters more than it does in a rough vegetable bed. Coarse chunks can sit on top of grass, interfere with mowing, and create uneven patches. If the goal is soil building, a thin, screened compost layer spread evenly is usually more useful than a thick layer applied in one pass.

Raised beds need a mix, not pure compost

A compost calculator can tell you the volume of a raised bed, but that does not mean the whole bed should be filled with compost. Oregon State University Extension is direct on this point: framed raised beds should be filled with native soil, a soil mix, or compost blended with mineral material, and not compost alone raised beds. OSU suggests up to 25 percent compost by volume when filling beds with excavated soil 25 percent compost.

Pure compost lacks the mineral fraction that gives a soil body structure and long-term volume. It can shrink as organic matter continues to decompose, hold too much water in some contexts, dry strangely in others, and release nutrients at rates that do not match every crop. A raised bed mix can include compost, but compost should be one ingredient rather than the whole recipe.

If your goal is to fill a new raised bed, use this calculator for the compost portion only. For the rest of the volume, use a soil volume calculator or a supplier’s raised bed mix specification. If your goal is to refresh an existing raised bed, calculate a surface layer and fold it gently into the top few inches where appropriate.

Finished compost matters

The calculator assumes you are using finished compost. Finished compost is not just old organic matter. Missouri Extension describes ready-to-use compost as dark, crumbly, and earthy-smelling, with original materials no longer recognizable ready to use. Unfinished compost can continue decomposing in the bed, tie up nitrogen temporarily, heat in pockets, smell sour, or bring coarse material that makes even spreading difficult.

This matters most around seedlings, fine seedbeds, containers, and shallow-rooted annuals. A rough, partly decomposed batch might be fine as a mulch under shrubs after it ages further, but it is a poor match for seed starting or a thin lawn top dressing.

If you make compost at home, screen it before using it in the calculator’s shallow-depth scenarios. Return woody chunks, fruit pits, and recognizable material to the pile. If you buy compost, ask what feedstocks were used, whether it is screened, and whether the supplier has a recent compost analysis.

Compost is a soil amendment, not a complete fertilizer plan

Compost contributes nutrients, but its main garden value is often physical and biological: better aggregation, improved workability, more organic matter, and a more active soil environment. EPA describes compost as a valuable soil amendment that adds organic matter, helps soil retain moisture, and supports soil microbial biodiversity valuable soil amendment. USDA NRCS soil-health literature also links practices that increase soil organic matter with improvements in soil structure, porosity, infiltration, and water retention soil organic matter.

That does not mean compost replaces soil testing. Compost nutrient content varies widely. Manure-based composts can contribute more phosphorus and salts than yard-waste composts. Food-scrap compost, municipal compost, leaf compost, and mushroom compost are not interchangeable materials.

For vegetables, fruiting crops, lawns, and high-value beds, treat the calculator as the volume step. Then use a soil test to decide whether you also need nitrogen, potassium, lime, sulfur, or nothing at all. If you already know your soil is high in phosphorus, be careful with repeated compost additions.

When too much compost becomes a problem

The most common compost mistake is assuming that organic means harmless at any rate. It does not. University of Minnesota Extension warns that many lawn and garden soils already test higher in phosphorus than they need and notes that compost often contains phosphorus, especially when it contains manure phosphorus levels. The same guidance says thick annual compost layers should be considered nutrient applications, not just soil fluff.

Too much compost can also change drainage and moisture behavior. In a droughty sandy bed, more organic matter may be helpful. In a heavy soil, low spot, or container-like raised bed with poor outlet drainage, a deep organic layer can stay wet longer than expected. For Mediterranean herbs, succulents, and drought-adapted perennials, rich moisture-holding compost can push conditions away from what the plant wants.

If you are correcting a serious soil problem, do not keep increasing compost depth blindly. Test the soil, identify the actual constraint, and choose the amendment that solves it. Compaction, pH imbalance, salinity, poor drainage, and nutrient excess are different problems.

How to build in a practical ordering margin

The calculator rounds up because running short in the middle of a job wastes more time than having a modest amount left over. Still, the right margin depends on how compost will be sold and used.

For bagged compost, round to the next whole bag. If the calculator returns 5.2 bags, buy 6. If you are spreading a thin layer over a visible lawn or ornamental bed, consider one extra bag for low spots and uneven distribution. Unopened bags are often easy to store for containers, top dressing, or blending into potting mixes later.

For bulk compost, round to the supplier’s ordering increment. Many landscape yards sell by the half cubic yard or cubic yard. If the result is 1.85 cubic yards, a 2 cubic yard order is sensible. If the result is 2.05 cubic yards, ask whether 2 cubic yards is close enough for your application or whether the supplier can deliver 2.5. For a vegetable bed, a slight shortage may be acceptable. For a lawn top dressing where coverage must be even, the same shortage may show.

Compost quantity is only one part of a soil project. If you are building or filling a bed, compare the compost result with the total bed volume using the soil volume calculator. If you are trying to improve soil pH, compost is not a precise pH correction tool; use a soil pH calculator or, better, a lab soil test for liming and sulfur decisions.

If the compost project is part of planting design, use the result alongside a plant spacing calculator so you are not amending far more area than you plan to plant. For irrigation planning, compost can affect how long soil holds water, but it does not replace a watering calculator or field observation after rain and irrigation.

For indoor plants, be more cautious. Many houseplant mixes need air space and stable structure more than garden compost. If a plant is showing yellow leaves or brown leaf tips, adding compost is rarely the first diagnostic step. Check watering, light, roots, fertilizer concentration, and soil texture before adding an outdoor soil amendment to a container.

Accuracy limits

The calculator is accurate for geometry. If the length, width, and depth are correct, the volume conversion is correct. The uncertainty begins with the real-world material and the job site.

Compost can be fluffy or dense, dry or wet, screened or chunky. It can settle after spreading. A pile dumped on a driveway can compact under its own weight. A wheelbarrow load may include air pockets. A bed surface may be uneven. A “2 cubic foot” bag may not spread as far as expected if the compost is clumped or wet.

Depth recommendations also depend on soil texture, crop, climate, and history. A new vegetable bed in poor mineral soil is different from a mature no-dig bed that has received compost every year. A sandy coastal soil is different from a heavy clay soil with poor drainage. The calculator handles the arithmetic; the gardener still has to decide whether the selected depth fits the site.

A simple workflow for better compost orders

Start by measuring the area. Sketch odd shapes and break them into simple pieces. Choose a depth based on the job: light top dressing, routine soil building, new-bed incorporation, or raised-bed blending. Run the calculator once with the depth you think you need, then run it again one step lighter and one step heavier.

That range is useful. If the 1 inch result is easy to buy but the 2 inch result doubles the cost, ask whether the heavier application is justified by a soil test or a real performance problem. If the 3 inch new-bed rate produces more material than you can incorporate into the top 8 to 12 inches, reduce the depth or split the work across seasons.

Before ordering, check the supplier unit. Are they selling cubic yards, cubic feet, bags, tons, or scoops? Ask whether delivery includes a full measured yard or a loader bucket estimate. Confirm where the pile can be dropped, whether the truck can access the site, and how soon you can move the compost before rain changes its weight and workability.

Conclusion

The Compost Calculator is best used as a volume translator: it turns bed size and compost depth into cubic feet, cubic yards, and bag counts. That removes the biggest ordering guess from top dressing, new-bed preparation, raised-bed refreshing, and lawn soil-building projects.

The smarter decision is choosing the right depth before you calculate. Use thin layers for routine maintenance, stronger incorporated rates for new beds, and compost blends rather than pure compost for raised-bed fills. Then sanity-check the result against compost quality, soil test data, supplier units, and the plants you are actually growing. A good compost order is not the largest one; it is the one that matches the soil problem without creating a new one.

How this Compost Calculator is reviewed?

Editorial policyReview board

Written by · Reviewed by LeafyPixels Review Board · Updated June 11, 2026

This Compost Calculator was researched and written by . Logic, safety notes, and result copy for Compost are reviewed against LeafyPixels plant-care data, extension references, and veterinary toxicity sources where pet safety is involved.

We prioritize sources that hold up under scrutiny:

  • University cooperative extension bulletins and fact sheets (Penn State, Clemson, UMD, NC State, and similar programs)
  • Botanical garden and horticultural society publications
  • Peer-reviewed plant science and veterinary toxicology references where pet safety matters (including ASPCA Animal Poison Control)
  • Established reference works on indoor plant culture

The LeafyPixels editorial team then reviews the draft for clarity, step-by-step usefulness, and fit with real apartment and home conditions-not ideal greenhouse setups. When guidance changes materially, we update the page and note the revision date.

What this guide covered

Same volume formula as the soil volume calculator: Cubic Feet = L x W x (Depth / 12); Cubic Yards = Cubic Feet / 27. Depth presets: 1 inch (top dressing), 2 inches (annual maintenance), 3 inches (new bed), 4 inches (poor soil improvement), 6 inches (deep raised bed), 12 inches (full fill). Bag equivalents are 1.0 and 2.0 cubic foot sizes. The calculator rounds up to the next half cubic yard for bulk delivery and to the next whole bag for bagged compost. The result is a starting point; most landscape suppliers will deliver the next half-yard up at minimal extra cost.

The long-form review for this page covers Compost Calculator. Its bottom source list includes 6 external citations pulled from the long-form guide, then deduplicated with the tool’s frontmatter sources.


Sources used

  1. Cornell Waste Management Institute (n.d.) Composting. [Online]. Available at: https://cals.cornell.edu/ (Accessed: 11 June 2026).
  2. EPA (n.d.) Composting at Home. [Online]. Available at: https://www.epa.gov/recycle/composting-home (Accessed: 11 June 2026).
  3. Epa.Gov (n.d.) valuable soil amendment. [Online]. Available at: https://www.epa.gov/sustainable-management-food/composting (Accessed: 11 June 2026).
  4. Extension.Missouri.Edu (n.d.) ready to use. [Online]. Available at: https://extension.missouri.edu/publications/g6956 (Accessed: 11 June 2026).
  5. Extension.Oregonstate.Edu (n.d.) new garden beds. [Online]. Available at: https://extension.oregonstate.edu/catalog/em-9308-how-use-compost-gardens-landscapes (Accessed: 11 June 2026).
  6. Extension.Oregonstate.Edu (n.d.) bulk density. [Online]. Available at: https://extension.oregonstate.edu/catalog/em-9217-interpreting-compost-analyses (Accessed: 11 June 2026).
  7. Extension.Umn.Edu (n.d.) soil-building rates. [Online]. Available at: https://extension.umn.edu/managing-soil-and-nutrients/soil-testing-lawns-and-gardens (Accessed: 11 June 2026).
  8. Nrcs.Usda.Gov (2022) soil organic matter. [Online]. Available at: https://www.nrcs.usda.gov/sites/default/files/2022-10/AWC_Effects_on_Soil_Water_Holding_Capacity_and_Retention.pdf (Accessed: 11 June 2026).
  9. University of Minnesota Extension (n.d.) Composting at Home. [Online]. Available at: https://extension.umn.edu/yard-and-garden-news/composting-home (Accessed: 11 June 2026).
  10. USDA NRCS (n.d.) Soil Organic Matter. [Online]. Available at: https://www.nrcs.usda.gov/ (Accessed: 11 June 2026).

Frequently asked questions

How much compost do I need for a 4x8 raised bed?

If you are filling a new 4x8 raised bed with 12 inches of pure compost, you need 32 cubic feet or 1.19 cubic yards. Most gardeners mix compost into the top 6 to 8 inches of a bed rather than using it as the sole fill - a 50/50 blend of topsoil and compost at 12 inches requires 0.6 cubic yards of each.

How thick should compost top dressing be?

For annual maintenance of an existing garden bed, spread 1 to 2 inches of compost over the surface and rake it in. For lawn top-dressing, no more than half an inch at a time, applied in spring or fall. For new bed construction, 3 to 4 inches mixed into the top 6 to 8 inches of soil works well. For a deep raised bed, 6 to 12 inches of compost blended with topsoil is appropriate.

Is compost the same as fertilizer?

No, compost and fertilizer serve different roles. Compost is a soil amendment that improves structure, drainage, water-holding capacity, and microbial life. Its nutrient content is low and slow-release (typically 1-1-1 N-P-K). Fertilizer delivers concentrated nutrients in a form plants can absorb quickly. The two work together: compost as the foundation, fertilizer as the targeted nutrient boost during active growth.

Can I use too much compost?

Yes, over-application of compost is possible. More than 4 to 6 inches mixed into the top 8 inches of soil can hold too much moisture, leading to root rot in drought-tolerant plants and unhappy drainage for Mediterranean herbs. It can also raise phosphorus and salt levels in the soil over time, which interferes with micronutrient uptake. The standard rule is no more than 1 to 2 inches of compost top-dressed annually for established beds.

How long does compost take to break down further in the soil?

Finished compost continues to break down slowly in the soil, releasing nutrients over 1 to 3 years. The most active decomposition happens in the first 6 months. After that, the remaining organic matter becomes stable humus, which is what gives good soil its dark color, crumbly structure, and water-holding capacity. Annual top-dressing maintains this cycle without disturbing the soil food web.

What is the difference between compost and manure?

Compost is decomposed organic matter (food scraps, yard waste, leaves) that has gone through thermophilic decomposition. Manure is animal waste, usually aged or composted before use. Both are excellent soil amendments, but manure is typically higher in nitrogen and salts - use composted (not fresh) manure and apply it more sparingly. Well-finished compost has a fine, dark, earthy texture; manure may have visible bedding fibers even after composting.