Capital gains on a long-held East Bay home: what you might owe when you sell

If you bought your East Bay home decades ago, your gain could be well past what most people expect. The good news is that a big part of it may be tax-free. The federal home sale exclusion lets you leave out up to $250,000 of gain, or $500,000 for a married couple filing jointly, and California follows the same rule. What's left can be taxed at both levels.

Here's how the gain is figured, what lowers it, and the situations that change the math. Talk to a CPA or tax advisor about your own numbers before you sell.

Kenny's take

Gather your improvement receipts before you list, even the old ones, because they can lower your taxable gain. And talk to a CPA about your own numbers before you sign a contract, not after.

Who qualifies for the exclusion

You generally qualify if, during the five years before the sale, you:

  • Owned the home for at least two years, and
  • Lived in it as your main home for at least two years.

The two years don't have to be in a row. You generally can't use the exclusion if you used it on another home sale in the two years before this one. For the full $500,000, either spouse can meet the ownership test, but both must meet the use test.

How the gain is figured

Your gain is roughly:

Sale price − selling costs − adjusted basis

  • Selling costs include commission, transfer taxes and other closing costs you pay.
  • Adjusted basis starts with what you paid, plus certain purchase costs, plus the cost of capital improvements like a new roof, a remodel or an addition. Ordinary repairs don't count.

If you've owned the home a long time, receipts for old improvements can matter a lot. Gather what you can, even if it's old.

An example

This is a simplified example with round numbers. A married couple bought their home for $250,000 and later spent $100,000 on improvements. They sell for $1,200,000 and pay $70,000 in selling costs.

  • Amount realized: $1,200,000 − $70,000 = $1,130,000
  • Adjusted basis: $250,000 + $100,000 = $350,000
  • Gain: $1,130,000 − $350,000 = $780,000
  • Exclusion for a married couple: $500,000
  • Taxable gain: $280,000

Without the improvement records, the taxable gain in this example would be $100,000 higher.

How the rest is taxed

  • Federal: long-term gains are taxed at 0%, 15% or 20%, depending on income, and some sellers also owe the 3.8% net investment income tax.
  • California: there's no lower rate for capital gains. California taxes them as ordinary income, at your regular state rate.

Situations that change the math

  • A spouse has died. In a community property state like California, a surviving spouse can generally get a new basis on the whole home, not just the deceased spouse's half, when it was community property. That can shrink or erase the gain. A surviving spouse who sells within two years of the death may also still claim the $500,000 exclusion, if other conditions are met.
  • You inherited the home. Inherited property generally gets a basis equal to its value at the date of death. My selling an inherited home guide covers this.
  • You rented it out. Depreciation you claimed (or could have claimed) after May 6, 1997 can't be excluded, and time spent as a rental can reduce the exclusion.
  • You don't meet the two-year test. A partial exclusion may be available after a move for work, health or certain unforeseen events.

Will the exclusion go up?

The $250,000 and $500,000 limits haven't changed since 1997. Several bills in Congress would raise or remove them, including the More Homes on the Market Act, but none had become law as of fall 2026. Plan around the current limits unless that changes.

Questions sellers ask me

Do I have to buy another home to avoid the tax? No. That was the old rule before 1997. The exclusion doesn't require buying again.

Do I report the sale if all my gain is excluded? Often not, but you will if you receive a Form 1099-S or have a taxable gain. Your tax preparer can tell you.

Should I wait to sell? Timing can matter, especially after a spouse's death or if you're close to two years in the home. That's a question for your CPA, with your numbers.

Thinking about selling a home you've owned for years?

I'll give you a realistic sale price and a net sheet with selling costs, so you and your CPA can work out the tax before you list. If you're also weighing a move to a smaller home, see my Prop 19 guide. When you hire me, you work with me.

Text me at 510-381-0988 or call 510-545-6932.

Sources

General information, not tax advice. Checked November 29, 2026.

More guides