Selling Your Downriver Home? How the Tax Exclusion Works
Will you owe federal tax when you sell your Downriver home?
Maybe not, if the house has been your main home, you meet the tests below and your gain fits under the cap. Federal law lets you leave a set amount of gain off your income when you qualify.
The rule is Section 121 of the Internal Revenue Code. It says gross income doesn’t include gain from selling a home you owned and used as your principal residence for periods adding up to two years or more during the five years ending on the date of the sale. IRS Publication 523 explains the same rule in plain terms.
The cap is $250,000 of gain. On a joint return it can be $500,000. Topic 701 on the IRS site puts both numbers side by side, and Section 121 sets them out with the conditions for the higher one.
Gain is a different number from your sale price or the check you walk away with. It’s what you realize from the sale minus what you have in the house. Two sellers can sell at the same price and end up with very different gains, depending on what they paid and what they put into the place.
So start by roughing out your gain and checking the tests below, before you set a list price. That way nothing on the tax side catches you off guard at closing.
How do the 2-out-of-5-year tests work?
There are two tests, and you generally have to pass both within the five years that end on the date of the sale.
- Ownership. You owned the home for at least two years in that window.
- Use. You lived in it as your main home for at least two years in that window.
The time doesn’t have to be one stretch. Section 121 counts periods that add up to two years or more, and the IRS sale-of-home FAQ describes the same aggregated two years out of five.
For married couples filing jointly, the split matters. Topic 701 and Publication 523 both say only one spouse has to meet the ownership test, but each spouse has to meet the use test on their own to get the full $500,000.
There’s also a timing limit between sales. Under Section 121 and Publication 523, the full exclusion generally isn’t available if you already excluded gain on another home sale in the two years before this one. A reduced exclusion can still apply in some cases, covered below.
If you’ve already moved into your next place and the old house is still on the market, the five-year window keeps moving. Our post on keeping your PRE when you move before the sale covers the property tax side of that same move. On the income tax side, write down your move-in date, your move-out date and your expected sale date, and have your tax professional check them against the two-year use test.
How do you figure the gain on your house?
Start with what you get from the sale, take off your selling costs, then subtract what you have in the house.
Publication 523 lays it out in steps, and the IRS FAQ uses the same math. Your amount realized is what you get from the sale minus your selling expenses. Your gain is the amount realized minus your adjusted basis. The IRS sale-of-home FAQ describes adjusted basis as generally your cost to buy the home plus the cost of capital improvements, less casualty losses and other decreases.
Improvements are where records pay off. Publication 523 says you add the cost of additions and improvements to your basis, and the IRS FAQ counts the cost of capital improvements in adjusted basis. Not every receipt counts, so ask your tax professional how to sort the ones you have.
What to pull together before you call anyone:
- Your closing statement from when you bought.
- Receipts and contracts for improvements, with dates.
- Your move-in and move-out dates.
- Any years you rented out any part of the property or used part of it for business.
- Your listing agreement, so the commission and other selling costs are on paper.
If you’ve been in the house a long time, the purchase paperwork may be the hardest thing to find. Ask the title company that handled your purchase or your old lender whether they can send a copy, and write down what you find even if it’s incomplete. Then bring whatever you have to your tax professional.
You don’t need to know the answer to the dollar. You need to know whether you’re comfortably under the cap or close enough that the details matter.
What can still be taxed even if you qualify?
Three things to check: gain over the cap, time the house wasn’t your main home, and depreciation. There’s also an exception that works in your favor, the reduced exclusion.
Gain over the limit
If your gain is more than $250,000, or $500,000 on a qualifying joint return, the excess isn’t excluded. Topic 701 says you must report the sale if you can’t exclude all of your gain, and the IRS FAQ says you must report as taxable income any gain you can’t exclude.
Nonqualified use
Gain tied to periods of nonqualified use isn’t excludable under Section 121, and Publication 523 says the same. Publication 523 describes nonqualified use as any period after 2008 when neither you nor your spouse used the home as your main home, with certain exceptions. One of those exceptions matters to sellers who moved first. Under Section 121, the part of the five-year period after you last lived in the home as your main home isn’t treated as nonqualified use, and Publication 523 walks through the same exception in an example.
Depreciation from business or rental use
If you used part of the property for business or rental after May 6, 1997, the exclusion doesn’t cover the part of your gain equal to the depreciation allowed or allowable for that use. Publication 523 and the IRS FAQ both use that “allowed or allowable” wording, so ask your preparer how it applies to your returns. How that gain is taxed, and whether other rules apply to a separate rented unit, is a question for your tax preparer, so bring any returns where you reported rental or business use.
A reduced exclusion
If you don’t meet the full tests but the sale is mainly because of a change in workplace, a health issue or an unforeseeable event, a reduced exclusion may apply. Section 121 provides a reduced exclusion in those cases, and Publication 523 and the IRS FAQ both describe it for a change in employment, health or unforeseen circumstances. The FAQ adds that it can apply even if you used the exclusion within the two years before the sale. Publication 523 has the details on what counts, so if your move was driven by one of those reasons, bring the dates and paperwork to your tax professional.
What happens with Form 1099-S at closing?
The person responsible for your closing generally has to file Form 1099-S with the IRS, unless an exception applies.
Section 6045 of the tax code says the person responsible for closing the transaction, including an attorney or title company, files the return, and the IRS instructions for Form 1099-S say that person is required to file it.
There’s an exception for a principal residence. Both the statute and the instructions say the form doesn’t have to be filed for a residence sold for $250,000 or less, or $500,000 or less if the certification says the seller is married, when the seller gives a written certification that the home was the principal residence and the full gain is excludable. Those dollar limits apply to the sale price, not the gain. The instructions add that the closer isn’t required to get the certification, and that without it, the closer must file and furnish the form.
If you receive a 1099-S, Topic 701 and Publication 523 both say you must report the sale on your return even when the gain is fully excludable. Both also say you must report it when you have gain you can’t exclude.
Ask your title company early whether it will ask you for that certification, and read it with your tax professional before you sign. If you’re still mapping out the whole sale, our guide to preparing a Downriver home for sale and the Wayne County transfer tax post cover the other numbers you’ll see on your settlement statement.
Frequently asked questions
Does military service change the five-year window?
It can. Section 121 lets you elect to suspend the five-year period while you or your spouse are on qualified official extended duty, for no more than 10 years, and IRS Topic 701 describes the same election for the Uniformed Services, the Foreign Service and the intelligence community. Ask your tax professional whether your service qualifies.
Can I use the exclusion on a rental I never lived in?
The exclusion is built around your main home. Section 121 covers property you owned and used as your principal residence for the required time, and Publication 523 describes the same test as owning the home and living in it as your main home. A property that never met the use test doesn't fit that description, so ask your tax professional how its sale is handled.
My spouse died. Can I still use the $500,000 limit?
Possibly. Section 121 and Publication 523 both allow the higher limit for an unmarried surviving spouse who sells within two years of the spouse's death, if the joint-return requirements were met right before the death.
Does the federal exclusion show up on my Michigan return?
Michigan Treasury says the Michigan income tax return begins with federal adjusted gross income and then allows additions and subtractions, and its February 2026 notice says Michigan's income tax computation generally starts from federal amounts while decoupling from certain listed federal provisions. Neither document addresses home sales directly, so ask your tax preparer how your sale flows through to your Michigan return.
Sources
- IRS Publication 523, Selling Your Home (2025)
- IRS Topic No. 701, Sale of Your Home
- 26 U.S.C. 121, Exclusion of gain from sale of principal residence (U.S. Code, 2024 edition, GovInfo)
- IRS, Instructions for Form 1099-S (12/2026)
- 26 U.S.C. 6045, Returns of brokers (U.S. Code, 2024 edition, GovInfo)
- IRS FAQ, Property (Basis, Sale of Home, etc.)
- Michigan Department of Treasury, 2026 MI-1040ES
- Michigan Department of Treasury, Decoupling Michigan Income Taxes from Certain Internal Revenue Code Provisions (February 25, 2026)
Ready to talk strategy? Call David Goad at 313-319-7688.
If you want to dig deeper into the local market, check out the Downriver MI Real Estate Guide. And if you want to get a better feel for who I am and how I work, here's the About David Goad — Downriver Realtor page. If you're comparing agents and trying to figure out who really knows this market, this page on the best Realtor in Downriver MI gives you more context too.