Solutions for Sustainable Living

Soil Volume Calculator

How much soil do you need for your raised garden bed, planter box or pot?

1. Choose a garden bed or planter style

2. Select the shape

3. Enter the measurements

Enter a number
Enter a number
Enter a number
Please fill in all measurements with valid numbers.

How much do you need?

0.0 cubic yards of soil mix 0 cubic feet

Your ideal soil mix:

50% · Soil
0.0
cubic yards
0 cubic feet
30% · Compost
0.0
cubic yards
0 cubic feet
20% · Potting mix
0.0
cubic yards
0 cubic feet
Shop Raised Garden Beds & Planters at Eartheasy →
Internal · algorithm reference

How the calculation works

This document describes the exact math behind the calculator so the logic can be reviewed for correctness. All volumes are computed in cubic feet first, then converted to cubic yards. The shape formulas (rectangle, hexagon, octagon, L and U) follow the approach published in the Eartheasy guide How to Calculate Soil Volume for Raised Garden Beds, and the worked examples in that guide reproduce 1:1 in this calculator.

1. Units by style

The chosen style determines how the length and width inputs are interpreted. Depth is always entered in inches.

StyleLength / WidthDepth
Raised Garden Bedfeetinches
Pot / Elevated Planterinchesinches

Every dimension is first converted to feet:

depth_ft = depth_in / 12 length_ft = (style == pot) ? length_in / 12 : length_ft width_ft = (style == pot) ? width_in / 12 : width_ft

2. Volume by shape (cubic feet)

For hexagon and octagon, the length input is the side length of the regular polygon. For L-shape and U-shape, the bed is treated as a sum of rectangles — two for L, three for U — and each rectangle is entered separately. Width is required for square, rectangle, L-shape and U-shape (Section 1 width in L/U).

square / rectangle: V = length_ft × width_ft × depth_ft hexagon: V = (3/2) × √3 × length_ft² × depth_ft octagon: V = 2 × (1 + √2) × length_ft² × depth_ft L-shape: V = (L1 × W1 + L2 × W2) × depth_ft U-shape: V = (L1 × W1 + L2 × W2 + L3 × W3) × depth_ft

The hexagon area term (3/2)·√3·s² and the octagon area term 2·(1+√2)·s² are the standard areas of regular polygons with side s. The L / U formulas match the standard approach used in published gardening guides — measure each rectangular section, add the areas, multiply by depth. All sections share the same depth.

3. Convert to cubic yards

One cubic yard equals 27 cubic feet (3 ft × 3 ft × 3 ft):

cubic_yards = cubic_feet / 27

No rounding is applied before this division — values are computed at full precision and only rounded to one decimal place for display. (An earlier version rounded cubic feet up with ceil() before dividing, which badly over-estimated small pots; that step has been removed.)

4. Ideal soil mix split

The total volume is split into a recommended planting mix. The three parts always sum to 100% of the total volume:

ComponentShareFormula
Soil50%total × 0.50
Compost30%total × 0.30
Potting mix20%total × 0.20

Each component is reported both in cubic yards (large number) and cubic feet (smaller line), derived from the same total.

5. Validation

Length and depth are always required and must be valid numbers. Width is required for square, rectangle, L-shape and U-shape (it is hidden and ignored for hexagon and octagon). For L-shape, Section 2 length and width are also required. For U-shape, Section 2 and Section 3 dimensions are required as well. If any required field is empty or non-numeric, the calculation is blocked and an inline error is shown.

Worked example

Raised bed · rectangle · length 4 ft, width 3 ft, depth 12 in:

depth_ft = 12 / 12 = 1 V = 4 × 3 × 1 = 12 cubic feet cubic_yards = 12 / 27 = 0.44 ≈ 0.4 soil 50% = 6.0 cf | compost 30% = 3.6 cf | potting 20% = 2.4 cf
Internal · competitive research

Competitor research & improvement ideas

Review of the top-10 Google results (US) for the query soil calculator, captured to guide the calculator's roadmap. Each competitor was inspected for the features it offers.

Top-10 results and standout features

#SiteStandout features
1gardeners.comRaised-bed / pot style toggle (same as ours), 60/30/10 mix, fertilizer amounts, social share
2inchcalculator.comUnit switcher (in/ft/yd/cm/m), direct area input, weight in tons via density, bags needed, embeddable widget, formulas, FAQ
3lowes.comBulk vs bagged mode, product picker from catalog, add-to-cart
4soilcalculator.comQuantity (N identical containers), bags needed across 4 bag sizes (0.75 / 1 / 1.5 / 2 cu ft)
5omnicalculator.comMetric + imperial, weight via density, cost estimate (price → total), bags, large FAQ
6mahoneysgarden.comBy-the-bag / by-the-yard toggle, material selection
7soildirect.comCubic yards → tons, price & delivery
9squarefootgardening.orgLive auto-calculation, mix shown in 5-gallon buckets, charts of common bed sizes

(#8 is a YouTube video; #10 is the inchcalculator app on Google Play.)

Improvement ideas — high priority

Common to most competitors, currently missing here:

Improvement ideas — medium priority

Improvement ideas — SEO / growth

Improvement ideas — optional

Where we already lead

Internal · opportunity sizing

New calculator opportunities (traffic-validated)

Candidate calculators to build next, validated with Ahrefs. Figures are the estimated US monthly organic traffic of the top-ranking pages for each keyword (i.e. the current SERP leaders, not weak sites). Decision rule: build it if the leading pages clearly exceed 100 clicks/month.

CalculatorTop page (traffic/mo)#2 / #3Verdict
Gravelcalculator.net — 27,5988,121 / 7,904✅ Build (huge)
Mulchlandscapecalculator.com — 22,8834,766 / 2,493✅ Build (huge)
Grass seedlowes.com — 3,280506 / 149✅ Build
Plant spacingclassygroundcovers.com — 2,8981,419 / 177✅ Build
Compostmcgillcompost.com — 1,776644 / 84✅ Build
Fertilizeragebb.missouri.edu — 1,239772 / 407✅ Build

Traffic is each ranking page's total organic traffic (Ahrefs SERP overview, US, monthly). For dedicated single-purpose calculator pages this closely tracks the calculator keyword itself.

Recommended build order

Ranked by traffic × Eartheasy brand fit × reuse of this calculator's code:

  1. Mulch — huge traffic, same formula as soil (area × depth → cubic yards / bags), sells mulch. Cheapest to build from this codebase.
  2. Compost — strong traffic, core to the sustainable-living brand, same volume formula.
  3. Plant spacing — high traffic and strong garden fit; different math (spacing grid / plant count).
  4. Grass seed — good traffic; coverage-rate math (seed lbs per area).
  5. Gravel / sand / stone — the largest traffic of all, but lower brand fit (landscaping rather than organic gardening). Build if expanding into hardscaping.
  6. Fertilizer — decent traffic, but N-P-K dosing is complex and university agronomy tools dominate the SERP (hard to outrank).

Strategy

Shipping 2–3 same-formula calculators (soil → mulch → compost) cross-linked in one shared design forms an SEO cluster that outperforms any single standalone calculator and lifts the whole set.