My Home Sold
California legal·14 min read

Capital Gains Tax When Selling a House in California (2026 Guide)

California taxes every dollar of gain on a home sale as ordinary income up to 13.3%, on top of federal capital gains. Here is exactly what you owe, what you can shelter, and how to plan it.

A

Adrian Hernandez

August 21, 2026

Editorial illustration for Capital Gains Tax When Selling a House in California (2026 Guide)

The capital gains tax selling house California sellers face is the most underestimated number in any home sale conversation. Most sellers know the federal Section 121 exclusion exists, $250,000 of gain shielded if you are single, $500,000 if you are married filing jointly, but the California piece blindsides almost everyone. California has no preferential capital-gains rate. Every dollar of taxable gain is treated as ordinary income and taxed at brackets that top out at 13.3%, plus a 1% Mental Health Services Tax for income over $1 million, for an effective top rate of 14.4%. Stack that on top of the federal 20% long-term capital gains rate plus the 3.8% Net Investment Income Tax, and a $1.3M gain on a long-held LA home can generate a $285,000 combined tax bill before you ever see a wire.

This guide walks through every lever, the §121 exclusion mechanics, California's brackets, stepped-up basis on inherited homes, 1031 exchanges, depreciation recapture, FTB Form 593 withholding, and the basis-documentation work that quietly saves five-figure tax bills. None of this is tax advice. Every situation has facts that change the answer. Run the numbers with a California CPA before you sign a listing agreement or accept an offer.

The short answer for California sellers

The capital gains tax selling house California rule starts federal and ends state. If you sell a primary residence in California and you meet the §121 ownership and use tests (owned and lived in the home for at least 2 of the last 5 years), the first $250,000 of gain is federally tax-free if you are single, $500,000 if you are married filing jointly. Anything above the exclusion is federally taxed at long-term capital-gains rates (0%, 15%, or 20% depending on income), plus a 3.8% Net Investment Income Tax (NIIT) under IRC §1411 if your modified AGI clears $200,000 single / $250,000 MFJ.

California does not honor the preferential federal capital-gains rate. Under California Revenue & Taxation Code §17041, all gain, including the portion you exclude federally under §121 in some edge cases involving non-qualified use, flows into your CA AGI as ordinary income. CA brackets for 2026 top out at 13.3% (12.3% bracket plus 1% Mental Health Services Tax on taxable income over $1M, totaling an effective 13.3% to 14.4% range at the top).

That means a California seller's blended marginal rate on home-sale gain above the §121 exclusion can hit:

  • 20% federal LTCG + 3.8% NIIT + 13.3% CA = 37.1% combined
  • Or, in the 1% MHST bracket: 20% + 3.8% + 14.4% = 38.2%

This is the floor. The ceiling on a non-§121 sale (like an investment property) is higher because of depreciation recapture under IRC §1250, which carves a 25%-rate slice out of what otherwise would be capital gain.

If you are weighing a fast cash sale against a traditional listing, the tax math is the same either way, what changes is timing, basis adjustments for closing costs, and whether the sale year stacks with other income. We cover the sale-side mechanics on sell my house for cash and how to sell my house fast California; this article handles the tax side.

Federal Section 121: the $250k / $500k exclusion

IRC §121 is the foundation of every primary-residence tax conversation. Two tests have to be passed in the 5-year window ending on the date of sale:

  1. Ownership test. You owned the home for at least 24 months (cumulative, not consecutive) of the last 60.
  2. Use test. You used the home as your principal residence for at least 24 months of the last 60.

For married filing jointly to claim the full $500,000, both spouses must meet the use test, only one spouse must meet the ownership test, and neither spouse can have used the §121 exclusion in the prior 24 months.

The exclusion is per-sale, not per-lifetime. You can use it again every two years if you re-qualify. There is no cap on how many times across your life, only the 2-year frequency rule.

Gain is calculated as: sale price − selling costs − adjusted basis = realized gain. Then §121 exempts the first $250k / $500k of that.

Non-qualified use periods (time the home was a rental or vacation property after 2008) reduce the exclusion proportionally. This is the single most common surprise for sellers who converted a rental into a primary residence to qualify for §121.

Why California capital gains tax on a home sale is ordinary income

The second half of the capital gains tax selling house California equation is the state piece. California conforms to most of IRC §121, meaning the same $250k / $500k exclusion applies for state purposes, but California does not apply a preferential capital-gains rate to anything left over. Federal taxes long-term capital gain at 0%, 15%, or 20%. California taxes it at the same brackets as wage income.

