Our 14 material calculators are free for any website to embed. There is no account to create, no API key to request and no charge — now or later. Paste the code where you want the calculator to appear and it works. Because each widget loads from our site, it always shows the current version, with no updates for you to install.
Try the live example below, then copy the code for any calculator further down the page.
Try it live: Gravel Calculator
This is the real widget, running on this page. Enter a length, width and depth and it works out how much gravel you need.
Free Gravel Calculator from Yard & Bag
Get the code
Pick a calculator, copy its snippet and paste it into your page where you want the widget to appear. Each snippet includes the widget and a short script that resizes it to fit its contents.
Gravel Calculator
Work out how much gravel you need for a driveway, path or patio, in cubic yards, tons and bags.
<iframe src="https://yardsandbag.com/embed/gravel-calculator/" loading="lazy" style="width:100%;border:0" title="Gravel Calculator"></iframe>
<p><a href="https://yardsandbag.com/gravel-calculator/">Free Gravel Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Mulch Calculator
Work out how much mulch you need to cover a garden bed or border at the depth you choose.
<iframe src="https://yardsandbag.com/embed/mulch-calculator/" loading="lazy" style="width:100%;border:0" title="Mulch Calculator"></iframe>
<p><a href="https://yardsandbag.com/mulch-calculator/">Free Mulch Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Concrete Calculator
Work out how much concrete you need for a slab, patio or other pour, in cubic yards.
<iframe src="https://yardsandbag.com/embed/concrete-calculator/" loading="lazy" style="width:100%;border:0" title="Concrete Calculator"></iframe>
<p><a href="https://yardsandbag.com/concrete-calculator/">Free Concrete Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Topsoil Calculator
Work out how much topsoil you need for a garden bed, raised bed or new lawn area.
<iframe src="https://yardsandbag.com/embed/topsoil-calculator/" loading="lazy" style="width:100%;border:0" title="Topsoil Calculator"></iframe>
<p><a href="https://yardsandbag.com/topsoil-calculator/">Free Topsoil Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Sand Estimator
Estimate how much sand you need for a paver base, sandbox, patio or other project.
<iframe src="https://yardsandbag.com/embed/sand-estimator/" loading="lazy" style="width:100%;border:0" title="Sand Estimator"></iframe>
<p><a href="https://yardsandbag.com/sand-estimator/">Free Sand Estimator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Stone Calculator
Work out how much stone you need for a path, driveway or landscaping project.
<iframe src="https://yardsandbag.com/embed/stone-calculator/" loading="lazy" style="width:100%;border:0" title="Stone Calculator"></iframe>
<p><a href="https://yardsandbag.com/stone-calculator/">Free Stone Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Rubber Mulch Calculator
Work out how much rubber mulch you need for a playground, path or landscaped area.
<iframe src="https://yardsandbag.com/embed/rubber-mulch-calculator/" loading="lazy" style="width:100%;border:0" title="Rubber Mulch Calculator"></iframe>
<p><a href="https://yardsandbag.com/rubber-mulch-calculator/">Free Rubber Mulch Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Concrete Footing Calculator
Work out how much concrete you need for footings and piers for a deck, fence or structure.
<iframe src="https://yardsandbag.com/embed/concrete-footing-calculator/" loading="lazy" style="width:100%;border:0" title="Concrete Footing Calculator"></iframe>
<p><a href="https://yardsandbag.com/concrete-footing-calculator/">Free Concrete Footing Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Paver Patio Calculator
Work out how many pavers, and how much base and sand, you need for a patio.
<iframe src="https://yardsandbag.com/embed/paver-patio-calculator/" loading="lazy" style="width:100%;border:0" title="Paver Patio Calculator"></iframe>
<p><a href="https://yardsandbag.com/paver-patio-calculator/">Free Paver Patio Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Paver Base Calculator
Work out how much base material you need under pavers for a patio, path or driveway.
<iframe src="https://yardsandbag.com/embed/paver-base-calculator/" loading="lazy" style="width:100%;border:0" title="Paver Base Calculator"></iframe>
<p><a href="https://yardsandbag.com/paver-base-calculator/">Free Paver Base Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Retaining Wall Calculator
Work out the blocks and materials — and the likely cost — for a retaining wall.
<iframe src="https://yardsandbag.com/embed/retaining-wall-cost-calculator/" loading="lazy" style="width:100%;border:0" title="Retaining Wall Calculator"></iframe>
<p><a href="https://yardsandbag.com/retaining-wall-cost-calculator/">Free Retaining Wall Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Fence Estimator
Estimate the panels, posts and concrete you need for a fence run.
<iframe src="https://yardsandbag.com/embed/fence-estimator/" loading="lazy" style="width:100%;border:0" title="Fence Estimator"></iframe>
<p><a href="https://yardsandbag.com/fence-estimator/">Free Fence Estimator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Fence Post Depth Calculator
Work out how deep your fence posts need to go, and how much concrete each hole needs.
<iframe src="https://yardsandbag.com/embed/fence-post-depth-calculator/" loading="lazy" style="width:100%;border:0" title="Fence Post Depth Calculator"></iframe>
<p><a href="https://yardsandbag.com/fence-post-depth-calculator/">Free Fence Post Depth Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Sod Calculator
Work out how much sod you need to cover a lawn, in rolls or pallets.
<iframe src="https://yardsandbag.com/embed/sod-calculator/" loading="lazy" style="width:100%;border:0" title="Sod Calculator"></iframe>
<p><a href="https://yardsandbag.com/sod-calculator/">Free Sod Calculator</a> from Yard & Bag</p>
<script>window.addEventListener('message',function(e){if(e.origin!=='https://yardsandbag.com')return;var f=document.querySelector('iframe[src*="/embed/"]');if(f&&e.data&&e.data.mqcHeight)f.style.height=e.data.mqcHeight+'px';});</script>
Where to paste it
WordPress: Add a Custom HTML block where you want the calculator, paste the snippet in it, and publish. In the Classic Editor, switch to Text mode and paste it there.
Squarespace: Add a Code block to the page, paste the snippet into it, and save.
Wix: Add an HTML iframe element (Embed a Site / HTML Code), paste the snippet, and publish.
Webflow: Add an Embed element to the page, paste the snippet into it, and publish.
Ghost: Add an HTML card in the editor, paste the snippet into it, and publish.
Shopify: In the theme editor, add a Custom Liquid section or block and paste the snippet into it — or paste it into a page in HTML view.
Plain HTML: Paste the snippet into your HTML file where you want the calculator to appear, then upload or save the file.
The one thing we ask
Each snippet includes a one-line credit link under the widget. It sits outside the frame on purpose: a link inside an iframe would be a link on our page, not yours. Keeping that line is what pays for the widget being free.
Please do not mark it nofollow — it is a normal editorial link to the source of a tool you chose to use. There is no licence to sign, and nothing else to do.
Frequently asked questions
Is it really free?
Yes — no charge, no account, no API key and no usage limit.
Will it stay updated?
Yes — the widget always shows the current version, because it loads from our site each time your page is viewed.
What if it doesn’t resize?
The script in the snippet resizes the widget to fit its contents. Without the script, the widget still works at a default height — just copy the whole snippet, script included, to get the resizing.