Publisher tools

Free embeddable calculator widgets

Add a working calculator to an article, resource page, course, or company website without maintaining calculation code. Choose a widget below, set a practical height, test the live preview, and paste the generated HTML into your site.

Configure widget

px

Use 480–1,200 px. Longer calculators need more height to avoid an inner scrollbar.

Live preview

BMI Calculator

Open full calculator

Calculate adult BMI, weight category, healthy-weight range, and an estimated body-fat percentage.

How to embed a calculator

  1. Choose a calculator above. Set its theme and height, then check the live preview with a few sample inputs.
  2. Copy the embed code and paste it into your website’s HTML or embed block. A rich-text block may display the code instead of the calculator.
  3. Preview your page on desktop and mobile, then publish. The configuration controls above are not included in your embed.

What visitors see

  • The calculator’s inputs and results, with a transparent outer background and no decorative frame.
  • Calculation details collapsed where available, and a disclaimer that remains visible when details are closed.
  • A small full-page link and Calxo credit at the bottom.
  • No AI insight, feedback box, Recent tab, or recent-calculation history bar. Embeds do not save recent-calculation history.

Match your website’s appearance

Choose Light for a light website and Dark for a dark website. Automatic follows the visitor’s device preference; it does not detect your website’s background or theme toggle.

The transparent outer background lets your page colour show through. Inputs and result cards keep the selected light or dark styling. Your website’s fonts, accent colours, and CSS do not automatically pass into the iframe.

The builder’s optional credit adds an extra line below the iframe. Turning it off leaves the widget’s small built-in footer.

Copy-and-paste example

This example uses the light theme. Change the calculator slug or use the builder to generate code for another calculator.

<iframe
  id="calxo-calculator"
  title="Percentage calculator"
  src="https://calxo.ai/embed/percentage-calculator?theme=light"
  width="100%" height="900" loading="lazy"
  allow="clipboard-write"
  referrerpolicy="strict-origin-when-cross-origin"
  style="display:block;width:100%;border:0;background:transparent;"
></iframe>
Connect your website’s light/dark toggle

For a website with its own theme switch, keep the iframe ID from the example and add this JavaScript to your website. Call the function when your site’s theme changes. Set the initial theme in the iframe URL too, so it is correct before the script runs.

const widget = document.getElementById("calxo-calculator");

function syncCalculatorTheme(theme) {
  // Call with "light", "dark", or "auto" when your site theme changes.
  if (!widget?.contentWindow) return;
  widget.contentWindow.postMessage(
    { type: "calxo:theme", theme },
    new URL(widget.src).origin
  );
}

// Replace "dark" with your website's current theme.
widget?.addEventListener("load", () => syncCalculatorTheme("dark"));

Sizing and troubleshooting

  • Inner scrollbar or extra space: width is responsive, but height is fixed. Adjust the height in the builder, or edit the iframe’s height attribute for a longer calculator. Opening details or schedules may require more room.
  • Wrong light/dark appearance: choose an explicit theme for a website that differs from the visitor’s device preference.
  • Widget missing: check that your CMS allows iframes and that your site’s content-security policy permits frames from https://calxo.ai.
  • Duplicate title or disclaimer: the widget already includes its own title and disclaimer. Add surrounding text only when it gives readers useful extra context.

Ordinary calculations run in the browser. Calculators using current rates may request live data. Include third-party widgets in your own privacy notice and check the calculator’s assumptions before publishing.

Publisher packages

Need a ready-made article package?

Use the focused EMI, BMI/TDEE, and unit-conversion packages for screenshots, exact URLs, methodology links, suggested citations, privacy copy, and publisher use cases.

Open packages

Responsive by default

The iframe fills the width of its container and works in narrow mobile layouts. Its height is intentionally configurable because a mortgage calculator and a percentage calculator do not need the same vertical space.

Privacy-conscious loading

Widgets load lazily and calculations run in the browser whenever possible. Publishers should still mention third-party embeds in their own privacy policy and review the widget before publishing.

Subtle attribution

Each widget has a small footer with a full-page link and Calxo credit. The builder can add an optional extra nofollow credit below the iframe. There are no hidden links or keyword-stuffed anchors.

Embedding checklist

  1. 1. Preview the calculator with realistic inputs and choose enough height to avoid nested scrolling.
  2. 2. Paste the complete snippet into an HTML block; do not place it inside another link or interactive element.
  3. 3. Keep the iframe title so screen-reader users know which calculator is embedded.
  4. 4. Explain important assumptions near the widget and link to the full calculator methodology when the result affects financial or health decisions.

Need a calculator that is not in the featured list? Open any supported calculator page and use its embed button, or contact us through the feedback control on that page.