Tax Shop
Lone Tree, Colorado

Selling your home: the $250,000 / $500,000 exclusion

By Charles Trautman, EA  ·  Reviewed November 2, 2026

Most sellers owe nothing. Long-time owners should check.

When you sell your main home, up to $250,000 of gain is tax-free, or $500,000 for a married couple. For most sellers that covers everything. But the exclusion hasn’t changed since 1997, and Denver-area homes have climbed far past it. If you’ve owned your home for twenty or thirty years, rented it out, or lost a spouse, the details matter.

Current as of October 26, 2026. For combining the exclusion with a 1031 exchange, see the home-sale exclusion and 1031.

The basic rules

To exclude the full amount, three tests must be met on the date of sale.

Ownership: 2 of the last 5 years

You owned the home for at least 24 months during the five years ending on the date of sale. The months don’t have to be in a row.

Use: 2 of the last 5 years

You lived in it as your main home for at least 24 months in that same five years. Short absences, like vacations, count as time living there. The two years of ownership and use don’t have to be the same two years.

Once every two years

You haven’t excluded gain on another home sale in the two years before this one.

$250,000 or $500,000

Up to $250,000 of gain is excluded, or $500,000 on a joint return if either spouse meets the ownership test, both meet the use test, and neither used the exclusion in the past two years.

Main home only

A house, condo, townhome, mobile home or houseboat you actually live in most of the time. A vacation cabin or second home doesn’t qualify. (See vacation homes.)

Losses aren’t deductible

If you sell your home for less than you put into it, the loss isn’t deductible. A home is personal-use property.

Figuring your gain

Gain isn’t the sale price minus what you paid. It’s the amount you realized minus your adjusted basis, and good records can shrink it a lot.

StepWhat goes in
Amount realizedSale price, minus selling costs: real estate commissions, title and escrow fees, transfer taxes, legal fees, and repairs you agreed to make as part of the sale
Starting basisWhat you paid, plus most closing costs when you bought: title insurance, recording fees, survey, legal fees (not loan points, prorated taxes or insurance)
Plus improvementsAdditions, a new roof, a remodeled kitchen or bath, new windows, finished basement, deck, landscaping, new furnace or water heater, a fence. Not ordinary repairs or maintenance.
MinusDepreciation from rental or home office use, insurance payouts for casualty losses, and any energy credits that reduced basis
GainAmount realized minus adjusted basis

A long-time Douglas County owner

A couple bought their home in 1998 for $220,000 and put $60,000 into improvements over the years. They sell in 2026 for $1,050,000 and pay $55,000 in commissions and closing costs. Their gain is $715,000 ($1,050,000 − $55,000 − $280,000). They exclude $500,000, and $215,000 is taxable: about $32,000 federally at the 15% capital gains rate, more if the 3.8% net investment income tax applies, plus about $9,500 for Colorado.

Every receipt for an improvement they can find lowers that. $40,000 of documented improvements they’d forgotten about would save them roughly $7,800.

Selling before two years: partial exclusions

If you don’t meet the two-year tests, or used the exclusion within the last two years, you may still get part of it — if the main reason for the sale was a change in workplace, your health, or something you couldn’t have foreseen. The IRS lists specific events that qualify automatically (Publication 523, “Does Your Home Qualify for a Partial Exclusion of Gain?”); anything else is judged on the facts.

A work-related move

  • You took or were transferred to a job at least 50 miles farther from the home than your old job was (old job 15 miles away, new job 65 miles away qualifies)
  • You had no job and started one at least 50 miles from the home
  • The same is true of your spouse, a co-owner, or anyone else who lived there

A health-related move

  • Moving to get or give diagnosis, treatment or care for yourself or a family member — parent, child, grandchild, sibling, in-law, aunt, uncle, niece or nephew
  • A doctor recommended the move because of your health
  • Again, the same is true of a spouse, co-owner or other resident

