Compost Calculator

Calculate how much compost you need for your garden or lawn

Determine the volume, cost, and weight of compost required for any project. Supports bidirectional solving — edit any field to recalculate.

Last updated: July 9, 2026
Frank Zhao - Creator
CreatorFrank Zhao

Compost volume

How much compost do I need?

m
m
More info
cm

Compost cost

What is the cost of this much compost?

/
USD

What will be the weight of this much compost?

More info
kg/m³
kg
1Area
A=L×WA = L \times W
2Volume
V=A×DV = A \times D
3Total Cost
Tc=P×V\text{Tc} = P \times V
4Total Weight
Tw=ρ×V\text{Tw} = \rho \times V
LLength
WWidth
AArea
DDepth
VVolume
PPrice
TcTotal cost
ρDensity
TwTotal weight

Introduction / overview

The Compost Calculator is a practical tool that figures out exactly how much compost you need for any gardening or landscaping project — whether you are refreshing a flower bed, building a new raised bed, or top-dressing an entire lawn. Instead of guessing and ending up with too little (annoying) or way too much (wasteful), you get a precise volume, the expected cost, and even an estimate of the total weight.

✅ If you are planning a garden or landscaping project: this calculator saves you time, money, and the back-and-forth trips to the garden center. If you already know your area and desired depth, you will get an answer in seconds.

Who is this for?

  • Home gardeners planning a new bed or refreshing an existing one.
  • Landscapers who need to quote bulk compost for a client project.
  • Lawn enthusiasts aerating and top-dressing their turf.
  • Anyone comparing bagged vs. bulk compost costs.

The calculator uses an intelligent bidirectional calculation engine, so you can enter whichever values you know and let it derive the rest. If you are also planning mulch for the same area, consider pairing this with our Pine Straw Calculator for a complete soil-care workflow.

How to use / quick start

  1. 1Enter the Length and Width of the area you want to cover. You can switch between metric (meters, centimeters) and imperial (feet, inches, yards) using the unit selector on each input.
  2. 2The calculator automatically computes the Area. You can also type an area directly if you already know it, and the calculator will work backward to find compatible length and width values.
  3. 3Choose your Garden or lawn type from the dropdown. This sets a recommended depth automatically — for example, “New lawn — high compost level” gives you a 2-inch (5 cm) depth. Select “Custom depth” if you want to enter a depth manually.
  4. 4Once you have an area and depth, the Volume appears automatically. Switch between cubic meters, cubic feet, cubic yards, or liters as needed.
  5. 5Optional: fill in the Price per volume (currency + per-unit, e.g., USD per cubic yard) to see the Total cost. You can pick different currencies for the price and the total, and the calculator will convert between them using up-to-date exchange rates.
  6. 6Open the Compost weight section to enter a Density (default is 650 kg/m³, a typical value for compost) and see the Total weight. This is helpful if you need to know whether your car can haul the bags or if you are ordering bulk delivery.
  7. 7Adjust the precision using the precision settings button (the gear icon with a number badge at the top of the calculator). Click it, then drag the slider between 1 and 16 significant figures to control how many digits your results show. For example, a volume of 66.666… m³ displays as 6767 at precision 2,66.766.7 at precision 3, and66.6666666766.66666667 at precision 10.

Pro tip: use the smart dropdown for depth

If you are not sure how deep your compost layer should be, the Garden or lawn type dropdown is your best friend. It encodes typical depths recommended by horticulturists — from a light ¼-inch (≈ 0.6 cm) dusting for established lawns up to 2 inches (≈ 5 cm) for new gardens and raised beds. When a preset is selected, the Depth field becomes read-only (gray background) so you cannot accidentally override it.

Real-world examples / use cases

1) New garden bed for vegetables

Background: You are creating a new 10 ft × 5 ft raised vegetable bed. The native soil is compacted clay, so you want a heavy dose of compost — about 2 inches deep.

A=10 ft×5 ftA = 10\ \mathrm{ft} \times 5\ \mathrm{ft}==50 ft250\ \mathrm{ft}^2
V=50 ft2×2 inV = 50\ \mathrm{ft}^2 \times 2\ \mathrm{in}==8.3 ft38.3\ \mathrm{ft}^3\approx0.31 yd30.31\ \mathrm{yd}^3

Result: You need about 8.3 cubic feet of compost — that is roughly nine 1-cubic-foot bags. At roughly $5 per bag, expect to spend about $40–$45. The total weight will be around 330 lb (150 kg), so bring a sturdy vehicle.

2) Top-dressing an established lawn

Background: Your lawn (110 ft × 80 ft) is looking tired. You plan to aerate and then top-dress with a thin ½-inch layer of compost.

A=110×80A = 110 \times 80==8,800 ft28{,}800\ \mathrm{ft}^2
V=8,800×0.512V = 8{,}800 \times \frac{0.5}{12}==366.7 ft3366.7\ \mathrm{ft}^3\approx13.6 yd313.6\ \mathrm{yd}^3

