Skip to content
QueenNexa

Free tool

Mortgage Calculator: Payment, Affordability & Rent vs Buy

Work out a mortgage payment with taxes, insurance, HOA and PMI you enter, find the home price a budget supports, or compare renting and buying. No rates built in.

Covers principal, interest, property tax, insurance and HOA. PMI is not included.

Use the rate from your lender estimate. No rate is built in; this is an example.

From your tax bill or listing. Optional.

Your own figure for the area. Optional.

Optional.

Optional.

The amount on your loan estimate, if any. Optional.

Your lender's terms decide. Enter 0 to charge PMI for the whole term.

Your estimate for repairs and maintenance.

Your assumption. Home values can fall.

What money you do not spend on housing could earn. Your assumption, not a forecast.

Total monthly payment
–
Principal and interest
–
Property tax + insurance + HOA
–
PMI (while it applies)
–
Loan amount
–
Down payment as a share of the price
–
PMI months and total PMI paid
–
Monthly payment after PMI ends
–
Total interest over the loan
–
Total of principal and interest payments
–
Highest home price that fits your budget
–
Loan at that price
–
Principal and interest
–
Property tax per month
–
Insurance + HOA per month
–
Monthly total at that price
–
After the period, with your assumptions
–
Buying: net worth from the home and investments
–
Renting: net worth from investments
–
First year buying is ahead
–
Starting monthly cost of owning
–
Starting monthly rent
–

Schedule

Assumptions

These are estimates from your own inputs, not a forecast or a promise of results. No vendor prices or industry averages are built in: every number comes from you.

  • Principal and interest = P × r ÷ (1 − (1 + r)^−n), with r = annual rate ÷ 12 and n = months. Taxes, insurance and HOA are the amounts you enter, divided into months. PMI is the monthly amount you enter, charged until the balance falls to the percentage of the home price that you set.
  • Affordability: the price is solved so that principal and interest on (price − down payment) plus property tax (your % of price ÷ 12), insurance and HOA equals your monthly budget, then rounded down to the cent. PMI is not included.
  • Rent vs buy: each month the buyer pays principal and interest, property tax and upkeep on the current home value, insurance and HOA; the renter pays rent. Whoever spends less invests the difference at your return, and the renter also invests the down payment and buying costs on day one. Home value and rent step up once a year. Buyer net worth = home value − selling costs − loan balance + investments.
  • Not modeled: income taxes, mortgage-interest or property-tax deductions, inflation, insurance or HOA increases, refinancing, and moving costs. A rent-vs-buy result is only as good as the assumptions you enter.
  • No rates, tax rules, lending limits or home prices are built in or looked up. Method: standard amortization math, computed in whole cents.

Educational estimate only, not a loan offer, lending advice or a forecast. Your lender's loan estimate controls the real numbers.

Runs entirely in your browser. Nothing you type or upload is sent to our servers.

How the mortgage calculator works

One page covers three questions. Monthly payment mode adds principal and interest to the taxes, insurance, HOA and PMI that you enter. Affordability mode turns a monthly budget into a highest home price. Rent-vs-buy mode compares the net worth of renting and investing against owning, using only your assumptions.

Worked example 1: monthly payment with PMI

A $400,000 home with $60,000 down (15%) leaves a loan of 400,000 − 60,000 = $340,000. At 6% for 30 years, principal and interest are $2,038.47. Add $4,800 a year in property tax ($400.00 a month), $1,800 in insurance ($150.00), $100 in HOA and $150 in PMI: 2,038.47 + 400 + 150 + 100 + 150 = $2,838.47. If PMI ends when the balance reaches 80% of the price ($320,000), it is charged for 52 months, totaling $7,800, and the payment then drops to 2,838.47 − 150 = $2,688.47.

Worked example 2: how much home fits a budget

Budget $2,500 a month, $50,000 down, 6% for 30 years, property tax of 1% of the price a year and $1,200 a year of insurance ($100 a month). The highest price is $395,349.11, so the loan is 395,349.11 − 50,000 = $345,349.11. Check: principal and interest $2,070.54, property tax 395,349.11 × 0.01 ÷ 12 = $329.46 and insurance $100.00 add up to $2,500.00.

