Align Lending

Understanding capital gains tax exemptions on a home sale

This article is for informational purposes only and is not intended to provide legal, financial, or tax advice. Tax rules, dollar limits, and thresholds change, and how they apply depends on your situation. Consult a qualified tax professional before you sell or file.

Couple reviewing home sale records at their dining table while figuring out capital gains tax exemptions on a Michigan home

Under Section 121 of the tax code, a single filer can exclude up to $250,000 of gain on the sale of a main home from federal income tax, and a married couple filing jointly can exclude up to $500,000. To qualify, you generally have to have owned the home at least 24 months out of the 5 years ending on the date of sale, used it as your residence at least 24 months of that same window, and not taken the exclusion on another home sold in the 2 years before this sale.

Those 24 months don’t have to be consecutive or fall right before you sell. The IRS counts a total of 24 months, 730 days, anywhere inside the 5-year period, and a short absence like a vacation still counts as time you lived at home.

Learn how capital gains tax exemptions work, including who qualifies, when a partial exclusion applies, and what you still have to report. If you’re weighing a sale, start with our Homeownership guide and our Taxes & Money hub.

Key takeaways:

  • Exclusion limits: Up to $250,000 of gain for single filers and up to $500,000 for married couples filing jointly, on the sale of a main home.
  • The 2-of-5-year rule: You need 24 months of ownership and 24 months of use as your residence inside the 5 years ending on the sale date, and neither block has to be continuous.
  • Partial exclusions are real money: A work move at least 50 miles farther, a qualifying health move, or an unforeseeable event prorates the limit, 12 qualifying months out of 24 gives a single filer $125,000 of exclusion instead of nothing.

What is capital gains tax on a home sale?

Capital gains tax on a home sale is federal income tax on your profit, not on the sale price, and not on the check you walk away with. The IRS builds that profit in two subtractions: selling price minus selling expenses gives your amount realized, and amount realized minus adjusted basis gives your gain or loss.

Your adjusted basis is what you paid plus the capital improvements you made, which is why two neighbors selling identical houses at the same price can owe very different amounts. If the number comes out negative you sold at a loss, and the IRS is blunt: you can’t deduct a loss on a main home. Our guide to the finances of selling covers the rest of the money that moves at closing.

How does the Section 121 exclusion work?

It removes gain from your income before tax is calculated up to $250,000 single, $500,000 married filing jointly. Not a deduction, not a credit, not a deferral: excluded gain never enters your gross income. It covers your main home only, and you have one at a time.

  • Married filing separately: Each spouse who meets the tests individually can exclude up to $250,000. Filing separately doesn’t unlock $500,000 apiece.
  • Married filing jointly: Only one spouse has to meet the ownership requirement, but each spouse must meet the residence requirement individually to reach the full $500,000.
  • Surviving spouses: A widow or widower can use the $500,000 limit if the home sells within 2 years of the spouse’s death, they haven’t remarried, and the 2-year tests are met, counting the late spouse’s time.

Do you qualify? The three Section 121 tests

Three tests, all measured against the same 5-year period ending on the date of sale, the closing date.

TestWhat it requiresHow sellers commonly miss it
Ownership testYou owned the home at least 24 months of the 5 years before the sale. Filing jointly, only one spouse has to meet it.Selling inside two years of buying, a job change, a growing family, a relationship that ended.
Residence (use) testYou owned and used the home as your residence at least 24 months of that period. The months can be scattered, and each spouse must meet this one individually.A spouse who never lived there, or a rental stretch that pushes qualifying months out of the window.
Look-back (timing) testYou didn’t take the exclusion on another home sold in the prior 2 years. It’s available only once every 2 years.Back-to-back moves inside 24 months, where the second sale loses the full exclusion.

Two things disqualify a sale automatically: a like-kind (Section 1031) exchange in the past 5 years, or expatriate tax. Service members get the reverse, qualified official extended duty with the uniformed services, Foreign Service, or intelligence community suspends the 5-year period for up to 10 years, stretching the window to 15.

How do you calculate the gain on your home sale?

Say you bought in Waterford in 2016 for $220,000 and sold in 2026 for $410,000, with $40,000 in documented improvements along the way and $29,000 in selling expenses at closing.1

  • Amount realized: $410,000 selling price minus $29,000 in selling expenses equals $381,000.
  • Adjusted basis: $220,000 purchase price plus $40,000 in capital improvements equals $260,000.
  • Gain: $381,000 minus $260,000 equals $121,000.
  • Taxable gain: $0. At $121,000, the gain sits well under the $250,000 single-filer limit.

