Fei Li Estates · Seller guide
Taxes When You Sell a Home in California: Exclusion, Capital Gains and Withholding (2026)
Updated November 2026 · By Fei Li, California DRE #02075610, team leader of Fei Li Estates
Before selling, most owners work out the price and what is left after the loan is paid off. One more number often shows up only at tax time the next year: income tax on the gain. Homes in Irvine and Newport Beach that have been held for fifteen years often carry gains above $1 million, so it pays to run this number before you list.
In one sentence: When you sell your main home, the first $250,000 of gain ($500,000 for a married couple filing jointly) is free of federal and California income tax if you owned and lived in it for 2 of the 5 years before the sale. Gain above that is taxed federally at long-term capital gains rates of 0%, 15% or 20%, plus 3.8% for higher earners. California has no lower rate for capital gains and taxes them as ordinary income. Rentals and vacation homes do not get the exclusion. We are real estate agents, not CPAs. Have your CPA run your numbers before you list.
Important: we are real estate agents, not accountants or attorneys. Everything below is general information about public rules, not tax or legal advice for your situation. Please have a CPA run your numbers before you list.
First, which kind of property are you selling?
| Main home | Vacation or second home | Rental or investment property | |
|---|---|---|---|
| $250,000 / $500,000 exclusion | Yes, if you meet the 2-of-5-year tests | No | No |
| Federal rate (held over one year) | 0%, 15% or 20% on gain above the exclusion | 0%, 15% or 20% on all gain | Same, and up to 25% on gain tied to depreciation |
| 3.8% net investment income tax | Not on excluded gain. May apply above it | May apply | May apply |
| California income tax | Same exclusion as federal. The rest is ordinary income | Ordinary income | Ordinary income |
| 1031 exchange | Not available | Generally not available | Available |
| Sold at a loss | Not deductible | Ask your CPA | Ask your CPA |
Sources: IRS Topics 701, 409 and 559; IRS Publication 523; Instructions for Form 8824; California Franchise Tax Board (FTB).
You have one main home at a time. If you own two homes, it is generally the one where you spend the most time.
How the gain is figured
The gain is not simply sale price minus purchase price. Under IRS Publication 523:
- Amount realized = sale price − selling expenses. Selling expenses include real estate commissions, escrow fees and title insurance.
- Adjusted basis = purchase price + certain closing costs from when you bought + improvements over the years.
- Gain = amount realized − adjusted basis.
Which projects add to basis:
- Yes: improvements that add value, extend the home's life or adapt it to a new use. Examples are an addition, a new roof, a new HVAC system or a kitchen remodel.
- No: routine repairs and maintenance, such as repainting or fixing a leak.
- For an inherited home, basis is generally the market value on the date of death, not what the earlier owner paid. For how basis steps up when one spouse dies, see "How to Hold Title in California."
Keep the closing statement from your purchase and every contractor invoice. Fifteen years later, each one can lower your tax.
The home sale exclusion: who qualifies for $250,000 / $500,000
- Ownership: you owned the home for at least 24 months of the 5 years before the sale.
- Use: you lived in it as your main home for at least 24 months of those 5 years. The months do not have to be consecutive, and you do not have to be living there when you sell.
- $500,000 for couples: you file jointly, either spouse meets the ownership test, and both meet the use test.
- Once every two years: you generally cannot use the exclusion if you used it on another home in the two years before this sale.
- Partial exclusion: if you sell early because of a change in work location, a health issue or an unforeseeable event, you may qualify for a prorated amount.
- Surviving spouses: a surviving spouse who sells within two years of the death, has not remarried and meets the other tests can still use $500,000.
- Homes that were rented out: gain equal to depreciation you claimed while renting cannot be excluded. Periods after 2008 when the home was not your main home may also reduce the exclusion.
- Moved out and rented it? Watch the three-year mark. You keep the exclusion as long as you still meet the 2-of-5-year tests on the sale date. Rent it for more than three years and it is generally gone.
- Losses: a loss on your main home is not deductible.
- California follows the federal rules, with the same amounts and tests.
If your gain is within the exclusion and you did not receive a Form 1099-S, you generally do not report the sale. If you received a 1099-S, you report it even when no tax is due.
What rate applies to gain above the exclusion?
Federal long-term capital gains rates. Property held more than one year is long-term. The rate depends on your taxable income for the year, including the gain:
| Rate | Single | Married filing jointly |
|---|---|---|
| 0% | Taxable income up to $48,350 | Up to $96,700 |
| 15% | $48,350 to $533,400 | $96,700 to $600,050 |
| 20% | Above $533,400 | Above $600,050 |
Source: IRS Topic 409, tax year 2025. Thresholds are adjusted for inflation each year. For tax year 2026 the joint thresholds are $98,900 and $613,700 (IRS Rev. Proc. 2025-32).
- If you sell within one year of buying, the gain is taxed at ordinary income rates.
- 3.8% net investment income tax: if your modified adjusted gross income is above $200,000 (single) or $250,000 (married filing jointly), gain above the exclusion may also be subject to this tax. Excluded gain is not.
- California: there is no lower rate for capital gains. The gain is added to your income for the year and taxed at ordinary graduated rates, with a top bracket of 12.3%. Your CPA will work out which brackets a large gain falls into, based on your other income that year.
An example using Irvine median prices
The median sale price of a single-family home in Irvine was $750,000 for the 12 months ending October 2008 and $2,100,000 for the 12 months ending October 2026. Suppose you bought at $750,000 in 2008 and sell at $2,100,000 in 2026, with selling expenses and improvements totaling $200,000:
| Married, main home (joint return) | Single, main home | Rental | |
|---|---|---|---|
| Sale price | $2,100,000 | $2,100,000 | $2,100,000 |
| Less purchase price | $750,000 | $750,000 | $750,000 |
| Less selling expenses and improvements (assumed) | $200,000 | $200,000 | $200,000 |
| Gain | $1,150,000 | $1,150,000 | $1,150,000 |
| Less exclusion | $500,000 | $250,000 | $0 |
| Taxable gain | $650,000 | $900,000 | $1,150,000 plus depreciation taken |
| Federal tax at a flat 15%, rough | About $97,500 | About $135,000 | About $172,500 |
Median prices: CRMLS InfoSparks, Irvine single-family homes, rolling 12 months, retrieved November 11, 2026. The $200,000 figure is assumed for illustration. This is arithmetic on citywide medians. It does not represent any specific home or anyone's actual tax.
How to read this table: Same house, same price. A married couple living in it has $650,000 of taxable gain. As a rental, it is $1,150,000 plus all the depreciation taken over the years. The last row applies only a flat 15% federal rate. In a year with a gain this large, part of it falls in the 20% bracket, the 3.8% net investment income tax may apply, and California income tax comes on top. Ask your CPA for the real figure.
The table also shows that every improvement invoice you can find takes a piece off the taxable gain.
Rentals and investment property: depreciation recapture and 1031 exchanges
- No exclusion. All of the gain on a rental is taxable.
- Depreciation comes back. Gain equal to the depreciation you deducted while renting is taxed when you sell, at a federal rate of up to 25%. The longer you held, the larger this piece.
- A 1031 exchange can defer the tax. If you sell investment real estate and buy other investment real estate under the rules, the gain is not taxed for now. It is a deferral, not forgiveness. ▶ 3:16