Result: This is a bulk-order situation — about 13.6 cubic yards. Buying in bulk will be far more economical than individual bags. At a typical bulk price of $30–$50 per cubic yard, expect to pay $400–$680. Use the Price section to compare with bagged options.

3) Raised bed: how many bags do I buy?

Background: You have a 4 ft × 8 ft raised bed that is 1 ft deep. You want to fill it with a 75% soil / 25% compost mix.

The bed volume is 4×8×1=32 ft34 \times 8 \times 1 = 32\ \text{ft}^3. For a 25% compost mix: 0.25×32=8 ft30.25 \times 32 = 8\ \text{ft}^3.

Result: You need 8 cubic feet of compost — that is eight 1-cubic-foot bags. Price: about $40. Enter 4′ × 8′ for the bed dimensions and use “Raised bed — high compost level” to get a recommended depth that matches your plan. Then check the Total cost section.

4) Comparing bagged vs. bulk pricing

Background: You need 2 cubic yards of compost for a landscaping project. At the local garden center, bagged compost is $5 per cubic foot. Bulk delivery is $45 per cubic yard.

Bagged cost: 2 yd3=54 ft32\ \text{yd}^3 = 54\ \text{ft}^3, so 54×$5=$27054 \times \$5 = \$270.

Bulk cost: 2×$45=$902 \times \$45 = \$90.

Result: Bulk is one-third the price. Enter the volume, price per cubic foot for bagged (or per cubic yard for bulk), and toggle between currency units to compare side by side.

Common scenarios / when to use

New flower & vegetable beds

Use the “Garden — high compost level” preset (2 in depth) when establishing a new bed. Mix 1–2 inches of compost into the top 6–8 inches of soil for the best root development.

Existing lawn rejuvenation

Apply a thin ¼–½ inch layer before or after aeration. The “Established lawn” presets are perfect here — they apply just enough organic matter without smothering the grass.

Pair with our Sod Calculator if you are starting fresh.

Raised bed gardening

Raised beds need a lot of soil. Use the “Raised bed” preset for an ample 2 in layer of compost, then mix with existing topsoil or a soilless mix. The Total weight estimate tells you whether your raised bed frame can handle the load.

Bulk ordering & budgeting

If you need more than a cubic yard, bulk delivery is usually cheaper. Use the Price section to enter the bulk rate (per cubic yard) and compare against bagged pricing. The Total cost section can handle different currencies too.

Hauling capacity check

The Compost weight section tells you the total weight. A standard pickup truck can safely carry about 1,000–1,500 lb in the bed. If the calculator says your compost weighs 2,000 lb, you will need a trailer or delivery.

Large-scale landscaping projects

For commercial projects covering thousands of square feet, enter dimensions in feet or meters and let the calculator handle the volume in cubic yards (the standard unit for bulk soil suppliers). The weight estimate helps with logistics planning.

Tips & best practices

Precision settings explained

The precision settings control is the gear button at the top of the calculator, displaying the current number of significant figures (e.g., 10). Click it to open the Precision Settings popup, where a slider lets you choose between 1 and 16 significant figures.

This controls significant figures, not decimal places. Significant figures count all digits from the first non-zero digit. For example, the number 0.003456 has four significant figures (3, 4, 5, 6) — the leading zeros do not count.

Example with the Compost Calculator:

Suppose your volume comes out as 0.0249995 m30.0249995\ \text{m}^3. Here is how different precision levels display it:

  • Precision 2: 0.0250.025
  • Precision 3: 0.02500.0250
  • Precision 5: 0.0250000.025000
  • Precision 10: 0.0249995000.024999500

Accuracy vs. precision

The built-in accuracy limit of JavaScript math is about 15–17 significant figures. Cranking the slider to 16 is fine for display, but the underlying calculation has natural limits. If you are doing multi-step calculations, keep precision at 6–10 during intermediate steps and only reduce it for the final readable output.

General best practices

  • Always buy a little extra. Compost settles during transport and application. Add 5–10% to the calculator’s volume as a buffer.
  • Know your density. The default density (650 kg/m³) is a good average for mature compost, but moisture content and particle size vary a lot. Wet, chunky compost can weigh 800+ kg/m³.
  • Use the right depth for the job. Mixing into soil? Go deeper (1–2 in). Surface dressing an existing lawn? Keep it thin (¼–½ in) to avoid smothering the grass.
  • Bulk is almost always cheaper. If the calculator shows more than 1–2 cubic yards, call a local landscape supplier for a bulk quote before buying bags at the hardware store.
  • Check your soil type. Sandy soil benefits from more compost (retains moisture), while clay soil needs less (improves drainage). Adjust the depth accordingly.

Calculation method / formulas

The Compost Calculator uses four straightforward formulas chained together. Because the calculator supports bidirectional solving, you can enter any combination of known values and the engine will determine the unknowns automatically.

1) Area

A=L×WA = L \times W

Where AA is the total area, LL is length, and WW is width.

2) Volume

V=A×DV = A \times D

