← All articles
SellingCapital GainsEast Bay

Home Sale Capital Gains Exclusion: Who Qualifies?

The home sale capital gains exclusion can shield up to $500K in profit from taxes. Here is who qualifies along the I-680 corridor.

Home Sale Capital Gains Exclusion: Who Qualifies?

TL;DR: The federal home sale capital gains exclusion lets you shield up to $250,000 in profit (single filers) or $500,000 (married filing jointly) from taxes — but only if you pass the IRS ownership and use tests [1]. Along the I-680 corridor, where long-held properties have appreciated significantly, understanding exactly who qualifies is the difference between a tax-free windfall and a six-figure surprise.

Key Takeaways

  • You may exclude up to $250,000 of gain from your income as a single filer, or up to $500,000 if you file a joint return with your spouse, provided you meet the ownership and use tests [1].
  • Both tests require at least 24 months (2 years) within the 5-year period ending on the date of sale — but those 24 months do not need to be consecutive.
  • Selling expenses such as agent commissions, escrow fees, and attorney fees reduce your amount realized, shrinking your taxable gain before the exclusion even applies.
  • East Bay homeowners who purchased decades ago often carry gains that dwarf the exclusion thresholds — making basis documentation and professional tax guidance essential.
  • A partial exclusion may be available if you fail the full tests due to a job change, health issue, or other qualifying circumstance.

What Is the Home Sale Capital Gains Exclusion?

The home sale capital gains exclusion is a federal tax provision that lets qualifying homeowners exclude a portion of the profit from selling their primary residence. If you have a capital gain from the sale of your main home, you may qualify to exclude up to $250,000 of that gain from your income, or up to $500,000 of that gain if you file a joint return with your spouse [1].

This is not a deferral — the excluded gain simply does not count as taxable income. For many homeowners along the I-680 corridor who bought in Alamo, Danville, or Walnut Creek years ago and have watched values climb, this exclusion is the single most consequential tax benefit available at closing.

The exclusion applies per sale, not per person over a lifetime. You can claim it repeatedly as long as you meet the requirements each time. But there is a cooldown: you generally cannot claim the exclusion if you excluded gain from the sale of another home during the two-year period before the current sale.

Who Qualifies? The Ownership and Use Tests Explained

The IRS sets two tests you must pass to claim the full exclusion:

The Ownership Test: You (or your spouse, if filing jointly) must have owned the home for at least 24 months out of the 5-year period ending on the date of sale.

The Use Test: You and your spouse (if filing jointly) must each have used the home as your primary residence for at least 24 months of the previous 5 years. Both spouses must meet the use test individually.

A few details matter here. The ownership and use periods do not need to overlap — you can meet them during different 2-year windows within the 5-year lookback. The 24 months also do not need to be consecutive. If you lived in your Walnut Creek home for 14 months, moved to a rental for a year while testing a job in San Francisco, then moved back for another 10 months before selling, you have met the 24-month use requirement.

For couples filing jointly, only one spouse needs to meet the ownership test, while both must meet the use test. This distinction matters in second marriages where one spouse owned the home before the wedding.

TestWho must pass it (joint filers)Minimum periodLookback window
OwnershipEither spouse [1]24 months [1]5 years ending on sale date [1]
UseBoth spouses individually [1]24 months [1]5 years ending on sale date [1]

What If You Don’t Meet the Full Requirements?

Life does not always cooperate with tax timelines. The IRS allows a partial exclusion when you fail the ownership or use test — or the two-year cooldown — due to a qualifying circumstance. These include a job change, a health condition, or certain unforeseen events.

If you are on qualified official extended duty in the Uniformed Services, the Foreign Service, or the intelligence community, you may elect to suspend the 5-year test period for up to 10 years. You qualify for the suspension if, for more than 90 days or for an indefinite period, you are at a duty station at least 50 miles from your main home, or residing in government housing under government orders.

