Selling Your Home in California: The Exclusion, the Gain Above It and the Timing

For many California homeowners, the home is the largest gain they will ever realize. The $250,000 and $500,000 exclusions help, but in many markets they no longer cover it, and the rules around them reward planning.
The home sale exclusion is one of the most generous provisions in the tax code. For a married couple, up to $500,000 of gain on a principal residence can be excluded from income, federally and in California. For decades it meant most homeowners never paid tax on a sale.
In much of California, that is no longer true. A home bought for $900,000 in 2008 and sold for $2.4 million today carries a $1.5 million gain. The exclusion covers a third of it. The rest is taxed federally as a long-term capital gain, often with the 3.8% Net Investment Income Tax on top, and by California as ordinary income at rates up to 13.3%.
Key points
To exclude $250,000 / $500,000 of gain, you generally must have owned and lived in the home for at least two of the five years before the sale.
Gain above the exclusion is taxed federally at up to 20%, plus the 3.8% NIIT, and by California as ordinary income at up to 13.3%.
Every documented capital improvement increases your basis and reduces the taxable gain.
A surviving spouse can generally still exclude up to $500,000 if the home is sold within two years of the spouse’s death.
In California, community property generally receives a full step-up in basis at the first spouse’s death.
Who qualifies, and for how much
The full exclusion requires that you owned the home and used it as your principal residence for at least two of the five years ending on the date of sale, and that you haven’t used the exclusion on another home within the prior two years. For joint filers to claim $500,000, either spouse may meet the ownership test, but both must meet the use test.
If you fall short because you moved for a new job, for health reasons or because of certain unforeseen circumstances, a partial exclusion may still be available, prorated for the time you did meet the tests. A move for a new position at least 50 miles farther away often qualifies.
Basis is the number most people get wrong
Your taxable gain is the sale price, less selling costs, less your adjusted basis. Basis starts with what you paid, including certain closing costs, and increases with every capital improvement: a remodeled kitchen, a new roof, an addition, landscaping, solar, a pool. Repairs and maintenance don’t count; improvements that add value or extend the home’s life do.
Over twenty years of ownership, documented improvements can easily total several hundred thousand dollars. Without records, they’re difficult to support. Assembling them before the sale, while contractors and receipts can still be found, is one of the simplest ways to reduce the tax.
At California prices, every $100,000 of documented improvements can be worth more than $30,000 of tax.
When the home was also a rental or an office
If you rented the home, or used part of it as a home office, the depreciation you were entitled to claim during those periods is not covered by the exclusion. That portion of the gain is taxed federally at up to 25%.
The timing of rental use also matters. Time the home was rented before it became your residence (after 2008) can reduce the exclusion proportionally. Time it was rented after you moved out, within the five-year window, generally does not. A home you’ve moved out of and rented usually has about three years left in which it can be sold with the exclusion intact.
Timing the sale
The tax on the gain above the exclusion depends on what else is happening in the year of sale. A sale in a year with a large bonus, equity vesting or an ISO exercise stacks the gain on top of that income. A sale in a lower-income year, such as the year after retirement or a career transition, can reduce both the federal rate and the NIIT exposure.
A move out of California doesn’t change California’s claim on the gain. California taxes gain on California real property regardless of where you live when you sell. Escrow will also generally withhold 3⅓% of the sales price for California unless an exemption, such as the principal residence exemption, applies and is properly documented.
For couples, and later in life
For a married couple, the death of one spouse changes the analysis significantly. A surviving spouse can generally still claim the full $500,000 exclusion if the home is sold within two years of the death and other conditions are met. Beyond that window, the exclusion drops to $250,000.
In California, community property generally receives a full step-up in basis when the first spouse dies, not only on the deceased spouse’s half. For an older couple with a large gain, that can mean the difference between paying tax on a sale now and a gain that largely disappears later. Whether to sell, when and how title is held are questions worth answering together, and well in advance.
The engineer and the chess player
The engineer reconstructs basis, separates excludable gain from depreciation, and calculates the federal, NIIT and California tax on what remains. The chess player chooses the year. A sale timed into a lower-income year, coordinated with the release of capital losses, charitable gifts of appreciated stock or the timing of a Roth conversion, can change the outcome by tens of thousands of dollars without changing the sale price at all.
What to take from this
A home sale is a single transaction with a long tax history behind it. The exclusion, your basis, any rental or office use, the year of sale and how the home is titled all affect the result. In California, where gains are large and taxed at ordinary rates, it pays to review all of them before the home is listed, not after it closes.
If a home sale is on the horizon, the best time to plan it is before the listing agreement is signed. A complimentary 30-minute consultation is the natural first step.
Natalie C. Papagni, CPA — Tax, Planning & Advisory Services 4275 Executive Square, Suite 200, La Jolla, CA 92037 (858) 754-8277 | service@lajollataxcpa.com | lajollataxcpa.com
Disclaimer: This material is provided for general educational purposes only. It is not tax, legal or accounting advice, and it does not create a CPA–client relationship. Tax outcomes depend on individual facts and circumstances, and figures and rules change from year to year. Consult a qualified professional about your specific situation before acting. Figures reflect 2026 federal and California rules.





Comments