Do I Owe Capital Gains When I Sell My Home? The $250K/$500K Rule, Explained

by Devin Beck

Stack of coins in front of a small white ceramic house with a coral roof on a wooden table

"We bought this house a long time ago. If we sell, do we owe a giant tax bill?"

I hear some version of that from homeowners in Centennial, Greenwood Village and Cherry Hills Village almost every week.

Usually it's the folks who've been in the same house 15 or 20 years. Kids grown. Equity way up. And a quiet worry that the IRS is going to take a big bite.

Here's the good news. Most people who sell their main home owe nothing on the gain.

But "most" isn't "everyone." And South Denver has more long-time owners near the line than you'd think.

This is post 4 of my series, Your 2027 Spring Selling Game Plan. In the last one, I walked through what Colorado sellers actually net after closing costs. Today is the tax piece.

Quick note before we start: I'm a real estate broker, not a CPA. This is general education from IRS and Colorado sources, not tax advice. Your tax pro gets the final word.

The Short Answer

  • The first $250,000 of gain is tax-free if you're single. $500,000 if you're married filing jointly.
  • You generally need to have owned and lived in the home 2 of the last 5 years. And not used the exclusion on another home in the last 2 years.
  • Gain isn't your sale price. It's your price, minus selling costs, minus what you paid, minus improvements.
  • Above the exclusion, federal long-term rates are 0%, 15% or 20%. Some sellers also owe a 3.8% investment tax.
  • Colorado taxes the taxable part too. 4.4% for 2026, and taxable home-sale gain stays at 4.4% in 2027 under the new Amendment 87.

The $250,000 / $500,000 Rule

It's Section 121 of the tax code, and the IRS explains it in Publication 523, Selling Your Home.

If you qualify, you can exclude up to $250,000 of gain from your income. Married couples filing a joint return can exclude up to $500,000.

Excluded means excluded. It doesn't show up as taxable income.

Those limits were set in 1997. They've never been adjusted for inflation. That's why this question comes up more every year.

Do You Qualify? The Three Tests

The IRS calls this the Eligibility Test. Here's what it means:

  • Ownership. You owned the home at least 24 months out of the 5 years before closing.
  • Residence. You lived in it as your main home at least 24 months (730 days) in those same 5 years. It doesn't have to be one stretch. Vacations and short trips still count as living there.
  • Look-back. You didn't take the exclusion on another home sale in the 2 years before this one.

Married? For the full $500,000, only one of you has to meet the ownership test. But both of you have to meet the residence test.

A few special situations have their own rules. Surviving spouses, divorce, military and Foreign Service duty, and a home you once rented out all get special treatment in Pub 523.

First, Figure Your Actual Gain

This is where people get nervous for no reason.

Your gain is not your sale price minus what you paid. Here's the IRS formula:

Sale price − selling expenses = amount realized.
Amount realized − adjusted basis = gain.

Selling expenses include things like commission and other seller closing costs. I broke those down in What Will I Actually Net?

Your adjusted basis starts with what you paid, plus certain closing costs from your purchase. Then you add improvements.

Improvements Count. Repairs Don't.

Every real improvement you've made can raise your basis and shrink your gain.

Pub 523's list includes things like:

  • Additions: a bedroom, bathroom, deck, garage or patio
  • A new roof, new siding, storm windows
  • Kitchen modernization, flooring, built-in appliances
  • A new furnace, central air, ductwork, wiring, water heater
  • Landscaping, a driveway, a fence, a sprinkler system

What doesn't count? Repairs and maintenance that just keep the house in good shape. Painting. Fixing a leak. Replacing broken hardware. Also out: improvements that aren't part of the house anymore, like carpet you've since replaced.

One exception: repair-type work done as part of a big remodel can count as part of that improvement.

So if you finished the basement in Highlands Ranch, redid the kitchen in Littleton or put a new roof on after a hail storm, find those receipts. If insurance paid for the roof, talk with your tax pro about how that reimbursement affects your basis.

Wondering which projects actually pay you back at sale? Here's what home improvements actually add value.

How Many South Denver Owners Are Over the Line?

More than you'd guess.

NAR's May 2026 study, The Growing Gap Between Home Prices and Capital Gains Limits, estimates about 13.1 million U.S. homeowners, or 15%, already have gains above their exclusion.

In Colorado, NAR puts it at 24.7% of homeowners. In the Denver-Aurora-Lakewood metro, about 237,000 homeowners, or 29.5%.

Two caveats. Those are estimates of potential gains based on how long people have owned and how much prices rose. And NAR didn't subtract improvements, which can lower a real gain a lot.

Why are long-time owners exposed? Look at prices. FHFA's house price index for the Denver metro rose about 185% from Q3 2001 to Q3 2026. Since Q3 2016, it's up about 74%.

So if you bought recently, you're probably nowhere near the limit. If you bought 20+ years ago, it's worth running the math.

If Your Gain Is Over the Limit: The Federal Rates

Only the gain above your exclusion is taxable.

If you owned the home more than a year, that's a long-term capital gain. The federal rate is 0%, 15% or 20%, depending on your total taxable income.