The partial exclusion is prorated. If you met a portion of the required residency before a qualifying event forced your move, the IRS lets you exclude a proportional share of the maximum. This is worth exploring with a tax professional before you assume you owe taxes on the entire gain.

How Does Divorce Affect the Exclusion?

Divorce introduces complications that trip up even experienced sellers. The key IRS rules work in your favor if you understand them:

If the home is transferred to you as part of the divorce settlement, your ex-spouse’s period of ownership counts toward your ownership test. This prevents the clock from resetting when ownership changes hands between spouses or former spouses under a divorce decree.

Each former spouse filing individually may qualify for the single-filer exclusion on their share of the gain, but each must independently meet the use test — meaning each must have lived in the home for at least 24 months of the 5-year period.

The scenario that creates problems is when one spouse moved out years before the sale. If you left the marital home in Danville three years ago and the divorce drags into a fourth year before the property sells, you may not have lived there for 24 of the last 60 months. In contested divorces, this timing can cost real money. A family law attorney and a tax advisor should both weigh in before the listing goes live.

Which Selling Expenses Reduce Your Gain Before the Exclusion?

Even before the exclusion applies, your taxable gain is smaller than you might think. The IRS calculates gain as your “amount realized” — the sale price minus selling expenses — minus your adjusted basis [2].

Selling expenses that reduce your amount realized include agent commissions, attorney fees, closing fees, escrow fees, document preparation fees, notary fees, appraisal fees, and title insurance premiums. These are costs that do not physically alter the property but are necessary to complete the sale.

Your adjusted basis is generally what you paid for the home plus the cost of capital improvements you made over the years. A new roof, a kitchen remodel, an HVAC replacement, a room addition — these all increase your basis and lower your taxable gain. Routine maintenance and repairs, however, do not qualify.

This matters enormously in the East Bay. If you are sitting on substantial appreciation, every documented improvement shrinks the gap between your basis and your sale price. Keep every receipt, every contractor invoice, every permit record. The IRS does not care what you remember spending — it cares what you can prove.

How Does California Tax the Gain?

California does not offer its own version of the home sale exclusion. The state taxes capital gains as ordinary income, which means any gain that exceeds the federal exclusion threshold is subject to both federal and California state taxes.

The federal exclusion still applies — it reduces your federal taxable gain. But the state starts from the same calculation and applies its own rates to whatever remains above the exclusion. For long-term East Bay homeowners whose appreciation has been dramatic, the state tax layer is not trivial.

This is one reason we encourage sellers considering a home valuation to also schedule a conversation with a CPA or tax attorney before listing. Knowing your likely tax exposure before you price the home lets you plan the net proceeds realistically rather than reacting at closing.

What Records Should You Keep?

Documentation is the foundation of claiming the exclusion and minimizing the gain above it. You need to be able to prove three things:

Ownership dates. Your original purchase settlement statement, deed, and any transfer documents from a refinance, inheritance, or divorce decree.

Residency. Utility bills, voter registration, DMV records, tax returns listing the address — anything that shows you lived in the home during the required periods.

Basis adjustments. Receipts, invoices, and permits for every capital improvement. Advertising and staging costs from the sale itself also count toward selling expenses that reduce your amount realized. If you receive a Form 1099-S documenting the proceeds, you must report the sale on your return even if the gain is fully excludable [1].

The IRS recommends keeping these records for at least three years after filing the return that reports the sale. For East Bay homeowners who plan to claim the exclusion on a future sale after buying their next home, keeping records indefinitely is the safer approach.

How Does This Apply Along the I-680 Corridor?

Property values in Alamo, Danville, Walnut Creek, and the surrounding towns have climbed substantially over the past two decades. Many homeowners who bought during earlier market cycles are now carrying appreciation that pushes well past the exclusion thresholds.

