Sub topic 8
The cost of leaving: selling and moving
This chapter covers the costs of exiting a home, which the monthly-payment comparison leaves out. It assumes you know what a mortgage balance is, you can compute compound growth, and you have read the earlier chapters on ownership costs and amortization. The Python examples reuse the payment formula from the mortgage chapter.
Why exit costs belong in the comparison
Buying a home costs money on the way in (down payment, closing costs) and on the way out. The exit cost is paid once, at the end, so it looks small next to years of mortgage payments. It matters because it is large and fixed. A seller usually pays several percent of the sale price whether they stayed one year or twenty.
This is why time horizon decides so many rent-versus-buy results. A short stay gives the home little time to pay back its entry and exit costs. A long stay spreads the same costs over many years.
What selling actually costs
Selling costs vary by country, state and market. The categories below are common, and the percentages are typical ranges, not rules.
| Cost | What it is | Typical size |
|---|---|---|
| Agent commissions | Fees to the listing and buyer's agents, paid from the sale price | Often 4% to 6% of price, depending on the market |
| Seller closing costs | Title, legal, escrow and recording fees | About 0.5% to 2% |
| Transfer taxes | Taxes charged when ownership changes, in some places | 0% to several percent |
| Repairs and staging | Fixes, cleaning, paint, inspection requests from buyers | Varies widely |
| Overlap carrying costs | Mortgage, taxes and utilities while the house sits unsold | Months of ownership costs |
| Moving | Movers, truck rental, packing, temporary storage | Often a few thousand |
The spine's simulation rolls the first three rows and part of the fourth into one number, sell_cost=0.06. That is a reasonable default for a first model. Replace it with local figures when you have them.
Selling costs are paid on the whole price, not on your equity
The sale price is the whole value of the house, but your stake in it is only the equity: the price minus the loan balance. A 6% cost on a 400,000 house is 24,000. If you put 80,000 down, that one cost equals 30% of your original cash.
This leverage effect explains why a small percentage can feel large. It also explains why the break-even question is better framed as a price question.
How much does the price need to rise?
Ignore everything else for a moment and ask only this: how much must the house appreciate for the sale price, after selling costs, to equal what you paid? If the selling cost fraction is s, you need price × (1 + g) × (1 − s) = price, so (1 + g) = 1 / (1 − s). Spread over years, the annual appreciation needed is (1 / (1 − s)) ** (1 / years) − 1.
def breakeven_appreciation(years, sell_cost=0.06):
"""Annual price growth needed so the net sale price equals the purchase price."""
return (1 / (1 - sell_cost)) ** (1 / years) - 1
for y in (1, 3, 5, 7, 10):
print(y, f"{breakeven_appreciation(y):.2%}")With a 6% selling cost the output is approximately:
| Years owned | Annual appreciation needed |
|---|---|
| 1 | 6.38% |
| 3 | 2.08% |
| 5 | 1.25% |
| 7 | 0.89% |
| 10 | 0.62% |
In year one you need a 6.4% price jump just to avoid losing money on the sale. By year ten, a small amount of growth is enough. This is the mechanism behind the common advice that buying suits people who expect to stay "at least five years or so". The right number depends on your local costs and price growth, so compute it for your own market.
This calculation is incomplete on purpose. It ignores the loan balance falling, which helps the owner, and it ignores interest and carrying costs, which hurt. The full picture comes from tracking cash.
Computing what you walk away with
Net sale proceeds are the sale price, minus selling costs, minus the loan balance still owed. The balance after k payments has a closed form, so the code does not need a loop.
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 remaining_balance(principal, annual_rate, years, months_paid):
r = annual_rate / 12
pay = monthly_payment(principal, annual_rate, years)
if r == 0:
return principal - pay * months_paid
growth = (1 + r) ** months_paid
return principal * growth - pay * (growth - 1) / r
def net_proceeds(price, down_pct, mort_rate, term, appreciation,
years_owned, sell_cost=0.06):
loan = price * (1 - down_pct)
sale_price = price * (1 + appreciation) ** years_owned
balance = remaining_balance(loan, mort_rate, term, years_owned * 12)
cash_out = sale_price * (1 - sell_cost) - balance
return sale_price, balance, cash_out
for years in (3, 7):
sale, bal, cash = net_proceeds(400_000, 0.20, 0.06, 30, 0.03, years)
print(years, round(sale), round(bal), round(cash))For the spine's default home (400,000 price, 20% down, 6% rate, 3% appreciation):
- After 3 years you sell for about 437,000, owe about 307,000, and walk away with about 103,000.
- After 7 years you sell for about 492,000, owe about 287,000, and walk away with about 176,000.
The 3-year figure is only about 23,000 above your 80,000 down payment, after three years of payments. The loan balance fell by only about 13,000 in that time, because early payments are mostly interest. Selling costs of roughly 26,000 absorbed most of the price growth. Those figures also exclude the interest, taxes, insurance and maintenance you paid along the way, which a full comparison must count.
Moving costs apply to renters too
Renters also pay to leave, though usually less. A fair comparison counts these on both sides:
- Moving itself. Movers, truck, packing and any storage. These are similar for owners and renters, so they matter most when one side moves more often than the other.
- Lease-break fees. Ending a lease early often costs one to two months of rent or until a replacement tenant is found, depending on the lease and local law.
- Deposit risk. A security deposit comes back only if the unit passes inspection. Count a partial loss if you expect deductions.
- Rent resets. A renter who moves often faces a new market rent each time, which may be higher than their current rent.
An owner who stays ten years pays selling costs once and moves once. A renter who moves every two years pays moving costs five times. If you expect to move often anyway, the renter's repeated moving costs reduce the gap in exit costs.
Edge cases and failure modes
- Prices fall. If the home loses value, selling costs and the loan balance can exceed the sale price. You then owe money at closing, a situation called negative equity. Early in the loan, with a small down payment, a price drop of 5% to 10% can be enough.
- Forced timing. A job loss, divorce or relocation can force a sale when the market is weak. The break-even analysis assumes you choose when to leave. Treat the break-even year as a minimum plan, not a promise.
- Slow sales. Each month the house sits unsold adds mortgage, tax, insurance and utility costs. Add one to three months of ownership costs to the exit if the market is slow.
- Buying again. If you buy a new home after selling, you pay a new round of closing costs. Moving every few years as an owner repeats the entry and exit cost cycle, which the model above counts only once.
- Tax treatment of gains. Whether profit on a home sale is taxed, and how, depends on where you live and how long you held the home. The later chapter on taxes and incentives covers this. Until then, treat
sell_costas pre-tax. - Appreciation is uncertain. The 3% used above is an assumption. Use a range of values, as the sensitivity chapter does, instead of trusting one number.
Putting it into the model
In the simulation from the spine, the sale cost appears in one line: owner_wealth = value * (1 - sell_cost) - balance. Two things follow from that placement.
- The cost is applied only at the end of the chosen horizon. Short horizons therefore carry the full fee over few years, which is why the simulation favors renting at three years and buying at fifteen under its default assumptions.
- The renter's side has no equivalent line. If you want to include renter moving and lease-break costs, subtract them from the renter's portfolio at the horizon, and count how many moves each side expects.
When you adapt the model, run it for several horizons and look for the year the answer flips from rent to buy. That year is your break-even point, and the next chapter develops it.
Exercise
A seller expects selling costs of 5% of the sale price and plans to stay 4 years. What average annual price appreciation is needed just for the net sale price to equal the purchase price? Ignore the loan balance and carrying costs.
Show answer
Use (1 / (1 - s)) ** (1 / years) - 1 with s = 0.05 and years = 4. 1 / 0.95 is about 1.0526, and its fourth root is about 1.0129, so about 1.29% per year.
Exercise
Why can the same 6% selling cost make buying look bad over three years and acceptable over ten, even if the home appreciates at 3% a year in both cases?
Show answer
The selling cost is a one-time charge on the sale price. Over three years, the home's growth and the loan paydown are small, so the charge absorbs most of the gain. Over ten years, the growth and equity build-up are much larger, so the same charge is a smaller share of the total and is outweighed by the gain.