The tax on selling a house in the Detroit area depends heavily on one question first: was this the seller's primary residence, a rental, or a property that was both at different points. That single fact determines whether the Section 121 exclusion applies at all, and it changes the entire rest of the calculation, so it is worth answering honestly before assuming a sale is tax-free or assuming it is fully taxable. A surprising number of sellers guess wrong in one direction or the other, usually because they are thinking about how the house feels to them rather than how the IRS classifies the years of actual use.
If the House Was a Primary Residence
An owner who lived in the house as a primary residence for at least two of the five years before the sale can generally exclude up to $250,000 of gain, or $500,000 filing jointly, under Section 121. Most sellers in Ferndale, Royal Oak, or Birmingham selling a house they have lived in the whole time they owned it fall comfortably under this exclusion and owe little or nothing in capital gains tax on the sale.
If the House Was Ever a Rental
A house that was rented out for a period, even if it later became the owner's primary residence, generally has the exclusion reduced for the nonqualified-use period tied to the rental years, and any depreciation claimed during the rental period is recaptured separately regardless of the exclusion. This is the scenario that trips up sellers who assume moving back in for two years before selling wipes the slate clean; the rental history still matters to the math. Pulling the years the house was reported as a rental on prior tax returns is the first step toward getting the calculation right, rather than relying on memory of when the tenants moved out.
If the House Was Never Lived In by the Owner
A house purchased purely as a rental or held vacant for resale does not qualify for the Section 121 exclusion at all, and the full gain, along with any depreciation recapture, is subject to capital gains tax in the year of sale unless the owner takes a deliberate step to defer it. This is the category where a 1031 exchange becomes relevant, since the property qualifies as investment or business real property rather than a personal residence.
Deferral for the Investment Side of a Sale
When a house does not qualify for the primary-residence exclusion, a 1031 exchange can defer the capital gain, and any recapture, by moving the proceeds into replacement investment property through a qualified intermediary under IRS timing rules. The gain is not forgiven, only postponed and carried into the new property's basis, and it is worth weighing against simply paying the tax if the owner wants out of real estate rather than into another building.
Getting the Facts Straight Before Listing
The ownership and use history, any period the house was rented, and the depreciation schedule if it was, all need to be pulled together before listing so a CPA can say with confidence which category the sale falls into. Sellers who wait until after an offer is accepted to sort this out often lose the option to set up an exchange in time, since the clock for identification starts the day the sale closes. A qualified intermediary has to be engaged before that closing happens, not after, which makes this a pre-listing conversation rather than a closing-week decision.
Common 1031 Exchange Questions
Do I owe capital gains tax if I lived in the house the whole time I owned it?
In most cases, gain up to $250,000, or $500,000 filing jointly, is excludable under Section 121 if the ownership and use tests are met. Gain above those thresholds is still taxable.
I rented the house out for two years and then moved back in, does that change anything?
Yes, the exclusion is generally reduced for the nonqualified-use period tied to the rental years, and any depreciation taken during that time is recaptured separately. The full exclusion does not automatically apply just because the owner moved back in before selling.
Can I do a 1031 exchange on a house I lived in as my primary residence?
Generally no, since the exchange rules require the property be held for investment or business use, not personal use. A house that was purely a personal residence typically does not qualify.
What if the house was a rental the entire time I owned it?
It does not qualify for the Section 121 exclusion, and the full gain plus depreciation recapture is taxable at sale unless deferred through a 1031 exchange or another strategy set up before closing.
How do I know which category my house falls into for tax purposes?
A CPA reviewing the actual ownership and use timeline, including any rental periods, is the most reliable way to determine which rules apply before the house is listed.




