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
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
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
- Publication IRS Pub. 946 (2025)
- 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
- Code I.R.C. § 469
- 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
- Code I.R.C. § 121
- 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
- Code I.R.C. § 121
- 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
- Code I.R.C. § 1031
- 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)).