Most homeowners in North Carolina who sell a primary residence never owe a dollar of federal capital gains tax on the sale, because the Section 121 exclusion covers up to $250,000 of gain for a single filer and $500,000 for a married couple filing jointly. That fact leads a lot of sellers to assume selling a house is simply tax-free, full stop, which is true often enough to be dangerous when it isn't, because the exclusion has real conditions attached and doesn't cover every house sale.
The ownership and use test that actually determines eligibility
To claim the exclusion, the seller must have owned and used the property as a primary residence for at least two of the five years before the sale. Those two years don't need to be consecutive, and short absences, such as a temporary work assignment, generally don't break the test. A seller who owned a Raleigh home for six years but only lived in it for eighteen months before renting it out and later selling would not meet the use test and would not qualify for the full exclusion, regardless of how long the property was owned.
What happens once a house has been a rental at any point
A house that spent time as a rental before being sold as, or converted back into, a primary residence carries a wrinkle most sellers don't expect: any depreciation claimed during the rental period is not covered by the Section 121 exclusion and is recaptured separately at the time of sale, even if the gain itself is otherwise excluded. In addition, gain allocable to periods of "nonqualified use", generally time after 2008 when the property wasn't the seller's primary residence, may not qualify for the exclusion at all. This is a common situation for sellers across the Triangle and Charlotte metro who bought a starter home, moved out and rented it during a job relocation, then sold years later after moving back in or from another state.
Selling costs and improvements adjust the gain, not just the price
The taxable gain isn't simply sale price minus purchase price. Selling costs, including real estate commissions, transfer taxes, and closing fees, reduce the amount realized. Capital improvements made during ownership, a new roof, an addition, a major system replacement, increase the adjusted basis, which lowers the gain. Routine repairs and maintenance don't count toward basis the way capital improvements do, and keeping records of which is which over a long hold matters more than most sellers realize until they're sitting across from a CPA trying to reconstruct a decade of receipts.
When a house sale doesn't qualify for the exclusion at all
A second home, a vacation property, or a house that was never the seller's primary residence doesn't qualify for Section 121 regardless of how the sale is structured. In that situation, the sale is taxed as a standard capital gains event, and if the property was held for investment or business use, a 1031 exchange becomes a relevant option to defer the gain by rolling proceeds into a replacement investment property through a qualified intermediary, within the 45-day identification and 180-day closing windows. A primary residence, by contrast, is not eligible for 1031 treatment at all, since the exchange rules require investment or business-use property on both sides of the transaction.
- Confirm the two-year ownership and use test is actually met, not just the ownership length
- Check whether any portion of the holding period involved rental use or nonqualified use
- Gather records of capital improvements separately from routine repairs and maintenance
- Determine whether North Carolina's flat income tax rate applies to any gain above the federal exclusion
Common 1031 Exchange Questions
Do the two years of ownership and use need to be the two years right before the sale?
No. The two years can fall anywhere within the five years before the sale and don't need to be consecutive, which lets sellers who moved out temporarily still qualify as long as the total time meets the test.
Can a married couple always exclude $500,000 of gain?
Only if both spouses meet the use test and at least one meets the ownership test, and the couple files a joint return. A single filer, or a couple where only one spouse qualifies, is generally limited to the $250,000 exclusion.
Does depreciation recapture apply even if the overall gain is excluded under Section 121?
Yes. Depreciation claimed during any period the property was rented is recaptured separately and is not covered by the home-sale exclusion, even when the rest of the gain qualifies to be excluded.
Is a second home eligible for the primary residence exclusion?
No. A second home or vacation property that wasn't used as the seller's primary residence for the required period doesn't qualify for Section 121, and any gain is taxed as a standard capital gain.
Does North Carolina apply its own exclusion for a home sale, separate from the federal one?
No. North Carolina follows the federal exclusion for qualifying gain and taxes any remaining gain as ordinary income at the state's flat rate, without a separate state-level home-sale exclusion.




