Home Academic Skills Childhood Education Freelancing & Remote Jobs Physical Education Free Tools →
Sunday, December 6, 2026
Mortgage and housing tools

Rent vs Buy Calculator

Decide whether renting or buying leaves you wealthier. Enter the home price, the rent for a similar home, and how long you plan to stay. The calculator compares the full cost of each path, month by month, including the mortgage, property tax, insurance, maintenance, closing and selling costs, rent increases, and the return on the cash you would invest instead.

The home you would buy

Start with the price and the loan. Every rate is editable.

$

20% or more avoids PMI on a conventional loan.

$
$

A common planning figure is 1% a year. Older homes often cost more.

Charged only while your down payment is under 20%. Removed automatically at 80% loan-to-value.

Closing costs often run 2% to 6% of the loan amount.

Agent commission and closing costs often run 6% to 10% of the sale price.


Renting instead

Enter a comparable rent and what your savings could earn.

$
$

What the down payment and monthly savings would earn if invested.

How long you stay is the single biggest factor in the answer.

Is it cheaper to rent or buy?

It depends on how long you stay and the rent for a similar home. With a $400,000 home, 20% down, a 6.5% mortgage, and rent of $2,200 a month, renting costs about $16,730 less over 7 years, and buying only pulls ahead in year 11. Stay 15 years and buying saves about $41,986. The rent level matters just as much as the price: at $2,600 rent, buying wins in year 5. Use the calculator above with your own numbers, because a small change in rent, rate, or stay length can flip the answer.

How to use this rent vs buy calculator

  1. Enter the home price and down payment. Use the price of a home you would actually buy and the cash you have saved. A down payment of 20% or more avoids PMI.
  2. Add the loan and ownership costs. Enter the mortgage rate and term, property tax, insurance, HOA dues, maintenance, and closing and selling costs. Every figure is editable, so use local numbers where you know them.
  3. Enter a comparable rent. Compare with a rental of similar size and location, not the cheapest room you can find. Add how fast rents rise in your area each year.
  4. Set your stay length and investment return. The stay length is the single biggest factor. The investment return is what the renter earns on the down payment and on any monthly savings.
  5. Read your result. The result shows which path costs less over your stay, the break-even year, and the equity you would hold if you sell. Compare the monthly cost of buying with your take-home pay, which you can check with the gross to net pay calculator.

How the rent vs buy comparison is calculated

Comparing rent with a mortgage payment alone is not a fair test. Part of the mortgage payment builds equity, the home may gain value, and the renter keeps the down payment invested. This calculator simulates both paths month by month for up to 30 years, then compares the net cost of each side. That is the only way to see when buying starts to pay off.

Monthly mortgage payment = Loan x r(1 + r)^n / ((1 + r)^n - 1), where r is the monthly rate and n is the number of payments

A fixed-rate mortgage loan is repaid with equal monthly payments. Early payments are mostly interest, and later payments are mostly principal. The calculator works out the loan balance month by month, so the equity you build is exact, not an average.

Net cost of buying = Down payment + Closing costs + All monthly ownership costs - Cash back when you sell

Monthly ownership costs are the mortgage payment plus property tax, homeowners insurance, HOA dues, maintenance, and PMI while it applies. Cash back at sale is the home value after appreciation, less selling costs, less the loan balance still owed. Everything you pay that comes back to you as equity is not a cost, so the formula subtracts it.

Net cost of renting = Total rent paid - Investment gains on the cash you did not spend buying

The renter starts with the same cash the buyer spent on the down payment and closing costs, invested at the return you enter. Each month, any amount by which owning costs more than renting is also invested. The gains reduce the net cost of renting, because that money is still yours at the end. If owning costs less than rent in a month, the renter draws the difference from the investment instead.

Break-even year = First year the net cost of buying falls below the net cost of renting

Buying starts far behind because of the down payment and closing costs. It catches up slowly as you pay down the loan and the home gains value, while rent keeps rising. The break-even year is the first year the buyer is ahead. If buying never catches up within 30 years, the calculator says so plainly.