Worked example 3: rent vs buy, simplified

To follow the arithmetic, take a $300,000 home with $60,000 down, 0% interest, 30 years, no taxes, upkeep or selling costs, no change in price or rent, and rent of $1,000. The payment is 240,000 ÷ 360 = $666.67, so the buyer spends $333.33 a month less than the renter and invests it. After 10 years the buyer owes about $159,999.60, so the home is worth 300,000 − 159,999.60 = $140,000.40 in equity, plus $39,999.60 saved, for $180,000.00. The renter holds the $60,000 down payment. Real costs and rates change this a great deal, which is why every input is yours to edit.

Worked example 4: rent vs buy with realistic costs

A $400,000 home with $80,000 down, 6% for 30 years, 1% property tax, $1,500 insurance, 1% upkeep, $8,000 buying costs, 6% selling costs, 3% a year home and rent growth, rent of $2,200, a 5% investment return and a 10-year stay. The starting owner cost is $2,710.22 a month versus $2,200 rent. After 10 years buying is ahead by $32,142.68 ($222,800.11 against $190,657.43), and it first pulls ahead in year 7. Change any assumption and the answer can flip.

Reading the results

  • The principal part of an early payment is small, so equity grows slowly in the first years.
  • A bigger down payment lowers the loan, the interest and the PMI you may owe.
  • For rent vs buy, test a lower return on investments and a flat home value to see the downside case.

Related tools

See the full month-by-month schedule for any loan in the Loan & Amortization Calculator. Buying a vehicle instead? Use the Car Payment Calculator. To see how invested savings could grow, try the Investment & Compound Interest Calculator, and for a monthly spending plan, the Budget Calculator.

Frequently asked questions

How is a mortgage payment calculated?

Principal and interest come from the loan amount (price minus down payment), the monthly rate (annual rate ÷ 12) and the number of months, using the standard amortization formula. Then property tax, homeowners insurance, HOA dues and any PMI that you enter are added. For a $340,000 loan at 6% over 30 years, principal and interest are $2,038.47 a month.

What does the affordability calculator do?

You enter the most you want to spend each month, your down payment, rate, term, property tax rate, insurance and HOA. It works backward to the highest home price whose full monthly cost stays within that budget. It does not judge your income or debts and does not use any lender rule, so decide your own comfortable monthly figure first.

How does the rent-vs-buy comparison work?

It follows both choices month by month for the years you pick. The buyer pays the mortgage, property tax, upkeep, insurance and HOA; the renter pays rent. Whoever spends less invests the difference at your assumed return, and the renter also invests the down payment. At the end it compares net worth, after selling costs for the home.

Why does the rent-vs-buy result change so much with small edits?

Home value growth, the investment return, selling costs and how long you stay all compound over many years. A one-point change in appreciation or return can move the answer by thousands of dollars. Try pessimistic and optimistic values for each assumption and see whether the answer changes before relying on it.

How does PMI work in this calculator?

PMI is treated as a monthly amount you enter from your loan estimate. It is charged each month until the loan balance falls to the percentage of the home price that you enter, and you can set that point to 0 to charge it for the whole term. Whether PMI applies, and when it ends, depends on your lender's terms.

Does it include closing costs, taxes on gains or deductions?

Closing costs are included only in the rent-vs-buy mode, as the one-time buying cost you enter. Income taxes, deductions and capital gains are not modeled anywhere, because those rules depend on your situation. Ask a qualified tax professional how they apply to you.

Is my data saved or sent anywhere?

No. The math runs in your browser, nothing is stored and nothing you enter is sent to our servers. Analytics record only that the tool was used, never the numbers you type, and you do not need an account.

Link to this tool

Found it useful? Copy a link for your page, newsletter or documentation.

Get new tools and guides by email

Optional. The tool above works without signing up.

One email every Tuesday. Free, and you can unsubscribe in one click.

More free tools

Browse all financial calculators or the full list of free tools.