We Are Calculator logoWe Are Calculator
Install guide

How to add a loan or mortgage calculator to your website

Copy the calculator's embed code and paste it into an HTML or code block on your page. On WordPress that's a Custom HTML block, on Squarespace a Code block, on Webflow a Code Embed element and on Shopify a Custom Liquid section. The whole job takes about ten minutes.

  • Browse calculator widgets
  • WordPress, Squarespace, Webflow, Shopify, HTML
  • About ten minutes
  • Resizes to fit phones
  • Free plan, no card

By Robinjit Singh. Updated . Checked against IRS, CFPB, and SSA data, see our sources.

What are the ways to add a calculator?

There are three. Most small businesses should paste an embed code; build your own only if you have a developer who will also maintain it.

Option 1

Paste an embed code

Good: Fastest. No plugin to update, the math is maintained for you, and it works on most website builders.

Watch for: The calculator runs from the provider's server, so you depend on them for uptime and accuracy. Check whose name appears on it.

Option 2

Install a WordPress plugin

Good: Lives inside WordPress and can be styled with your theme.

Watch for: WordPress only. You keep the plugin updated, and most free plugins cover a basic payment only, without taxes, insurance or PMI.

Option 3

Build it yourself

Good: Full control over design, fields and data.

Watch for: You own the formulas, the testing, the accessibility work and every rate or limit change. Budget developer time for that, not just the first build.

How do I add the We Are Calculator embed?

  1. Step 1: Create a free account

    Sign up at wearecalculator.com/app/signup. No card is needed for the Free plan.

  2. Step 2: Pick your calculator and brand it

    Choose the loan or mortgage calculator, then add your logo and brand colors.

  3. Step 3: Add your website address

    Enter your domain in the dashboard. The calculator only loads on the sites you list, so nobody can copy it onto theirs.

  4. Step 4: Copy the embed code

    Open the install panel for that calculator and copy the code. It is one iframe plus a short script that resizes it to fit.

  5. Step 5: Paste it into your page

    Use your platform's HTML or code block, following the steps below, then publish.

  6. Step 6: Check it on a phone

    Open the live page on a phone. The calculator should fit the screen width with no box-inside-a-box scrolling.

The code looks like this. Your dashboard fills in your real ID:

<iframe src="https://wearecalculator.com/embed/complete-loan-calculator?client=YOUR-ID" width="100%" height="760" scrolling="auto" style="border:0;" title="Loan Calculator" class="wac-embed" loading="lazy"></iframe>
<script>
(function(){
  if (window.__wacEmbedListenerAdded) return;
  window.__wacEmbedListenerAdded = true;
  window.addEventListener('message', function(e){
    if (e.origin !== 'https://wearecalculator.com') return;
    var d = e.data || {};
    if (typeof d.wacEvent === 'string') {
      var params = { calculator_id: d.calculatorId, calculator_name: d.calculatorTitle };
      window.dataLayer = window.dataLayer || [];
      window.dataLayer.push(Object.assign({ event: 'wac_' + d.wacEvent }, params));
      if (typeof window.gtag === 'function') window.gtag('event', 'wac_' + d.wacEvent, params);
      return;
    }
    if (typeof d.wacEmbedHeight !== 'number') return;
    var frames = document.querySelectorAll('iframe.wac-embed');
    for (var i = 0; i < frames.length; i++) {
      if (frames[i].contentWindow === e.source) {
        frames[i].style.height = d.wacEmbedHeight + 'px';
        break;
      }
    }
  });
})();
</script>

If your builder strips scripts, use the iframe-only version instead. It starts taller and scrolls inside when it needs to:

<iframe src="https://wearecalculator.com/embed/complete-loan-calculator?client=YOUR-ID" width="100%" height="950" scrolling="auto" style="border:0;" title="Loan Calculator" loading="lazy"></iframe>

What does the embedded calculator look like?

This is the loan calculator as it appears inside a page. On your site it carries your logo and colors, and it shrinks to one column on a phone. You can also try the demo sites.

Where do I paste it on my platform?

These are the same steps shown in the dashboard install panel.

WordPress

  1. Open the page or post in the WordPress editor.
  2. Click + to add a block, search for “Custom HTML”, and add it where the calculator should go.
  3. Paste the code below into the block.
  4. Click Update (or Publish).

Self-hosted WordPress works on any plan. On WordPress.com, custom code needs a plan that allows it.

Squarespace

  1. Edit the page and click an insert point (+) where the calculator should go.
  2. Choose the “Code” block.
  3. Paste the code below. Leave “Display Source” switched off.
  4. Click outside the block, then Save.

Code blocks that run scripts need a Squarespace plan that supports custom code. If the calculator looks cut off, use the “Without resize script” version.

Webflow

  1. Open the page in the Webflow Designer.
  2. From the Add panel, drag a “Code Embed” element where the calculator should go.
  3. Paste the code below and click Save & Close.
  4. Publish your site. Custom code only runs on the published site, not in the Designer.

Shopify

  1. In Shopify admin, go to Online Store → Themes → Customize.
  2. Open the page template where the calculator should appear and click “Add section”.
  3. Choose “Custom Liquid” and paste the code below into it.
  4. Click Save.

Any HTML site

  1. Paste the code below into your page’s HTML exactly where the calculator should appear.
  2. Publish the page.
  3. If your site builder removes <script> tags, use the “Without resize script” version instead.

Wix and GoDaddy Website Builder

