Real Estate Tax Strategy

What Happens When You Sell a Rental Property?

March 2026

Selling a rental property is one of the more complex tax events an individual investor will face. Unlike selling a stock, where the gain is simply the difference between what you paid and what you received, rental property involves years of depreciation deductions that have been reducing your basis — and that history gets settled when you sell.

The good news: with some planning, particularly around the timing of the sale, investors have more control over the outcome than they often realize.

Step One: Calculating Your Gain

Your taxable gain on the sale of a rental property is not simply the difference between the sale price and what you originally paid. The calculation has a few components.

Start with your adjusted basis:

Your original purchase price, adjusted upward for capital improvements you made over the years (new roof, addition, remodel), and adjusted downward for all the depreciation you've taken — or were entitled to take — during the period of ownership.

Adjusted Basis = Purchase Price + Capital Improvements − Accumulated Depreciation

Then calculate your gain:

Realized Gain = Sale Price − Selling Costs − Adjusted Basis

Selling costs include real estate commissions, closing costs, title fees, and other expenses of the sale. These reduce your gain dollar for dollar.

A simple example:

Original purchase price$500,000
Capital improvements over 12 years$40,000
Accumulated depreciation (12 years)$196,364
Adjusted basis at sale$343,636
Sale price$750,000
Selling costs$45,000
Realized gain$361,364

That $361,364 doesn't all get taxed the same way. It gets divided into buckets — each taxed at a different rate.

The Three Tax Layers on a Rental Sale

Layer 1: Long-Term Capital Gain

The portion of your gain that represents true appreciation — the property going up in value above what you originally paid — is taxed as a long-term capital gain, assuming you held the property for more than a year. Depending on your taxable income, the rate is 0%, 15%, or 20%.

Most investors selling a meaningful rental property will be in the 15% or 20% bracket for this portion.

Layer 2: Unrecaptured Section 1250 Gain (Maximum 25%)

Here's where many investors are surprised. The IRS considers the depreciation you've taken over the years to be a reduction of your cost that needs to be "recaptured" when you sell. For the structural portion of your building — the 27.5-year depreciation — this recapture is classified as unrecaptured Section 1250 gain and is taxed at a maximum rate of 25%.

This is not ordinary income. It's a special capital gain category that sits between the preferential long-term capital gain rate and ordinary income rates. It's also not optional — even investors who didn't take their depreciation correctly in prior years are treated as if they did, which means all the recapture liability without any of the earlier deductions.

In the example above, the $196,364 in accumulated depreciation would be recaptured at up to 25%, generating a potential tax liability of approximately $49,091 on that portion alone.

Layer 3: Section 1245 Recapture (Ordinary Income Rates)

This layer affects investors who have done a cost segregation study. When you accelerate depreciation on personal property components — appliances, fixtures, carpeting, certain electrical and plumbing systems — those are classified as Section 1245 property. When sold, the recapture on Section 1245 property is taxed at ordinary income rates, not the capped 25% rate that applies to the building.

If you've taken $80,000 in accelerated depreciation on cost-segregated components and you're in the 37% bracket, that recapture costs $29,600 — significantly more than the 25% recapture on the same amount of structural depreciation would.

This doesn't mean cost segregation was a bad idea. You still accelerated large deductions into earlier, high-income years where they were worth 37 cents on the dollar. The recapture at sale, also at 37%, is a wash on the rate — but the time value of money still favors having taken the deductions earlier. The point is simply that the two types of recapture are taxed differently, and investors who've done cost segregation need to account for both.

Layer 4 (For High-Income Investors): Net Investment Income Tax

If your modified AGI 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 your excess income above those thresholds.

Rental income — and gains on the sale of rental property — generally count as net investment income. For an investor in this position selling a property with a $361,364 gain, NIIT could add another $13,700 or more to the total tax bill.

NIIT does not apply if the gain is from property used in a trade or business in which you materially participate. Investors who qualify as real estate professionals and materially participate in their rentals may be able to avoid NIIT on the gain.

Putting It Together: A Full Tax Picture

Using the example from above — $361,364 in total gain, investor in the 20% long-term capital gains bracket and 37% ordinary income bracket — here's how the layers stack:

ComponentAmountRateTax
Section 1245 recapture (cost seg)$45,00037% ordinary$16,650
Unrecaptured §1250 gain$151,36425%$37,841
Long-term capital gain$165,00020%$33,000
Net Investment Income Tax$361,3643.8%$13,732
Total estimated federal tax$101,223

That's a substantial tax event — roughly 28% of the total gain going to federal taxes. State taxes, where applicable, are additional.

This is exactly why investors with significant rental holdings spend time thinking about when to sell, not just whether to sell.

Suspended Passive Losses: A Hidden Benefit at Sale

