Free calculators for your website

Add a free calculator to your page in 30 seconds. Your readers get their answer without leaving your page, and you paste one block of code.

How it works

  1. Pick a calculator below.
  2. Press Copy code.
  3. Paste it into your page's HTML. That's it: when we improve a calculator, your page gets the update by itself.

Calculators you can embed

  • Gravel Calculator

    Cubic yards, tons and bags of gravel for driveways, paths and patios.

    Suggested height: 950 px. Open the full Gravel Calculator

  • Mulch Calculator

    Cubic yards and bags of mulch for beds, borders and tree rings.

    Suggested height: 750 px. Open the full Mulch Calculator

  • Concrete Calculator

    Cubic yards and 40, 60 or 80 lb bags of concrete for slabs, patios and footings.

    Suggested height: 890 px. Open the full Concrete Calculator

  • Tip Calculator

    Tip amount, total and the share for each person at any percent, with the tip on the bill before or after tax.

    Suggested height: 750 px. Open the full Tip Calculator

  • Percentage Calculator

    Percent of a number, what percent one number is of another, percent change, and increase or decrease by a percent.

    Suggested height: 480 px. Open the full Percentage Calculator

  • Discount Calculator

    Sale price and savings from a percent off, stacked discounts, the original price, or the percent off from two prices.

    Suggested height: 750 px. Open the full Discount Calculator

  • BMI Calculator

    Adult BMI from your height and weight in feet and pounds or in metric units, with the CDC categories.

    Suggested height: 800 px. Open the full BMI Calculator

  • Turkey Thawing Calculator

    How long a frozen turkey takes to thaw in the refrigerator or in cold water, from USDA guidance.

    Suggested height: 500 px. Open the full Turkey Thawing Calculator

  • Turkey Cooking Time Calculator

    How long to roast a turkey at 325 °F by weight, stuffed or not, from the USDA timetable, with the 165 °F check.

    Suggested height: 700 px. Open the full Turkey Cooking Time Calculator

  • Days Until Christmas Calculator

    Days, weeks, hours and sleeps until Christmas, with a list of other U.S. holidays such as Thanksgiving and Halloween.

    Suggested height: 520 px. Open the full Days Until Christmas Calculator

Pre-fill the calculator (optional)

Add the field values to the address, for example https://yardmaths.com/embed/gravel-calculator/?length=20&width=10, and your readers start from your project's numbers.

Terms of use for embedded calculators

  • Free for any website, commercial or not, with no sign-up.
  • Keep the credit line under the calculator visible and linked to YardMaths.
  • Don't change, hide or cover the numbers, notes or credit inside the calculator, and don't present it as your own tool.
  • We may update a calculator (new options, corrected sources) or retire one; the code you pasted then updates by itself.
  • No ads, no cookies and no tracking scripts run inside the embedded calculator. Your visitors' browsers load it from yardmaths.com, like an image or a video from another site.
  • The BMI calculator is for information only, not medical advice; talk to a doctor or registered dietitian.

Questions from site owners

Will it slow down my page?

It loads only when a visitor scrolls near it (loading="lazy"), and its files stay in the browser's cache after the first visit.

Can I match my site's colors?

Not yet: every embedded calculator uses the YardMaths dark theme so its figures stay easy to read. Tell us what you need on the contact page.

Where can I paste the code?

Anywhere your site accepts HTML, such as a Custom HTML block in WordPress. Some site builders remove scripts: the calculator still works without the optional auto-height script.

My site has a Content Security Policy. What do I allow?

Add https://yardmaths.com to frame-src (or child-src).

Can I sandbox the iframe?

Yes, with sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox". Without allow-same-origin the calculator cannot load its own style.

Why do links open in a new tab?

So your readers do not leave your page by accident.