Most landlords know that selling an investment property means paying capital gains tax. What catches investors off guard is that the gain on paper — sale price minus what you paid — is not the number the IRS taxes. The real taxable gain is larger, and it gets split across multiple tax layers at different rates.
On a $300,000 property purchased in 2019 and sold for $400,000 in 2026, the naive calculation says you earned $100,000. The IRS calculation says your taxable gain is $161,091 — and that extra $61,091 is taxed at a higher rate than your appreciation gain.
This post walks through the mechanics: how adjusted basis works, why depreciation recapture exists, how the three tax layers stack, what the IRS “allowed or allowable” rule means for investors who never claimed depreciation, and four strategies to reduce or defer what you owe.
Why Your Taxable Gain Is Larger Than You Think
Every year you own a rental property, you claim a depreciation deduction that reduces your taxable rental income. On a $240,000 depreciable basis, that is $8,727 per year — a real tax benefit during ownership.
When you sell, the IRS recovers those deductions. Your adjusted basis — the number subtracted from your sale price to calculate gain — is reduced by every dollar of depreciation you claimed. After 7 years, $61,091 in depreciation deductions reduces your adjusted basis by exactly that amount. The result: your taxable gain includes not just appreciation, but the full value of every deduction you took.
Purchase price: $300,000
+ Capital improvements: $0
− Accumulated depreciation (7 yrs × $8,727): ($61,091)
= Adjusted basis: $238,909
Gain Calculation
Sale price: $400,000
− Adjusted basis: ($238,909)
= Total gain: $161,091
vs. the number most investors think of:
Sale price $400,000 − purchase price $300,000 = $100,000 (wrong)
Hidden additional gain from depreciation recapture: $61,091
The Three Tax Layers
The $161,091 gain does not all get taxed at the same rate. The IRS splits it into two components, each taxed separately, with a possible third layer for high earners.
Layer 1: Depreciation Recapture (Max 25%)
The first $61,091 of gain — equal to accumulated depreciation — is classified as unrecaptured Section 1250 gain and taxed at a maximum federal rate of 25%. The 25% rate is a ceiling, not a floor: if your ordinary income bracket is below 25% (10% or 12% filers), you pay your actual ordinary rate instead. For most landlords who also have W-2 income and are in the 22% or higher bracket, the full 25% ceiling applies. For high earners in the 32%, 35%, or 37% bracket, the 25% recapture rate is actually lower than their ordinary income rate — one of the few cases where a dedicated recapture rate works in the taxpayer’s favor.
Layer 2: Long-Term Capital Gain (0%, 15%, or 20%)
The remaining $100,000 of gain — the actual appreciation above your original purchase price — qualifies for long-term capital gains treatment, provided you held the property more than one year. For 2026, the rate depends on taxable income:
| Filing Status | 0% Rate (taxable income up to) | 15% Rate (taxable income) | 20% Rate (taxable income above) |
|---|---|---|---|
| Single | ~$48,350 | ~$48,351 – ~$533,400 | ~$533,400 |
| Married Filing Jointly | ~$96,700 | ~$96,701 – ~$600,050 | ~$600,050 |
Layer 3: Net Investment Income Tax — 3.8% (High Earners Only)
If your modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly), an additional 3.8% Net Investment Income Tax applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. Rental gains and depreciation recapture are both classified as net investment income.
Full Worked Example: $300K Property, 7-Year Hold
Property purchased in 2019 for $300,000 (land: $60,000 / structure: $240,000). Sold in 2026 for $400,000. No capital improvements. All math Python-verified.
| Component | Amount | Tax Rate | Tax Owed |
|---|---|---|---|
| Annual depreciation ($240,000 ÷ 27.5) | $8,727/yr | — | — |
| Accumulated depreciation (7 years) | $61,091 | — | — |
| Adjusted basis | $238,909 | — | — |
| Total taxable gain | $161,091 | — | — |
| Depreciation recapture (Layer 1) | $61,091 | 25% | $15,273 |
| Long-term capital gain (Layer 2) | $100,000 | 15% | $15,000 |
| NIIT (Layer 3, if MAGI > $200K) | $161,091 | 3.8% | $6,121 |
| Total federal tax (15% LTCG bracket) | $30,273 | ||
| Total federal tax (20% LTCG + NIIT) | $41,394 | ||
At the 15% LTCG rate with no NIIT, the investor keeps $369,727 after federal tax from a $400,000 sale. At the 20% rate with NIIT (high-income investor), after-tax proceeds drop to $358,606. Add state capital gains tax on top of these figures — most states tax investment gains at ordinary income rates, ranging from 0% (Texas, Florida, Washington) to 13.3% (California).
Short-Term vs. Long-Term: Why Holding Matters
If you sell a rental property within 12 months of purchase, the entire gain — including what would otherwise be depreciation recapture — is taxed as ordinary income at your marginal rate. For most investors in the 22% or 24% bracket, this means:
Recapture (25%) + LTCG (15%) = $30,273
Scenario B: Sell at 11 months (short-term), 22% ordinary income bracket
Same $161,091 gain, taxed entirely at ordinary income: $161,091 × 22% = $35,440
Cost of selling before the 1-year mark: $5,167 in extra federal tax
The one-year holding requirement is a hard line. Selling on day 364 costs the same as selling on day 1. Selling on day 366 qualifies for long-term rates. When you are close to the one-year mark, the math almost always favors waiting.
The “Allowed or Allowable” Trap
This is the rule that catches investors who stopped claiming depreciation, forgot to claim it, or inherited a property without claiming it properly.
IRC §1250 uses an “allowed or allowable” standard: the IRS recaptures depreciation you were entitled to take, whether you actually claimed it on your return or not. If you owned a rental property for 10 years and never claimed depreciation, the IRS still reduces your adjusted basis by what you could have deducted — and taxes you on the full recapture amount at sale.
- Form 3115 — an accounting method change that allows you to catch up on missed depreciation in the current year (one-time, large deduction). Complex; requires a CPA.
- Amended returns (Form 1040-X) — only covers the last three open tax years. Limited catch-up window.
State Capital Gains Taxes
Federal tax is only part of the bill. Most states treat capital gains as ordinary income, adding a significant layer on top of the federal calculation.
| State | Capital Gains Tax Treatment | Top Rate |
|---|---|---|
| Texas, Florida, Nevada, Washington | No state income tax | 0% |
| Colorado | Flat income tax rate | 4.4% |
| Georgia | Flat income tax rate (phased reduction) | ~5.39%–5.49% |
| Arizona | Flat income tax rate (enacted 2023) | 2.5% |
| New York | Ordinary income rate + NYC surcharge | Up to ~12.7% |
| California | Ordinary income rate (no LTCG discount) | 13.3% |
A California investor selling the $300K example property and paying the federal 20% + NIIT rate ($41,394 federal) plus California at 13.3% ($21,425 state) faces a combined tax bill of over $62,000 on the same transaction — leaving $337,606 after taxes from a $400,000 sale.
The Primary Residence Conversion: What §121 Does and Doesn’t Do
Some investors convert a rental to a primary residence before selling, hoping to use the §121 exclusion — which allows up to $250,000 ($500,000 MFJ) of gain to be excluded from capital gains tax if the home was your primary residence for at least 2 of the 5 years before sale. This section only applies if the property was previously your primary residence or you plan to move in before selling; a property that has always been a rental does not qualify for §121 at all.
For properties that were once a primary residence, there are two important limits:
- Depreciation recapture is never excluded. Even if your home qualifies for the full §121 exclusion, the IRS still taxes accumulated depreciation recapture at up to 25%. The exclusion only applies to the appreciation gain, not the recapture portion. You cannot move into a rental and eliminate the recapture tax.
- Nonqualified use reduces the exclusion. Under IRC §121(b)(5), any period after January 1, 2009 that the property was rented (and not used as your primary residence) counts as “nonqualified use.” The exclusion is reduced proportionally. A property rented for 4 years and then used as a primary residence for 2 years before sale would have only 2/6 of the exclusion available — roughly $83,333 excluded instead of $250,000.
Converting a rental to primary residence before selling can reduce your tax bill meaningfully, but the math is complex and the recapture tax is unavoidable. Run the numbers with a CPA before counting on the exclusion.
Four Strategies to Reduce or Defer the Tax Bill
-
1031 Exchange — Defer Indefinitely
Under IRC §1031, if you reinvest the proceeds from a rental sale into a “like-kind” replacement property within 180 days (45-day identification window), you defer the entire gain — including recapture — to the replacement property. You can chain 1031 exchanges throughout your investment lifetime. At death, heirs receive a stepped-up basis and the deferred tax disappears permanently. Requires a qualified intermediary (QI); you cannot touch the proceeds directly.
-
Installment Sale — Spread the Tax Over Time
Instead of receiving the full sale price at closing, you carry back a note and receive payments over several years (IRC §453). Each payment is partially gain (taxed) and partially return of basis (untaxed). Spreading the gain over multiple years can keep each year’s income in a lower bracket. Important caveat: depreciation recapture must be reported in full in the year of sale regardless of how payments are structured — you cannot installment-sell your way out of recapture.
-
Die Holding It — Stepped-Up Basis at Death
This is not macabre — it is estate planning. When investment property is inherited, the heir receives a stepped-up basis equal to fair market value at the date of death. All accumulated depreciation and the deferred recapture are permanently eliminated. The heir can sell immediately at FMV with zero federal capital gains tax (though a fresh depreciation schedule begins on the stepped-up basis). For investors with long-held, highly appreciated properties, this is often the highest-value strategy.
-
Qualified Opportunity Zone — Defer + Partial Exclusion
If you reinvest realized gains into a Qualified Opportunity Zone Fund within 180 days of sale, you defer the original gain until December 31, 2026 (or when you sell the QOZ investment, whichever comes first). Gains on the QOZ investment itself are excluded if you hold for at least 10 years. QOZ funds vary widely in quality and liquidity — due diligence on the fund is as important as the tax benefit. Not appropriate for investors who need liquidity from the sale.
Decision Framework: What to Do Before You Sell
| Situation | Priority Action |
|---|---|
| Hold period < 12 months | Wait if possible — one year of holding is worth thousands in tax savings |
| Never claimed depreciation or unsure of history | Pull your tax returns; consult CPA before listing. Recapture is owed regardless. |
| Planning to reinvest in another property | Contact a QI now — the 45-day ID window starts at closing, not when you think about it |
| California or NY investor, large gain | Model state tax — combined rates can exceed 25%; 1031 or QOZ math changes significantly |
| MAGI near $200K/$250K threshold | Model whether sale pushes you into NIIT range; consider partial sale or installment structure |
| Property in estate plan | Compare sell-now tax cost vs. stepped-up basis value at death before deciding |
Track Every Number Before You Sell
Accumulated depreciation, capital improvements, net operating income — the adjusted basis calculation relies on records you need to have been keeping for years. The Rental Cash Flow Tracker Pro includes a dedicated Schedule E worksheet that tracks all income, expenses, and depreciation year-by-year so the adjusted basis math is ready when you need it.
Rental Tracker Pro — $29 Expense Tracker Lite — $9