Capital gains tax when you sell a home in California
Many California sellers owe no federal tax on a home sale, because the IRS lets you exclude up to $250,000 of gain, or $500,000 on a joint return.


Many California sellers owe no federal tax on the sale of their home. The IRS lets you exclude up to $250,000 of gain, or $500,000 on a joint return, if you meet the ownership and use tests (IRS Topic 701). Anything above that is taxable. California taxes it as ordinary income, since the state has no lower rate for capital gains.
The two tests that decide it
The IRS measures both tests over the five years ending on the sale date. You or your spouse must have owned the home for at least 24 months of that window. You must also have lived in it as a main home for at least 24 months. Those two periods do not have to be the same two years.
On a joint return only one spouse has to meet the ownership test, but each spouse must meet the use test to get the full $500,000, according to Publication 523. The same publication lists situations where the exclusion does not apply at all, such as a home acquired through a like-kind exchange within the past five years.
There is also a frequency limit. You generally cannot claim the exclusion if you excluded gain on another home sold within the previous two years.
| Situation | Maximum exclusion | Main condition |
|---|---|---|
| Single or married filing separately | $250,000 | Ownership and use tests met |
| Married filing jointly | $500,000 | Both spouses meet the use test |
| Surviving spouse | $500,000 | Sold within 2 years of the spouse's death, not remarried, other conditions met |
The surviving spouse figure comes from Publication 523, and the other two rows are on Topic 701.
If you have not lived there two years yet
You may still get a reduced exclusion if the main reason for selling was work, health or an unforeseeable event, according to Publication 523. Take the shortest of your use period, your ownership period or the time since your last excluded sale. Divide it by 730 days (24 months), then multiply by $250,000.
Someone who lived in the home for 12 months would start from about half of $250,000, before any adjustment for a spouse. The publication includes a worksheet, and a tax professional can tell you whether your reason counts.
Working out your gain
Gain is the amount realized minus your adjusted basis, per Publication 523. The amount realized is the sale price less selling expenses, such as sales commissions. Basis starts with the purchase price, adds qualifying settlement fees and closing costs, and adds the cost of improvements that add to the home's value, prolong its useful life or adapt it to new uses. Routine repairs and maintenance do not raise basis. Mortgage insurance premiums and loan origination fees generally are not added either.
Take a hypothetical sale. The numbers are made up and nothing here is a prediction.
| Line | Single owner | Married filing jointly |
|---|---|---|
| Sale price | $1,500,000 | $1,500,000 |
| Selling expenses | $90,000 | $90,000 |
| Amount realized | $1,410,000 | $1,410,000 |
| Adjusted basis (price $600,000 + closing costs $10,000 + improvements $50,000) | $660,000 | $660,000 |
| Gain | $750,000 | $750,000 |
| Section 121 exclusion (all tests met) | $250,000 | $500,000 |
| Gain left to tax | $500,000 | $250,000 |
Same sale, same $750,000 gain. The single owner has $500,000 left to tax and the joint filers have $250,000.
Real returns carry more detail. If part of the home was rented or used for business, depreciation reduces basis and may be taxed separately, per Publication 523. Selling costs such as agent commissions reduce the amount realized. In the City of Los Angeles, a high-value sale may also carry Measure ULA transfer tax.
If you receive Form 1099-S, report the sale even when the whole gain is excludable. Taxable gain goes on Form 8949 and Schedule D.
What happens to the gain that is left
Federal
A gain is long-term if you held the home for more than one year. For taxable years beginning in 2026, the 0% long-term rate covers taxable income up to $49,450 (single) or $98,900 (married filing jointly). The 15% rate runs above that up to $545,500 (single) or $613,700 (joint), and 20% applies above those levels, according to Rev. Proc. 2025-32. A sale that closes in 2026 is reported on the return you file in 2027, and the thresholds are adjusted each year, so check the figures for your sale year.
On top of that sits the 3.8% Net Investment Income Tax. It applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds $200,000 (single or head of household) or $250,000 (married filing jointly), per IRS Topic 559. The IRS says gain excluded for regular income tax purposes is not subject to it. Gain above the exclusion is not covered by that carve-out, so ask a tax professional how it applies to you.
California
California taxes all of it as ordinary income, so the federal 0%, 15% and 20% rates have no state counterpart. Your state bill depends on your total California taxable income for the year. You report gains on your federal return, and if federal and California treatment differ, the FTB points to California Schedule D (540).
The 3 1/3% that escrow holds back
When California real property is sold, the buyer's escrow generally withholds 3 1/3% of the sales price unless an exemption applies, or the amount from the alternative calculation based on your gain if you choose it, according to the Form 593 instructions. The FTB describes this as a prepayment of income tax on the gain, not an additional tax. It is reported on Form 593, which the seller signs under penalty of perjury.
Withholding is not required when the sales price is $100,000 or less, when the property is in foreclosure, or when the seller certifies an exemption in Part III of Form 593. The certifications include that the property is your principal residence within the meaning of Section 121, or that its last use was as your principal residence. If it was last used as a vacation home, second home or rental, the last-use exemption is not available. A seller who calculates a loss or zero gain can also be exempt, per FTB Publication 1016.
Because withholding is only a prepayment, you still report the sale on your California return. California law does not provide early refunds of real estate withholding if too much was held, and if too little was, additional tax may be due.
A few things people ask us
Do I owe tax if I sell for less than I paid?
No tax is due on a loss. A loss on the sale of your personal home is also not deductible.
Is the exclusion limited to one sale in a lifetime?
No. The limit is on frequency. You generally cannot use it if you excluded gain on another home sold in the previous two years.
Does the 3 1/3% withholding mean I owe that much?
No. It is a prepayment against the tax on your gain, applied when you file. If it falls short, additional tax may be due.
Property tax on a transfer or inheritance is a separate matter. Our guide to Prop 19 transfers covers it, and a tax professional can speak to basis on inherited property. For the market side of when owners sell, see our piece on Los Angeles appreciation trends.
If you are planning a sale, contact us, and run your numbers past a CPA before you list.
Sources
- Internal Revenue Service — Topic no. 701, Sale of your home, November 9, 2026
- California Franchise Tax Board — Capital gains and losses
- Internal Revenue Service — Publication 523 (2025), Selling Your Home
- Internal Revenue Service — Topic no. 409, Capital gains and losses, November 9, 2026
- Internal Revenue Service — Rev. Proc. 2025-32 (2026 inflation adjustments), October 9, 2025
- Internal Revenue Service — Topic no. 559, Net investment income tax, September 24, 2026
- Internal Revenue Service — Net Investment Income Tax, July 1, 2026
- California Franchise Tax Board — 2026 Instructions for Form 593
- California Franchise Tax Board — FTB Publication 1016, Real Estate Withholding Guidelines, February 1, 2026
Stay informed
Receive our latest writing on architecture, culture, and the Los Angeles market.
