Capital Gains Tax Exclusion When Selling Your CA Home

Aerial view of a suburban California residential neighborhood

If you’ve owned and lived in your California home for at least two of the last five years, you can exclude up to $250,000 of profit from capital gains tax when you sell — $500,000 if you’re married and filing jointly. This is Section 121 of the federal tax code, California honors the same exclusion on your state return, and it’s separate from the stepped-up basis rules that apply to inherited property.

The Two Tests You Have to Meet

You need to satisfy both an ownership test and a use test: you must have owned the home for at least two years out of the five years before the sale, and used it as your primary residence for at least two of those same five years. The two years don’t have to be consecutive, and they don’t have to be the same two years for ownership and use in every case, but most sellers meet both simply by having lived in the house they own.

California generally conforms to this federal exclusion under Revenue and Taxation Code Section 17152, so there’s no separate, smaller state-level exclusion to worry about — the same $250,000 or $500,000 figure applies on your California return.

The Partial Exclusion When You Haven’t Hit Two Years

If you’re selling before hitting the two-year mark because of a job relocation, a health issue, divorce, or certain other unforeseen circumstances defined under IRS regulations, you may still qualify for a reduced exclusion, prorated based on how much of the two years you actually met. Someone who lived in the house 18 months before a qualifying job relocation, for example, may be able to claim roughly 75% of the full exclusion rather than losing it entirely. This is exactly the gap in most guides on this topic — they explain the full exclusion in detail and barely mention that a partial one exists for people forced to sell early.

Why This Isn’t the Same as Inherited Property’s Stepped-Up Basis

It’s easy to mix these up because both reduce a seller’s tax bill, but they apply to different people in different situations. Section 121 is for an owner-occupant selling a home they’ve lived in. Stepped-up basis applies to an heir who inherits property — their cost basis resets to the property’s value at the date of death, which is a completely different mechanism and doesn’t require the two-year ownership or use test at all. If you inherited the house you’re selling rather than living in it yourself, Section 121 usually isn’t the relevant provision for you.

What Counts as Gain, and What Doesn’t

Your taxable gain is your sale price minus your adjusted cost basis — generally what you paid, plus the cost of capital improvements over the years, minus any depreciation claimed if part of the home was ever rented out. Ordinary maintenance and repairs don’t add to basis; a new roof, an addition, or a remodel generally does. Keeping records of major improvements over the years is what protects the exclusion from covering more taxable gain than it needs to.

If Part of the House Was a Rental

Converting a house to a rental and back, or renting out a portion while living in the rest, can complicate the calculation — depreciation taken during the rental period generally has to be recaptured and taxed separately, even within an otherwise qualifying sale. This is a case where getting a CPA involved before listing, not after, usually saves money.

When the Exclusion Won’t Cover Everything

In parts of Los Angeles, Orange, and San Diego counties where home values have climbed for decades, it’s increasingly common for a long-time owner’s gain to exceed even the $500,000 joint exclusion. If that’s your situation, the exclusion still reduces the bill substantially — it just won’t eliminate it, and the remaining gain is taxed at capital gains rates. A CPA can model the actual number before you commit to a sale price or a closing date.

  • Confirm you meet both the two-year ownership test and the two-year use test
  • Gather records of capital improvements to reduce your taxable gain
  • Ask about the partial exclusion if you’re selling early for a job, health, or divorce reason
  • Get a CPA to run the numbers before listing if any part of the home was ever rented

This is general information, not tax advice — your actual exclusion depends on your ownership history, basis, and filing status, so confirm the numbers with a CPA before you sell. If you need to sell quickly for a job relocation or another qualifying reason, Cash Home Buyers CA can provide a no-obligation cash offer on your timeline.