How PMI is handled

PMI is charged only when the down payment is under 20%. The calculator charges the rate you enter on the original loan amount each month, and it removes PMI automatically when the loan balance falls to 80% of the home value, counting both the principal you repaid and the home value growth. With 10% down on a $400,000 home at 6.5% and 3% home value growth, PMI drops off after about 2 years and 10 months.

What grows over time

Property tax, homeowners insurance, and maintenance grow with the home value. Rent grows at the rent increase rate you enter. The mortgage payment never changes on a fixed-rate loan, which is one reason buying gets relatively cheaper the longer you stay.

The costs of buying, explained

Before you compare, check the price range that fits your income with the home affordability calculator. Then work through each cost below. Most people remember the mortgage payment and forget the rest, and the rest is what decides the answer.

Down payment

The down payment is cash you hand over on day one. It is not a lost cost, because it becomes part of your equity, but it is cash you cannot invest elsewhere, which is why the renter side of this calculator invests the same amount. A larger down payment means a smaller loan, a smaller monthly payment, and no PMI. If you are not sure what loan size a lender would approve, start with the mortgage pre-qualification calculator and use its price range here.

Closing costs when you buy

Closing costs cover the lender fee, appraisal, title insurance, and recording fees, and they often run 2% to 6% of the loan amount. Unlike the down payment, closing costs do not become equity. They are gone the day you sign. On a $400,000 home with 3% closing costs, that is $12,000 you never get back, which is why short stays punish buyers so hard.

Private mortgage insurance (PMI)

On a conventional loan, lenders usually require PMI when the down payment is under 20%. The Urban Institute Housing Finance Policy Center puts the typical cost at 0.46% to 1.50% of the loan amount per year, depending mostly on credit score and loan-to-value. The calculator default is 0.85%. PMI is not tax deductible for most borrowers and it builds no equity, so it is pure cost. You can ask the lender to cancel it once the loan balance reaches 80% of the original home value, and federal rules make the lender end it automatically at 78% of the original value when you are current on payments.

Property tax and homeowners insurance

Property tax is set by your local government and varies a lot by place, from well under 1% of the home value a year in some states to over 2% in others. Homeowners insurance covers the structure against fire, storms, and other damage, and lenders require it. Both costs rise with the home value, so the calculator grows them each year with appreciation.

Maintenance and HOA dues

Owners pay for every repair, from a leaking roof to a broken furnace. A common planning figure is 1% of the home value a year, which is $4,000 a year on a $400,000 home. Older homes often cost more, and a new home often costs less for the first few years. HOA dues are a separate monthly charge in many condos and planned communities, and they can rise over time. Renters pay neither, because repairs and building upkeep are the landlord's cost.

Selling costs when you leave

Selling is expensive too. Agent commission and closing costs often run 6% to 10% of the sale price. On a home that sells for about $492,000 after 7 years, 6% is about $29,500. This is the second reason short stays hurt buyers: you pay closing costs twice, once to buy and once to sell, with only a few years of equity growth in between.

The costs of renting, explained

Rent and rent increases

Rent is the one cost renters cannot avoid, and it usually rises every year. The calculator raises the rent at the rate you enter, starting in the second year. A 3% yearly increase turns $2,200 a month into about $2,627 a month in the seventh year, which is why renting gets more expensive the longer you stay, even though the renter never pays for repairs.

Renter's insurance

Renter's insurance covers your belongings and liability, and it is far cheaper than homeowners insurance, often $15 to $30 a month. Some landlords require it. The calculator adds it to the renting side so the comparison stays fair.

The opportunity cost of the down payment

This is the cost most comparisons miss. A buyer ties up $80,000 or more in a down payment. A renter keeps that cash and can invest it. At a 5% return, $92,000 of down payment plus closing costs grows to about $129,500 in 7 years before any monthly savings are added. The calculator credits the renter with those gains, and it also invests the monthly amount by which owning costs more than renting. This is what makes the comparison honest: the renter is not just paying rent, the renter is also building an investment balance.

