Retirement & Tax Planning Answers

What Happens to My Taxes When I Sell a Rental Property or Short-Term Rental in Retirement?

Reviewed by Raman Singh, CFP® · Enrolled AgentUpdated
Tax Planning

Quick answer

Depreciation you took (or were allowed to take) on a rental is not forgiven: on a sale, that portion of the gain is taxed at up to 25% federally, the rest is long-term capital gain, and a large gain can also trigger the 3.8% Net Investment Income Tax and higher Medicare premiums two years later. Rental taxation is specialist territory, so have a CPA or EA run your actual numbers before you list the property or sign a cost segregation engagement.

How to prepare to sell a rental or short-term rental

A checklist to work through with a CPA or EA before you list the property or sign a tax-strategy engagement.

  1. 1

    Gather basis and depreciation records

    Collect the closing statement, improvement receipts, and every depreciation schedule since purchase. Separate land from building and confirm what depreciation was actually claimed.

  2. 2

    Estimate the sale price and selling costs

    Use a broker opinion of value and realistic selling costs to estimate the amount realized. Round figures are fine at this stage.

  3. 3

    Compute the gain in three pieces

    Split the gain into unrecaptured Section 1250 gain (up to 25%), any Section 1245 (and, for land improvements, Section 1250) recapture from a cost segregation study, and the remaining long-term capital gain.

  4. 4

    Check passive loss carryforwards

    Find Form 8582 and any suspended losses. Ask your preparer how they will be used in the sale year.

  5. 5

    Confirm the activity's classification

    For a short-term rental, calculate the average stay for the property and review your hours log against the material participation tests. For long-term rentals, confirm the passive treatment.

  6. 6

    Stack the sale on your other income

    Add your expected IRA distributions, pension, Social Security, and any conversions. Test NIIT, the 2026 capital gain brackets, and IRMAA tiers on the combined MAGI.

  7. 7

    Compare exit options

    Compare a taxable sale, a 1031 exchange, a sale over several years where permitted, and holding for a step-up.

  8. 8

    Check coverage and state tax

    If anyone is under 65, test the marketplace subsidy impact. Ask your preparer how Arizona will treat the gain on your return.

  9. 9

    Decide before you sign anything

    Make the sale, exchange, or tax-strategy decision only after the projected tax is written down and your CPA or EA has signed off on the positions taken.

How a Rental Sale Is Taxed, Piece by Piece

Depreciation is a deferral, not an elimination. A residential rental building is generally depreciated over 27.5 years using the straight-line method (IRS Publication 527), with a mid-month convention in the first year, and the depreciable amount generally excludes land. Each year's deduction lowers your taxable rental income, and depreciation generally lowers your adjusted basis. When you sell, the gain is the amount realized minus that lower adjusted basis, so the depreciation comes back as taxable gain. The part of the gain tied to straight-line depreciation on real property is called unrecaptured Section 1250 gain, and it is taxed at a maximum federal rate of 25% (IRC Section 1(h)). The rest of the gain is long-term capital gain at 0%, 15%, or 20%. In 2026, the 15% rate runs up to $613,700 of taxable income for married couples filing jointly, and 20% applies above that (IRS Rev. Proc. 2025-32).

Passive activity rules decide whether rental losses were usable while you owned the property. Rental real estate is generally passive. Losses beyond passive income are suspended and carried forward on Form 8582. A $25,000 allowance for rental losses exists for owners who actively participate, but it shrinks by 50 cents for each dollar of modified adjusted gross income above $100,000 and is gone at $150,000 (IRC Section 469(i)). Many pre-retirees with high wages never used the allowance, so they arrive at retirement with suspended losses on the books. A CPA can tell you how those losses are released when the property is sold in a fully taxable sale, and that answer can change how much a sale year costs.

Short-term rentals follow a different path. Under Treasury Regulation 1.469-1T(e)(3), an activity where the average customer stay is seven days or less is not treated as a rental activity for the passive loss rules. That does not make the losses deductible on its own. The owner must still materially participate, and the usual tests are more than 500 hours in the activity during the year, or more than 100 hours and not less than any other individual's hours, including cleaners, managers, contractors and anyone else who works on the property. Hours from a paid manager count against you in that comparison. The average is generally total rental days divided by the number of stays, so a few long stays can push an owner over seven days. Hours logs matter in an audit. Whether short-term rental hours count toward the separate real estate professional test is contested, so a specialist should review the position.

Cost segregation moves depreciation earlier and the bill later. A study reclassifies parts of a building into 5-, 7-, and 15-year property, which front-loads deductions (IRS Cost Segregation Audit Techniques Guide, Publication 5653). The tradeoff is on the exit. The 5- and 7-year components are generally Section 1245 property, so gain up to the depreciation taken is generally taxed as ordinary income rather than at the 25% maximum that applies to the building itself. Reclassified 15-year land improvements follow different recapture rules, so the split needs a specialist. A cost segregation pitch that talks only about this year's deduction is leaving out the recapture side. For a retiree who plans to sell within a few years, or whose deductions would be suspended under the passive rules anyway, the study may add cost without adding a usable benefit.

