Why It Matters
Here's the distinction that trips up most investors: your property can appreciate for years and produce a massive unrealized gain on paper, but that gain doesn't trigger taxes and isn't cash in your pocket until you sell. The moment you close, the gain becomes "realized" — it's real income, the IRS expects a cut, and you need to plan around it. Yuki buys a rental for $280,000 and sells seven years later for $420,000. If her adjusted cost basis after depreciation is $231,000 and selling costs are $25,200, her realized gain is $163,800 — that's what she owes tax on, not the $140,000 price difference she might have assumed.
At a Glance
- Formula: Sale Price − Adjusted Cost Basis − Selling Costs
- Trigger: The taxable event — gain only exists for tax purposes once the sale closes
- Key distinction: Separates real profit from paper equity still trapped in the asset
- Tax treatment: Taxed at capital gains rates (0%, 15%, or 20%) plus 25% depreciation recapture
- Primary deferral tool: A 1031 exchange postpones the realized gain by rolling it into a replacement property
Realized Gain = Sale Price − Adjusted Cost Basis − Selling Costs
How It Works
Three inputs drive every realized gain calculation. The sale price is straightforward — it's the gross proceeds from closing. The adjusted cost basis is trickier: it starts as your purchase price plus acquisition costs, grows with every capital improvement, and shrinks with every year of depreciation deductions you've claimed (or could have claimed). Selling costs — agent commissions, transfer taxes, closing attorney fees — reduce the gain directly, so they matter more than most investors realize at 5–6% of sale price.
The adjusted cost basis is where most surprises hide. When you buy a hard asset like real estate, the IRS requires you to depreciate the building portion over 27.5 years. That annual deduction reduces your basis whether you claimed it or not. An investor who bought for $300,000, depreciated $63,000 over seven years, and made $40,000 in improvements has an adjusted basis of $277,000 — not the $340,000 they actually spent. The lower basis means higher realized gain, and a larger tax bill than expected.
Realized gain splits into two taxable components. The depreciation recapture portion — equal to all accumulated depreciation — gets taxed at a flat 25% federal rate regardless of your income bracket. The remaining gain is a capital gain, taxed at 0%, 15%, or 20% depending on your taxable income and how long you held the property. Unlike liquid assets such as stocks that you can sell in tranches to manage your bracket, an illiquid asset like real estate forces you to realize the entire gain in one tax year — making pre-sale planning essential.
Real-World Example
Yuki bought a duplex in Phoenix seven years ago for $295,000. She paid $7,300 in acquisition closing costs, added a $38,000 kitchen and bathroom renovation, and claimed straight-line depreciation throughout: $242,000 depreciable building value ÷ 27.5 years × 7 years = $61,600 accumulated depreciation.
Adjusted cost basis: $295,000 + $7,300 + $38,000 − $61,600 = $278,700.
She sells for $435,000. The buyer's agent and her listing agent split a 5% commission ($21,750), and title and closing fees add another $3,100 — total selling costs of $24,850.
Realized gain: $435,000 − $278,700 − $24,850 = $131,450.
The gain breaks into two buckets: $61,600 of depreciation recapture taxed at 25% ($15,400 federal) and $69,850 of long-term capital gain taxed at 15% ($10,478). Total federal tax: approximately $25,878 on a $156,300 cash gain from the sale — a 16.6% effective rate. If Yuki had assumed her gain was simply $435,000 − $295,000 − $24,850 = $115,150, she'd have underestimated by $16,300 and faced a surprise tax bill.
Pros & Cons
- Forces a concrete accounting of your true profit — strips away the illusion of paper equity and shows what you actually kept
- Selling costs are fully deductible against the gain, reducing your taxable income dollar for dollar
- Long-term capital gains rates (15–20%) are substantially lower than ordinary income rates for most investors
- Once the gain is realized, capital is freed from a hard asset and can be redeployed immediately into higher-yield opportunities
- The full gain is realized in a single tax year on an illiquid asset — no ability to spread the liability across multiple years the way you can with stocks
- Depreciation recapture at 25% can produce a tax bill that exceeds what you'd calculate from the price appreciation alone
- Investors who didn't track their adjusted cost basis carefully often face much larger realized gains than they expected
- Opportunity cost of deferral: staying invested to avoid realizing the gain can lock capital in a property whose best returns are already behind it
Watch Out
Depreciation recapture is non-negotiable. Even if you never claimed depreciation, the IRS reduces your basis by the amount you "could have" claimed under the allowed-or-allowable rule. Skip 10 years of deductions on a property with $8,000/year depreciation and your basis is still $80,000 lower at sale — you owe recapture tax without having received the annual deduction benefit. Always claim your full depreciation allowance every year.
Unrealized gain isn't income — but it creates a false sense of profit. Many investors mentally spend their paper equity before accounting for the tax hit at sale. A property showing $200,000 of appreciation might net $140,000 after taxes, transaction costs, and loan payoff. Run the full realized gain calculation before making any sell decision.
Selling costs reduce your gain — document everything. Agent commissions, title insurance, transfer taxes, prepayment penalties, and pro-rated property taxes at closing all count. Investors who fail to capture every eligible selling cost effectively overpay their capital gains tax. Keep a running closing cost estimate as part of your exit planning.
Ask an Investor
The Takeaway
Realized gain is the number that determines your actual tax liability when you sell — not the difference between sale price and purchase price, and not the unrealized gain your spreadsheet shows. Calculate it before you list: Sale Price − Adjusted Cost Basis − Selling Costs. Know your depreciation recapture exposure. Decide whether a 1031 exchange makes more sense than cashing out. The investors who get blindsided at closing are the ones who confused appreciation with realized profit.