An unforeseeable event

  • The home was destroyed or condemned, or had a casualty loss from a disaster
  • You, your spouse, a co-owner or another resident died, divorced or legally separated, had twins (or more), became eligible for unemployment, or could no longer pay basic living expenses because of a change in employment
  • An event the IRS has named in published guidance

Other facts and circumstances

  • The situation arose after you bought and moved in, you sold soon after it arose, and you couldn’t reasonably have anticipated it
  • You began to have real trouble paying for the home, or it became significantly less suitable for your family for a specific reason
  • These are judgment calls; keep the documents that show why you sold

What the IRS has said yes to — and no to

The regulations name reasons that don’t qualify: traffic noise on a busy road, wanting a bigger house after a promotion or a raise, a windfall such as an inheritance or lottery winnings, or a nicer home becoming affordable because mortgage rates fell. Beyond the automatic list, the IRS has allowed partial exclusions in private letter rulings for a remarriage that created a blended family needing more room, the adoption of a child, a second child when the two-bedroom home’s other bedroom was a home office, an elderly parent moving in with an ill adult child to care for her, an adult child moving back home after a divorce, a family that sold after a member was assaulted at home or on the school bus, a burglary, and — despite the road-noise rule — airport noise. A letter ruling binds the IRS only for the taxpayer who asked, but they show where the line is. The regulation itself even allows the exclusion when homeowner association dues doubled, or when an engaged couple bought together and split up before the wedding.

How much

The exclusion is prorated, not the gain. Take the shortest of three periods — the time you lived in the home during the five years before the sale, the time you owned it, and the time since you last used the exclusion — divide by 24 months (or 730 days), and multiply by $250,000. On a joint return, do it for each spouse and add the two. Someone single who lived in the home for 12 months before a job transfer gets 12/24 of $250,000, or up to $125,000 of excluded gain, which usually covers everything after a short ownership. The exception to the two-years-between-sales rule works the same way: if you used the exclusion 18 months ago and must sell again for one of the reasons above, this sale’s limit is 18/24 of the full amount.

Partial exclusion calculator

Publication 523, Worksheet 1, part B. Enter the dates for each spouse (or just the first column if single). The calculator finds the shortest period, prorates the limit, and compares it with your gain.

Dates
Gain

This computes the limit only. It assumes the sale was for a work, health or unforeseeable reason; if it wasn’t, and the two-year tests aren’t met, the exclusion is zero. Depreciation from rental or business use is taxable regardless.

Marriage, divorce and the death of a spouse

Life changes are where the rules most often help, and where we see the most missed opportunities.

After a spouse dies

Two rules work together. First, a surviving spouse who hasn’t remarried can still use the full $500,000 exclusion if the home sells within two years of the death; after that it drops to $250,000. Second, and usually bigger, the half of the home that belonged to the spouse who died gets a new basis equal to its value on the date of death. The survivor’s basis becomes their own half of the original cost and improvements, plus half of the date-of-death value. On a home bought long ago, that step-up removes half the gain outright, and the exclusion handles the rest. (In a community property state the whole home steps up; Colorado is not one.) The calculator below does the arithmetic.

Divorce

A transfer of the home between spouses in a divorce isn’t taxable. If you move out and your former spouse keeps living there under the divorce agreement, you’re treated as still using it as your home, so you may still qualify when it’s eventually sold.

Getting married

If only one spouse qualifies, the couple gets $250,000, not $500,000. Two people who each sell a qualifying home can each exclude $250,000.

Inherited homes

A home you inherit gets a basis equal to its value at death, so a prompt sale usually produces little or no gain, and the exclusion isn’t needed. (See when a loved one dies.)

Military and foreign service

Members on qualified official extended duty can suspend the five-year test for up to 10 years, so a home left behind on orders can still qualify.

Moving to assisted living

If you become unable to care for yourself, time in a licensed care facility counts as living in your home, as long as you lived there at least one year in the five before the sale.

A widow’s sale, worked