Long-term capital gains rate (taxable income) 2026 sale 2027 sale
0%, married filing jointly, up to $98,900 $102,100
15%, married filing jointly, up to $613,700 $633,600
0%, single, up to $49,450 $51,050
15%, single, up to $545,500 $563,200
20% Above those Above those

Source: IRS Rev. Proc. 2025-32 (tax year 2026) and Rev. Proc. 2026-35 (tax year 2027). Head-of-household and married-filing-separately amounts are in the same documents.

Selling this spring? That's tax year 2027, so the right column is the one that applies.

The 3.8% Net Investment Income Tax

There's one more federal layer for higher-income sellers.

The NIIT is 3.8%. It applies when your modified adjusted gross income is over $250,000 (married filing jointly) or $200,000 (single or head of household). Those thresholds aren't indexed for inflation.

The good news? The IRS says the part of your gain you exclude under Section 121 isn't subject to the NIIT. Only the taxable part can be.

What About Colorado?

Colorado starts with your federal taxable income. So the gain you exclude federally isn't taxed by Colorado either.

The taxable part is. For 2026, Colorado's income tax rate is a flat 4.4%, per the Department of Revenue's 2026 estimated tax form.

And here's something new. On November 3, 2026, Colorado voters approved Amendment 87. Starting with tax year 2027, it replaces the flat rate with graduated rates from 3.7% to 8.4%.

But the measure's text carves out home sales. Taxable gain from selling your principal residence, above the Section 121 exclusion, is taxed at 4.4%, no matter which bracket the rest of your income falls in.

