Dracure

Home Sale Capital Gains Exclusion: The $250,000 Rule

A calm, flat-style visual metaphor for house atop tax form.

Sell a home you have owned for a long time and the gain can be the largest single number ever to appear on your tax paperwork. The natural assumption is that the IRS wants a piece of all of it. For most people selling their main home, it doesn’t — and the reason is worth understanding before the for-sale sign goes up.

If you owned and lived in your main home for at least two of the five years before the sale, you can generally exclude up to $250,000 of gain from your income — $500,000 on a joint return. You can use the exclusion once every two years. Fall short, and a partial exclusion may still apply in certain situations.

What the Exclusion Is: The $250,000 and $500,000 Limits

Start with what a gain is. When you sell a capital asset — and your home is one — the gain is the difference between what you realized from the sale and your adjusted basis, which is generally what the home cost you. If you received the home as a gift or an inheritance, the basis rules are different, and IRS Publication 551 covers them.

The exclusion sits on top of that math. If you qualify, up to $250,000 of gain from the sale of your main home never enters your income. File a joint return with your spouse and the ceiling doubles to $500,000.

This is not a deferral, where the tax bill waits for you down the road. Excluded gain is gone from your income for good. The IRS’s own framing is plain: the tax code recognizes the importance of home ownership by letting you exclude gain when you sell your main home.

One asymmetry deserves a flat statement. If you sell your home for less than your adjusted basis, that loss is not deductible — losses on personal-use property never are. The tax code is generous with home-sale gains and indifferent to home-sale losses.

The Two-of-Five-Year Ownership and Use Test

Qualifying comes down to two tests, both measured against the five years ending on the date of the sale. The ownership test: you owned the home for at least 24 months of those five years. The use test: you lived in it as your residence for at least 24 months of those same five years.

When I first read the rule, I assumed the two years had to be one continuous block. They don’t. You can meet the ownership test and the use test during different two-year periods, as long as both fall inside the five-year window ending on the sale date.

Married couples filing jointly get a slightly lopsided version. Only one spouse needs to meet the ownership test. But both spouses must meet the use test individually — each one, personally, living in the home for 24 months out of the five years.

There is one notable pause button. If you or your spouse serve on qualified official extended duty in the Uniformed Services, the Foreign Service, or the intelligence community — meaning duty of more than 90 days or for an indefinite period — you can elect to suspend the five-year test period for up to 10 years. A long overseas posting doesn’t have to cost a family the exclusion.

The Once-Every-Two-Years Rule

The exclusion is not a punch card you can use on every sale. Generally, you are not eligible if you already excluded gain from the sale of another home during the two-year period before this sale.

The point is easy to see. This is a benefit for people selling the home they live in, not a tool for working through a series of properties. One excluded sale. Then a two-year clock. Then eligibility again.

Publication 523 lists exceptions to the two-year rule, along with the complete eligibility requirements. If your situation involves two sales close together, that publication — not a general explainer like this one — is where the precise answer lives.

A Partial Exclusion, With a Worked Example

Falling short of the tests does not always mean falling to zero. Publication 523 allows a partial exclusion — an exclusion of less than the full amount — but only if you meet one of the specific situations the publication lists. Selling early for no particular reason doesn’t earn it. Selling early for a reason on that list can.

Here is the shape of the math, with round numbers. Say a married couple bought a home for $400,000, lived in it as their main home, and sold it 12 months later for $480,000 under one of the qualifying situations. Their gain is $80,000, and they met exactly half of the 24-month requirement.

In Publication 523’s worksheets, the reduction applies to the maximum exclusion — not to the gain itself. For this sketch, meeting half of the requirement on a joint return puts the reduced ceiling at half of $500,000: $250,000. The couple’s $80,000 gain fits under that reduced ceiling with room to spare, so in this illustration the whole gain can be excluded.

Notice what got cut in half: the limit, not the gain. That distinction does a lot of quiet work. A couple with a modest gain and a qualifying reason to sell early can often exclude everything, even though they never came close to two years.

The exact figure in a real case comes from working through the worksheets in Publication 523, which handle details this sketch leaves out. But the proportional idea is the core of it.

What It Means for Your Sale and Your Tax Return

Excluding the gain and ignoring the sale are two different things. If you receive Form 1099-S, Proceeds From Real Estate Transactions, you must report the sale on your return even when every dollar of gain is excludable. And you must report the sale whenever you cannot exclude all of the gain.

Reporting runs through Form 8949 and Schedule D when required. If part of your gain lands above the exclusion limit, that portion is taxable — and for a home held more than one year, it is a long-term capital gain. For 2025, the rate on most net capital gain is no higher than 15% for most individuals, with 0% below certain income levels and 20% above the thresholds for the 15% rate.

Two quieter items sit nearby. A large taxable gain may require estimated tax payments during the year rather than a single settling-up in April. And individuals with significant investment income may owe the net investment income tax on top of the capital gains rate.

A few special cases have their own lanes. Transferring a home to a spouse or ex-spouse in a divorce settlement generally produces no gain or loss at all — unless the spouse is a nonresident alien, in which case the normal rules apply. And selling under a contract paid over multiple years is an installment sale, reported under the installment method unless you elect out; the home-sale exclusion remains available either way.

One practical note while the money is in transit. Sale proceeds often sit in a bank account for months while the next move takes shape, and six figures parked in one place raises two ordinary questions: how FDIC insurance limits work, and what parked cash earns when the Fed moves rates.

Before You Sell: A Calm Checklist

None of this requires a tax degree. It requires dates and records, which is a different kind of work. The questions worth answering before closing day are short ones.

How many months, out of the five years ending on your expected sale date, did you own the home — and how many did you live in it? Has anyone on the return excluded gain from another home sale in the past two years? Do the records exist to establish what the home cost, so the gain itself is figured from real numbers rather than memory?

Then the sizing question: is the likely gain anywhere near $250,000, or $500,000 on a joint return? A gain that sits under the ceiling means the exclusion does its job invisibly. If the gain might crest the limit, or if the two-year tests are in doubt, the numbers deserve a careful pass through Publication 523 — and a qualified tax professional can run the actual worksheets against your dates and figures.

Honestly, this is one of the friendlier corners of the tax code. It rewards the most ordinary behavior imaginable — living in your own house — and it forgives early sales for the kinds of reasons life actually produces. The main way it goes wrong is not knowing it exists until after the paperwork is signed.

This article is general information, not professional advice. For decisions about your money or health, consult a qualified professional.

Sources