The 2026 California single-filer brackets relevant to home-sale years (when one-time gain inflates AGI above ordinary levels):

  • 9.3% on taxable income $66,295 – $338,639
  • 10.3% on $338,640 – $406,364
  • 11.3% on $406,365 – $677,275
  • 12.3% on $677,276 – $1,000,000
  • 13.3% on > $1,000,000 (12.3% + 1% Mental Health Services Tax under Prop 63)
  • Effective 14.4% appears in some published tables when MHST is layered separately; the statutory total at the top is 13.3%

Married-filing-jointly brackets are roughly 2x the single thresholds.

The practical consequence: a single seller with $200k of W-2 income and a $700k taxable gain (after §121) ends up with most of that gain taxed at 11.3% to 13.3% in California, regardless of how long they owned the home. A married couple in the same fact pattern lands similarly, California ignores the federal short-term vs long-term distinction for state-rate purposes.

Worked example: long-time LA homeowner

This is the canonical capital gains tax selling house California fact pattern, long-held primary residence in a high-appreciation SoCal market.

Facts. Married couple, filing jointly. Bought a Westside Los Angeles home in 1998 for $185,000. Capitalized improvements over 28 years: $40,000 (kitchen remodel 2008, bath remodel 2015, roof 2019, ADU drywall finish 2022). Adjusted basis: $225,000. Sale price 2026: $1,675,000. Selling costs (commission, transfer tax, escrow): $115,000. Combined other AGI: $250,000.

Math.

  • Net sale = $1,675,000 − $115,000 = $1,560,000
  • Realized gain = $1,560,000 − $225,000 = $1,335,000
  • §121 exclusion (MFJ, both meet tests) = $500,000
  • Taxable gain = $835,000

Federal tax.

  • LTCG at 20% on most of the $835,000 (income clears the 20% threshold of $583,750 MFJ for 2026): roughly $167,000
  • NIIT 3.8% on the gain (modified AGI > $250k MFJ): roughly $31,700
  • Federal subtotal: ~$198,700

California tax.

  • $835,000 added to ordinary CA AGI on top of $250k other income
  • Marginal CA rate: 11.3% to 12.3% for most of the gain
  • Estimated CA tax on the gain: ~$96,000

Total combined tax: ~$294,700. Roughly 35.3% of the taxable gain. The seller nets ~$1,265,300 after taxes on a $1,560,000 net sale.

This is why timing matters. If the same couple sold in a year with $50k of other income instead of $250k, the CA bill would drop by roughly $10k–$15k because lower brackets absorb the early portion of the gain. A CPA can model this, common scenarios involve retirement-year sales, sabbatical-year sales, and Roth-conversion-year coordination. We see this play out across Los Angeles all the time.

Worked example: San Diego condo, partial exclusion

Facts. Single filer. Bought a San Diego condo June 2024 for $620,000. Job relocation forced a sale September 2026 at $785,000. Lived there 27 months. Closing costs $35,000.

The seller does not meet the full 24-of-60 use test cleanly because she is selling at month 27 of ownership, but more importantly the sale is triggered by a qualifying relocation (Reg §1.121-3 unforeseen-circumstances safe harbor: job change of more than 50 miles).

Math.

  • Net sale = $785,000 − $35,000 = $750,000
  • Realized gain = $750,000 − $620,000 = $130,000
  • Partial §121 exclusion: 27 months / 24 months would be a full exclusion, but the partial-exclusion formula only applies when the 24-month test is not met. She meets the 24-month test, so she gets the full $250,000 single exclusion.
  • Taxable gain = $0

No federal tax, no California tax. The lesson is that the partial-exclusion rules under Reg §1.121-3 are far more generous than most sellers realize, and the unforeseen-circumstances categories (job change, health, divorce, birth of multiples, death of a co-owner) are interpreted broadly. If you are forced to sell early, talk to a CPA before assuming you owe.

The relocation pattern is common enough that we built the relocation situation page and the out-of-state seller page around it.

Worked example: Inland Empire investment property

Facts. Single-member LLC owns a rental in Riverside. Bought 2014 for $310,000. Land allocation $80,000, building $230,000. Depreciated straight-line over 27.5 years: roughly $92,000 of accumulated depreciation through 2026. Sale 2026 at $620,000. Selling costs $35,000.

No §121 exclusion, this is investment property, not a primary residence.

