Skip to content
Mapleton, Utah
Morkel Financial & Tax Services

Selling a Rental I Used to Live In: Two Forms, One Sale.

By Ewan Morkel, EA7 min read

Living in the house first and renting it after keeps the §121 exclusion intact. The depreciation is the one piece it can never reach, and on a $775,000 sale that split is $294,000 excluded against $28,636 taxed.

Contemporary residential home behind a green yard and trees

A couple moves out of their first house in September 2024, rents it to a tenant instead of selling, and lists it two years later with a December closing. Their question is the one everybody in that spot asks: is this a home sale or a rental sale? It's both, and the return has to say so in two different places. Selling a rental I used to live in is the one transaction where the same house gets the homeowner's break and the landlord's bill on a single Form 1040.

Two numbers, not one

The appreciation is excluded. The depreciation is not.

Run the arithmetic in the order the statute does and the sale splits into two clean pieces. The taxable piece is the depreciation, dollar for dollar. The excluded piece is everything else, which works out to the net sale proceeds minus what you originally paid plus improvements. That is a useful check on your own numbers: if the two pieces don't add back to the total gain, something in the basis is wrong.

The ownership and use test is what makes it work. You need two years of ownership and two years of use as your principal residence inside the five-year period ending on the date of sale, and those two years don't have to be the same two years or run consecutively. Move out in September 2024, close in December 2026, and you're looking back to December 2021 with roughly 33 months of residence inside the window. The clock is the thing to watch. Three years after the month you move out, the exclusion is gone, and the gap between closing inside the window and outside it is most of the tax. Rent out my house or sell it walks that deadline.

December 2026 sale: lived in from 2016 to 2024, rented from 2024 to 2026
Sale price
$775,000
Commission and closing costs
$48,000
Amount realized
$727,000
Purchase price plus improvements
$433,000
Depreciation allowed, 2024 through 2026
$28,636
Adjusted basis
$404,364
Total gain
$322,636
Excluded under §121
$294,000
Unrecaptured §1250 gain, taxed
$28,636
Tax due: 24% federal, 3.8% NIIT, 4.45% Utah
$9,235

Tax year 2026. Married filing jointly with $310,000 of wages and the $32,200 standard deduction under Rev. Proc. 2025-32, so the ordinary marginal rate is 24% and the unrecaptured §1250 gain is taxed below the 25% ceiling in §1(h)(1)(E). Building basis of $350,000 depreciated over 27.5 years under the mid-month convention: $3,714 for 2024 at the September rate of 1.061%, $12,726 for 2025, and $12,196 for the 11.5 months of 2026. Utah's flat rate is 4.45% for 2026 under S.B. 60.

The depreciation comes off whether you want it to or not. Your basis dropped by it under §1016(a)(2), so the gain is larger by exactly that amount, and §121(d)(6) says the exclusion cannot reach it.

The rule the generic pages run backwards

Selling a rental I used to live in does not trigger the nonqualified use haircut.

Most pages on this question warn that any rental use after 2008 prorates the exclusion. That rule is real. It is §121(b)(5), added by the Housing Assistance Tax Act of 2008, and Congress wrote it to stop people from buying a rental, living in it for two years, and walking off with the whole $500,000. It just doesn't point in this direction.

Read the exception. §121(b)(5)(C)(ii)(I) says a period of nonqualified use does not include any portion of the five-year period that falls after the last date the property was used as the principal residence. Rent first and move in later, and the rental months count against you. Live there first and rent it after, and they don't, as long as the sale still clears the two-of-five test. The order of operations decides it. Converting a rental to a primary residence is the same statute pointed the other way, and the answer there is much worse.

On the return

Two forms, one sale.

This is where the returns I see in second-opinion reviews go sideways, because the forms don't look like what happened. The sale starts on Form 4797, not Schedule D, and the exclusion shows up as a subtraction several lines later.

  1. 01Form 4797, Part III, lines 19 through 24: report the full $322,636 gain. The instructions are explicit that you do not take the §121 exclusion into account when figuring the gain on line 24.
  2. 02Line 26: ordinary §1250 recapture is $0. Residential rental placed in service after 1986 is depreciated straight-line, so there is no additional depreciation under §1250(b)(1) to pull back at ordinary rates. The entire $28,636 is unrecaptured §1250 gain instead.
  3. 03Form 4797, Part I, line 2: write "Section 121 exclusion" on the description line and enter $294,000 as a loss in column (g). That is the instruction word for word.
  4. 04What survives, $28,636, carries through Part I to Schedule D and onto the Unrecaptured Section 1250 Gain Worksheet, where §1(h)(1)(E) caps the rate at 25% or your ordinary rate, whichever is lower.
  5. 05Nothing goes on Form 8949 with code H. That code is for a house that was still a home at the time of sale. This one was a rental.