A couple bought their home 10 years ago for $200,000 and added a $60,000 addition. The husband died when the home was worth $900,000; the widow sells 18 months later for $1,000,000 with $80,000 of selling costs. Her basis: her half of the cost and improvements, $130,000, plus the stepped-up half, $450,000 — $580,000. Amount realized $920,000; gain $340,000; sold within two years of the death, so the $500,000 exclusion applies and the taxable gain is zero. Had she waited past the two-year mark, the exclusion would be $250,000 and $90,000 would be taxable. (A shortcut some advisers use — adding the deceased spouse’s $250,000 exclusion to the survivor’s basis — is not how the law works and can be off in either direction; the step-up is based on the home’s value at death, not on a fixed amount.)

Surviving spouse: basis and gain calculator

For a home owned jointly by a married couple in Colorado (a common-law state). Enter what the couple paid, what they improved, the value when the first spouse died, and the sale.

The home
The sale

Assumes the survivor has not remarried, the couple met the two-year ownership and use tests, and no depreciation was taken on the home. Taxable gain is long-term capital gain at 0%, 15% or 20% depending on the survivor’s other income, plus the 3.8% net investment income tax above $200,000.

Rental and home office use

A home that was ever rented out or used for business can still qualify, but part of the gain may be taxable.

Depreciation comes back

Any depreciation you claimed, or could have claimed, after May 6, 1997, for a home office or rental use is taxed when you sell, at up to 25%. The exclusion doesn’t cover it.

Renting before you move in

If you rented the home out before making it your main home, years of rental after 2008 are “nonqualified use,” and a matching share of the gain is taxable.

Renting after you move out

Renting it out after you leave doesn’t reduce the exclusion, as long as you sell within three years of moving out, so you still meet the two-out-of-five test.

A home from a 1031 exchange

If you got the home in a 1031 exchange, you must own it for five years before the exclusion applies at all. (See the exclusion and 1031.)

Reporting the sale

When you don’t report it

If your whole gain is excluded and you don’t receive a Form 1099-S, you generally don’t report the sale. Title companies often skip the 1099-S when you certify at closing that the gain is fully excludable.

When you do

If you receive a 1099-S, or any gain is taxable, the sale goes on Form 8949 and Schedule D, with the exclusion shown as an adjustment. Keep your closing statements and improvement records for at least three years after filing.

Colorado

Colorado follows the federal exclusion. Taxable gain is taxed at 4.4% as ordinary income, and a large gain counts toward Colorado’s $300,000 deduction addback. (See Colorado highlights.)

Will the exclusion grow?

Bills to double the exclusion and index it to inflation, or to end the tax on home sales altogether, have been introduced but haven’t moved out of committee. (See Still pending.)

Common questions

Do I have to buy another house to avoid the tax?

No. That was the old rule, replaced in 1997. Today the exclusion applies whether or not you buy again.

I’ve lived here 30 years. Is there a bigger exclusion for long ownership?

No. The limit is $250,000 or $500,000 no matter how long you’ve owned the home. That’s why records of improvements matter so much for long-time owners.

My husband died last year. Do I get $250,000 or $500,000?

If you sell within two years of his death and haven’t remarried, you can use $500,000. His half of the home also gets a new basis at its value on the date of death, which usually reduces the gain a great deal.

Can I use the exclusion on a rental I used to live in?

Yes, if you lived in it as your main home for two of the five years before the sale. Depreciation claimed while it was rented is still taxed, and years it was rented before you moved in can make part of the gain taxable.

I lost money on my house. Can I deduct it?

No. A loss on the sale of a personal residence isn’t deductible.

Questions about a sale?

The exclusion is decided by dates, and the gain by records. Bring the closing statements, the improvement receipts and the dates you lived there, and we will run the numbers before you file. Taxes can be tough, but the Tax Shop has your back.

General information about federal and Colorado income tax for the 2026 tax year, as the law and IRS guidance stood on November 2, 2026. It is not advice about your return. Congress, the IRS and the annual inflation figures change; where something here matters to you, confirm it with a professional who knows your facts. How these articles are written.