Not supported yet. Here's why:

  • Wix and GoDaddy’s website builder put custom code inside their own frame, served from a separate address that isn’t your domain.
  • Our domain protection (which stops other sites copying your calculator) can’t see your real domain from inside that frame, so the calculator won’t load there.
  • Email robin@wearecalculator.com with your site address and we’ll set it up with you.

What should I put next to the calculator?

  • A one-line disclaimer. Something like "Estimates only, not a loan offer. Your rate and payment depend on approval." You can set your own disclaimer text in the dashboard.
  • One clear next step. "Get pre-approved", "Talk to a loan officer" or "Book a call", placed right under the result.
  • Your own rates, if you show any. Keep any rate you print on the page current, and say what date it's from.
  • A link to your privacy policy. On your site, a visitor's details only reach you when they submit the form under the calculator. Our data handling page explains the rest.

Lenders and brokers: your own licensing and disclosure rules still apply to the page around the calculator.

The calculator isn't showing. What should I check?

Almost every install problem is one of these. The message inside the empty box tells you which.

  • “This embed isn’t authorized for this domain”

    The calculator only runs on websites listed on your Domains page, so nobody can copy your embed onto another site. Add the address of the site where you pasted the code. Adding example.com also covers www.example.com and other subdomains.

  • “This account has no authorized domains configured yet”

    You haven’t added a website yet. Add it on the Domains page, then reload your page.

  • “This calculator isn’t enabled for this account”

    Switch the calculator on under Calculators in your dashboard. On the Free plan one calculator can be live at a time.

  • It works on the live site but not in the editor preview

    Some builders show previews from their own address, not your domain, so the domain check fails there. Publish the page and test the live address.

  • The code shows as text, or nothing appears

    The code is in a text block. Move it into an HTML, Embed or Code block. If your builder removes script tags, use the iframe-only code from the dashboard.

  • It is cut off or has its own scroll bar

    The full code includes a short script that resizes the calculator to fit. The iframe-only version can’t resize, so raise its height value until nothing is cut off on a phone.

  • Still blocked on a locked-down site

    The domain check reads the page address your browser sends with the request. If your site sets a Referrer-Policy of no-referrer, the check can’t see it. Use the default policy on the page with the calculator. If you run a Content Security Policy, allow https://wearecalculator.com in frame-src.

  • Changed something and it still looks old

    Clear your site and CDN cache and reload. Branding changes made in the dashboard show the next time the calculator loads.

Still stuck? Email robin@wearecalculator.com with the page address and we'll look.

Person adding code to a website on a laptop at an office desk

Ten minutes, no developer

If you can paste a YouTube video into a page, you can add a calculator. The code comes from your dashboard with your account ID already in it.

Pricing

One flat monthly price with 50 leads included. Need more? Add a lead pack. No setup fees, cancel any time.

Free

$0

Free forever. No card required.

  • 1 active calculator
  • 1 website
  • 10 leads per month
  • Never lose a lead: extra leads are saved and wait for you
  • Your logo and brand colour
  • Lead emails with PDF report
  • Email, webhook, HubSpot + Zapier delivery
Start free

Starter

Most popular

$89 USD/month

Billed monthly. Cancel any time.

  • 5 active calculators
  • 1 website
  • 50 leads included, reset each month on your billing date
  • Need more? Lead packs from $25 USD
  • Never lose a lead: extra leads are saved and wait for you
  • Your logo and brand colour
  • Lead emails with PDF report
  • Email, webhook, HubSpot + Zapier delivery
  • Priority email support
Get started

Enterprise

Custom

Custom limits and invoice billing.

  • Custom calculator and lead limits
  • Multiple websites
  • Custom calculators
  • Invoice billing
  • Dedicated support
Contact us

Lead add-on packs

For Starter. Used only after your 50 included leads run out, and they never expire.

+25 leads

$25 USD

$1.00 USD per lead, one-time

+100 leads

$79 USD

$0.79 USD per lead, one-time

+500 leads

$299 USD

$0.60 USD per lead, one-time

Prices in USD. You're never billed for extra leads automatically; packs are only charged when you buy one. See what counts as a lead.

Install questions

How do I add a loan calculator to my website?

Copy an embed code from a calculator provider and paste it into an HTML or code block on your page. With We Are Calculator you create a free account, choose the calculator, add your domain, copy the code from the install panel and paste it where the calculator should appear.

Can I add a mortgage calculator to WordPress without a plugin?

Yes. Add a Custom HTML block to the page and paste the embed code into it. Self-hosted WordPress works on any plan; on WordPress.com, custom code needs a plan that allows it.

Does it work on Wix?

Not yet. Wix and GoDaddy Website Builder run custom code from their own address instead of your domain, and our domain protection blocks that. Email robin@wearecalculator.com with your site address and we'll help.

Why is the calculator cut off or scrolling inside a box?

Your site builder probably removed the resize script. Use the iframe-only version of the code, which starts taller and scrolls inside if needed, or switch to a block that allows scripts.

Is it free?

The Free plan is $0: 1 calculator on 1 website and up to 10 leads a month. Starter is $89 a month for 5 calculators and 50 leads a month.

Will my visitors see your branding?

Your logo and colors lead the calculator. A small "Powered by We Are Calculator" credit link sits at the bottom on every plan.

Stuck on your platform? Email Robinjit with your site address.

Ready to try it?

Create your account and embed your first calculator within minutes. A free plan is available, no credit card needed.

Get started

See what counts as a lead, our accessibility statement, the data handling details, our Terms, the License Agreement and Privacy Policy.

Already a customer? See Help & FAQ.

Questions before signing up? Reach out via the contact page.