The title company files a Form 1099-S reporting the gross proceeds, so the IRS has the $775,000 whether or not the return says anything. A return showing no disposition against a 1099-S is how a CP2000 starts.

The $68,355 line

What a rental disposition screen does to this return.

The expensive mistake here is not the one people worry about. It isn't over-claiming the exclusion. It is entering the sale in the rental section of the software, answering every question about accumulated depreciation correctly, and never being asked whether anyone lived there. The software has no reason to ask. As far as it knows, the property's life started in 2024.

The same closing with the §121 exclusion left off
Gain reported as rental gain
$322,636
Federal tax on $28,636 of unrecaptured §1250 gain at 24%
$6,873
Federal tax on $294,000 of long-term gain at 15%
$44,100
Net investment income tax at 3.8%
$12,260
Utah at 4.45%
$14,357
Total tax
$77,590
Cost of leaving the exclusion off the return
$68,355

Tax year 2026, same facts as above. Taxable income of $600,436 keeps the whole long-term gain inside the 15% bracket, which runs to $613,700 for joint filers in 2026 under Rev. Proc. 2025-32. The net investment income tax under §1411 applies to the lesser of net investment income or the excess of modified AGI over $250,000, which here is the full gain. Gain properly excluded under §121 never enters gross income, so it is not net investment income either.

In second-opinion reviews I see the mechanical version of this constantly: depreciation sitting on the wrong line, two rentals crammed onto one form, methods that change from year to year. Most of that is not worth amending. This is. A missed §121 exclusion on a sale this size is the difference between a $9,235 bill and a $77,590 one, and an amended return generally has three years from the filing date to fix it.

Two things ride along with the sale and are worth checking before you sign anything. Every suspended passive loss from the rental years releases in full under §469(g)(1) when you dispose of the entire interest in a fully taxable sale to an unrelated buyer, which is often worth thousands against ordinary income in the year of sale. And if you never claimed depreciation while the house was rented, you still owe tax on it: §1250(b)(3) defines depreciation adjustments as the amounts allowed or allowable, so skipping the deduction costs you the deduction and not the tax. Catching up missed depreciation covers the Form 3115 fix, which has to happen before the closing to do any good.

Frequently asked

Quick answers on this topic.

Do I lose the home sale exclusion if I rented the house out for three years?

Not if you close in time. IRC §121 requires two years of ownership and two years of use as your principal residence within the five years ending on the sale date, so renting for up to three years after you move out still leaves two qualifying years inside the window. Day one of year four is the cliff. The rental months themselves are not nonqualified use, because §121(b)(5)(C)(ii)(I) excludes any part of the five-year period that comes after the last date the property was your principal residence.

Do I owe depreciation recapture if I never claimed depreciation on the rental?

Yes. §1250(b)(3) defines the depreciation adjustments as the amounts allowed or allowable, and §1016(a)(2) reduces your basis by the allowable amount whether or not you deducted it. Skipping the deduction costs you the deduction and not the tax. If the rental is still in service, Form 3115 with a §481(a) adjustment catches up the missed years in one return, but it has to be filed before you sell.

Will claiming the §121 exclusion on a rental sale trigger an audit?

No. Form 4797 has a designated place for it: the instructions tell you to enter "Section 121 exclusion" on Part I, line 2 and show the amount as a loss in column (g). That is the IRS's own mechanism for exactly this fact pattern. What draws a notice is the opposite error, a Form 1099-S from the title company with no matching disposition anywhere on the return, which is a routine CP2000 trigger.

What happens to the suspended passive losses from the rental years?

They release. §469(g)(1) frees the entire suspended loss from the activity when you dispose of your whole interest in a fully taxable transaction to an unrelated party, and the freed losses are deductible against any income, not just passive income. A sale to a related party or a 1031 exchange does not qualify, so the losses stay suspended in those cases.

Should I do a 1031 exchange instead of using the §121 exclusion?

Usually not, when the exclusion is still available. §121 erases the tax on the appreciation permanently, while §1031 only defers it and locks the proceeds into replacement real estate through a qualified intermediary. A 1031 exchange can defer the unrecaptured §1250 gain that §121 cannot touch, which on this sale is $28,636 of gain and about $9,235 of tax. That is rarely enough to justify buying a property you did not otherwise want.

Real estate tax planning

Modeling the after-tax outcome before you buy.

If a cost segregation study or a 1031 exchange is on your radar, the most valuable conversation is the one before the closing. We model the numbers, coordinate the cost seg, and file the elections, so the strategy survives the IRS, not just the spreadsheet.

More from the journal