Math.

  • Net sale = $620,000 − $35,000 = $585,000
  • Adjusted basis = $310,000 − $92,000 depreciation = $218,000
  • Realized gain = $585,000 − $218,000 = $367,000
  • Of that, $92,000 is unrecaptured §1250 depreciation, taxed at a federal max rate of 25%
  • The remaining $275,000 is long-term capital gain, taxed at federal LTCG rates (15% or 20% depending on AGI)
  • NIIT 3.8% applies to passive rental gain if AGI thresholds are crossed

Federal tax (assuming 15% LTCG bracket for the seller):

  • $92,000 × 25% = $23,000
  • $275,000 × 15% = $41,250
  • $367,000 × 3.8% NIIT = $13,946
  • Federal subtotal: ~$78,200

California tax.

  • California does not separately recognize the §1250 25% rate or the LTCG rate. The full $367,000 hits CA AGI as ordinary income.
  • At a blended CA marginal rate around 9.3% to 10.3%: roughly $35,000 to $38,000 in CA tax.

Total: ~$115,000 on a $367,000 gain (~31%). The seller could defer the federal piece (and the CA piece, since CA conforms) by rolling into a like-kind replacement property under IRC §1031 within 45 days identification / 180 days closing. We see this strategy on rentals across the San Bernardino and Riverside markets constantly.

Worked example: inherited Pasadena home

Facts. Adult son inherits a Pasadena home from his mother in March 2026. Mother bought it 1971 for $42,000. Date-of-death fair market value: $1,420,000. Son sells nine months later, December 2026, for $1,440,000. Closing costs $90,000.

Math.

  • Stepped-up basis under IRC §1014 = $1,420,000 (date-of-death FMV)
  • Net sale = $1,440,000 − $90,000 = $1,350,000
  • Realized gain = $1,350,000 − $1,420,000 = ($70,000), a loss

No federal gain. No California gain. In fact, a small capital loss the son may be able to use depending on whether the home was held as personal-use or investment property between inheritance and sale (loss on personal-use property is not deductible; loss on investment-held inherited property is). We unpack the conversion question on the inheritance situation page and the selling an inherited house guide.

This is the single most powerful tax planning mechanic in California real estate, and it interacts with Proposition 19 in ways that catch families off guard, covered in the Prop 19 inherited property guide. The combination of stepped-up basis (federal income tax) and Prop 19 (California property tax) means most heirs who sell within 12 to 24 months of inheriting owe approximately zero in income tax, even on $1M+ properties. The probate timeline matters here too, see the California probate process guide for how the death-date FMV gets locked in.

Stepped-up basis: the inherited-property rule

For heirs, the capital gains tax selling house California analysis flips on its head. IRC §1014 is the rule that turns inherited California real estate into a near-zero-tax event for most heirs who sell soon after death. The basis of inherited property is its fair market value on the date of death (or the alternate valuation date six months later, if elected by the estate).

For a property held since 1971 in a SoCal market, that single line in the tax code shifts a $1.4M+ gain into a $0 gain. California conforms to §1014, the state honors the same stepped-up basis for state income tax purposes.

What this does not affect:

  • Property tax under Prop 19 (a separate California-specific issue)
  • Estate tax (federal estate tax exemption is high, $13.61M per individual in 2024, indexed up, so most California estates pay no estate tax, but the state-level analysis differs and California has no separate estate tax)
  • The probate timeline (basis steps up at death regardless of when probate closes)

The FMV at death is established by appraisal. Get an appraisal, even if you do not need it for probate. Fifteen years later, if the IRS ever questions the basis, the appraisal is your evidence. Roughly $400 to $700 well spent.

1031 exchanges (investment property only)

The 1031 exchange is the most powerful deferral tool in the capital gains tax selling house California toolbox, but only for investment property. IRC §1031 allows deferral, not elimination, of capital gains tax on the sale of investment or business-use property if you reinvest into like-kind real estate. Strict timeline:

  • 45 days from sale closing to identify replacement property in writing
  • 180 days from sale closing to close on the replacement
  • Use of a Qualified Intermediary (QI) is mandatory; you cannot touch the proceeds
  • Replacement property must be of equal or greater value, and all proceeds reinvested

Key limitations for California sellers:

  • Primary residences do not qualify. Section 121 is the primary-residence tool; §1031 is the investment-property tool. They do not overlap (with limited conversion strategies).
  • California requires Form FTB 3840 to be filed annually if you do an out-of-state 1031, California "claws back" the deferred CA gain when the replacement is eventually sold, even if it is sold by an heir decades later.
  • Tenant-in-common (TIC) interests and Delaware Statutory Trusts (DSTs) qualify as like-kind, useful for sellers wanting passive income in retirement instead of another active rental.

