How to use the Rent vs Buy Calculator
- Enter the home price, down payment, mortgage rate and how long you'll stay.
- Adjust property tax, insurance and HOA, maintenance and expected price growth.
- Enter the rent for a similar home and how fast rents rise.
- Read which option comes out ahead, and by how much.
How it works
Buying looks cheaper when you only compare the mortgage payment with rent, but owning has other costs: property tax, insurance, maintenance (often about 1% of the home's value a year), closing costs to buy (around 3%) and to sell (around 6%). Against that, you build equity and the home may rise in value. The calculator adds up everything you'd spend owning, subtracts what you'd walk away with after selling, and adds the investment return your down payment and closing costs would have earned if you'd rented instead.
The biggest factor is time. Buying and selling costs are large, so buying usually needs several years to beat renting. Higher rents, faster home price growth and lower mortgage rates all tip the balance toward buying.
Formula
Net cost of buying = down payment + closing costs + mortgage payments + tax, insurance and upkeep − (sale price − 6% selling costs − remaining loan) + investment return lost on the down payment and closing costs Cost of renting = total rent paid
Example
A $400,000 home with 20% down at 6.5%, versus renting a similar home for $2,200 a month, over 7 years with 3% yearly growth in prices and rents: buying costs about $207,000 net and renting about $202,000, so renting comes out roughly $5,000 ahead. Stay longer, or find a higher rent, and buying wins.
Break-even: net cost of buying vs renting ($400,000 home, $2,200 rent)
| Years you stay | Net cost of buying | Total rent | Cheaper option |
|---|---|---|---|
| 3 | $110,000 | $82,000 | Renting |
| 5 | $159,000 | $140,000 | Renting |
| 7 | $207,000 | $202,000 | Renting |
| 10 | $279,000 | $303,000 | Buying |
| 15 | $394,000 | $491,000 | Buying |
| 20 | $502,000 | $709,000 | Buying |
Assumes 20% down, a 6.5% 30-year mortgage, 1.1% property tax, $2,400 a year insurance and HOA, 1% maintenance, 3% yearly growth in prices and rents, and a 5% return on money not used for the down payment.
Frequently asked questions
Is it better to rent or buy a house?
It depends mostly on how long you'll stay and how rents compare with prices where you live. Buying usually needs five years or more to beat renting, because of closing and selling costs.
What is the price-to-rent ratio?
Home price divided by a year's rent. Below about 15 tends to favour buying; above about 20 tends to favour renting. A $400,000 home renting for $2,200 a month has a ratio of about 15.
Does the calculator include tax deductions?
No. Since 2018 the higher standard deduction means most US homeowners don't itemize, so mortgage interest and property tax deductions often don't change the result.
Why does it count lost investment returns?
Money put into a down payment can't be invested elsewhere. Counting what it might have earned makes the comparison with renting fair.
Last reviewed December 3, 2026. Spotted an error? Tell us.
Add this calculator to your website
Free for blogs, schools and businesses. Copy the code and paste it into your page (in WordPress, use a Custom HTML block). Please keep the credit link.