Capital gains on a home sale in California
Long-time LA owners often have more equity than they think, and more gain too. This illustration shows how the gain math works so you can bring better questions to your CPA.

Illustrate the gain.
Need a selling cost figure? The cost to sell calculator estimates one.
The gain math, in plain English
The gain on a home sale starts with the amount realized: the sale price minus selling expenses. Subtract the adjusted basis, which generally means what you paid plus certain purchase costs plus the cost of improvements. What is left is the gain. The home sale exclusion may then reduce it. That is the whole structure of this tool, and it mirrors the worksheets in IRS Publication 523.
A married couple filing jointly bought for $600,000 and spent $150,000 on improvements, for an adjusted basis of about $750,000. If they sold for $1,900,000, ignoring selling costs for simplicity, the gain would be about $1,150,000. If they met the tests for the full $500,000 exclusion, about $650,000 of gain could still be taxable at the federal and California level.
A single owner bought for $700,000, added $50,000 of improvements and sold for $1,100,000 with $60,000 of selling costs. The gain would be about $290,000, which is within a $250,000 exclusion if it applies, leaving about $40,000 potentially taxable in this illustration.
Simplified illustrations. Depreciation, rental or home office use, filing status and many other facts change the result.
The home sale exclusion
Federal law lets many owners exclude up to $250,000 of gain on the sale of a main home, or $500,000 for a married couple filing jointly. The general tests are ownership and use: owning the home for at least 24 months of the 5 years before the sale, and living in it as a main home for at least 24 months of those 5 years. The 24 months do not have to be continuous. For a joint return, only one spouse has to meet the ownership test, but each spouse must meet the use test individually for the full $500,000 (IRS Publication 523).
Owners who do not meet the tests may still qualify for a reduced exclusion in some situations, such as a move for work, health or certain unforeseen circumstances. Gain tied to depreciation from past rental or home office use is generally not excluded. These are exactly the details a CPA sorts out, and they are why the tool asks only a yes or no question and points to a professional for the rest.
How California treats the gain
California generally follows the federal home sale exclusion. Where it differs is the rate: California does not have a lower rate for capital gains, and the Franchise Tax Board states that all capital gains are taxed as ordinary income (FTB: capital gains and losses). Federally, long-term gains have their own rates of 0%, 15% or 20% depending on taxable income (IRS Topic 409), and higher-income sellers may also face the 3.8% net investment income tax (IRS). This tool does not calculate any of that, because the answer depends on the rest of a seller's income and return.
Moving out of state does not usually erase it
A common assumption among people leaving LA is that moving first and selling later keeps the gain away from California. Generally, it does not. California treats gain from selling California real estate as California-source income, which it can tax even after the seller has moved. We cover this in more depth in does California tax my home sale after I move?
There is a related cash question at closing. Unless an exemption applies, escrow generally withholds 3 1/3% of the sales price for the Franchise Tax Board. It is a prepayment credited on the California return, not an extra tax (FTB Publication 1016). The net proceeds calculator can show it.
Basis records are worth their weight
For long-time owners, documented improvements can meaningfully change the gain. Kitchen and bath remodels, additions, a new roof, new systems and permanent landscaping can count; routine repairs and maintenance generally do not. Keep the original closing statement, receipts, contracts and permits. If records are thin, start gathering them before listing, not after. The seller's playbook has a list of questions to bring to your CPA.
Sources
- IRS Publication 523: Selling Your Home
- California FTB: Capital gains and losses
- California FTB Publication 1016: Real Estate Withholding
- IRS Topic 409: Capital gains and losses
- IRS: Net Investment Income Tax
Rates and rules checked October 14, 2026. They change, so confirm with the source before relying on them.
Common questions
How much of a home sale gain can be excluded?
Under federal rules, many owners can exclude up to $250,000 of gain on the sale of a main home, or up to $500,000 for a married couple filing jointly, if they meet the ownership and use tests: generally owning and living in the home as a main home for at least 2 of the 5 years before the sale (IRS Publication 523). Whether it applies depends on each owner's facts.
Does California tax capital gains differently?
California does not have a lower rate for capital gains; the FTB says all capital gains are taxed as ordinary income (FTB). California generally follows the federal home sale exclusion. A CPA can show how both returns treat a specific sale.
If I move out of California, is the gain still taxed by California?
Often, yes. California generally treats gain from selling California real estate as California-source income, which it can tax even after the seller has moved. The details depend on the facts, so treat this as background for a conversation with a CPA.
What counts toward the basis of a home?
Generally the purchase price plus certain settlement costs from the purchase, plus the cost of improvements that add value, extend the home's life or adapt it to new uses. Routine repairs generally do not count. IRS Publication 523 lists examples, and records such as receipts and permits matter.