Unrecoverable costs: the real comparison

The monthly mortgage payment is not the cost of owning. Part of it comes back as equity. The true cost of owning is the money you never see again: interest, tax, insurance, maintenance, and PMI. Compare that with rent, and the choice gets much clearer. Here is the first year of the default example, a $400,000 home with 20% down at 6.5%:

Cost you never get backYear 1 amount
Mortgage interest$20,694.69
Property tax$4,460.18
Homeowners insurance$2,432.82
Maintenance$4,054.71
Private mortgage insurance$0.00
Total unrecoverable cost$31,642.40
Rent for a similar home$26,640.00

The unrecoverable cost of owning is $2,636.87 a month in the first year, against rent of $2,220.00 a month including renter's insurance. The principal you repay, $3,576.72 in the first year, is not lost: it is equity you get back when you sell.

A monthly cost only makes sense against your take-home pay. If you work for the federal government, the federal employee paycheck calculator shows the pay behind your monthly budget, so you can see whether the owning cost fits before you decide.

Rent vs buy worked examples

All three examples use the same home, a $400,000 price with 20% down, a 6.5% 30-year mortgage, 1.1% property tax, $2,400 insurance a year, 1% maintenance, 3% closing costs, 6% selling costs, 3% home value growth, and a 5% investment return. Only the rent and the stay length change, and the answer flips completely.

Example 1: buying wins after a long stay

Rent is $2,200 a month, rising 3% a year, and you stay 15 years. The mortgage payment is $2,022.62 a month, and the first-year cost of owning is $2,934.93 a month. Buying looks expensive at first, but the loan balance falls to $232,189.25 while the home grows to $623,186.97, so the cash back at sale is $353,606.50. The net cost of buying is $306,080.15 against $348,065.81 for renting, so buying saves $41,985.66, and the break-even year is year 11.

Example 2: renting wins on a short stay

Rent is $1,600 a month, rising 3% a year, and you stay only 3 years. The net cost of buying is $96,322.33, because the $80,000 down payment and $12,000 closing costs are spread over just 3 years and the loan balance is still $308,535.17. The net cost of renting is $42,007.80, because the renter invests the $92,000 of cash and the rent is low. Renting saves $54,314.53, and buying never breaks even within 30 years at this rent.

Example 3: the break-even year

Rent is $2,300 a month, rising 3% a year, and you stay 7 years. After 7 years the net cost of buying is $172,685.69 and the net cost of renting is $166,831.24, so renting is still ahead by $5,854.45. But the gap is closing fast: by year 10, buying is ahead by $17,038.79. The break-even year is year 8. If you might move before year 8, renting is the safer choice. If you are sure you will stay past it, buying starts to pay.

Example 4: a small down payment and PMI

Put only 10% down on the same $400,000 home and the loan is $360,000, so the mortgage payment rises to $2,275.44 a month. PMI adds $255.00 a month at the 0.85% default rate, and it stays on until the loan balance falls to 80% of the home value, which takes about 2 years and 10 months. Over 7 years with $2,200 rent, the net cost of buying is $198,759.67 against $165,513.51 for renting, so renting saves $33,246.17 and the break-even year stretches to year 14. A small down payment does not just raise the monthly payment, it pushes the break-even year much further out.

How long you stay changes everything

This table uses the default example: a $400,000 home, 20% down, a 6.5% mortgage, and $2,200 rent rising 3% a year. Watch the last column move as the stay gets longer.

Years you stayNet cost of buyingNet cost of rentingBuying saves
3$96,322.33$65,901.77-$30,420.56
5$135,148.00$110,563.73-$24,584.27
7$172,685.69$155,956.10-$16,729.59
10$226,188.36$225,740.06-$448.30
15$306,080.15$348,065.81$41,985.66
20$370,628.32$480,979.72$110,351.40

