Embed the rent vs buy calculator

Buying a home or renting and investing the difference, from the same money: what each choice leaves you after the years you stay, with the costs of owning, buying and selling. Free to use on any site, with one line of HTML and nothing to sign up for.

Live preview

This is the real widget. Try changing the numbers.

Calculator by smartfin.fyi

Copy this

<iframe src="https://smartfin.fyi/embed/rent-vs-buy.html"
        width="100%" height="3300" style="border:0"
        title="Rent vs buy calculator" loading="lazy"></iframe>
<p style="font-size:12px;margin:6px 0 0">Calculator by <a href="https://smartfin.fyi/rent-vs-buy-calculator.html">smartfin.fyi</a></p>

Notes

Terms: there aren't many. Use it on any site, including commercial ones, at no cost. We may improve the calculator over time, so the embedded version can change. If it ever needs to be retired, this page will say so first.

The full version

The complete rent vs buy calculator on smartfin.fyi adds where the money goes, a chart of both choices, the year-by-year table, the difference at other growth rates and the full method.

Other calculators you can embed

Compare Two Stocks Investment growth calculator Compound interest calculator Mortgage calculator Car loan calculator Student loan calculator Refinance calculator Mortgage payoff calculator Down payment calculator CAGR calculator Rule of 72 calculator Inflation calculator FIRE calculator Withdrawal planner Savings vs investing calculator Simple interest calculator Future value calculator Present value calculator ROI calculator Profit margin calculator