Free mortgage calculator and rate widgets for your website
Put any of our 57 calculators, a live mortgage rate chart or a one-line rate strip on your blog, listing or client page. One line of code, nothing to maintain — the only condition is the small credit link under the widget.
How to add the widget to your site
- Above, pick the widget and its options; the preview changes at once.
- Press Copy the code. For the rate chart the script code is recommended; if your site doesn't allow scripts, take the iframe code.
- Paste the code where the widget should appear and publish the page. With several widgets on one page, the script line is needed only once.
Where to paste it, by platform
- WordPress: in a post or page, add a Custom HTML block with + and paste the code. Some WordPress.com plans don't accept script or iframe code — check that yours allows custom code.
- Blogger: for the sidebar, Layout → Add a Gadget → HTML/JavaScript; inside a post, switch the editor to HTML view.
- Wix: Add → Embed Code → Embed HTML, then paste. Wix wraps code in its own frame, so the iframe code is the smoother choice there.
- Squarespace: add a Code block and paste. Code blocks aren't available on every plan.
- Webflow: drag an Embed element onto the page and paste.
- Your own HTML: put the code where the widget should sit, inside the page's
<body>.
Good to know
- Always current: the rate chart loads this week's Freddie Mac survey (published Thursdays); calculators load their latest version and default rates. You never update anything.
- Fast and private: code loads asynchronously and never blocks your page. The widgets set no cookies and show no ads; we record only the page address a widget runs on and whether its credit link is present.
- Fits your layout: width follows its box (300 px minimum recommended); calculators and the iframe chart resize their height automatically. The script chart draws inside your page and can't be broken by your site's CSS.
- Credit link: the link under the code names the source and must stay visible — it's what keeps the widgets free.
Mortgage rate data for Google Sheets and Excel
Pull our data straight into your own spreadsheet. Paste the formula into an empty cell and the sheet fetches the current data each time it opens; for Excel, use the CSV link.
| Data | Google Sheets formula | CSV |
|---|---|---|
| Mortgage rates, weekly since 1971 (30-yr, 15-yr, 10-yr Treasury) | =IMPORTDATA("https://mortgageloanscalculator.com/data/mortgage-rates-history.csv") | mortgage-rates-history.csv |
| Housing affordability by year (price, rate, payment, income needed) | =IMPORTDATA("https://mortgageloanscalculator.com/data/mortgage-affordability.csv") | mortgage-affordability.csv |
- Google Sheets: open a sheet, paste the formula into an empty cell and press Enter; if Google asks to Allow access, click it.
- Excel: Data → From Web, paste the CSV link, Load; Refresh All updates it.
- The mortgage rate file refreshes weekly (latest week: November 5, 2026); the affordability file yearly. The source lines sit at the bottom of each file — please keep them when you republish the data.
As an image: for forums, e-mail and newsletters
Where code can't run, show this week's rates as an image. It's redrawn every week with the new Freddie Mac figures, and a click leads to today's rates.
<a href="https://mortgageloanscalculator.com/mortgage-rates.html"><img src="https://mortgageloanscalculator.com/img/widgets/mortgage-rates-this-week-light.png" width="440" height="150" alt="Mortgage rates this week: 30-year fixed and 15-year fixed, Freddie Mac — MortgageLoansCalculator.com"></a> [url=https://mortgageloanscalculator.com/mortgage-rates.html][img]https://mortgageloanscalculator.com/img/widgets/mortgage-rates-this-week-light.png[/img][/url]
<a href="https://mortgageloanscalculator.com/mortgage-rates.html"><img src="https://mortgageloanscalculator.com/img/widgets/mortgage-rates-this-week-dark.png" width="440" height="150" alt="Mortgage rates this week: 30-year fixed and 15-year fixed, Freddie Mac — MortgageLoansCalculator.com"></a> [url=https://mortgageloanscalculator.com/mortgage-rates.html][img]https://mortgageloanscalculator.com/img/widgets/mortgage-rates-this-week-dark.png[/img][/url] Payment & Amortization
- Mortgage Calculator Embed
- Amortization Calculator Embed
- Mortgage Calculator with Taxes & Insurance Embed
- Mortgage Calculator with PMI Embed
- APR Mortgage Calculator Embed
- Interest-Only Mortgage Calculator Embed
- Biweekly Mortgage Calculator Embed
- Biweekly Calculator for an Existing Mortgage Embed
- 30-Year Mortgage Calculator Embed
- 20-Year Mortgage Calculator Embed
- 40-Year Mortgage Calculator Embed
- 15-Year Mortgage Calculator Embed
- 10-Year Mortgage Calculator Embed
Affordability & Qualifying
Refinance & Payoff
Loan Types & Programs
- FHA Loan Calculator Embed
- Reverse Mortgage Calculator Embed
- Balloon Mortgage Calculator Embed
- Combination (Piggyback) Mortgage Calculator Embed
- 15 vs. 30 Year Mortgage Embed
- 20 vs. 30 Year Mortgage Embed
- VA Loan Calculator Embed
- USDA Loan Calculator Embed
- Jumbo Mortgage Calculator Embed
- Second Mortgage Calculator Embed
- Commercial Mortgage Calculator Embed
- Construction Loan Calculator Embed
Adjustable-Rate (ARM)
- Adjustable-Rate Mortgage (ARM) Calculator Embed
- ARM vs. Fixed-Rate Mortgage Embed
- ARM & Interest-Only ARM vs. Fixed Embed
- Interest-Only ARM Calculator Embed
- Option ARM Calculator Embed
- Fixed-Rate vs. Interest-Only Mortgage Embed
- Fixed-Rate vs. SOFR ARM Embed
- APR Calculator for ARMs Embed
- 5/1 ARM Calculator Embed
- 3/1 ARM Calculator Embed
- 7/1 ARM Calculator Embed
- 10/1 ARM Calculator Embed
Home Equity & HELOC
Closing Costs
Why embed a mortgage calculator?
A static article tells your readers what to do; an interactive calculator lets them do it on the spot. When someone can plug in their own price, rate and down payment without leaving your page, they stay longer and are far more likely to act on your advice — for real-estate, lending, insurance and personal-finance content, that hands-on moment is often what turns a visitor into a lead.
Building an accurate mortgage calculator is real work: the amortization math has to be right, taxes, insurance and PMI all factor in, and it has to work on every screen. Ours are tested on every build (see the methodology). They work especially well in blog posts and guides, on resource pages, and on listing and landing pages where buyers model their own payment.
Terms of use
- The widgets are free for any site. The credit line and its link to MortgageLoansCalculator.com must stay visible: don't remove, hide or shrink them, and don't present the widget as your own tool or data.
- Figures are estimates and national survey averages for information only — not a rate quote, an offer or financial advice. Don't present them as your own rate sheet.
- We may change a widget's data, look or features without notice, and may switch a widget off on a site that doesn't follow these terms.
- Widgets set no cookies; we record only the page address where a widget runs and whether its credit link is present.
- Need a white-label version or your own rates in the widget? Write to us.
Embed FAQ
Is it really free?
Yes — no cost, no signup. Keep the visible credit link and it stays that way.
Script or iframe?
Script is the shortest code: for a calculator you paste one <div>, the credit line and the script, and our script builds the calculator frame and keeps its height right. The rate chart and the rate strip go further and draw directly in your page, following your column width, with a dark theme. Use the iframe code if your site or page builder strips scripts (Wix, some WordPress.com plans).
Why does the credit link text vary?
We rotate the wording so the link reads naturally across the many sites that use our widgets. You can pin it to your brand or a keyword above, but Auto is recommended.