Skip to content

General education, not advice for your situation.

Carry Forward Learning Search the site

Rental Property Taxes

Rental Property Taxes: selling a rental

Same facts. Pro adds the full authority stack under each answer.

How is my gain figured when I sell a rental?

Sale price, minus selling costs (commissions, closing costs), minus your adjusted basis. Adjusted basis is what you paid plus improvements, minus all the depreciation you took or were entitled to take. That last part is why a rental's taxable gain is usually bigger than people expect. It's reported on Form 4797 as a section 1231 sale.
Sources

Authority, strongest first

  1. Code I.R.C. § 1016
  2. Publication IRS Pub. 544 (2025)
  3. Publication IRS Pub. 527 (2025)
Pub. 544 ch. 3, Section 1231 Gains and Losses (real or depreciable property held longer than a year and used in a trade or business, which includes rental property for this purpose). IRC 1016(a)(2). Pub. 527 Introduction: see Pub. 544 for sales of rental property.

What's unrecaptured section 1250 gain?

The part of your gain that comes from depreciation on the building. Because residential rentals are depreciated straight line, there's normally no ordinary-income recapture on the building itself, but that depreciation-related gain is taxed at up to 25% instead of the lower long-term capital gain rates. Gain above it gets normal capital gain treatment.
Sources

Authority, strongest first

  1. Code I.R.C. § 1250
  2. Code I.R.C. § 1
  3. Publication IRS Pub. 946 (2025)
  4. Publication IRS Pub. 544 (2025)
IRC 1250(b)(1) (additional depreciation is only the excess over straight line for property held more than a year); IRC 1(h)(1)(E) and (h)(6) (unrecaptured section 1250 gain taxed at a maximum 25%). Pub. 946 ch. 4, Depreciation Recapture: 'There is no recapture for residential rental and nonresidential real property unless that property is qualified property for which you claimed a special depreciation allowance.' Pub. 544, Unrecaptured section 1250 gain.

What about the appliances and carpet I depreciated?

Those are personal property (section 1245 property), not part of the building. Depreciation on them is recaptured as ordinary income to the extent of gain when you sell. The same goes for anything you took bonus depreciation on. Allocate part of the sale price to them if they're still in service and have value.
Sources

Authority, strongest first

  1. Publication IRS Pub. 946 (2025)
  2. Publication IRS Pub. 544 (2025)
Pub. 544 ch. 3, Depreciation Recapture (section 1245 property: gain treated as ordinary income to the extent of depreciation). Pub. 946 ch. 4, Depreciation Recapture (no recapture for residential rental property unless a special depreciation allowance was claimed). Our reading is that most landlords' old appliances have little sale value, so the amount at stake is usually small; it isn't zero.

I have years of suspended passive losses. What happens when I sell?

Good news: a fully taxable sale of your whole interest to an unrelated buyer frees them. They first offset the gain and other passive income, and whatever's left can offset your wages and other income that year. A like-kind exchange or a sale to a relative doesn't release them the same way.
Sources

Authority, strongest first

  1. Code I.R.C. § 469
  2. Publication IRS Pub. 925 (2025)
IRC 469(g)(1)(A) (disposition of entire interest in a fully taxable transaction); 469(g)(1)(B) (related party). Pub. 925, Dispositions. In a 1031 exchange, losses stay suspended because the gain isn't all recognized (our reading of 469(g)(1)(A)'s 'all gain or loss realized ... is recognized' condition).

I lived in it, then rented it out. Can I still use the home sale exclusion?

Often, yes. If you owned it and lived in it as your main home for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain ($500,000 for most joint filers), and the rental period after you moved out doesn't reduce it. The catch: gain equal to depreciation after May 6, 1997 is always taxable. The clock matters: if you wait too long after moving out, the 2 years of living there slide out of the 5-year look-back period and the exclusion is gone. Our home sale hub has the full tests.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Publication IRS Pub. 523 (2025)
IRC 121(a) (ownership and use test), 121(b)(5)(C)(ii)(I) (period after the last use as a principal residence within the 5-year look-back period isn't nonqualified use) and 121(d)(6) (depreciation after May 6, 1997). Pub. 523 (2025), Business or Rental Use of Home, Taylor example (p. 17).

I rented it first and moved in later. Does that change things?

Yes. Rental years after January 1, 2009 that come before your last stretch of living there are 'nonqualified use,' and a matching share of the gain can't be excluded. For example, rent for two years, live there for four, and roughly a third of the gain (after taking out depreciation) stays taxable. See the worked example.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Publication IRS Pub. 523 (2025)
IRC 121(b)(5)(A)-(C) (gain allocated by the ratio of nonqualified use to total ownership; periods before January 1, 2009 ignored). Pub. 523 (2025), Nonqualified use of entire property, Finley example and Worksheet 3. Depreciation gain is taken out first and taxed separately (121(d)(6)).

Can I avoid tax by trading into another rental?

You can defer it with a like-kind exchange: sell through a qualified intermediary, identify replacement real estate within 45 days and close within 180 days (or by your return's due date, with extensions, if that comes first), and roll the gain (and your old basis) into the new property. It's deferral, not forgiveness, and the suspended passive losses on the old property stay suspended. Two things trip up landlords who once lived in the property or plan to move in later; see the situation answers.
Sources

Authority, strongest first

  1. Code I.R.C. § 1031
  2. Publication IRS Pub. 544 (2025)
IRC 1031(a)(1) (real property held for productive use or investment, exchanged solely for like-kind real property) and 1031(a)(3) (45-day identification; 180-day exchange period, or the due date of the transferor's return 'determined with regard to extension' if earlier). Pub. 544 ch. 1, Like-Kind Exchanges, and Form 8824. In a 1031 exchange, losses stay suspended because the gain isn't all recognized (our reading of 469(g)(1)(A)).

More questions

Where the numbers come from

Checked

Every figure above comes from the source listed here, with the date we checked it and the date it is due for a re-check.

  • Home sale: depreciation cutoff date
    IRC 121(d)(6) checked 2026-10-19, review by 2027-01-19
  • Home sale: nonqualified use start date
    IRC 121(b)(5)(C)(i) checked 2026-10-19, review by 2027-01-19
  • Home sale: ownership use test years
    IRC 121(a) checked 2026-10-19, review by 2027-01-19
  • Like kind 1031: deadlines days
    IRC 1031(a)(3) checked 2026-10-19, review by 2027-01-19
  • Capital gains: rates
    26 U.S.C. sec. 1(h) checked 2026-09-24, review by 2027-01-22
  • Home sale exclusion: maximum gain excluded
    26 U.S.C. sec. 121(b) checked 2026-09-24, review by 2027-01-22