A California rental owner sitting on $400k of gain plus depreciation recapture can defer the entire ~$130k tax bill into a replacement property and continue compounding pre-tax. At death, basis steps up under §1014 and the deferred gain disappears, "swap till you drop" is a real strategy, properly executed.

Partial Section 121 exclusion: when life forces a sale

Reg §1.121-3 allows a prorated exclusion when you fail the 24-month test for a qualifying reason. The proration is months-of-use ÷ 24, applied to the full $250k / $500k cap.

Qualifying safe-harbor reasons:

  • Job change. New place of employment ≥ 50 miles farther from the home than the old workplace.
  • Health. Move recommended by a physician for diagnosis, treatment, or cure of a disease, illness, or injury (yours or a qualifying family member's).
  • Unforeseen circumstances. Death, divorce, multiple births from one pregnancy, change in employment status leading to inability to pay basic living expenses, damage to the home, condemnation, or involuntary conversion.

Divorce is the most common one we see in California. A couple who lived in a home 14 months of a 24-month requirement, forced to sell for divorce, gets 14/24 × $500,000 = $291,667 of exclusion as MFJ for the year of sale (or proportional shares as separate filers). On a $300k gain, that fully shelters the sale. We cover the timing and proceeds-split mechanics on the divorce situation page.

The IRS interprets "unforeseen circumstances" broadly. If your sale was forced by a life event, talk to a CPA before assuming you fail §121.

Reducing capital gains tax through basis documentation

The single most underused lever in capital gains tax selling house California planning is documenting basis additions. Adjusted basis = original purchase price + capital improvements + acquisition costs (title insurance, escrow, transfer tax) − any prior depreciation.

What counts as a capitalized improvement (per IRC §263 and Pub 523):

  • Additions: new room, deck, garage, ADU
  • System replacements: new roof, HVAC, electrical panel, plumbing repipe, water heater
  • Permanent fixtures: built-in cabinetry, flooring replacement, fence, driveway, landscaping (hardscape)
  • Energy improvements: solar (cost basis after any tax credits), insulation, double-pane windows
  • Permanent improvements: foundation work, seismic retrofit, retaining wall

What does not count (deducted as repairs/maintenance, not capitalized):

  • Repainting, refinishing
  • Replacing broken windows or appliances of similar quality
  • Cleaning, pest control, gardening
  • Patching the roof rather than replacing it

For a 28-year owner, $40k to $80k of capitalized improvements is realistic. At a 35% combined marginal rate, that's $14k to $28k of tax saved. The job is finding the receipts. Common sources:

  • Credit card statements going back as far as the issuer keeps records
  • Old contractor invoices, bank check images, escrow statements from refinances (lenders sometimes reference improvements)
  • Permit history from the city or county
  • Photo metadata in iCloud / Google Photos timestamping improvements

This is also where selling costs reduce gain. Realtor commissions, transfer tax (~$1.10 per $1,000 of value in most CA counties, higher in cities like LA with their own transfer tax), title insurance, escrow fees, and seller-paid buyer concessions all reduce the realized gain. A cash sale typically has lower selling costs (no commission, often buyer pays escrow and title), relevant if you are comparing net-after-tax outcomes between a listing and a cash offer. We model both sides on how much do investors pay for houses and how much you lose selling as-is.

California Form 593 withholding and FIRPTA

The last piece of the capital gains tax selling house California puzzle is timing, specifically, when the money leaves your closing wire. Two withholding traps catch California sellers, especially those who think the tax is owed at filing time, not closing time.

California FTB Form 593. Under California Revenue & Taxation Code §18662, the buyer (or escrow on the buyer's behalf) must withhold from the seller's proceeds at closing unless an exemption applies. The default withholding is 3 1/3% of total sale price OR, by election, 12.3% of the recognized gain (or 13.8% for an S corp, etc.). The seller picks which is lower by completing Form 593 at closing.

Common exemptions:

  • Sale of a principal residence under §121 (qualifying primary residence)
  • Sale at a loss (the seller certifies the loss on Form 593)
  • Sale price ≤ $100,000
  • Seller is a California resident (still required to file, but exempted from withholding)

The withholding is a prepayment, not the final tax. If your actual CA tax on the gain is less, you get the difference back on your CA return. But it does pull cash out of your closing wire, for a non-resident selling a $1M property, 3 1/3% = $33,333 held back.

FIRPTA (federal). Under IRC §1445, if the seller is a foreign person (non-US-citizen non-resident), the buyer must withhold 15% of the gross sale price unless an exemption applies. For a $1M sale, that's $150,000 wired to the IRS at closing. There is a process to apply for a withholding certificate to reduce the amount in advance, but it requires lead time. Out-of-state US citizens are not subject to FIRPTA, they are subject to CA Form 593 withholding only.

If you are an out-of-state seller, this is in addition to coordinating CA non-resident filing, see the out-of-state seller page for the operational side.

A clean number, and a CPA you trust

The capital gains tax selling house California sellers actually pay depends on a dozen facts that vary case to case. Before you sign a listing agreement or accept a cash offer, get the tax picture from a California CPA. Ten basic facts, purchase year, purchase price, capitalized improvements, current market estimate, marital filing status, other AGI, residency, depreciation history if any, gets you a credible estimate in 30 minutes. The cost of the consult is a rounding error against a five- or six-figure tax bill.

When you are ready to compare a clean cash offer against a traditional listing, written number with the math attached, no commission, flexible close date that lets you time the gain into the year you want, get your offer. 24-hour turnaround. Take it, leave it, or hand it to your CPA and run the after-tax math both ways.

This article is general information about California and federal tax rules and does not constitute tax, legal, or financial advice. Statutes and regulations change. Consult a licensed California CPA or tax attorney about your specific facts before making a decision.

Common questions

Questions people ask about this

Do I have to pay capital gains tax on my California home if I reinvest in another home?
No, that rule was repealed in 1997. The old §1034 "rollover" rule was replaced by §121's exclusion. There is no requirement to reinvest. You either qualify for the exclusion or you don't, and what you do with the proceeds is irrelevant for primary-residence tax purposes. (The old rule still confuses sellers, if your CPA mentions "rollover," find a new CPA.)
Does California have a separate capital gains tax?
No. Unlike federal, the capital gains tax selling house California sellers pay is just California ordinary income tax applied to the gain. No separate tax, but California taxes all gain (short-term and long-term, real estate and stocks alike) as ordinary income at brackets up to 13.3% statutorily. There is no preferential CA capital-gains rate. The 1% Mental Health Services Tax stacks on income over $1M.
How do I avoid capital gains tax on a home sale in California?
The capital gains tax selling house California sellers can avoid (or defer) breaks down into three main paths: (1) qualify for §121 (primary residence, 2-of-5 test) for $250k / $500k of gain; (2) inherit the property and sell soon after (stepped-up basis under §1014); (3) for investment property, do a §1031 exchange. Beyond that, basis documentation, timing the sale into a low-other-income year, and in some cases installment sales (IRC §453) can reduce the bill. Run the numbers with a CPA, none of this is one-size-fits-all advice.
Is the §121 exclusion lifetime-limited?
No. You can use it once every two years, indefinitely. Many California sellers use it 3-5 times across a lifetime by trading up, and each sale runs through the same capital gains tax selling house California analysis.
What if I converted a rental to my primary residence?
The "non-qualified use" rules under §121(b)(5) reduce the exclusion proportionally for any time after 2008 the home was non-primary. A simple example: bought as a rental in 2014, converted to primary in 2020, sold 2026. The 2014–2019 stretch is non-qualified use (6 of 12 years of ownership). 50% of the gain is ineligible for §121 exclusion regardless of how long you live in it before sale.
Do I owe California tax if I sell a CA home but have moved to Nevada?
Yes. California sources gain on real property to the state where the property sits (CA Rev & Tax Code §17951). Moving to Nevada or Texas does not exempt you from CA tax on the sale of a California home. You file a CA non-resident return (Form 540NR) for the year of sale. FTB Form 593 withholding will apply at closing.
A

Written by

Adrian HernandezFounder, My Home Sold

Adrian Hernandez founded My Home Sold in 2015 and has led it through more than 700 direct home purchases across Southern California. He has appeared on FOX 11 Good Day LA discussing the shift in the Southern California market and what it means for homeowners whose listings are not moving.

More about Adrian

Ready to Get Started?

Contact us today to learn how we can help you.

Keep reading

Related Articles

Ready to Get Started?

Contact us today to learn how we can help you.

24-hour offer Close in 7 days No obligation