Our team has closed 529 MLS transactions totaling $527.4 million between 1996 and 2024. In Alamo alone, the team’s sold record covers 219 closed transactions with a median sale price of $1,115,000. In Danville, 202 closed transactions at a median of $855,000. Those medians tell you something about the magnitude of gains long-term owners may face.

The practical takeaway: if you purchased in any of these towns more than a decade ago, your gain is likely large enough that the exclusion covers only a portion of it. The rest is taxable at both the federal and state level. This does not mean you should not sell — it means you should know your numbers before you list. A pricing strategy conversation that ignores tax exposure is incomplete.

What About a 1031 Exchange?

The 1031 exchange is a separate IRS provision that lets you defer capital gains by reinvesting the proceeds into a like-kind investment property. It does not apply to your primary residence — only to investment or business-use properties.

If you converted your East Bay home into a rental before selling, a 1031 exchange might be an option, but doing so generally disqualifies you from claiming the home sale exclusion on the same property for the period it was not your primary residence. The interaction between these two provisions is complex enough that it requires individualized tax advice. Do not assume you can stack them.

Why This Matters

As of November 2026, the I-680 corridor remains one of the highest-appreciation residential markets in the Bay Area. Homeowners who rode two decades of price growth are sitting on gains that the exclusion was never sized to fully cover. The federal thresholds — $250,000 for single filers and $500,000 for joint filers [1] — have not been adjusted since the provision was introduced, even as Bay Area home values have multiplied.

That disconnect means tax planning is no longer optional for East Bay sellers. It is as important as staging, pricing, and choosing the right listing window. If you are considering selling a home you have owned for more than a few years, start with two conversations: one with a CPA who understands California capital gains, and one with an agent who can show you what your home is likely to bring in today’s market.

McDaniel Real Estate Group has been helping sellers along the I-680 corridor navigate these decisions since 1985. If you want to understand what your home is worth and how the numbers flow from sale price to net proceeds, request a home valuation and we will walk through it together — including the tax line items most sellers overlook. You can also review our sold record to see how we have priced and closed homes across Alamo, Danville, Walnut Creek, and the surrounding towns.

Sources

[1] irs.gov, “Topic no. 701, Sale of your home | Internal Revenue Service”. https://www.irs.gov/taxtopics/tc701

[2] nolo.com, “Home Selling Expenses That Reduce Your Capital Gains Tax”. https://www.nolo.com/legal-encyclopedia/when-home-sellers-can-reduce-capital-gains-tax-using-expenses-sale.html

Frequently Asked Questions

Can I use the home sale capital gains exclusion more than once?

Yes, but generally not more than once every two years. The IRS requires that you have not excluded gain from the sale of another home during the two-year period before the current sale. There is no lifetime cap on the number of times you can claim it.

Does the exclusion apply if I rented out my home for a few years?

It can, as long as you meet both the ownership and use tests. You must have owned the home for at least two of the last five years and used it as your primary residence for at least two of those five years. The rental period does not automatically disqualify you, but it may reduce the excludable amount in some cases.

What happens to the exclusion in a divorce?

If your divorce decree grants you ownership of the home, the IRS counts your former spouse's time of ownership toward your ownership test. Each ex-spouse filing individually can exclude up to the single-filer amount on their share of the gain if they independently meet the use test.

Do I still need to report the sale if my gain is fully excluded?

If you receive a Form 1099-S reporting the proceeds, the IRS requires you to report the sale on your return even if your entire gain qualifies for the exclusion. Failing to report can trigger an IRS inquiry.

Does California have its own capital gains exclusion for home sales?

No. California taxes capital gains as ordinary income at the state level and does not offer a separate home sale exclusion. The federal exclusion still applies to reduce your federal liability, but any gain above the federal threshold is taxed by both the federal government and the state.

What is your home actually worth?

Get a pricing opinion built from five decades of local sales — not an algorithm. No obligation, no spam.

Get My Home Value

Related reading

Call Text Home Value