Most homeowners never think about capital gains tax until a house sells for well above what they paid, and by then the closing table is usually not the ideal place to start planning. The good news for a primary residence is that federal law already builds in a significant exclusion. The complications tend to show up around the edges: rental conversions, partial-year ownership, and mixed-use properties that do not fit neatly into the homeowner category.
The Section 121 Exclusion, Briefly
A homeowner who has owned and used the property as a primary residence for at least two of the five years before the sale can generally exclude a substantial portion of the gain from federal capital gains tax, with a higher exclusion amount available to married couples filing jointly. This exclusion can typically be used again for a future home sale, as long as the ownership and use tests are met again, so it is not a one-time benefit.
What Falls Outside the Exclusion
Gain above the exclusion amount is taxed at standard long-term or short-term capital gains rates depending on the holding period. A home that was rented out for part of its ownership, or that included a home office claimed for depreciation, may have part of its gain carved out from the exclusion and subjected to separate treatment, including depreciation recapture on any portion that was depreciated.
Missouri's Tax Treatment of Home Sale Gain
Any gain that is not excluded under Section 121 gets added to the seller's income and taxed under Missouri's graduated state brackets, the same way any other capital gain is treated at the state level. For most Missouri homeowners selling a primary residence, the federal exclusion covers the entire gain and there is nothing left for the state to tax, but sellers in fast-appreciating pockets of the St. Louis or Kansas City metros should still run the numbers rather than assume.
When a Former Home Becomes Investment Property
A house that was converted to a rental before selling loses eligibility for the full exclusion once it falls outside the two-of-five-year ownership and use window, and the portion of gain attributable to the rental period, along with any depreciation taken, is treated separately. Owners in this situation, common with a former St. Louis or Columbia home turned rental after a move, sometimes qualify for a 1031 exchange on the investment-use portion even though the property started life as a personal residence, since eligibility depends on how the property was used at the time of sale, not how it started out.
Documenting exactly when the switch from personal to rental use happened matters here. A closing date on a new home purchase, the date a property management agreement was signed, or the first month a rental listing went live all help establish where the personal-use period ends and the investment-use period begins. Missouri owners who blur that line, for instance by using the house occasionally after listing it as a rental, make the eventual allocation between excluded and taxable gain harder to support.
Getting the Numbers Reviewed Before Listing
Because the exclusion, depreciation recapture, and Missouri's state tax layer can all apply to a single sale in different proportions, running the actual math before a house is listed is worth more than doing it after an offer is already accepted. A CPA who reviews the ownership timeline, any rental history, and the state's graduated bracket exposure can flag whether a sale should close before or after year-end, or whether part of the gain deserves a closer look at 1031 eligibility rather than a straight taxable sale.
Common 1031 Exchange Questions
Do you need to reinvest the sale proceeds to qualify for the home sale exclusion?
No. Unlike a 1031 exchange, the Section 121 exclusion does not require reinvesting the proceeds into another home. It applies based on ownership and use of the property being sold.
Can the exclusion be used more than once in a lifetime?
Yes, it can generally be used again for a later home sale as long as the two-of-five-year ownership and use test is met again, and it has not been used for another sale within the preceding two years.
What happens if you rented out part of your house while living in the rest of it?
Gain attributable to a portion of the home used exclusively for rental or business purposes may not qualify for the full exclusion, and any depreciation claimed on that portion is generally subject to recapture. A CPA can walk through the specific allocation.
Does a short absence for work or medical reasons disqualify the exclusion?
The two-year use requirement does not have to be continuous, and short absences generally still count toward the total. Longer absences should be reviewed against the specific rules with a tax advisor.
If your house doesn't qualify as a primary residence, can you still defer the gain?
A 1031 exchange only applies to property held for investment or business use, not personal residences, so a true primary residence would not qualify. A former residence converted to a rental may qualify for the investment-use portion of its gain.

