Capital gains on a long-held California home
The short answer
If you owned and lived in your home for two of the five years before the sale, up to $250,000 of gain is excluded, or $500,000 on a joint return. Gain above that is taxable. Federal long-term rates are 0%, 15% or 20%, and California taxes the gain as ordinary income, with no lower capital gains rate.
Will you owe capital gains tax when you sell a long-held California home?
Only on gain above the home-sale exclusion. If you owned and lived in the home for two of the five years before the sale, up to $250,000 of gain is excluded, or $500,000 on a joint return, and California applies the same exclusion. Gain above that is taxable on both the federal and the California return1,4.
Long ownership is what pushes a gain past the limit. The same $250,000 and $500,000 figures have applied to sales after May 6, 1997, according to the Franchise Tax Board4, so they cover a smaller share of a gain built over decades.
Report the sale if you receive Form 1099-S from the closing, even when all of the gain is excluded, and whenever part of the gain is taxable. The report goes on Schedule D and Form 89491,2.
How much of the gain can you exclude?
Up to $250,000, or $500,000 on a joint return, when you meet two tests in the five years ending on the sale date: you owned the home for at least 24 months, and you lived in it as your main home for at least 24 months. The two periods do not have to be the same 24 months1.
- Joint returns. Either spouse can meet the ownership test, but both spouses must meet the use test1.
- Look-back. You generally cannot use the exclusion if you excluded gain on another home sold in the two years before this sale1.
- Shorter stays. A move for work, for health or because of an unforeseeable event can qualify for a partial exclusion, figured with the worksheet in IRS Publication 5232.
- Exchange history. A home acquired through a §1031 like-kind exchange in the past five years does not qualify2.
- Service members. Members of the uniformed services, the Foreign Service and the intelligence community on qualified official extended duty can suspend the five-year period for up to 10 years1. PCS Orders: Sell Your House or Rent It Out? covers that case.
How is your gain calculated?
Gain is the amount realized minus your adjusted basis. The amount realized is the selling price less selling expenses, such as commissions, advertising and legal fees. Adjusted basis starts with what you paid for the home, including the down payment and any loan, then adds most purchase closing costs and the cost of improvements that are still part of the home2.
- Closing costs you can add include abstract-of-title and title-search fees, recording fees, transfer taxes and the owner’s title insurance. Loan costs, such as points and a lender-required appraisal, are left out2.
- Improvements add value, prolong the home’s life or adapt it to new uses. The IRS examples include additions, a new roof, kitchen modernization, landscaping and a new heating system. Repairs count only when done as part of a larger remodeling project, and improvements later removed drop out2.
- Keep the records that prove basis until three years after the due date of the return for the year of the sale2.
| Line | Amount |
|---|---|
| Selling price | $3,000,000 |
| Less selling expenses | -$120,000 |
| Amount realized | $2,880,000 |
| Less purchase price and purchase closing costs | -$450,000 |
| Less improvements still part of the home | -$250,000 |
| Gain | $2,180,000 |
| Less exclusion on a joint return | -$500,000 |
| Taxable gain | $1,680,000 |
Each documented dollar of improvements lowers the gain by a dollar. On a house owned for decades, invoices from earlier remodels can be worth finding before the sale.
What changes when a spouse has died?
Two rules can reduce the tax. A surviving spouse who has not remarried can use the $500,000 exclusion if the home sells within two years of the death, neither spouse took the exclusion on another home in the two years before the sale, and the ownership and use tests are met, counting the late spouse’s time2.
Basis can also reset. For community property, IRS Publication 523 says the total fair market value at the death becomes the basis of the entire property, including the survivor’s half, if at least half the community interest is includible in the decedent’s gross estate. California is on the IRS list of community property states2,5.
For a home owned jointly in another form, such as joint tenancy with right of survivorship, Publication 523 says only the late spouse’s half takes the date-of-death value, and the survivor’s half keeps its old basis2. How title was held, and whether the home was community property, can change the result by a large amount. Ask a CPA and an estate attorney before listing, including how to document the date-of-death value.
In the hypothetical above, if the home was community property worth $3,000,000 at the death and the community property rule applies, the survivor’s basis would be about $3,000,000, and a sale soon afterward at that price would show little or no gain2,5. Children who inherit a house follow the rules in How to Sell an Inherited House in Orange County.
How does California tax the gain?
California conforms to the federal exclusion, so gain excluded on the federal return is generally excluded on the state return too. California also lets Peace Corps service during the five years shorten its two-year period by up to 18 months4. The rate is where California differs. It has no lower rate for capital gains and taxes them as ordinary income3. Federally, long-term gain on a home held more than a year is generally taxed at 0%, 15% or 20%, depending on taxable income6.
A home once rented or used for business is different. Gain equal to depreciation allowed or allowable after May 6, 1997 cannot be excluded, and that unrecaptured section 1250 gain is taxed federally at up to 25%2,6.
Higher-income sellers may also owe the 3.8% net investment income tax on gain above the exclusion. It applies to the lesser of net investment income or the amount by which modified adjusted gross income exceeds $250,000 on a joint return, $200,000 for single filers or $125,000 for married filing separately. The excluded part of a home-sale gain is not counted7.
A large taxable gain can raise one year’s income sharply, so ask a CPA early whether estimated tax payments will be due.
The assessed value on your property tax bill plays no part. Proposition 13 resets assessed value when a home changes hands and limits yearly increases to 2%, and it governs property tax only8. Income tax uses the adjusted basis described above. Owners 55 and over who buy a replacement home in California may be able to carry their assessed value to it under Proposition 19, a separate property tax rule9.
Will escrow withhold tax at closing?
Usually not, if the home qualifies as your principal residence. Escrow withholds 3 1/3% of the sales price for California unless the seller certifies an exemption on Form 593, and a home that qualifies as the seller’s principal residence under Internal Revenue Code §121 is exempt from withholding. The form’s principal-residence certification sets no limit on the size of the gain10,11.
The tax is still due on the return. The FTB says qualifying for an exemption from withholding does not relieve a seller of filing a California return and paying any tax due on the sale11. California’s 3 1/3% Withholding When You Sell (Form 593) explains the form, the gain-based option and how withholding is credited.
Can a 1031 exchange defer tax on a home?
Not for a home you use as your residence. IRS Publication 523 says a main home is not available for a like-kind exchange, because the exchange must be between real property held for productive use in a trade or business or for investment2,12.
Mixed histories are different. If you converted the home to a rental, or used part of it for business, Publication 523 says the §1031 and §121 rules may both apply2. That case needs a CPA’s analysis before you list.
Questions and answers
- Does California tax capital gains on a home sale differently from the IRS?
- California uses the same exclusion: up to $250,000 of gain, or $500,000 on a joint return, if you owned and lived in the home two of the five years before the sale. Gain above that is taxed differently. California has no lower capital gains rate and taxes it as ordinary income; federal long-term rates are 0%, 15% or 20%.
- Can a surviving spouse still use the $500,000 exclusion?
- Yes, if the home sells within two years of the spouse’s death, the survivor has not remarried, neither spouse took the exclusion on another home in the two years before the sale, and the ownership and use tests are met, counting the late spouse’s time. Community property can also take a new basis at the death.
- Do home improvements reduce capital gains on a house sale?
- Yes. Improvements that add value, prolong the home’s life or adapt it to new uses are added to your basis, which lowers the gain. IRS Publication 523 lists examples such as additions, a new roof and kitchen modernization. Ordinary repairs and maintenance do not count, and improvements later removed drop out of basis.
- Does my Prop 13 assessed value affect capital gains tax?
- No. The assessed value on your property tax bill comes from Proposition 13 and governs property tax only. Capital gain is figured from your adjusted basis, which generally starts with what you paid and adds purchase closing costs and improvements. A low assessed value from a purchase decades ago does not change the income tax on a sale.
- Do I have to report my home sale if the whole gain is excluded?
- Yes, if you receive Form 1099-S from the closing. The IRS says you must then report the sale on Form 8949 even when no gain is taxable. You also report whenever part of the gain is taxable. If neither applies and you exclude the whole gain, Publication 523 says the sale need not be reported.
Sources
Checked
- 1Internal Revenue Service, Topic No. 701, Sale of Your Home (reviewed September 24, 2026) Accessed .
- 2Internal Revenue Service, Publication 523 (2025), Selling Your Home Accessed .
- 3California Franchise Tax Board, Capital gains and losses (updated January 28, 2026) Accessed .
- 4California Franchise Tax Board, Publication 1001 (2025), Supplemental Guidelines to California Adjustments Accessed .
- 5Internal Revenue Service, Publication 551 (12/2025), Basis of Assets Accessed .
- 6Internal Revenue Service, Topic No. 409, Capital Gains and Losses (reviewed September 24, 2026) Accessed .
- 7Internal Revenue Service, Topic No. 559, Net Investment Income Tax (reviewed September 24, 2026) Accessed .
- 8California State Board of Equalization, Publication 29: California Property Tax, An Overview (March 2025) Accessed .
- 9California State Board of Equalization, Proposition 19 Accessed .
- 10California Franchise Tax Board, 2026 Form 593, Real Estate Withholding Statement Accessed .
- 11California Franchise Tax Board, 2026 Instructions for Form 593, Real Estate Withholding Statement Accessed .
- 12Internal Revenue Service, Instructions for Form 8824 (2025), Like-Kind Exchanges Accessed .
Please note
This article is general information about California real estate, current as of October 2, 2026. It is not legal or tax advice. Laws and figures change, and how they apply depends on your circumstances. Talk to a California attorney or a tax professional before acting. Michael Hahn is a licensed real estate salesperson, not an attorney or tax adviser.