How Does the Home Sale Capital Gains Exclusion Work? The $250,000/$500,000 Rule in 2026

If you sell your primary home in 2026, you can exclude up to $250,000 of the profit from capital gains tax if you're single, or up to $500,000 if you're married filing jointly, as long as you owned and lived in the home for at least two of the five years before the sale. Anything above that exclusion amount is taxed as a long-term capital gain at 0%, 15%, or 20%, depending on your income. The exclusion isn't a one-time perk either; you can use it again on your next home sale, as often as every two years, which is a detail a lot of homeowners never learn because they only sell a house once or twice in a decade.

How Much Can You Actually Exclude From Capital Gains Tax on a Home Sale?

Up to $250,000 in gain if you file single, or $500,000 if you file married filing jointly, under Internal Revenue Code Section 121. Those numbers were set by the Taxpayer Relief Act of 1997 and have never been adjusted for inflation since, which is why a $250,000 exclusion that comfortably covered most home sales in the late 1990s now leaves plenty of sellers in expensive metro areas with a real tax bill on the overage. In August 2026, Trump administration officials floated eliminating capital gains tax on home sales entirely, but that would require an act of Congress and nothing has actually passed, so the $250,000/$500,000 limits are still what applies to your 2026 return.

Do You Have to Live in the Home for a Full Two Years to Qualify?

You need to meet what's usually called the 2-out-of-5-year rule: you must have owned the home and used it as your principal residence for at least 24 of the 60 months immediately before the sale. Those 24 months don't need to be consecutive, and you don't need to be living there on the day you sell, you just need 24 months of ownership-and-use somewhere in that 5-year lookback window. A couple who bought a home, lived in it for 18 months, rented it out for two years while relocating for work, then moved back in for 8 months before selling would clear the test, since 18 plus 8 is 26 months of qualifying use inside the 60-month window.

What If You Have to Sell Before You Hit the Two-Year Mark?

You may still qualify for a partial exclusion if the sale is due to a change in employment, a health issue, or another IRS-recognized unforeseen circumstance, like divorce, a death in the family, or multiple births from one pregnancy. The partial exclusion is prorated: take the number of months you actually owned and used the home, divide by 24, and multiply by $250,000 (or $500,000 if married). A single filer forced to sell after 14 months due to a job relocation, for example, could exclude up to 14/24 × $250,000, or about $145,833, of gain, even though she's nowhere near the full two years.

A Real Example: Full Exclusion With a Taxable Overage

Say a single filer bought a home in 2016 for $310,000 and put $45,000 into real capital improvements over the years, an $18,000 roof replacement and a $27,000 kitchen remodel, bringing the adjusted cost basis to $355,000. She sells in 2026 for $685,000 and pays $41,000 in agent commission and closing costs, so the amount realized is $644,000. The gain is $644,000 minus $355,000, or $289,000. The $250,000 exclusion wipes out most of that, but $39,000 is left over and taxed as a long-term capital gain. At a 15% federal rate, that's $5,850 owed, a real bill, but a small one next to the $43,350 she'd have owed on the full $289,000 gain with no exclusion at all.

A Real Example: Partial Exclusion Still Wipes Out the Whole Gain

Now say a single filer buys a condo for $280,000 and, 14 months later, is forced to sell because of a job relocation. She sells for $360,000 and pays $22,000 in selling costs, for an amount realized of $338,000 and a gain of $58,000. Her partial exclusion cap, using the 14/24 proration, is about $145,833, far more than her actual $58,000 gain. The entire gain is excluded and she owes nothing, even though she lived there barely over a year. This is the part people miss most: not meeting the full 2-year test doesn't automatically mean a tax bill, it just means your exclusion ceiling is lower, and for a lot of sellers that lower ceiling is still more than enough.

Does Renting Out the Home Before You Sell Change the Math?

Yes, in two separate ways, and this is where the rule gets genuinely complicated. First, any depreciation you claimed while the home was a rental gets recaptured on sale and taxed at up to 25%, regardless of how much Section 121 exclusion you have available; the exclusion shelters the gain from appreciation, not the depreciation you already deducted against your income. Second, gain attributable to periods of "nonqualified use," generally any stretch after 2008 when the home wasn't your principal residence, gets prorated out of the exclusion based on the ratio of nonqualified time to total ownership time. There's a specific carve-out for the period after you move out and before you sell, which generally doesn't count as nonqualified use as long as the sale happens within the lookback window, but the interaction between that carve-out, depreciation recapture, and the proration formula is genuinely easy to get wrong. If you've ever rented out the home you're about to sell, this is a case where paying a CPA for an hour is cheaper than guessing.

Can You Use This Exclusion More Than Once?

Yes, and there's no lifetime cap. Before the 1997 law, homeowners got a one-time exclusion; the current rule lets you claim it on every qualifying sale, as long as you haven't already used the exclusion on a different home sale within the two years before this one. That means someone who buys, lives in, and sells a new primary residence every three or four years can legally use the $250,000/$500,000 exclusion each time, which is a meaningfully different picture than the "you only get this once" myth that still circulates.

What Should You Actually Do Before You Sell?

  • Track every capital improvement, not just the sale price and purchase price. A new roof, an addition, a kitchen remodel, and similar improvements all raise your cost basis and shrink your taxable gain, but only if you kept the receipts. Routine repairs and maintenance don't count.
  • Run the two-of-five-year math before you assume you qualify for the full exclusion. If you're close to the line, a few months' difference in your sale date can be the difference between a full exclusion and a partial one.
  • Get a CPA involved if the home was ever a rental. Depreciation recapture and the nonqualified-use proration are two of the more common ways homeowners miscalculate what they actually owe.
  • Don't assume the exclusion is one-time. If you're planning a sequence of home sales over the years, the two-year-per-sale rule matters for timing your next move.
  • Weigh the sale against your other housing math. If you're deciding whether to sell at all versus keep renting where you live now, our breakdown of renting vs. buying a home in 2026 covers the real numbers on that decision, and our guide to short-term vs. long-term capital gains tax covers how the rate on any taxable overage gets set.

The $250,000/$500,000 home sale exclusion shelters most sellers from any capital gains tax at all, but "most" isn't "all," and the gap between the headline number and your actual tax bill depends on your basis, your timeline, and whether the home was ever anything other than your primary residence. Twenty minutes with your actual purchase records before you list the house is worth more than assuming the exclusion covers everything.

—
Spicy Investing