Sub topic 10
Taxes and incentives that depend on where you live
This chapter assumes you can read the earlier chapters' cost lists, the mortgage payment formula, and the simulate function from the model chapter. Tax rules are the least portable input to a rent-versus-buy model. Two identical houses in different jurisdictions can have very different tax bills, and the rules change over time. The goal here is to find which rules apply to you, turn each into a number, and put that number into the model.
Why location changes the answer
Earlier chapters used generic percentages, such as a 2% annual carrying cost. That figure hides three things that vary by place:
- What you pay while you own: property tax rates and how assessed values are updated.
- What you pay or receive at the start and end: transfer taxes, buyer grants, and taxes on sale profit.
- What renters face: rent regulation, renter credits, and taxes landlords pass on.
The examples below use the United States because its rules are well known. Other countries have different versions of the same categories. Every figure is illustrative, so look up your own jurisdiction's current rules before relying on any of it.
Property tax: rate, base, and reassessment
Property tax is usually assessed value × tax rate. Three details matter.
- The rate varies widely. A rate of 0.5% of value and a rate of 2.0% differ by a factor of four. On a 400,000 home that is 2,000 versus 8,000 per year. A flat 2% "carrying cost" for all of tax, insurance and maintenance cannot represent both.
- The assessed value may not equal market value. Some places reassess every year. Others cap how fast the assessed value can rise, or reset it only when the home is sold. Under a cap, a long-time owner's tax grows slowly, but a new buyer starts at the full market value.
- The tax follows the property, not you. The seller's low bill does not transfer to you. Use the tax bill a buyer would face, which you can often estimate from the local tax authority's published rate and a recent sale price.
Split property tax out of your carrying cost, so the model uses a local rate. Keep insurance and maintenance in a separate rate.
The mortgage interest deduction
Some countries let owners deduct mortgage interest from taxable income. Others, such as Canada for a primary home, do not. Where the deduction exists, it has a catch. It helps only if your deductions, added up, exceed the standard deduction (a fixed amount every filer may subtract without listing expenses). Only the amount above that threshold produces savings, and those savings are taxed at your marginal rate (the rate on your last dollar of income).
The benefit is therefore:
max(0, interest + property tax + other deductions − standard deduction) × marginal rate
def monthly_payment(principal, annual_rate, years):
r = annual_rate / 12
n = years * 12
if r == 0:
return principal / n
return principal * r / (1 - (1 + r) ** -n)
def first_year_interest(principal, annual_rate, years):
pay = monthly_payment(principal, annual_rate, years)
balance, total = principal, 0.0
for _ in range(12):
interest = balance * annual_rate / 12
total += interest
balance -= pay - interest
return total
def annual_tax_benefit(interest, property_tax, other_itemized,
standard_deduction, marginal_rate):
itemized = interest + property_tax + other_itemized
return max(0, itemized - standard_deduction) * marginal_rate
interest = first_year_interest(320_000, 0.06, 30) # about 19,100
prop_tax = 400_000 * 0.012 # 4,800
# Illustrative standard deductions, not current law
print(round(annual_tax_benefit(interest, prop_tax, 0, 30_000, 0.24))) # 0
print(round(annual_tax_benefit(interest, prop_tax, 0, 15_000, 0.24))) # about 2,130The same house gives a benefit of zero or about 2,130 per year, depending on a threshold unrelated to the house. A common error is to multiply all mortgage interest by your tax rate. That overstates the benefit. The correct figure is the extra deduction beyond what you would have claimed anyway.
The benefit also shrinks over time. Interest is largest in the first year and falls as the balance falls, so a flat annual benefit in a long simulation is generous in later years.
One-time taxes and incentives
These items enter at purchase, so they belong with the down payment and closing costs.
| Item | Direction | Typical form | What to check |
|---|---|---|---|
| Transfer tax or stamp duty | Cost | Percent of price, sometimes tiered | Who pays, buyer or seller, and any first-time buyer relief |
| Recording and registration fees | Cost | Flat or per-page fees | Local fee schedule |
| First-time buyer grant | Benefit | Fixed sum or percent of price | Income caps, price caps, repayment terms |
| Down payment assistance loan | Benefit | Often 0% or deferred | Whether it is repaid on sale or refinance |
| Tax credit for buyers | Benefit | Credit against tax owed | Whether it is refundable and how long it lasts |
Treat each as cash moving at time zero. A cost reduces the cash the renter would have left over to invest, so it increases the renter's starting portfolio. A grant does the reverse.
Read the conditions on grants. Many have residency requirements, such as living in the home for five years. Some are forgivable only if you stay, and some are repaid from sale proceeds. A grant with a clawback changes the break-even calculation, because leaving early triggers repayment.
Taxes when you sell
Several jurisdictions exclude some or all profit on the sale of a primary residence. In the US, the exclusion is up to 250,000 of gain for a single filer or 500,000 for a married couple filing jointly. It requires that you owned and lived in the home for at least two of the last five years. Other countries have a full exemption or none at all.
Two cautions:
- Compute the gain after selling costs and any improvements you can add to your cost basis. Selling costs often reduce the taxable gain.
- An exclusion usually does not cover a rental property or a second home. If you plan to rent the house out later, the exclusion may not apply.
For most households the exclusion means no tax at exit. It matters in the model when appreciation is large, the stay is long, or the house is expensive relative to the cap.
Rent-side rules
Renters have local rules too.
- Rent regulation. Where annual increases are capped, your
rent_growthassumption should use the cap and not the market average, at least while you stay in the same unit. Moving to a new unit may reset the rent to market. - Renter credits. Some places give renters a tax credit or a rebate, usually with income limits. Treat it as a reduction in annual rent.
- Deposits and fees. Rules on security deposits, application fees and broker fees differ and affect the cost of moving between rentals.
Adding local rules to the model
The function below extends the earlier simulate. It replaces the single carry rate with a property tax rate plus other costs, and adds transfer tax, a grant, a yearly tax benefit and a tax on gains above an exclusion. It is complete as shown. It does not tax the renter's investment returns, which is a simplification you should revisit if your account is taxable.
def monthly_payment(principal, annual_rate, years):
r = annual_rate / 12
n = years * 12
if r == 0:
return principal / n
return principal * r / (1 - (1 + r) ** -n)
def simulate_local(years, price=400_000, down_pct=0.20, mort_rate=0.06,
term=30, appreciation=0.03, invest_return=0.05,
rent=2_000, rent_growth=0.03, prop_tax_rate=0.012,
other_carry_rate=0.01, sell_cost=0.06,
transfer_tax_pct=0.0, grant=0.0, annual_benefit=0.0,
exclusion=250_000, gains_tax_rate=0.15):
loan = price * (1 - down_pct)
pay = monthly_payment(loan, mort_rate, term)
balance = loan
portfolio = price * (down_pct + transfer_tax_pct) - grant
for m in range(years * 12):
balance -= pay - balance * mort_rate / 12
value = price * (1 + appreciation) ** ((m + 1) / 12)
carry = value * (prop_tax_rate + other_carry_rate) / 12
owner_cost = pay + carry - annual_benefit / 12
rent_m = rent * (1 + rent_growth) ** (m // 12)
portfolio = portfolio * (1 + invest_return / 12) + (owner_cost - rent_m)
value = price * (1 + appreciation) ** years
net_sale = value * (1 - sell_cost)
gain_tax = max(0, net_sale - price - exclusion) * gains_tax_rate
return net_sale - gain_tax - balance, portfolio
scenarios = {
"base": {},
"2% transfer tax": {"transfer_tax_pct": 0.02},
"10k grant": {"grant": 10_000},
"2k yearly benefit": {"annual_benefit": 2_000},
"no exclusion": {"exclusion": 0},
}
for name, kwargs in scenarios.items():
owner, renter = simulate_local(7, **kwargs)
print(f"{name:18s} gap at 7 years: {owner - renter:10,.0f}")The gap is owner wealth minus renter wealth, so a positive number favors buying. Compare each scenario's gap with the base. An 8,000 transfer tax (2% of 400,000) paid at the start grows at 5% to about 11,000 by year 7, so the gap should fall by about that amount. A yearly benefit of 2,000 has the opposite effect, though it compounds less because it arrives gradually.
Common errors
- Using a national average property tax rate instead of the local one.
- Assuming your tax bill stays at the seller's level after a reassessment.
- Counting the full mortgage interest as a tax saving without testing it against the standard deduction.
- Forgetting that grants may have repayment or residency conditions.
- Ignoring the exclusion rules on sale, or assuming they apply to a home you rent out.
- Using rules from a prior year without checking for changes.
Exercise
A buyer's first-year mortgage interest is 12,000 and property tax is 3,000. They have no other deductions. The standard deduction is 20,000 and their marginal rate is 22%. What is the yearly tax benefit of owning, and what does it tell you?
Show answer
Itemized deductions are 12,000 + 3,000 = 15,000, which is below the 20,000 standard deduction. The benefit is max(0, 15,000 − 20,000) × 0.22 = 0. The buyer would claim the standard deduction anyway, so the mortgage interest deduction adds nothing, and the model should use 0 for this input.
Exercise
A first-time buyer grant of 10,000 requires you to live in the home for five years or repay it. You run the model and find buying overtakes renting at year 6 with the grant counted. Why might your real break-even be different if you move at year 4?
Show answer
At year 4 you would repay the grant, so the 10,000 benefit disappears and sale proceeds drop by that amount. A move at year 4 is also earlier than the modeled year-6 break-even, so you would not yet have recovered the other costs of buying. The model should apply the repayment as an exit cost for stays under five years.