
Capital Gains Tax on Rental Property: What Selling Actually Costs (2026)
Sam Tato · Landlord & Founder of Doortrackr
Published October 8, 2026·Last updated October 8, 2026·14 min read
Table of contents
- What actually counts as a "gain" when you sell a rental?
- What is depreciation recapture, and why does it hit at 25%?
- What are the long-term capital gains rates for 2026?
- Does the 3.8% net investment income tax apply?
- What would the tax actually look like on a real sale? (worked example)
- How can you defer or reduce the tax?
- What records do you need to prove your basis at sale?
- Is capital gains tax different on a rental property? Frequently asked questions
Quick answer: when you sell a rental property for more than your adjusted basis, the profit is taxed in up to three layers. The depreciation you claimed (or could have claimed) comes back as "unrecaptured Section 1250 gain" at a maximum rate of 25%. The remaining profit is a long-term capital gain at 0%, 15%, or 20% depending on your taxable income. And if your modified AGI clears $200,000 (single) or $250,000 (married filing jointly), the 3.8% net investment income tax stacks on top. The part that surprises most landlords is not the capital gain. It is the depreciation recapture, because it taxes money you already deducted years ago.
I learned this the way most small landlords do: not from a book, but from owning a rental long enough to realize that selling it is a completely different tax event than owning it. My first place was a duplex I house-hacked, bought for $134,000 with 5% down. I have not sold it. But the year I understood what selling it would actually cost me in tax was the year I stopped thinking of depreciation as a free lunch.
This is the guide I wish someone had handed me then. (The year-round side of this, tracking income and expenses so the records exist at sale, is in the guide to tracking rental income and expenses.) Every rule below links to the IRS source, because this is tax law and you should never take a blog's word for it, including this one.
What actually counts as a "gain" when you sell a rental?
The taxable gain is not your sale price minus your purchase price. It is your sale price minus your adjusted basis, and the difference between those two things is where landlords get surprised.
Per IRS Publication 527 and Publication 946, your adjusted basis starts as what you paid (purchase price plus capitalized closing costs like title insurance and transfer taxes), goes up by the cost of capital improvements (a new roof, an addition, a full kitchen renovation), and goes down by all the depreciation you claimed over the years. And here is the kicker: it goes down by depreciation "allowed or allowable," which means the IRS reduces your basis whether or not you actually claimed the deduction. Skipping depreciation on your Schedule E all those years does not save you at sale. It just means you never got the deduction and still owe the recapture.
So the formula is:
Gain = sale price (minus selling costs) minus (purchase price + capital improvements minus total depreciation)
Every dollar of depreciation you took along the way lowered your basis, which raises your gain at sale. That is the trade you made, usually without realizing it, every year the depreciation line saved you money on Schedule E.
What is depreciation recapture, and why does it hit at 25%?
This is the section that matters most, and the one every "capital gains explained" article buries.
All those years, depreciation was reducing your taxable rental income at your ordinary income rate (22%, 24%, whatever bracket you were in). When you sell, the IRS wants to settle up on the portion of your gain that exists only because you depreciated the building. That portion is called unrecaptured Section 1250 gain, and per IRS Topic 409 and the Schedule D instructions, it is taxed at a maximum rate of 25%: not your capital gains rate, and not quite your ordinary rate either, but its own special number.
The unrecaptured 1250 amount is generally the lesser of your total gain or the total depreciation you claimed. Read that again: if your gain is bigger than your depreciation (which it usually is on a property you held for years), then every dollar of depreciation you ever deducted gets taxed at up to 25% when you sell, before the rest of the profit gets the friendlier capital gains treatment.
A note on what this is not: for residential rental property depreciated under the standard 27.5-year straight-line method, there is generally no ordinary-income recapture of "excess" depreciation, because straight-line produces none. The 25% unrecaptured-1250 layer is the recapture that applies. (If you claimed accelerated depreciation on components, the analysis changes; see the Form 4797 instructions.)
This is also why the "just never claim depreciation" strategy fails. The IRS computes recapture on depreciation allowed or allowable. You cannot dodge the 25% layer by leaving the deduction unclaimed. You only lose the deduction. (The annual habit that makes all of this provable is in the landlord bookkeeping guide.)
What are the long-term capital gains rates for 2026?
Whatever gain is left after the depreciation-recapture layer is a long-term capital gain (assuming you owned the property more than a year), taxed at 0%, 15%, or 20% depending on your taxable income. Per the IRS's 2026 inflation adjustments, the brackets for tax year 2026 are:
| Filing status | 0% rate up to | 15% rate up to | 20% rate above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
| Head of household | $66,200 | $579,600 | $579,600 |
These are taxable income thresholds, and capital gains stack on top of your ordinary income. So your salary fills up the lower brackets first, and the gain piles on top. A landlord with $90,000 of W-2 income who sells with a $60,000 long-term gain (after the recapture layer) does not pay 0% because the gain alone is under the threshold; the gain above the line where salary plus gain crosses $98,900 (joint) gets taxed at 15%.
Does the 3.8% net investment income tax apply?
On top of everything above, if your modified adjusted gross income exceeds $200,000 (single or head of household), $250,000 (married filing jointly), or $125,000 (married filing separately), the net investment income tax adds 3.8% on the lesser of your net investment income or the amount your MAGI exceeds the threshold. Rental property sale gains count as net investment income per the Form 8960 instructions. These thresholds are not inflation-indexed, which means every year more sellers drift into them.
So the full stack on a rental sale can be: up to 25% on the depreciation-recapture layer, 0/15/20% on the remaining long-term gain, and 3.8% NIIT on top if your income clears the threshold. The worst-case federal rate on a high-income seller is 25% + 3.8% on the recapture portion and 20% + 3.8% on the rest, before state tax.
What would the tax actually look like on a real sale? (worked example)
Time to make this concrete. I will use my own first property's real purchase numbers, and clearly flag the parts I have to invent because I have not sold it.
Real numbers (my duplex, purchased years ago): purchase price $134,000; 5% down conventional loan; closing costs came to about $4,500 (roughly double the $2,000 I budgeted, which is its own lesson). Say I put about $20,000 of capital improvements into it over the years (a roof and a furnace, the kind of work that has to be capitalized, not expensed).
Invented for the example (I have not sold): say I sell it in 2026 for $220,000, pay $13,000 in agent commission and closing costs, and have claimed $30,000 of depreciation over the holding period.
Now the math:
- Amount realized: $220,000 minus $13,000 selling costs = $207,000
- Original basis: $134,000 + $4,500 closing + $20,000 improvements = $158,500
- Adjusted basis: $158,500 minus $30,000 depreciation = $128,500
- Total gain: $207,000 minus $128,500 = $78,500
Now the layers. The unrecaptured Section 1250 gain is the lesser of the gain or the depreciation, so the full $30,000 of depreciation comes back at a maximum of 25%. The remaining $48,500 is long-term capital gain.
If I file jointly and my household taxable income (including this gain) stays under $613,700, the layers are:
- Depreciation recapture: $30,000 at 25% = $7,500
- Remaining gain: $48,500 at 15% = $7,275
- NIIT: depends on MAGI; if the sale pushes us over $250,000, 3.8% applies to some or all of the $78,500. Worst case: $2,983
- Federal total: $14,775 without NIIT, up to $17,758 with it, plus state tax
On a $78,500 profit, that is roughly 19 to 23 cents on the dollar to the IRS. Not catastrophic, but nobody who sells a rental and expects "the 15% capital gains rate" is budgeting for the $7,500 recapture hit on money they deducted years ago and forgot about.
That is the point of the worked example. The gain is not one number at one rate. It is layers, and the recapture layer is the one that ambushes people.
How can you defer or reduce the tax?
Four legitimate levers, all with real rules and real trade-offs. None of them is a trick.
1. A 1031 like-kind exchange. Sell the rental and roll the proceeds into another investment property, and you can defer the entire gain (recapture included) into the replacement property's basis. The catch: it must be structured as an exchange, not a sale followed by a purchase, and since 2018 Section 1031 applies only to real property held for business or investment. You generally need a qualified intermediary, strict identification (45 days) and closing (180 days) windows, and any cash you take out ("boot") is taxable to that extent. The gain is deferred, not forgiven; it travels into the new property's basis and shows up when you eventually sell that one, unless you exchange again or hold until death (when heirs get a stepped-up basis). Reported on Form 8824.
2. An installment sale. If you carry the financing and the buyer pays you over multiple years, Section 453 lets you recognize the capital-gain portion as the principal comes in, spreading the tax across years and potentially keeping each year under the NIIT threshold or in a lower capital gains bracket. Important limit: the depreciation recapture is generally recognized in the year of sale, not spread out. So an installment sale spreads the 0/15/20% layer, not the 25% layer. Reported on Form 6252.
3. The primary-residence exclusion, if you lived there. If the property was ever your main home, Section 121 can exclude up to $250,000 (single) or $500,000 (joint) of gain, as long as you owned and lived in it as your main home for at least 2 of the 5 years before the sale. For a house-hacker this can be real money. But two limits matter for landlords: you generally cannot exclude the portion of the gain attributable to depreciation you claimed after May 6, 1997 (the recapture layer survives the exclusion), and periods of "nonqualified use" after 2008 can shrink the excludable share. If you lived in one unit of a multi-unit property and rented the others, the gain is allocated between the home portion and the rental portion. The details live in Publication 523 and they are genuinely intricate.
4. Timing. If your income varies year to year, selling in a low-income year can drop the gain into the 0% or 15% bracket and under the NIIT threshold. Selling in December versus January of a high-income year can move thousands of dollars. This is the only lever that costs nothing and requires no structure, just a calendar and an honest projection of your taxable income.
What does not work: not reporting the sale (the IRS gets the 1099-S), claiming the depreciation you skipped "doesn't count" (allowed-or-allowable says otherwise), or assuming the primary-residence exclusion wipes a decade of rental depreciation (it does not).
What records do you need to prove your basis at sale?
The whole calculation rests on your adjusted basis, and your adjusted basis rests on records you may have been keeping for decades. To defend the number, you need: the purchase closing statement (basis), records of every capital improvement with dates and costs (basis increases), and a complete depreciation history (basis decreases). If you capitalized a $10,000 roof in 2019 and cannot prove it in 2026, that basis increase is gone and your taxable gain just grew by $10,000.
This is the unglamorous argument for capturing receipts at the moment you spend the money, tagged to the property and the job. A capital improvement you cannot document is a deduction you lose twice: once when you never depreciated it, and again at sale when it cannot raise your basis. The IRS recordkeeping rules say to keep property records until the limitations period expires for the year you dispose of the property, which in practice means: for as long as you own it, plus years after. A shoebox does not survive that timeline. A system that files the receipt to the property and job in 30 seconds does. And if you want those expenses organized the way the IRS form actually wants them all year, the Schedule E expense categories guide maps every line.
Is capital gains tax different on a rental property? Frequently asked questions
How is capital gains tax calculated on a rental property sale?
Sale price minus selling costs, minus your adjusted basis. Adjusted basis is what you paid, plus capital improvements, minus all depreciation allowed or allowable. The resulting gain is split into unrecaptured Section 1250 gain (the depreciation part, taxed at up to 25%) and long-term capital gain (the rest, taxed at 0%, 15%, or 20%). The 3.8% net investment income tax can stack on top if your income clears the threshold.
What is the depreciation recapture rate on rental property in 2026?
The unrecaptured Section 1250 gain from depreciated real property is taxed at a maximum rate of 25%, per IRS Topic 409. It applies to the lesser of your total gain or the total depreciation you claimed (or were entitled to claim) over the holding period.
Do I have to pay capital gains if I lived in the property before renting it?
Possibly less. If you owned and lived in the home as your main residence for at least 2 of the 5 years before selling, Section 121 can exclude up to $250,000 (single) or $500,000 (joint) of the gain. But depreciation claimed after May 6, 1997 cannot be excluded, and post-2008 nonqualified-use periods can shrink the exclusion. See Publication 523.
Does a 1031 exchange avoid depreciation recapture?
It defers it, along with the rest of the gain, into the replacement property's basis. It does not eliminate it. When you eventually sell the replacement property without exchanging again, the deferred gain (including the recapture character) comes due. The exchange must meet the like-kind, timing, and qualified-intermediary rules and is reported on Form 8824.
What if I never claimed depreciation on my rental?
The IRS still reduces your basis by the depreciation that was "allowed or allowable," meaning the recapture tax applies as if you had claimed it, per Publication 527. You lose the past deductions and still owe the recapture. If this is you, talk to a CPA about Form 3115 to catch up the missed depreciation before you sell.
Is rental property sale income subject to the net investment income tax?
Yes, generally. Gain from selling rental property counts as net investment income, and the 3.8% NIIT applies if your MAGI exceeds $200,000 (single) or $250,000 (married filing jointly), per the Form 8960 instructions. The NIIT is on top of the regular capital gains and recapture taxes.
Tax disclosure: this article is general education, not tax advice, and your situation has facts (holding period, state, entity structure, improvement history, income) that change the answer. Every rule above links to the IRS source so you can verify it, and a CPA who can see your actual numbers is worth the fee in the year you sell. Figures verified against IRS publications and the 2026 inflation adjustments in October 2026.
Keep your expenses organized all year — not just at tax time.
Try Doortrackr free.
Sign up free