One thing that works in your favor when you sell: if you've accumulated suspended passive losses from prior years — losses that couldn't be used because of the passive activity rules and your income level — those losses are fully released in the year of sale.

All of those deferred losses from prior years where your depreciation exceeded your rental income but you couldn't use them against ordinary income? They become available in the year of sale, offsetting the gain.

This is one of the most overlooked aspects of rental property disposition. If you've been a high-income passive investor watching losses accumulate on paper for years, the sale is the year you finally get to use them. A good tax professional will model this out and factor it into the overall gain calculation before you decide on timing.

Timing the Sale Strategically

The total tax owed on a rental sale is a function of your income in the year of the sale. That creates real leverage for investors who have flexibility over when they transact.

Low-Income Years Are Worth Waiting For

The long-term capital gain rate drops from 20% to 15% once you fall below the 20% threshold (approximately $583,750 for married filers in 2024). The unrecaptured Section 1250 rate is capped at 25% but is applied against your tax bracket — if your ordinary income is low enough, the effective rate may be lower. Section 1245 recapture taxed at ordinary rates directly benefits from a year with lower income.

Common low-income years where timing a sale makes sense:

  • The year before a major income increase — if you know you're getting a large promotion, bonus, or business payout next year, selling this year keeps the gain in a lower bracket
  • Early retirement — the gap between leaving a high-income career and taking Social Security or required minimum distributions is often the lowest-income window of a person's adult life
  • A business down year — self-employed investors whose business income varies significantly have natural low-income years that may present windows
  • After a major loss event — a business loss, large Section 179 deduction, or other significant deduction in a given year creates capacity to absorb capital gain

Pairing the Sale with Large Deductions

If you have other significant deductions in a given year — a charitable contribution, a business loss, a large retirement contribution — those deductions reduce your ordinary income, which in turn affects the rate at which Section 1245 recapture and potentially Section 1250 recapture are taxed.

A year in which you're donating a large appreciated asset, for example, might be a natural year to also sell a rental property and let the charitable deduction soften the impact.

Installment Sales: Spreading the Gain Across Years

Rather than receiving the full sale price in one year, an installment sale allows you to collect proceeds over multiple years and recognize gain proportionally as payments arrive. This can spread the long-term capital gain portion across several tax years, potentially keeping you in a lower bracket in each one.

The important limitation: depreciation recapture — both Section 1245 and Section 1250 — must be recognized in the year of sale, regardless of when the payments are actually received. The installment sale defers the appreciation gain, not the recapture. For properties with large amounts of accumulated depreciation, this limits how much the installment sale actually helps, but it remains a useful tool for the appreciation portion.

Selling in a High-Deduction Year by Design

Some investors time capital improvement projects to create deductible expenses in the same year they plan to sell. Others contribute more aggressively to retirement plans in a planned sale year to offset ordinary income from recapture. These aren't aggressive strategies — they're the natural result of thinking about the sale as a tax event that can be prepared for, not just an accounting event to be reported after the fact.

What Doesn't Help: Misconceptions Worth Clearing Up

Buying another property doesn't defer the gain. Simply reinvesting the proceeds into a new rental property has no tax benefit on its own. The only way to defer the gain on a sale is through a properly structured 1031 like-kind exchange, which has strict timing and identification requirements that must be followed before the sale closes.

The primary residence exclusion usually doesn't apply. The Section 121 exclusion (up to $250,000/$500,000 of gain tax-free) applies to your primary residence. A rental property doesn't qualify — unless it was previously your primary residence and you meet specific use and timing requirements. Even then, the exclusion doesn't apply to depreciation recapture. If you lived in a property for two of the five years before sale, you may exclude some gain but not the recapture portion.

Holding the property longer doesn't reduce recapture. Some investors assume that holding a property for many years somehow reduces their recapture liability. It doesn't — accumulated depreciation grows every year you hold, which means the recapture balance increases, not decreases. The strategy that actually eliminates recapture is holding until death, at which point heirs receive a stepped-up basis and the entire history of depreciation is erased.

The Honest Bottom Line

Selling a rental property is rarely a clean event. The tax bill is almost always larger than investors expect the first time they go through it, because the cumulative effect of years of depreciation deductions — sitting quietly in the background, reducing basis — only becomes visible when you go to sell.

None of this means the depreciation wasn't worth taking. It was. The deductions had real value in the years they were claimed, and the present value of those savings almost always exceeds the eventual recapture cost. But understanding the full picture — what the sale will trigger, what rate each component is taxed at, and what timing levers are available — is the difference between selling reactively and selling strategically.

The right time to start thinking about the tax on a sale is at least a year before you plan to list, ideally earlier.


Planning to sell a rental property in the next year or two? Contact us — working through the numbers in advance gives you options that disappear once you close.