Sale-year income stacks on everything else. The Net Investment Income Tax is 3.8% of the lesser of net investment income or the amount by which modified adjusted gross income exceeds $250,000 for married couples filing jointly or $200,000 for single filers, and those thresholds are not indexed for inflation (IRC Section 1411). Net gain on a rental is generally net investment income unless the activity qualifies as a nonpassive trade or business, and that call belongs to your preparer. The same MAGI also drives Medicare IRMAA surcharges two years later. In the illustration below, a one-year gain pushes a couple into the second-highest 2026 IRMAA tier. Before age 65, a large gain can also remove premium tax credits for marketplace coverage. Two ways to avoid recognizing the gain are a 1031 exchange, which defers it, and holding the property until death, because a step-up in basis under IRC Section 1014 can eliminate the gain and the recapture for heirs.

What to Do Before You Sell or Sign a Tax Strategy Engagement

Start with the number, not the pitch. Pull your purchase closing statement, every year of depreciation schedules, any suspended passive losses, and an honest estimate of what the property would net after selling costs. Then have a CPA or EA run the sale as a stand-alone tax year on top of your expected pension, IRA, and Social Security income. The illustration here uses round numbers on purpose. Your numbers will differ with your basis, your holding period, how much depreciation you actually claimed, and your other income, so treat the example as a way to see which pieces move, not as a forecast.

Match the exit to the goal. If the goal is to stop being a landlord and you do not need the cash, the choices include selling and paying the tax, a 1031 exchange, selling over several tax years where the deal allows installments, or holding until death for the step-up. Each has costs and constraints. A multi-year projection can show how a sale year interacts with IRA withdrawals, Roth conversions, Social Security taxation, IRMAA, and the 2026 marketplace subsidy rules, which is hard to see from a single return.

Treat any short-term rental or cost segregation strategy as a position that needs documentation. Keep a contemporaneous log of your hours and what you did, track the average stay, and ask the preparer in writing how the activity will be treated at sale. This article is general education and not tax advice. Rental taxation has many exceptions, and a specialist should confirm every rule against your facts before you act.

Common Mistakes

  • Assuming depreciation is a permanent tax break. It lowers basis, and the amount taken (or allowable) returns as gain at up to 25% on a sale.
  • Buying a cost segregation study without modeling the sale. Faster deductions can create ordinary income recapture later and may be suspended under the passive rules in the meantime.
  • Calling a rental a short-term rental without checking the average stay and the hours. Both the seven-day average and material participation have to be supported by records.
  • Looking only at federal income tax on the sale. The 3.8% NIIT, Arizona income tax, IRMAA two years later, and marketplace subsidies before 65 all react to the same gain.
  • Selling in a year with other income spikes, such as a large Roth conversion or an RSU vest, without checking how they stack.

How the Pieces of a Rental Sale Are Taxed

Federal treatment of the main components of gain on a residential rental. Short-term rental status changes the passive loss rules while you own the property, not the sale math.

PieceFederal treatmentRate
Straight-line depreciation on the buildingUnrecaptured Section 1250 gainOrdinary rates, maximum 25%
Depreciation on cost segregation components (5- and 7-year personal property)Generally Section 1245 recaptureOrdinary income rates
Appreciation above original costLong-term capital gain0%, 15%, or 20% (2026)
Net investment income above NIIT thresholdNet Investment Income Tax3.8% over $250,000 MFJ or $200,000 single, not indexed
Property held until deathBasis generally resets under IRC Section 1014Gain and recapture generally eliminated for heirs

Source: IRC Section 1(h); IRC Section 1411; IRS Rev. Proc. 2025-32 for 2026 capital gain brackets · Verified

Illustrative Sale: A Married Couple Sells a Rental After 20 Years (2026)

Illustrative composite household, not a real client. Purchased for $400,000 ($100,000 land, $300,000 building), depreciated straight-line over 27.5 years for 20 years (simplified, no mid-month adjustment; a mid-month first-year convention would lower the figures slightly), sold for $850,000 with 6% selling costs, married filing jointly with $60,000 of other taxable income. That income plus the $32,200 standard deduction is about $92,200 of AGI before the gain, so MAGI is about $709,382 after the $617,182 gain. Results are rounded and are not a projection.

ItemAmount
Depreciation per year ($300,000 / 27.5)$10,909
Accumulated depreciation after 20 years$218,182
Adjusted basis ($400,000 minus depreciation)$181,818
Amount realized ($850,000 minus $51,000 selling costs)$799,000
Total gain$617,182
Unrecaptured Section 1250 gain (taxed at ordinary rates up to 25%)$218,182
Remaining long-term capital gain$399,000
Federal tax on 1250 gain (stacked on $60,000 other income)$45,256
Federal tax on capital gain ($335,518 at 15%, $63,482 at 20%)$63,024
NIIT (MAGI about $709,382, 3.8% of $459,382 over $250,000)$17,457
Total federal tax on the sale$125,736 (about 20.4% of the gain)
For comparison: tax benefit from 20 years of depreciation at a 22% rateAbout $48,000
Medicare IRMAA proxy: 2026 Tier 4 (second-highest) Part B and Part D surcharges for two people, per yearAbout $12,710 (2026 CMS premiums used as a stand-in; actual thresholds apply two years later)

Source: Illustrative calculation using 2026 married filing jointly brackets (IRS Rev. Proc. 2025-32) and the NIIT formula in IRC Section 1411 · Verified

Sources

Authoritative references that back the claims on this page.

Continue exploring

Deeper resources on this topic: guides, calculators, and the planning process.

Run the numbers yourself

Free tools, no login required. Results delivered to your inbox.

Related Questions

Need a coordinated retirement tax strategy?

If you own rentals and a cost segregation pitch or a sale is on your mind, the time to map the tax is before you list or sign. If you want to talk through how this applies to your situation: Schedule a Strategic Fit Interview.