Rent vs. buy calculator
Rent or buy: which leaves you wealthier?
The real question isn't renting vs. a mortgage payment — it's buying vs. renting and investing the difference. This compares your wealth either way at the year you'd move on, and tells you which wins and when it flips.
By SterlingCat · Last updated · Method verified against reference cases (how we calculate)
The key points
- Buying wins sooner the longer you stay, the faster homes appreciate, and the more rent rises.
- Renting wins when your down payment could earn more invested, or you'll move within a few years and pay transaction costs twice.
- Below, the verdict is conditional: change any assumption and watch the answer — and the year it flips — change with it.
How we calculate this
We run your numbers month by month over your horizon and compare whole-balance-sheet wealth: the buyer's home equity (net of selling costs) plus any investments, against the renter's investment balance. Both start from the same money and the same monthly housing budget — whoever spends less each month invests the difference, so the comparison is fair.
The mortgage payment
Monthly principal & interest use the standard amortization formula:
- M
- monthly payment
- P
- loan amount (price − down payment)
- r
- monthly rate (annual ÷ 12)
- n
- number of payments (years × 12)
In your numbers: a — loan at — over — years works out to — a month. Payments stop the month the loan is paid off — they never accrue past the term.
What's included, and what isn't
Included: amortization, property tax (with an optional assessment cap), insurance, HOA, maintenance, PMI on a down payment under 20% (charged until the loan balance falls to 80% of the purchase price), closing and selling costs, home appreciation, rent growth, and the opportunity cost of invested capital. US mortgage-interest and property-tax itemizing is modeled when you supply your marginal rate and standard deduction, with the property-tax deduction capped at the SALT limit.
Declared omissions (so the tool's claims stay honest): adjustable rates and refinancing, the $750k mortgage-interest limit, the SALT cap's high-income phasedown and its scheduled 2030 drop back to $10,000 (the current cap is held for every year), the primary-residence capital-gains exclusion and investment-side taxes, AMT, and lumpy maintenance. Three rules of the 2025 tax law that apply from tax year 2026 are also left out: mortgage insurance premiums treated as deductible interest, the reduction of itemized deductions for income in the 37% bracket, and state income or sales tax, which shares the SALT cap with property tax (the calculator applies the whole cap to property tax). Expected appreciation and investment returns are your assumptions, not our forecasts — which is why the recommendation is conditional and shows what would flip it.
Terms, in plain words
- Opportunity cost
- What your down payment and monthly savings could have earned if you'd invested them instead of putting them into a house.
- Equity
- The part of the home you actually own — its value minus what you still owe and minus the cost of selling.
- PMI
- Private mortgage insurance: insurance you might be required to buy on a conventional loan with a down payment under 20%. You can ask the servicer to cancel it on the date the balance is scheduled to fall to 80% of the home's original value, and the servicer must end it at 78% (CFPB). This calculator charges it until the balance falls to 80% of the purchase price.
- SALT cap
- The yearly limit on deducting state and local taxes (including property tax) on your US federal return — $40,400 for 2026 (the 2025 tax law raised it from the earlier $10,000 cap).
- Amortization
- How a fixed mortgage payment splits between interest and principal over time — mostly interest early on, mostly principal near the end.
A sensible next step
Whatever the verdict, test it against how long you will stay: enter a low and a high number of years and see whether the answer holds.
Common questions
Why does renting "win" even when I'd build equity?
Because the fair comparison isn't equity vs. nothing — it's equity vs. investing the down payment, the closing costs, and any monthly savings. When markets do well or you move soon, that invested money can beat the equity, net of the costs of buying and selling.
Do you store what I enter?
We never receive it. Everything is computed in your browser, and nothing you type is sent to us. If you turn on "Remember in this browser", your figures are saved in this browser only, and you can export or clear them. There are no accounts.
Is this financial advice?
No. It's a model based on the numbers you enter — a scenario projection based on stated assumptions, not a forecast or guarantee, and not financial, legal, or tax advice.
Sources
Grounded in authoritative primary sources:
- Rev. Proc. 2025-32(Internal Revenue Service)
- Public Law 119-21(United States Congress)
- Tax stats at a glance(Internal Revenue Service)
- What is private mortgage insurance?(Consumer Financial Protection Bureau)
- Breaking down PMI(Freddie Mac)
- When can I remove private mortgage insurance (PMI) from my loan?(Consumer Financial Protection Bureau)
- 26 U.S.C. § 164: Taxes(Office of the Law Revision Counsel, U.S. House of Representatives)
More SterlingCat calculators
- Buying a homeMortgage amortization
- Buying a homePrepay vs. invest
- Buying a homeHow much house can I afford
- Paying off debtCredit card payoff
- Paying off debtDebt payoff planner
- Paying off debtLoan payment
- Saving & investingWhat to fund first
- Saving & investingCompound interest
- Saving & investingTargeted savings
- Saving & investingRetirement readiness
- Saving & investingReturn on investment
- Everyday money toolsCurrency converter
- Everyday money toolsInvoice generator