Without those receipts, the same sale produces a $161,000 gain, still excluded, but $40,000 closer to the ceiling. Improvements add to basis; maintenance and repairs don’t. A new roof or finished basement counts because it adds value, prolongs useful life, or adapts the home to new uses. Fixing a leak doesn’t. Sort the two as you go, with our guide to the cost of home repairs and planning for the unexpected.

Keep closing statements from both ends of your ownership, and hold basis records until at least 3 years after the due date for the return covering the year you sold. Selling expenses pull the same lever from the other end.

When do you qualify for a partial exclusion?

When the main reason you sold was a change in workplace location, a health issue, or an unforeseeable event, even if you fell short of 24 months. A partial exclusion is a prorated share of the same $250,000 or $500,000, and you can qualify outside the standard lists below on the facts of your own situation.

  • Work-related move: A new or transferred job at least 50 miles farther from the home than your old work location. The IRS example is an old location 15 miles out and a new one 65 miles out. A first job at least 50 miles away counts, and it can apply to a spouse, co-owner, or anyone else who lived there.
  • Health-related move: You moved to obtain, provide, or facilitate diagnosis, cure, mitigation, or treatment of disease, illness, or injury for yourself or a family member, or a doctor recommended a change of residence. The IRS family list reaches to uncles, aunts, nephews, and nieces.
  • Unforeseeable events: The home was destroyed, condemned, or hit by a casualty loss, or someone who lived there died, divorced or legally separated, had two or more children from one pregnancy, became eligible for unemployment compensation, or couldn’t pay basic living expenses after a change in employment status.

The math is mechanical. Take the shortest of three periods, residence time inside the 5-year window, ownership time, and time since you last sold a home you took the exclusion on, divide by 730 days or 24 months, then multiply by $250,000. Married couples run it twice and add the results. A single filer with 12 qualifying months divides 12 by 24 and excludes $125,000.

What happens if your gain is more than the exclusion?

Only the excess is taxed, at long-term capital gains rates of 0%, 15%, or 20% if you owned the home more than a year.2 The rate follows your total taxable income, not the size of the gain.

  • The 0% band: For tax years beginning in 2026, it covers taxable income up to $49,450 single and $98,900 married filing jointly.
  • The 15% band: It runs from there to $545,500 single and $613,700 married filing jointly. The 20% rate applies above those figures.
  • Depreciation is separate: You can’t exclude gain equal to depreciation adjustments allowed or allowable after May 6, 1997. That slice is recaptured under Section 1250 at a maximum 25% rate.
  • The 3.8% surtax: The Net Investment Income Tax starts once modified adjusted gross income passes $200,000 single or $250,000 married filing jointly. Excluded gain escapes it, gain above the exclusion may not, and those thresholds aren’t indexed for inflation.

Run it on a couple with a $560,000 gain. They exclude $500,000, leaving $60,000 taxable, $9,000 at 15%. Thresholds move.

Does the exclusion cover a rental, vacation, or second home?

Not directly, Section 121 applies to a main home, but the direction of the conversion decides more than sellers expect. Gain allocated to nonqualified use isn’t excludable, and nonqualified use means any period after 2008 when neither you nor your spouse used the property as a main home. The exception decides most cases: it does not include any part of the 5-year period after the last date you used the home as your main home. Rent out your old house for two years after moving out, and that stretch generally doesn’t shrink your exclusion. Rent it first and move in later, and it does.

Depreciation claimed while it was a rental is recaptured either way, see IRS Publication 527 for rental property basis and depreciation. A home office inside your living area, like a spare bedroom, doesn’t require splitting the gain; only the post-1997 depreciation comes back. Property that was never a residence uses a different tool, covered in our guide to 1031 exchanges and their rules and benefits.

Do you have to report the home sale?

Sometimes, and one form settles it. Report the gain if you can’t fully exclude it, if you received Form 1099-S, or if you choose to report an excludable gain anyway. A Form 1099-S, Proceeds From Real Estate Transactions, forces the issue: you report on Form 8949 even with no taxable gain, with totals carried to Schedule D.

