Embed Calculy Calculators

Add any of our 4,000+ free calculators to your website or blog in minutes — no sign-up, no cost, no attribution required.

How it works

Every calculator page on Calculy renders in embed mode when opened with ?embed=1. In embed mode the site header, footer, page title, info section, and FAQ are hidden so only the interactive calculator remains.

  • Direct iframe — the simplest option. Paste an <iframe> tag and you are done. The iframe keeps a fixed height.
  • Loader div + embed.js — recommended. The loader builds the iframe for you and auto-resizes its height to fit the calculator content, so nothing gets cut off on any screen.

Embedded calculators show a small fixed Calculy corner badge that links back to the full calculator page. That is all the attribution we ask for — embeds are free for any site.

Quick start

One line. Paste this anywhere custom HTML is allowed:

<iframe src="https://calculy.in/finance/fd-calculator?embed=1" width="100%" style="border:0"></iframe>

URL parameters

All embed options are passed as query parameters on the calculator URL. The loader div passes them through data-params automatically.

Parameter Applies to Default Description
embed=1 All embeds Off Required. Switches the page to embed mode: hides the header, footer, title, info section, and FAQ, and shows a small fixed "Calculy" corner badge linking back to the full calculator.
{calculator params} All embeds The calculator's own input field names as query params, e.g. principal=100000&rate=7&tenure=5. The calculator auto-fills these inputs and auto-computes on load.
showShare=true All embeds Hidden Shows the share button inside the embed. By default the share button is hidden in embed mode.
showResult=true All embeds Off Result-only mode: hides the entire form and shows only the result section. Requires all input params to be provided in the URL — otherwise a critical error is shown.
data-max-height Loader only Optional max iframe height in px, e.g. data-max-height="600". The iframe is capped at that height and the embedded page scrolls internally instead of growing.

Finding the right URL and parameter names

  1. Open any calculator on Calculy, for example the FD calculator.
  2. Tweak the inputs to your liking.
  3. Watch the URL bar — it updates automatically with the current values as query params.
  4. Copy that URL and reuse it in your embed. The field id of each input is its param name.

For example, the FD calculator uses principal, rate, tenure, and freq; the SIP calculator uses monthlyAmount, expectedReturn, and tenure. Since every calculator is different, always check the calculator's own page inputs — or use the calculator once and copy the resulting URL.

Pre-filled parameters are computed automatically on load, so your visitors see results instantly without touching the form.

Examples

1. Basic iframe embed (simplest)

Pre-fills the FD calculator with principal, rate, and tenure. No auto-resize.

<iframe src="https://calculy.in/finance/fd-calculator?embed=1&principal=100000&rate=7&tenure=5" width="100%" style="border:0"></iframe>

2. Loader div embed (recommended, auto-resize)

The loader replaces the .calculy-embed div with an iframe and auto-resizes its height to the content.

<div class="calculy-embed"
     data-category="finance"
     data-calculator="sip-calculator"
     data-params="monthlyAmount=10000&expectedReturn=12&tenure=10"></div>
<script src="https://calculy.in/embed.js" async></script>

3. Loader with share button

Pass showShare=true to show the share button inside the embed.

<div class="calculy-embed"
     data-category="finance"
     data-calculator="fd-calculator"
     data-params="principal=100000&rate=7&tenure=5&showShare=true"></div>
<script src="https://calculy.in/embed.js" async></script>

4. Result-only mode (all params provided)

Hides the form and shows only the result section. Requires all input params in the URL.

<div class="calculy-embed"
     data-category="finance"
     data-calculator="fd-calculator"
     data-params="principal=100000&rate=7&tenure=5&showResult=true"></div>
<script src="https://calculy.in/embed.js" async></script>

Equivalent direct iframe:

<iframe src="https://calculy.in/finance/fd-calculator?embed=1&principal=100000&rate=7&tenure=5&showResult=true" width="100%" style="border:0"></iframe>

5. Result-only mode with missing params (shows an error)

If showResult=true is set but required params are missing or incomplete, the embed shows a critical error: "Could not calculate result. Please provide all required parameters."

<div class="calculy-embed"
     data-category="finance"
     data-calculator="fd-calculator"
     data-params="principal=100000&showResult=true"></div>
<script src="https://calculy.in/embed.js" async></script>

6. Loader with max height (internal scroll)

Cap the iframe at a fixed height. Instead of growing, the embedded page scrolls internally.

<div class="calculy-embed"
     data-category="finance"
     data-calculator="fd-calculator"
     data-params="principal=100000&rate=7&tenure=5"
     data-max-height="600"></div>
<script src="https://calculy.in/embed.js" async></script>

7. Dynamic embeds (SPA / injected content)

The loader is idempotent — it marks every processed element and never double-embeds. If you inject a .calculy-embed element into the DOM after the page has loaded, call window.CalculyEmbed.init() to re-scan for new embeds. It is safe to call multiple times.

<div id="calculator-slot"></div>
<script src="https://calculy.in/embed.js" async></script>
<script>
  var slot = document.getElementById('calculator-slot');
  var embed = document.createElement('div');
  embed.className = 'calculy-embed';
  embed.setAttribute('data-category', 'finance');
  embed.setAttribute('data-calculator', 'emi-calculator');
  embed.setAttribute('data-params', 'principal=2000000&rate=8.5&tenure=20');
  slot.appendChild(embed);
  if (window.CalculyEmbed) window.CalculyEmbed.init();
</script>

8. Multiple embeds on one page

Add as many loader divs as you like — a single embed.js script powers them all.

<div class="calculy-embed"
     data-category="finance"
     data-calculator="fd-calculator"
     data-params="principal=100000&rate=7&tenure=5"></div>

<div class="calculy-embed"
     data-category="finance"
     data-calculator="sip-calculator"
     data-params="monthlyAmount=10000&expectedReturn=12&tenure=10"></div>

<script src="https://calculy.in/embed.js" async></script>

Frequently asked questions

Is embedding free?

Yes. Embeds are free for any website, with no account or sign-up required. A small "Calculy" corner badge links back to the full calculator page — that is all the attribution we need.

Which option should I use: iframe or the loader?

The direct iframe is the simplest option and works everywhere iframes are allowed. The loader div plus embed.js is recommended because it auto-resizes the iframe to fit the calculator, so content never gets cut off.

Can I pre-fill the calculator with values?

Yes. Pass the calculator's own input field names as query params, e.g. principal=100000&rate=7&tenure=5. The calculator auto-fills these inputs and computes the result on load.

Can I show only the result without the inputs?

Yes — add showResult=true and provide all required input params in the URL. If any param is missing, the embed shows a critical error telling you the required parameters are missing.

Why does my direct iframe get cut off?

Direct iframes have a fixed height. Use the loader div for auto-resizing, or add data-max-height to cap the height and let the calculator scroll internally.