The amendment takes effect once the Governor formally declares the vote (in past years, that's happened before the end of December), and the Department of Revenue will need to publish 2027 forms and guidance. Have your tax pro confirm how it applies to you.

Haven't Lived There 2 Years? You May Get a Partial Exclusion

Life doesn't always wait 24 months.

If you don't meet the full test, Pub 523 says you may still get a partial exclusion if the main reason you sold was:

  • A work move. A new job at least 50 miles farther from the home than your old one.
  • Health. Moving for treatment, or to care for a family member.
  • An unforeseeable event. Things like a death, a divorce or legal separation, becoming eligible for unemployment, or multiple births from the same pregnancy.

The math is a fraction. Take the shortest of your time living there, your time owning it, or the time since you last used the exclusion. Divide by 24 months, and multiply by $250,000. Married couples run it for each spouse and add the two.

Example: you owned and lived there 12 months, then moved for a qualifying new job. 12 ÷ 24 = half, so up to $125,000 of gain could be excluded.

Home Office, Basement Rental or Former Rental? Read This

This is where sellers get surprised.

  • Depreciation comes back. If you claimed (or could have claimed) depreciation for a home office or a rented room after May 6, 1997, that part of the gain can't be excluded. The IRS calls it unrecaptured Section 1250 gain, and it's taxed at a maximum 25% rate.
  • A separate rental unit is different. A duplex unit or other space outside your living area may need its own gain calculation.
  • Renting before you moved in. If the home was a rental or second home after 2008 before it became your main home, part of the gain may not qualify.

Any of these apply to you? That's a "talk to your CPA before you list" situation.

Example: Two Sellers, Two Very Different Outcomes

Example only. These are made-up numbers with stated assumptions, not tax advice and not an estimate for your home. Real returns have more moving parts.

Seller 1: a Centennial couple who bought in 2016. They paid $400,000 (including purchase closing costs), put in $30,000 of improvements, and sell in spring 2027 for $650,000, right at DMAR's year-to-date detached median. Assume $45,500 in selling costs (7%).

Gain: $650,000 − $45,500 − $430,000 = $174,500. That's under $250,000, so even a single seller who qualifies would owe no federal or Colorado tax on the gain.

Seller 2: a Greenwood Village homeowner who bought in 2001. They paid $450,000 (including purchase closing costs) and put in $150,000 of improvements over the years. They sell in spring 2027 for $1,300,000. Assume 7% in selling costs ($91,000).

Amount realized: $1,209,000. Adjusted basis: $600,000. Gain: $609,000.

Now watch what filing status does. Assume $150,000 of other taxable income, the 2027 standard deduction, no other investment income, no depreciation and no other complications.

Seller 2 (example) Married, filing jointly Single
Gain $609,000 $609,000
Section 121 exclusion −$500,000 −$250,000
Taxable gain $109,000 $359,000
Federal at 15% $16,350 $53,850
3.8% NIIT (on the part of income over the threshold) $1,604 $12,373
Colorado at 4.4% $4,796 $15,796
Estimated tax on the sale (example) $22,750 $82,019

Same house. Same gain. Roughly $59,000 difference, just from filing status.

That's why this matters so much for widowed and divorced homeowners. One rule to know: a surviving spouse who hasn't remarried may still use the $500,000 limit if the home sells within 2 years of the spouse's death and the other tests are met.

How the example works: the $150,000 of other income fills the 0% bracket, so the whole taxable gain lands in the 15% federal bracket. Modified AGI is estimated as other taxable income plus the 2027 standard deduction ($33,200 joint, $16,600 single) plus the taxable gain. The NIIT applies to the smaller of the taxable gain or the amount of modified AGI over the threshold. Colorado's 4.4% applies to the taxable gain only. Your numbers will be different.

A Few Things That Trip People Up

  • You may still have to report the sale. If you get a Form 1099-S from the title company, the IRS says you report the sale even if none of the gain is taxable.
  • A loss isn't deductible. Selling your main home for less than your basis doesn't give you a tax write-off.
  • Age doesn't change the limits. Section 121 has no age test. The $250,000 / $500,000 rule is the same at 35 or 75.
  • Inherited homes work differently. Your basis is usually the home's fair market value on the date of death, not what the original owner paid. Pub 523 covers the details, including jointly owned homes.
  • Congress hasn't changed the limits. Bills to raise the cap (H.R. 1340) or remove it (H.R. 4327) were introduced, but as of late November 2026 neither had made it out of committee. Plan on current law.

A Few Questions to Ask Yourself

  • Have I owned and lived in this home at least 2 of the last 5 years?
  • Do I know my real basis, including improvements?
  • Has anything changed my filing status, like a divorce or a spouse's passing?
  • Did I ever use part of the home for a business or rental?
  • Does my tax pro know I'm thinking about selling this spring?

Thinking about downsizing after a long time in the same house? Here's whether downsizing actually saves money. And if a low mortgage rate is part of what's keeping you put, read Locked Into a Low Rate but Need to Move?

Know Your Number First

You can't estimate a gain without a realistic sale price. Start with what your home is worth today. Then take that number to your CPA.

Get Your Free Home Value

Thinking about selling? Grab my free Seller's Guide. Call or text 720-935-7537.

Frequently Asked Questions

Do I have to pay capital gains tax when I sell my house in Colorado?

Often, no. If you owned and lived in the home as your main home for at least 2 of the 5 years before the sale, you can generally exclude up to $250,000 of gain, or $500,000 if married filing jointly. Only gain above that is taxable, federally and in Colorado.

How is the gain on a home sale calculated?

Start with the sale price and subtract selling expenses like commission to get the amount realized. Then subtract your adjusted basis: what you paid, plus certain purchase closing costs, plus improvements like a new roof, addition or kitchen remodel. Repairs and maintenance don't count.

What if I haven't lived in my home for 2 years?

You may still qualify for a partial exclusion if the main reason you sold was a work move of at least 50 more miles, a health reason or an unforeseeable event like a divorce or becoming eligible for unemployment. The exclusion is prorated, for example 12 months divided by 24 times $250,000.

What is Colorado's tax rate on home sale gains?

Colorado taxes income at 4.4% for 2026. Amendment 87, approved by voters in November 2026, moves Colorado to graduated rates in 2027, but its text keeps taxable gain from selling a principal residence, above the federal Section 121 exclusion, at 4.4%. Gain you exclude federally isn't taxed by Colorado.

Does the 3.8% net investment income tax apply to my home sale?

Only to the taxable part. The IRS says gain excluded under Section 121 isn't subject to the NIIT. The 3.8% tax applies only if your modified adjusted gross income is over $250,000 married filing jointly or $200,000 single, and those thresholds aren't indexed for inflation.

Can a home office or rental affect my exclusion?

Yes. Depreciation you claimed, or could have claimed, after May 6, 1997 for a home office or rental can't be excluded and is taxed at up to 25%. A rental period after 2008 before you moved in can also reduce the exclusion. Talk with a CPA before you list.

Your 2027 Spring Selling Game Plan

  1. What Will the Denver Housing Market Do in 2027?
  2. Should I Get a Pre-Listing Inspection?
  3. What Will I Actually Net? Seller Costs in Colorado, Explained
  4. Do I Owe Capital Gains When I Sell My Home? (you're reading it)
  5. How to Price Your Home in a Market With More Listings (coming soon)

Also see: Is It Cheaper to Renovate or Move in 2027? · Does Downsizing Actually Save Money? · Should I Stay, Renovate or Move?

Let's Build Your Spring Plan

If you're in Centennial, Greenwood Village, Cherry Hills Village, Lone Tree, Littleton, Highlands Ranch, Englewood or anywhere in the South Denver Metro, I'm happy to help you get a realistic price and a net sheet. You bring those to your tax pro. Then you decide whether this is your year.

Just real numbers.

Stay. Renovate. Move.

Devin @ The W Real Estate Group

General information only, not tax, legal or financial advice. I'm a real estate broker, not a CPA or attorney. Tax rules have exceptions, and your situation may differ. The examples use made-up numbers and stated assumptions and are not an estimate of your tax. Talk with a CPA or qualified tax professional before you sell. Colorado's Amendment 87 rules for 2027 are based on the measure's text; Department of Revenue guidance is still to come.

Sources

GET MORE INFORMATION

Devin Beck

Devin Beck

Broker Associate License ID: FA100110610

+1(720) 935-7537

Name
Phone*
Message