A negative number in the last column means renting saves that amount. At 10 years the two paths are almost tied, only $448.30 apart, and buying pulls away after that.

What moves the answer most

This table starts from the same default example over 7 years, where renting saves $16,729.59 and the break-even year is year 11, and changes one thing at a time.

Change one thingBuying savesBreak-even year
Rent $1,800 a month-$60,230.12None in 30 years
Rent $2,600 a month$26,770.95Year 5
Home value flat, 0% growth-$93,890.27Year 25
Home value up 5% a year$43,165.42Year 4
Mortgage rate 5.5%$8,945.10Year 6
Mortgage rate 7.5%-$42,736.95Year 19
Investment return 7%-$39,817.73None in 30 years
Investment return 3%$4,038.90Year 7
Down payment 10%-$33,246.17Year 14
Rent rising 5% a year-$2,707.53Year 8
Maintenance 2% a year-$53,471.43None in 30 years

Three inputs matter most: the rent for a similar home, the home value growth, and the mortgage rate. Home value growth is also the hardest to predict, which is why the calculator lets you test 0% growth. If buying only wins when the home gains 5% a year, the decision is a bet on the market, not a safe saving.

The 5% rule: a quick check

The 5% rule says the unrecoverable cost of owning runs about 5% of the home value each year: about 1% property tax, 1% maintenance, and about 3% for the cost of the money tied up in the home. On a $400,000 home that is $20,000 a year, or about $1,667 a month. If a similar home rents for less than that, renting is often cheaper. If it rents for more, buying often wins. Treat it as a quick check only. It leaves out home price growth, and at a 6.5% mortgage rate the true first-year unrecoverable cost in the example above is $31,642, not $20,000, because interest alone is $20,695. Use the calculator for the real answer and the 5% rule for a fast gut check.

What the numbers cannot tell you

Money is only half the decision. The rest is how you want to live, and no calculator can weigh that for you.

  • Flexibility: renters can move at the end of a lease. Owners need months to sell, and selling in a slow market can take much longer.
  • Stability: owners with a fixed-rate mortgage know their main payment will not change. Renters face a new rent figure every time the lease renews.
  • Time and work: owners spend weekends and money on repairs, lawn care, and upkeep. Renters call the landlord.
  • Control: owners can paint, renovate, and change the home. Renters need permission, and many leases forbid changes.
  • Roots: buying makes sense when you want to stay in one place, near family, schools, or work, for many years. Renting makes sense when your life may change soon.
  • Risk: home values can fall as well as rise. A buyer who must sell in a down market can lose money that a renter never risks.

If the calculator says buying saves a small amount but you may move in 3 years, rent. If it says renting saves a small amount but you want to settle for 15 years, buy. A small money difference should never overrule a big life difference.

What this calculator does not include

  • Tax deductions: the calculator does not model itemized deductions for mortgage interest or property tax. Many owners take the standard deduction, so the benefit is often zero, and the tax code changes, so check your own return before counting on it.
  • Capital gains on the sale: the gain on a primary home sale is often excluded from tax, but the calculator does not model tax at all. It shows the cash before tax.
  • Moving costs: hiring movers, deposits, and setting up a new home cost money on both sides and are left out.
  • HOA special assessments: the calculator uses the monthly HOA dues you enter. It cannot predict a one-time assessment for a new roof or elevator.
  • Home improvements: a new kitchen may add value, but the calculator treats the home value growth as one rate, so it does not price renovations.
  • Rent control and landlord risk: rent may be capped in some places, and a landlord may sell or refuse to renew. Both are local facts the calculator cannot know.
  • Forced savings: principal paydown is counted as equity you get back at sale, not as a cost, which is the correct treatment. But if you would spend the renter's savings instead of investing it, the renting side will look better in the calculator than in real life.

Methodology and sources

