Most people asking about capital gains when selling a house are relieved to learn the answer: if the home was a primary residence for at least two of the last five years, up to $250,000 of gain is excluded from tax for a single filer, or $500,000 for a married couple filing jointly. For the majority of Louisville homeowners, that exclusion covers the entire gain and no tax is owed at all.
The Two-Out-of-Five-Year Test
Ownership and use don't need to be continuous or overlap perfectly, but the owner must have both owned and lived in the home as a primary residence for a combined 24 months out of the 60 months before the sale. Someone who bought a house in the Highlands, rented it out for two years, then moved in and lived there for three, still qualifies, since the two years of personal use fall within the five-year window even though they weren't the most recent two years.
When the Exclusion Doesn't Cover Everything
A gain above the $250,000 or $500,000 threshold is taxed at ordinary long-term capital gains rates on the excess amount. Louisville home prices rarely push a typical sale above those thresholds, but a long-held property with significant appreciation, or one where substantial improvements weren't tracked to raise the basis, can exceed the exclusion. Any period of nonqualified use, such as renting the home out before moving in as a primary residence, can also reduce how much of the gain is excludable.
Selling More Often Than the Rules Allow
The exclusion generally can't be claimed more than once every two years. An owner who sells a second home within that window, after having claimed the exclusion on a prior sale, typically owes tax on the full gain from the second sale, with narrow exceptions for job changes, health issues, or other unforeseen circumstances that the IRS recognizes.
What to Track Before Listing
The purchase price, any capital improvements such as a kitchen remodel or a new roof, and the dates of occupancy all matter for calculating the eventual gain and confirming eligibility. Sellers who keep this documentation organized before listing avoid a scramble to reconstruct it after an offer is already accepted.
Divorce, Death, and Other Life Changes
A divorcing couple who transfers a home between spouses as part of a settlement generally doesn't trigger tax at the transfer itself, and the receiving spouse typically inherits the other's ownership and use history for purposes of later qualifying for the exclusion. A surviving spouse selling a home after a partner's death gets a special allowance to claim the full $500,000 exclusion, rather than being limited to the $250,000 single-filer amount, if the sale happens within two years of the death and the other requirements are met.
These situational rules matter because the standard two-out-of-five-year framework doesn't always map cleanly onto a life event that forces a sale, and sellers navigating a divorce or the loss of a spouse are often surprised to learn how much flexibility the rules actually build in for exactly these circumstances.
Common 1031 Exchange Questions
Do I have to reinvest the proceeds from my home sale to avoid tax?
No. The Section 121 exclusion has no reinvestment requirement, unlike a 1031 exchange used for investment property. A qualifying homeowner can pocket the excluded gain and use it however they choose.
What if I only lived in the house for one year?
Falling short of the two-year use requirement generally means the full exclusion isn't available, though a partial exclusion may apply if the sale was due to a job change, health condition, or other qualifying unforeseen circumstance recognized under the rules.
Does selling an inherited house qualify for this exclusion?
Only if the heir personally used the home as a primary residence for the required period after inheriting it. An heir who sells shortly after inheriting, without living there, generally does not meet the ownership-and-use test for this particular exclusion.
Can married couples each claim their own exclusion on separate homes?
A married couple filing jointly can claim the combined $500,000 exclusion on one home if both spouses meet the use test, but each spouse generally needs to meet the ownership and use requirements independently for the full joint amount to apply.
Do I need to report the sale if the whole gain is excluded?
Not always. If a Form 1099-S wasn't issued and the entire gain qualifies for the exclusion, reporting isn't strictly required, though many sellers report it anyway to keep a clear record on file in case the IRS ever asks for documentation.