Where VV is the compost volume, AA is area, and DD is the depth of the compost layer.

3) Total cost

Tc=P×V\text{Tc} = P \times V

Where Tc\text{Tc} is the total cost, PP is the price per unit volume, and VV is the volume. Currency conversion is handled automatically when price and total cost use different currencies.

4) Total weight

Tw=ρ×V\text{Tw} = \rho \times V

Where Tw\text{Tw} is the total weight, ρ\rho is the density (mass per unit volume), and VV is the volume.

Related concepts / background info

Volume units in practice

Compost is sold in different units depending on where you shop:

  • Cubic feet (ft³) — standard for bagged compost at garden centers and hardware stores. A typical bag is 1–2 ft³.
  • Cubic yards (yd³) — standard for bulk delivery. A small dump truck holds 3–5 cubic yards.
  • Liters (L) — common in Europe and for smaller bags.
  • Cubic meters (m³) — metric standard for large volumes.

Why density matters

Compost density varies widely. Dry, screened compost may be as light as 400–500 kg/m³, while wet, dense compost can exceed 900 kg/m³. The default of 650 kg/m³ (~40 lb/ft³) is a reasonable middle ground. If you know your specific source, adjust the density in the Compost weight section for a more accurate weight estimate.

Compost vs. mulch vs. soil

These three materials serve different purposes. Compost feeds the soil biology and adds nutrients. Mulch (bark, wood chips) suppresses weeds and retains moisture but sits on top of the soil. Topsoil is the base layer for new beds. Use the calculator that matches your material — our Pine Straw Calculator handles the coarser, lighter materials that mulch typically consists of.

Frequently asked questions

How do I convert between cubic feet and cubic yards?

There are 27 cubic feet in 1 cubic yard (1 yd3=27 ft31\ \text{yd}^3 = 27\ \text{ft}^3). To convert, divide the volume in cubic feet by 27. Our calculator handles this automatically — just switch the volume unit in the dropdown.

How much does a cubic foot of compost weigh?

A typical 1-cubic-foot bag of compost weighs about 40 pounds (~18 kg). This matches the default density of 650 kg/m³. Wet compost can be heavier, while dry, screened compost can be lighter. Use the Compost weight section to adjust the density to your specific product.

Can I use this calculator for mulch?

The volume calculation (length × width × depth) works for any material, but the default density is specific to compost. Mulch is typically lighter and fluffier. For a more accurate mulch estimate, try our dedicated Pine Straw Calculator.

Should I use bagged or bulk compost?

For small projects (less than 1–2 cubic yards), bagged compost from a garden center is convenient. For larger projects, bulk delivery is significantly cheaper — often $30–50 per cubic yard compared to $5 per cubic foot for bagged (which works out to $135 per cubic yard!). Use the Price section to compare.

How deep should I apply compost?

It depends on the application:

  • New garden beds: 1–2 inches, mixed into the top 6–8 inches of soil.
  • Existing lawns: ¼–½ inch as a top-dressing after aeration.
  • Raised beds: 1–2 inches of compost mixed with existing soil.
  • Potting mix: Aim for about 25% compost, 75% base soil or soilless mix.

Why does the Depth field turn gray sometimes?

When you select a garden or lawn type from the dropdown (anything except “Custom depth”), the depth is automatically set to a recommended value and becomes read-only (gray background). This prevents accidental overrides. Choose “Custom depth” if you want to enter your own value.

Can the calculator handle different currencies?

Yes. The Price and Total cost inputs each have their own currency selector. You can set Price in USD and Total cost in EUR, for example, and the calculator will automatically convert using live exchange rates. Exchange rates are cached for up to 24 hours to ensure quick response times.

What if my garden area is irregularly shaped?

For irregular shapes, break the area into rectangles, calculate each separately, and add the volumes together. For circular or curved areas, measure the approximate length and width of the bounding rectangle — it will get you close enough for compost ordering purposes.

Can I share my calculation results?

Yes! Click the Share button at the bottom of the calculator to generate a link. Check “Include results” to create a URL that preserves all your inputs, outputs, and even the precision setting. Send this link to a landscaper, garden center, or save it for your records.

Limitations / disclaimers

Density is an estimate. The calculator uses a default compost density of 650 kg/m³. Actual density depends on moisture content, particle size, and how compacted the compost is. Always check with your supplier if weight is critical (e.g., for structural loading or vehicle capacity).

Currency exchange rates. The exchange rates used for currency conversion are updated daily via ExchangeRate-API. Rates cached between updates may be slightly stale. For exact financial planning, verify with your bank or a live currency converter.

Not a substitute for professional advice. This calculator provides estimates for planning purposes only. Soil composition, drainage, plant species, and local climate all affect how much compost your garden actually needs. Consult a local horticulturist or extension service for site-specific recommendations.

Volume settling. Compost volume can settle by 10–20% during transport and handling. Consider ordering slightly more than the calculated volume, especially for large projects.

Compost Calculator - Free Online Compost Volume & Cost Calculator