Free Soil Calculator Widget
The embedded Soil Calculator turns a bed's length, width and fill depth into cubic yards, a bag count, the weight of the load and a bagged-vs-bulk cost, for topsoil, garden soil, raised bed mix, compost or fill dirt. Readers can enter several beds of the same size at once. It fits soil yards and garden centres, raised-bed kit sellers, and vegetable-gardening sites.
It's a single iframe plus a one-line credit link — free, responsive, no registration, and no ads or tracking scripts on your page.
Live preview
The embed adds no ads and no tracking to your page. Prefer a guided version with a preview? Use the embed builder.
Credit line included
The code ends with a one-line credit under the calculator: “Soil Calculator by Build Material Planner”, linking to the full calculator. Please keep it. It's what keeps these calculators free to build and maintain, and it helps other people find them.
Why add it to your page
Raised-bed builders routinely under-buy: a 4 x 8 bed swallows more than a cubic yard once it's filled a foot deep and the soil settles. The calculator adds the settling allowance for the soil type and says when bulk beats bags, so a reader orders once instead of making three trips to the store.
What your visitors get
Three 4 x 8 ft raised beds, 12 in deep in raised bed mix comes back as:
- Raised Bed Mix (bulk): 4.27 cu yd
- Raised Bed Mix (bagged, 1.5 cu ft each): 77 bags
- Bagged estimate: $616 – $1,078
Where the Soil Calculator widget fits
- A raised-bed building guide or kit product page
- A soil yard or garden centre's bulk soil delivery page
- A "how much soil do I need" or new-lawn preparation article
How to add it to your site
Copy the code above and paste it where the calculator should appear. See the install notes for WordPress, Squarespace, Wix and Webflow, plus sizing and common questions.
Questions from site owners
Does it handle several raised beds at once?
Yes. Readers enter one bed's size and the number of beds that size, and get one total in cubic yards and bags.
Does it allow for soil settling?
Yes. Each soil type has its own settling allowance, from 10% for topsoil to 20% for raised bed mix and compost, and readers can change it.
Does it show weight?
Yes, an approximate weight for the load, with a warning when it's more than a pickup should carry, which matters for anyone planning to haul it themselves.
Just need to run the numbers yourself? Use the full Soil Calculator — it has the formulas, a worked example and an FAQ. Also for your readers: Mulch & Landscape Material Calculator widget, Gravel Driveway Calculator widget. Or see all embeddable calculators.