1 Overview
You received a collection of 600 ready-to-use calculators across 6 categories (Business, Construction, Electrical, Financial, Health, Math). Each one lives in its own .html file inside the matching category folder.
Because every calculator ships as a complete, standalone web page, there is nothing to install — you simply place the file (or its code) where you want it to appear. The same calculator works identically on a hand-coded HTML site and on every major CMS.
2 How the widgets work
Understanding three small things makes everything below obvious:
- Self-contained. All CSS and JavaScript are written inline in each file. There are no external libraries, fonts, or build steps to load.
- Scoped & conflict-free. Every calculator uses a unique CSS prefix (e.g.
.roic,.bmr) and wraps its JavaScript in a private function. That means you can place several different calculators on the same page and they will never clash with each other or with your theme. - Responsive by default. Each widget fluidly fills the width of its container and reflows for phones, tablets and desktops.
3 Quick start (60 seconds)
- Pick a calculator. Open the calculator index, choose a tool, and note its file — for example
Business Calculators/roi-calculator.html. - Upload the file to your website (via your host's file manager, FTP, or your CMS media/files area).
- Embed it on any page with a one-line iframe, or paste its code inline. Both methods are explained below.
- Publish. That's it — the calculator is live and fully interactive.
4 Two ways to embed
There are exactly two approaches. Here is how they compare:
| Method A — iframe | Method B — inline code | |
|---|---|---|
| Setup effort | Easiest (1 line) | Easy (paste code) |
| Style isolation | Total — sandboxed | Scoped (very safe) |
| Auto-height | Needs a height value | Automatic |
| Best for | Quick, safe embeds | Seamless, native feel |
5 Method A — embed with an iframe
Upload the calculator's .html file to your site, then drop an iframe wherever you want it to appear. Point src at the uploaded file's URL:
<iframe
src="/calculators/business-calculators/roi-calculator.html"
title="ROI Calculator"
loading="lazy"
style="width:100%; max-width:1100px; height:1100px; border:0; display:block; margin:0 auto;">
</iframe>
Adjust the height value to suit the calculator (taller tools need more). The width is already responsive at 100%.
Optional: make the iframe auto-fit its height
If the calculator file is hosted on the same domain as your page, this snippet resizes the iframe to its content automatically — no guessing the height and no inner scrollbar:
<iframe
id="adCalc"
src="/calculators/business-calculators/roi-calculator.html"
title="ROI Calculator"
style="width:100%; border:0; display:block;"
onload="this.style.height=this.contentWindow.document.body.scrollHeight+20+'px';">
</iframe>
height as in the first example.6 Method B — paste the code inline
This drops the calculator straight into your page so it flows like native content (auto height, no scrollbars). Open the calculator's .html file in a text editor and copy three parts into your page's HTML:
- Everything inside
<style>...</style>(the appearance). - The widget markup — the single
<div class="prefix" id="prefixRoot">...</div>block (the calculator itself). - Everything inside
<script>...</script>(the logic).
You can skip the outer <!DOCTYPE>, <html>, <head> and <body> wrappers — your page already has those. The result looks like this:
<!-- 1) Paste the styles -->
<style>
/* ...the .prefix { ... } CSS from the file... */
</style>
<!-- 2) Paste the calculator markup -->
<div class="roic" id="roicRoot">
<!-- ...the widget's HTML... -->
</div>
<!-- 3) Paste the script -->
<script>
/* ...the (function(){ ... })(); logic from the file... */
</script>
7 Custom-coded / static website
For a hand-built HTML site (or static-site generators like Hugo, Jekyll, Eleventy, Astro):
- Whole page: just upload the calculator's
.htmlfile and link to it — it already works as a standalone page. - Inside an existing page: use either Method A (iframe) or Method B (inline). Inline gives the most seamless result.
A minimal page that hosts one calculator via iframe:
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mortgage Calculator</title>
</head>
<body>
<h1>Free Mortgage Calculator</h1>
<iframe src="calculators/financial-calculators/biweekly-mortgage-calculator.html"
style="width:100%;height:1200px;border:0;" title="Mortgage Calculator"></iframe>
</body>
</html>
8 WordPress (Block Editor)
- Upload the calculator file: Media → Add New won't accept
.html, so use Plugins like "Filester / WP File Manager", or upload via your host's File Manager / FTP into a folder such as/wp-content/uploads/calculators/. - Edit the page or post where you want the calculator.
- Click + to add a block and choose the "Custom HTML" block.
- Paste an iframe snippet (pointing at your uploaded file) or the full inline code.
- Click Update / Publish. Preview the page to confirm.
9 WordPress + Elementor
- Edit your page with Elementor.
- From the widget panel, search for the "HTML" widget and drag it onto the canvas.
- Paste the calculator's inline code (or an iframe) into the HTML Code box.
- Click Update. The calculator appears live inside your section.
10 Wix
- In the Wix Editor, click Add (+) → Embed Code → Embed HTML (the "HTML iframe / Custom Embed" element).
- Click Enter Code and choose "Code".
- Paste the calculator's inline code, or an iframe pointing at the file (upload it first under Site Files if needed).
- Drag the element's handles to size it, then Publish.
11 Squarespace
- Edit the page and add a section, then click an insertion point and choose the "Code" block.
- Set the block's mode to HTML (turn off the "Display Source" toggle).
- Paste the inline code or an iframe embed.
- Click Apply, then Save.
.html via a Link/File field or an external host and reference its URL in the iframe.12 Shopify
- On a page: Go to Online Store → Pages, edit a page, click the <> (Show HTML) icon in the rich-text toolbar, and paste an iframe or the inline code.
- In a theme section: In Online Store → Themes → Edit code, add a Custom Liquid section/block (or a custom snippet) and paste the calculator code there.
- Upload the
.htmlfile under Settings → Files if you want to use an iframesrc, then copy the file's URL. - Save and preview the storefront.
13 Webflow
- Drag an "Embed" element (Add panel → Components → Embed) onto your page.
- Paste the calculator's inline code or an iframe into the code editor.
- Click Save & Close, then Publish.
.html in Webflow Assets or externally) instead.14 Joomla & Drupal
Joomla
- Create or edit an Article (or a "Custom HTML" module).
- In the editor, switch to Code / Toggle Editor view (disable the WYSIWYG so it won't strip the script).
- Paste an iframe or the inline code and save.
Drupal
- Add or edit a Block / Basic page.
- Set the Text format to "Full HTML" (so scripts aren't filtered out).
- Use the Source <> view and paste the embed code, then save.
<script> tags for security. If the calculator looks styled but does nothing, switch the text format to one that allows scripts (Full HTML) or use the iframe method.15 Google Sites & other platforms
- Google Sites: Insert → Embed → Embed code, then paste an iframe (host the file on Google Drive/another host) or the inline code.
- Notion, Ghost, HubSpot, Weebly, GoDaddy, Duda: all provide an "Embed", "Custom HTML", or "Code" block — use the same iframe or inline snippet.
- General rule: if a platform has any way to insert raw HTML, these calculators will work there.
16 Responsive sizing & height
- Width is always fluid — the widget fills its container up to a comfortable max width and centers itself.
- Inline embeds (Method B) size their height automatically; nothing to configure.
- iframe embeds (Method A) need a height. Either set a generous fixed
height, or use the auto-height snippet for same-origin files. - To constrain how wide a calculator gets on large screens, wrap it (or the iframe) and set
max-width:
<div style="max-width:760px; margin:0 auto;">
<!-- iframe or inline calculator here -->
</div>
17 Customize colors & branding
Each calculator defines its palette once, as CSS variables at the top of its style block. Change a few values to match your brand — every button, accent and highlight updates automatically.
/* Find this near the top of the calculator's <style> */
.roic{
--ac:#1abfb4; /* primary accent */
--ac2:#0d9e94; /* accent gradient */
--hero:#0c2d2c; /* dark header bg */
--bg:#f2f9f8; /* page background */
/* ...change these to your brand colors... */
}
18 Troubleshooting & FAQ
The calculator shows but the buttons do nothing
Your editor likely stripped the <script>. Use a true "Custom HTML / Code / Embed" block (not the visual editor), set the text format to one that allows scripts (e.g. Drupal "Full HTML"), or switch to the iframe method.
It looks unstyled or plain
The <style> block didn't come along. With Method B, make sure you pasted all three parts (styles + markup + script). With an iframe, confirm the src URL points to the real file.
The iframe is cut off / has a scrollbar
Increase the iframe's height, or use the auto-height snippet (same-origin only). Inline embeds avoid this entirely.
Can I put several calculators on one page?
Yes. Each one is scoped and isolated, so any number of them coexist without conflicts.
Do I need an internet connection or any account?
No. The files are fully self-contained — no external services, CDNs, or API keys. They even work offline.
Will they slow down my site?
No. Each calculator is a small, dependency-free file. Add loading="lazy" to iframes so they load only when scrolled into view.
Ready to add one?
Browse the full library and pick your first calculator.
📂 Open the calculator index