For bloggers, teachers & journalists
Embed the inflation calculator on your site
Drop a live, self-contained inflation calculator into any page with one <iframe>.
It runs on the same official BLS CPI-U data as the rest of this
site, needs no API key or signup, and adds no tracking of its own.
Live preview
Copy-paste embed code
Default size (480 × 560, scales down on narrow screens):
<iframe
src="https://inflationcalculator.com/embed/calculator/"
width="480"
height="560"
style="border: 0; max-width: 100%;"
loading="lazy"
title="Inflation Calculator">
</iframe> Responsive wrapper
Fills its container up to 480px wide; use this inside a sidebar or article column:
<div style="max-width: 480px; width: 100%;">
<iframe
src="https://inflationcalculator.com/embed/calculator/"
width="100%"
height="560"
style="border: 0; width: 100%;"
loading="lazy"
title="Inflation Calculator">
</iframe>
</div> Preset a starting amount and years
Add amount, from, and to query parameters to the
widget URL to change what it opens with, for example a $100 bill from 1990 to 2025:
<iframe
src="https://inflationcalculator.com/embed/calculator/?amount=100&from=1990&to=2025"
width="480"
height="560"
style="border: 0; max-width: 100%;"
loading="lazy"
title="Inflation Calculator">
</iframe> If your embed sits somewhere narrower than about 360px, add extra height (around 680px): the inputs stack into a single column below that width.
Usage & licensing
The widget is free to embed on any site, personal or commercial, as long as the "Data via InflationCalculator.com" attribution link inside it stays visible and linked. Don't strip the attribution, and don't proxy or re-host the widget's contents as your own calculator. Beyond that, use it however it's useful: blog posts, lesson plans, news articles, internal tools.
The widget itself makes no network requests beyond loading its own page, no analytics, and no third-party scripts. It reads the same CPI dataset as the rest of the site and updates whenever that data does.