That form is often avoidable. A closing agent isn’t required to file one on a residence selling for $250,000 or less, $500,000 if the seller certifies they’re married, when the seller certifies in writing, under penalties of perjury, that the property was their principal residence, that the full gain is excludable under Section 121, and that there was no nonqualified use after December 31, 2008. Joint sellers each sign, and the agent keeps it 4 years. Ask at the closing table, not in April. The full ruleset lives in IRS Publication 523, Selling Your Home, with the IRS’s shorter Topic No. 701, Sale of Your Home alongside it.

What Michigan sellers should know

Michigan doesn’t run a separate capital gains tax, and it doesn’t reach gain the federal government never counted. But one piece of paperwork gets forgotten, and it carries a penalty.

  • Michigan taxes at a flat 4.25%: The MI-1040 starts from federal adjusted gross income, so gain excluded under Section 121 never enters the Michigan calculation either. Taxable gain does, roughly $2,550 on that $60,000 gain at 4.25%. That statutory rate is the default under MCL 206.51, but the statute also runs an annual test that can knock it down for a single tax year; the state treasurer and the Senate and House fiscal agency directors make that determination no later than each January revenue estimating conference, so confirm the current year’s rate with Treasury before you plan around it.
  • Rescind your Principal Residence Exemption within 90 days: Once the property stops being your principal residence, Michigan requires Form 2602 with the local assessor within 90 days, and the penalty is $5 per day up to $200. On the affidavit side, the deadlines are June 1 and November 1 and the exemption is worth up to 18 mills of local school operating tax, and our homestead exemption benefits and filing guide covers the filing.
  • Transfer tax is a seller line here: The state charges $3.75 per $500 of value and the county adds 55 cents per $500 in counties under 2 million people, $8.60 per $1,000, or roughly $3,526 on a $410,000 sale. State law makes the seller liable, and it reduces your amount realized.
  • Don’t count on the transfer tax refund: Michigan refunds the state portion only when the state equalized value at sale is equal to or below the SEV at acquisition, a test that fails on almost any home with a real gain.

How Align handles Michigan property taxes

The year after a Michigan home sells, its taxable value resets to half of the assessor's market value, so the seller's tax bill is not your tax bill. Samantha quotes the number you will pay, and she quotes it on the high side on purpose.

Veterans may owe far less. Michigan's Disabled Veterans Exemption removes property taxes on the home a qualifying disabled veteran lives in, and Samantha points eligible buyers to it.

Sources: Michigan Treasury, transfer of ownership and uncapping; Michigan Treasury, Disabled Veterans Exemption (MCL 211.7b).

FAQ: Capital gains tax exemptions on a home sale

Here are answers to common questions about capital gains tax exemptions.

How much profit can you make selling a house without paying taxes?

Up to $250,000 of gain if you file single and up to $500,000 if you’re married filing jointly, provided the home was your main home and you meet the ownership, residence, and look-back tests. Gain is sale price minus selling costs minus your adjusted basis, purchase price plus capital improvements. Anything above the exclusion is a long-term capital gain. Before listing, run a seller’s net sheet.

Do I have to live in the house 2 full consecutive years?

No. You need 24 months, 730 days, of use as your residence within the 5-year period ending on the sale date, and they don’t have to be consecutive or immediately before the sale. A short absence like a vacation still counts. For married couples, only one spouse needs to meet ownership while each must meet residence. See the finances of selling.

Does the capital gains exclusion apply to a rental or vacation home?

Not directly. Section 121 covers a main home only. If you converted a rental into your main home you may still qualify, but gain allocated to nonqualified use after 2008 can’t be excluded, and depreciation claimed after May 6, 1997 is recaptured at a maximum 25% rate. Renting out a home you’ve moved out of is treated more kindly than renting first.

Do I have to report the home sale if my gain is fully excluded?

Sometimes. If you receive a Form 1099-S from the closing agent, you must report the sale on Form 8949 even when the entire gain is excluded, with totals carried to Schedule D. If no 1099-S is issued and your full gain qualifies, reporting generally isn’t required. Keep your records either way.

The bottom line on capital gains tax exemptions

Section 121 lets a single filer exclude up to $250,000 of gain on a main home sale and a married couple filing jointly up to $500,000, as long as you owned the home 24 months out of the last 5 years, used it as your residence 24 months of that window, and didn’t take the exclusion in the prior 2 years. The months don’t have to be consecutive, and a work move at least 50 miles farther, a health issue, or an unforeseeable event prorates the limit instead of erasing it.