About the video: it was recorded in 2023 and is Fei Li sharing experience as a real estate agent, not tax advice. Some figures and deadlines mentioned in it were specific to that year or are simplified. Where the video and this article differ, follow this article and current IRS rules, and confirm your own case with a CPA and a qualified intermediary before you act.
The firm rules of a 1031 exchange:
- Investment or business real estate only. A home used only as your residence does not qualify. Neither does a house bought to fix up and resell. U.S. real estate can be exchanged only for U.S. real estate.
- 45 days and 180 days. You identify the replacement property in writing within 45 days of the sale and close on it within 180 days. ▶ 11:58
- The money cannot reach your account. A qualified intermediary holds the proceeds, and you cannot control them. The intermediary has to be in place before closing. After closing it is too late.
- Cash you take out is taxed. If the replacement costs less than what you sold, or you receive cash, that part is taxable in the year of sale.
- A former home turned rental can use both. The home sale exclusion applies first, then the 1031 exchange defers the rest. ▶ 8:04 The home must truly be converted to rental use and held for a period, and you must still meet the 2-of-5-year tests at the sale. Your CPA decides what counts.
Tax withheld at closing is not your final tax
- California Form 593: when California real estate sells, escrow generally withholds 3⅓% of the sale price as a prepayment of the seller's California income tax. The seller can instead choose a calculation based on the estimated gain times a tax rate.
- Most owner-occupants are exempt. A main home that qualifies for the exclusion, a sale price of $100,000 or less, a loss or zero gain, and a 1031 exchange can each be certified as exempt on Form 593. The form goes to escrow before closing.
- Withholding is not the same as paid in full. On next year's return the tax is figured on the actual gain, and you get a refund or pay the difference. If you were exempt from withholding and your gain is above the exclusion, tax is still due next year.
- Foreign sellers face federal withholding too (FIRPTA), generally 15% of the total price. See "Selling Your Irvine Home While Living Overseas."
Five things to do before you list
- Find the closing statement from your purchase. It shows the price and the closing costs that count toward basis.
- Gather improvement invoices. List additions, roof, HVAC, kitchen and bath remodels by year.
- Check your two-year dates. If you are a few months short, closing a little later can change the tax by tens of thousands of dollars.
- If you ever rented the home out, tell your CPA the years and the depreciation you claimed.
- Have your CPA run the numbers before you list. It is more useful while price and timing can still move. If you plan a 1031 exchange, call an intermediary before you accept an offer.
What we do when you sell
- We flag the tax line. Our net proceeds estimate states that income tax is not included and asks the seller to see a CPA first.
- We help past clients find paperwork. If you cannot find the closing statement from your purchase, we can ask the escrow or title company from that transaction for a copy.
- We work to the 1031 timeline. For sellers doing an exchange, we coordinate the closing date with the intermediary and help line up replacement property within the 45 days.
We do not calculate your tax or give tax advice.
FAQ
Do you pay tax when you sell your home in California?
Not if your gain is $250,000 or less ($500,000 for a married couple filing jointly) and you owned and lived in the home for 2 of the 5 years before the sale. That applies to both federal and California income tax. Gain above those amounts is taxable.
Do the two years have to be consecutive?
No. You need a total of 24 months of living in the home during the 5 years before the sale. You can have moved out in between.
What is the capital gains tax rate in California?
California has no separate capital gains rate. The gain is added to your income and taxed at ordinary graduated rates, with a top bracket of 12.3%. Federal tax on gain from property held more than a year is 0%, 15% or 20%.
Can I deduct what I spent on remodeling?
Improvements that add value or extend the home's life, such as an addition or a new roof, are added to your basis and reduce the taxable gain. Routine repairs such as painting or fixing a leak are not. Keep the invoices.
Does a rental property get the $250,000 / $500,000 exclusion?
Generally no. The exclusion is for a main home. A home you lived in and later rented can still qualify if you meet the 2-of-5-year tests when you sell, but gain equal to the depreciation you claimed is taxable.
Escrow withheld 3⅓% at closing. Is my tax paid?
No. That is a prepayment of California income tax. Your return for the year figures the tax on the actual gain, and you get a refund or pay the difference.
If I sell and buy another home right away, can I skip the tax?
There is no rule that buying a new main home erases the tax. What you can use is the $250,000 / $500,000 exclusion. Investment property can use a 1031 exchange, which has to be set up before the sale. For the order and financing of a move, see "Sell and Buy a Home at the Same Time in Irvine."
Want to know what your home would sell for and what you would net?
Leave your address on our home valuation page and we will reply within one business day, or contact Fei Li directly: (949) 353-9999, fei@feiliestates.com. For the process and costs of a sale, see "Selling a Home in Irvine, CA."
Disclaimer: Fei Li and Fei Li Estates are real estate licensees, not accountants, attorneys or tax advisors. This article is general information drawn from public rules; it is not tax or legal advice and does not create an advisory relationship. Tax law changes and every seller's situation is different. Before you list or sign, have your own CPA or tax attorney calculate your tax, and rely on their figures, not on the examples here. Rules are current as of November 2026. Sources: IRS Topics 409, 559 and 701; IRS Publication 523; Instructions for Form 8824; Rev. Proc. 2025-32; California Franchise Tax Board guidance on home sales, capital gains and real estate withholding; 2026 Instructions for Form 593. Median prices: CRMLS InfoSparks, retrieved November 2026.
