APR.net

Put our tools on your site

A live weekly-rate widget and a full APR calculator, free to drop into any page. Both follow your visitor's color scheme, resize themselves, set no cookies and need no account.

The rate widget

This week's 30- and 15-year averages with a 12-month trend. It updates itself every Thursday, when Freddie Mac publishes — your page never shows a stale rate.

<iframe src="https://apr.net/embed/rates/" title="Mortgage rates this week" width="100%" height="150" style="border:0;max-width:480px" loading="lazy"></iframe>

Live, exactly as it would look on your page:

The APR calculator

Paste this where the calculator should appear. Nothing else to install.

<iframe src="https://apr.net/embed/apr-calculator/" title="APR calculator" width="100%" height="620" style="border:0;max-width:680px" loading="lazy"></iframe>
<script>
window.addEventListener('message', function (e) {
  if (e.origin !== 'https://apr.net' || !e.data || e.data.aprNet !== 'height') return;
  var frame = document.querySelector('iframe[src^="https://apr.net/embed/"]');
  if (frame) frame.style.height = e.data.height + 'px';
});
</script>

Options

Add to the URLWhat it does
?theme=lightForce the light theme
?theme=darkForce the dark theme
(nothing)Follow the visitor's system setting

Live preview

This is the embed itself, running in an iframe exactly as it would on your page.

Terms, briefly

Free to use on any site, commercial or not. No account, no key, no tracking script — the embeds set no cookies and collect nothing about your visitors.

Please keep the attribution link visible. That link is the only thing we ask in return, and it is what pays for keeping the calculator maintained.

The arithmetic is the actuarial method of Appendix J to Regulation Z — the same code that runs on our own calculator, so the numbers your readers see match the numbers we publish. Its limits are stated there too: fixed rates, equal monthly payments, regular first period.

If the height looks wrong

Both embeds report their height to the parent page; the calculator snippet includes a listener for that message. The rate widget rarely needs one — a fixed 150px fits it at most widths, which is why its snippet is a single iframe tag. For the calculator without the script, set about 620px.

Where the rate comes from

The widget shows Freddie Mac’s Primary Mortgage Market Survey averages, fetched weekly — the same figures as our rate history. The number is baked into the page and refreshed every Thursday, so it is never more than a week old and never depends on a third-party script running in your visitors’ browsers.

Questions

Write to corrections@apr.net if something breaks or renders oddly on your site.