Tidal Offers
Answers · Landlords & Rentals

Do I owe capital gains if I sell a rental I used to live in?

Maybe not on most of it: if you owned the house and lived in it as your main home for at least 2 of the 5 years before the sale, the federal home sale exclusion of up to $250,000 of gain, or $500,000 for a married couple filing jointly, can still apply after you rent it out. The depreciation from the rental years is generally still taxable, and if you rented the house before you ever lived in it, part of the gain may not qualify (IRS Publication 523, for 2025 returns, checked October 17, 2026).

By Matthew Kane · NC Broker #297432

What the rule actually says

The exclusion comes from section 121 of the Internal Revenue Code, and the IRS explains it in Publication 523, Selling Your Home. To qualify for the full exclusion, you generally need to pass three tests on the date of closing (IRS Publication 523, for 2025 returns):

For a married couple filing jointly, only one spouse has to meet the ownership test, but each spouse must meet the residence test for the full $500,000 (IRS Publication 523). For landlords, the key is the 5-year window: it is measured backward from your closing date, so it moves forward every day you hold the house.

Lived there first, then rented it: the three-year window

A common path: you move for work or family and rent the house out instead of selling. The IRS says the rental time after your last day living there, inside the 5-year window, does not count against you as nonqualified use (IRS Publication 523, citing section 121(b)(5)(C)(ii)).

In practice, if you lived there at least two years before moving out, you generally have until about three years after your move-out date to close and still count 24 months of residence in the window. After that, the full exclusion generally no longer applies.

The IRS gives an example. Taylor buys a home for $400,000 in January 2020, lives in it three years, rents it out starting January 2023, and sells it for $600,000 in December 2024. Taylor deducted $27,000 of depreciation as a landlord. The total gain is $227,000. The $27,000 tied to depreciation cannot be excluded, and the remaining $200,000 is excluded (IRS Publication 523, Taylor example).

What is still taxed: depreciation from the rental years

Even when the exclusion applies, you cannot exclude the part of your gain equal to depreciation allowed or allowable after May 6, 1997 (IRS Publication 523). “Allowable” matters. If you rented the house and never claimed depreciation, the IRS still treats the depreciation you could have claimed as reducing your basis.

That piece is unrecaptured section 1250 gain, taxed at a maximum federal rate of 25% (IRS Topic No. 409, last updated September 24, 2026).

North Carolina starts its income tax from your federal adjusted gross income, so gain taxable on your federal return generally carries into your state return, at 3.99% for tax years after 2025 (NC Department of Revenue, checked October 17, 2026).

Rented it first, then moved in: part of the gain may not qualify

If the house was a rental after 2008 and then became your main home, those earlier years are generally nonqualified use, and the share of gain tied to them is not excludable (IRS Publication 523).

In the IRS example, Finley rents a house for two years before living in it for two, then sells a year after moving out. Of the $300,000 gain left after setting aside $20,000 of depreciation, 40%, or $120,000, is tied to the rental years and is taxable, and the depreciation is recaptured (IRS Publication 523, Finley example).

Exceptions worth asking about

First steps before you sign anything

  1. Write down the dates you moved in and moved out, and the date the first tenant moved in.
  2. Pull your past tax returns and find the depreciation on each year’s Schedule E.
  3. Count the 5-year window backward from the closing date you have in mind.
  4. Ask a CPA to estimate the federal and NC tax for two or three possible closing dates before you choose one.

Listing versus a cash offer: an honest comparison

The tax rules are the same whoever buys the house. If the house is in good shape and you have time before your window closes, listing it with an agent usually nets more, and a rental with a reliable tenant can also be listed to investors. Our page for tired landlords covers both paths, including when we are not the right buyer.

A cash sale trades some of that money for certainty, no repairs and a closing date you choose, which can matter when a tenant problem or a repair list makes listing harder. We can give you a written cash offer and an honest estimate of what listing would net, so your CPA can apply the tax math to each.

Frequently asked questions

Can I still get the $250,000 exclusion if my former home is rented out now?

Often yes. If you owned the house and lived in it as your main home for at least 24 months of the 5 years before the closing date, and did not use the exclusion on another home in the prior 2 years, the exclusion can still apply. Rental time after you moved out, inside that 5-year window, is not counted against you (IRS Publication 523, for 2025 returns).

Do I pay tax on the depreciation when I sell a house I used to live in?

Generally yes. You cannot exclude the part of your gain equal to depreciation allowed or allowable after May 6, 1997, even if you did not claim it. That amount is unrecaptured section 1250 gain, taxed at a maximum federal rate of 25% (IRS Publication 523; IRS Topic No. 409, updated September 24, 2026).

How long after I move out can I sell and still qualify?

If you lived in the house at least two years before moving out, you generally have until about three years after your move-out date to close and still count 24 months of residence in the 5-year window. Members of the uniformed services on qualified official extended duty may be able to suspend the window for up to 10 years (IRS Publication 523).

Does North Carolina tax the gain from selling a former home?

North Carolina starts its income tax from federal adjusted gross income, so gain that is taxable on your federal return generally carries into your state return, while gain excluded federally generally does not. The NC individual income tax rate is 3.99% for tax years after 2025 (NC Department of Revenue, checked October 17, 2026).

Questions about your situation? Call or text (910) 372-6720.

Sources: IRS Publication 523, Selling Your Home, for use in preparing 2025 returns, including the Taylor and Finley examples (irs.gov, checked October 17, 2026); IRS Topic No. 409, Capital Gains and Losses (irs.gov, last updated September 24, 2026, checked October 17, 2026); NC Department of Revenue, Tax Rate Schedules (ncdor.gov, checked October 17, 2026); NC Department of Revenue, Getting Started with Your State Income Taxes (ncdor.gov, checked October 17, 2026).

Matthew Kane, founder of Tidal Offers and Tidal Realty Partners

Matthew Kane

Founder, Tidal Offers & Tidal Realty Partners. United States Marine Corps veteran, former firefighter, and a licensed North Carolina broker (NC #297432). Over 12+ years, Matthew and his team, through our sister brokerage Tidal Realty Partners, have helped 1,000+ families and closed $650M+ in sales — as buyers when cash is the right answer, and as a full-service brokerage when it is not.

Tidal Offers buys homes directly. When we make a cash offer, we are the buyer, not your agent. Matthew Kane is a licensed North Carolina real estate broker (NC #297432). Nothing on this page is legal, tax, or financial advice; for your situation, talk with a North Carolina attorney, a CPA, or a HUD-approved housing counselor.

Ready for a real number?

Written, no-obligation cash offer in 24 hours — and an honest answer when listing would serve you better.

Scroll to Top