30-yr fixed7.28%▲ 0.17 wk 15-yr fixed6.66%▲ 0.21 wk Daily indicator7.14%▼ 0.09 10-yr Treasury4.92%▼ 0.12 Fed funds3.75 to 4.00%next meeting Dec 9 Freddie Mac surveyNov 19
Mortgage Rates Today

HomeWidget

Mortgage rate widget

A free rate card for your own site. It shows the Freddie Mac 30-year and 15-year averages (7.28% and 6.66% in the survey of November 19, 2026), the change from last week and the source, and it fetches the latest published data when your page loads. One script tag, 5.3 KB, no dependencies, no cookies and no tracking.

Live preview

This is the widget itself, running on this page. Without JavaScript the plain link inside the tag stays visible.

Embed code

<div id="mrt-widget"><a href="https://mortgageratestoday.com/">Today's mortgage rates</a></div>
<script async src="https://mortgageratestoday.com/widget.js"></script>

Paste it where the card should appear. The link inside the tag is what visitors and search engines see before the script runs; keep it.

Options

Add an attribute to the tag to change the card. To place more than one card on a page, use class="mrt-widget" on each instead of the id and include the script once.

With the daily indicator

<div class="mrt-widget" data-indicator>...</div>

Dark

<div class="mrt-widget" data-theme="dark">...</div>

Compact, one line

<div class="mrt-widget" data-compact>...</div>
AttributeEffect
data-theme="dark"Navy card with light text, for dark pages
data-indicatorAdds a row with this site's daily indicator, labeled as an estimate, when it is live
data-compactA single line of text for a sidebar or a bar across the page
style="max-width:320px"The card fills its container up to 440 pixels; set a width on the tag or its parent to make it narrower

What it does on your page

  • Loads one script (5.3 KB before compression) and makes one request, for rates.json. Nothing else is fetched: no fonts, no images, no frames.
  • Sets no cookies, stores nothing in the browser and sends nothing about your visitors beyond the request itself.
  • Draws inside a shadow root, so your stylesheet does not change the card and the card does not change your page. Figures use a serif system font and labels a sans-serif system font.
  • Shows the Freddie Mac weekly averages, normally released on Thursdays at 11:00 a.m. Central, with holiday exceptions. The widget fetches once per page load; it does not poll an already-open page. Browsers cache the script for an hour and the data for five minutes.
  • If the request fails, it shows a plain link to this site instead of an empty box.

Terms

The widget is free on any site, commercial or not. The source line and the link to MortgageRatesToday.com are part of the card and are the condition of use: do not hide, restyle or remove them, and do not present the figures as rates you or any lender offer. The numbers are national survey averages from Freddie Mac, not quoted rates. If you would rather draw your own card, the same figures are in the open data under the same attribution terms.

Related