The calculator simulates both paths month by month for up to 30 years. The mortgage payment uses the standard amortization formula, and the loan balance is worked out payment by payment. Property tax, homeowners insurance, and maintenance grow with the home value. PMI is charged while the loan balance is above 80% of the home value and stops automatically. The renter invests the down payment and closing costs, plus any monthly amount by which owning costs more than renting, at the return you enter, and draws from the investment when rent costs more than owning. The break-even year is the first year the net cost of buying falls below the net cost of renting. All worked examples in this guide were run through the same calculation engine as the calculator above, so the numbers match to the cent.

Sources used for the guide figures: the NerdWallet rent vs buy calculator methodology, the Urban Institute Housing Finance Policy Center PMI rate bands, the Consumer Financial Protection Bureau PMI cancellation rules, and the standard fixed-rate amortization formula. Figures are planning estimates. Mortgage rates, rents, taxes, and insurance change, so check the current figures for your own case before you decide.

Rent vs buy calculator FAQs

Is it cheaper to rent or buy a home?
It depends on how long you stay, the rent for a similar home, the mortgage rate, and home value growth. Short stays usually favor renting, because closing costs and selling costs are spread over too few years. Long stays usually favor buying, because the loan balance falls, the home gains value, and rent keeps rising.
How long do you need to stay for buying to pay off?
Often 5 to 10 years, but it varies a lot. In the default example on this page, buying breaks even in year 11. At $2,600 rent it breaks even in year 5, and at $1,800 rent it never breaks even within 30 years. Enter your own numbers to find your break-even year.
What is the break-even year in a rent vs buy comparison?
The break-even year is the first year the total net cost of buying falls below the total net cost of renting. Before that year, renting has cost less overall. After that year, buying has cost less overall, and the gap keeps growing the longer you stay.
Does the calculator include PMI?
Yes. When the down payment is under 20%, the calculator charges PMI at the rate you enter on the original loan amount each month. It removes PMI automatically when the loan balance falls to 80% of the home value, counting both the principal you repaid and the home value growth.
Does buying build equity even if it costs more each month?
Yes. Every mortgage payment includes principal, which lowers the loan balance, and the home may gain value. Both show up as cash back when you sell, which is why the calculator subtracts the sale proceeds from the cost of buying instead of comparing monthly payments alone.
What is the 5% rule for renting vs buying?
The 5% rule says the unrecoverable cost of owning runs about 5% of the home value each year: about 1% property tax, 1% maintenance, and about 3% for the cost of the money tied up in the home. Compare that yearly figure with the yearly rent. It is a quick check only, because it leaves out home price growth and uses a fixed cost of capital.
Should renters invest the money they save?
The comparison assumes they do. The renter invests the down payment and closing costs, plus any monthly savings, at the return you enter. If that cash is spent instead of invested, renting looks better in the calculator than it will in real life, so be honest with yourself about the return rate.
What down payment do I need to avoid PMI?
20% of the home price on a conventional loan. Below that, lenders usually require PMI until the loan balance reaches 80% of the value. You can ask the lender to cancel it at 80%, and federal rules make the lender end it automatically at 78% of the original value when you are current on payments.
Do property taxes and insurance change the answer?
Yes, a lot. Both are part of the unrecoverable cost of owning, and they vary widely by place. High property tax areas favor renting, because the owner pays that tax every year with no equity in return. Enter your local tax rate and insurance quote for an accurate result.
Is this calculator financial advice?
No. It is a planning estimate based on the numbers you enter. Mortgage rates, rents, taxes, and home prices change, and your own situation may include costs the calculator does not model. Check the current figures and talk to a licensed mortgage or financial professional before you decide.

More mortgage and housing tools

Syed Osama, developer at SkillGuidely
Designed & developed by

Syed Osama

Syed Osama is a digital publishing specialist who builds career metrics, financial calculators, and interactive web tools. He focuses on developing practical calculation resources to help remote workers, freelancers, and professionals make quick, accurate financial estimations.

This calculator gives an estimate for education only. It is not tax, legal, or financial advice. Mortgage rates, rents, taxes, and home prices change. Always check current figures and talk to a licensed mortgage or financial professional before you decide.