If you’re ready to turn these proceeds into the down payment on your next home, talk to Align Lending. We’re a broker, so we’ll shop your scenario across our lender network and show you what those dollars actually buy, side by side. Call 248-506-5727 or start online.

Footnotes:

1. Example figures in this article are hypothetical and for educational purposes only; they do not constitute an advertisement of credit terms, a rate quote, or tax advice under federal or state law. Your gain, basis, selling expenses, and tax depend on your own purchase and sale documents, your filing status, and your total income. Return to text.

2. This is general information, not tax advice. Federal and state tax rules, rate bands, and thresholds change and are subject to annual inflation adjustment. Consult a qualified tax professional about your situation before you sell or file. Return to text.

Sources: maximum exclusion of $250,000 and $500,000 for married couples filing jointly; the Eligibility Test steps; the 24-month (730-day) ownership and residence requirements; the rule that only one spouse must meet ownership while each spouse must meet residence; the look-back requirement and once-every-2-years limit; automatic disqualification for a like-kind exchange within the past 5 years and for expatriate tax; the surviving-spouse $500,000 rule; suspension of the 5-year test period for up to 10 years on qualified official extended duty; treatment of vacations and short absences; the gain formula; the rule that a loss on a main home is not deductible; improvements versus repairs and record retention; the work-related 50-mile safe harbor; health-related moves; unforeseeable events; the other-facts-and-circumstances test; the Worksheet 1 partial-exclusion calculation; nonqualified use after 2008 and its exceptions; and Section 1250(b)(3) depreciation adjustments after May 6, 1997, IRS Publication 523 (2025), Selling Your Home. Exclusion amounts, the ownership and use tests, the 2-year look-back, and Form 1099-S, Form 8949 and Schedule D reporting, IRS Topic No. 701. Long-term holding period of more than one year, the 0%, 15% and 20% structure, and the maximum 25% rate on unrecaptured section 1250 gain, IRS Topic No. 409. Maximum zero-rate amounts of $49,450 (single) and $98,900 (married filing jointly and surviving spouse) and maximum 15% rate amounts of $545,500 and $613,700 for taxable years beginning in 2026, IRS Revenue Procedure 2025-32. Net Investment Income Tax rate of 3.8%, modified adjusted gross income thresholds of $200,000 and $250,000, the fact that the thresholds are not indexed for inflation, and the exclusion of Section 121 gain from the tax, IRS Questions and Answers on the Net Investment Income Tax. Form 1099-S exception for a residence selling for $250,000 or less ($500,000 if the seller certifies they are married), the written certification including the no-nonqualified-use-after-December-31-2008 assurance, the requirement that each joint seller certify, and the 4-year retention period, IRS Instructions for Form 1099-S. Rental property basis and depreciation, IRS Publication 527. Michigan’s statutory individual income tax rate of 4.25%, the conditional annual rate-reduction formula, and the requirement that the state treasurer and the directors of the Senate and House fiscal agencies make that determination no later than the date of each January revenue estimating conference, MCL 206.51(1)(b) and (1)(c). MI-1040 starting point of federal adjusted gross income, Michigan Department of Treasury. Principal Residence Exemption of up to 18 mills of local school operating tax, affidavit deadlines of June 1 and November 1 (Form 2368), the 90-day requirement to file Form 2602, and the $5-per-day penalty capped at $200, Michigan Department of Treasury and MCL 211.7cc. Michigan state real estate transfer tax of $3.75 per $500 and seller/grantor liability, MCL 207.525 and MCL 207.523; county real estate transfer tax of 55 cents per $500 in a county under 2,000,000 population, MCL 207.504. State transfer tax refund for a principal residence where the state equalized value at sale is equal to or less than the state equalized value at acquisition, MCL 207.526(u) and Michigan Department of Treasury Form 2796.

This article is for informational purposes only and is not intended to provide legal, financial, or tax advice. Tax rules, dollar limits, rate bands, and state program terms change and depend on your individual circumstances; confirm your figures with your closing documents and consult a qualified tax professional about your situation. Figures shown are illustrative, are not a rate quote or an offer of credit, and are subject to change. Align Lending is an independent Michigan mortgage broker, NMLS #2041154.




Scroll to Top
Align Lending logo