Embed the gravel calculator on your site
Free for any website — contractor sites, landscaping blogs, supplier pages, DIY resources. One line of HTML gives your visitors instant cubic yards, tons, and cost estimates. No sign-up, no fees.
Updated · Densities and formulas on our methodology page
Grab the code
Copy this snippet and paste it into your page's HTML wherever you want the calculator to appear. Adjust the height if you want more or less room.
<iframe
src="https://calculategravel.com/embed"
title="Gravel Calculator"
width="100%"
height="900"
style="border:0;max-width:680px;width:100%"
loading="lazy"
></iframe>
<p style="font:13px sans-serif">
Free <a href="https://calculategravel.com/">Gravel Calculator</a> by CalculateGravel
</p>Live preview
This is exactly what your visitors will see:
Why embed it
- Keeps visitors on your page. They estimate quantities without leaving your site.
- 12+ materials, any shape. Rectangle, circle, triangle, ring, and multi-area — with tons, yards, bags, and cost.
- Mobile-friendly and fast. The widget resizes to your column width and loads lazily.
- Always current. Improvements to the calculator show up in your embed automatically — nothing to re-paste.
Adding it on common platforms
The snippet is plain HTML, so it works anywhere you can paste markup:
- WordPress: add a Custom HTML block in the editor and paste the snippet into it.
- Squarespace: add a Code block, paste, and save.
- Wix: use Embed Code → Embed HTML, paste the snippet, then drag the frame to the size you want.
- Hand-coded sites: paste it inside the page body wherever the calculator should sit, usually right under the paragraph that tells readers to measure their area.
Sizing the widget
The default height="900" fits the calculator with its results panel open on a phone. On a wide desktop column you can drop it to about 760. The width is fluid up to 680 pixels, so it never overflows a narrow sidebar or a mobile screen. Because the frame uses loading="lazy", the browser only loads it when a reader scrolls near it, so it doesn't slow down the top of your page.
Common questions
Does it cost anything?
No. There's no account, no API key, and no usage limit.
Will it match my site's fonts and colors?
It keeps CalculateGravel's own styling, since it runs in its own frame. Your page's CSS can't reach inside it, and it can't change your page either.
Do I need to update it when the calculator changes?
No. The frame always loads the current version, so new materials and fixes show up on your page without re-pasting anything.
Terms of use
Free to embed on any site. Please keep the "Powered by CalculateGravel" attribution link intact — it's the only thing we ask in return. Questions? See our contact page. For the full-featured version, visit the main gravel calculator.