Seller guide

Capital Gains Tax on Selling a House in California

The short answer: When you sell a house in California, you may owe capital gains tax to both the IRS and the state. If it was your main home and you owned and lived in it for two of the last five years, you can exclude up to $250,000 of gain, or $500,000 if you’re married filing jointly. Gain above that is taxed federally at 0%, 15% or 20% (plus 3.8% for higher earners), and California taxes it as ordinary income at 1% to 13.3%. Inherited houses usually get a step-up in basis, which can wipe out most of the gain.

Condo kitchen we bought in Sunnyvale during our remodel: stripped to patched drywall and subfloor, with an open ceiling and the window taped offDuring
The same Sunnyvale kitchen after our remodel: gray shaker cabinets, white quartz counters, a gold sink and faucet, and a gray tile backsplashAfter

A condo we bought on Evelyn Terrace in Sunnyvale, during and after our kitchen remodel. California capital gains tax can apply to a house like this one when the gain is larger than the home sale exclusion.

Most homeowners never pay a dollar of capital gains tax when they sell. But in California, where a house bought 20 years ago may have tripled in value, the exclusion doesn’t always cover the whole gain. Rentals, second homes and houses you’ve owned for less than two years don’t get it at all.

I’m Marc Afzal, a California real estate broker (DRE #01423695) and licensed general contractor (CSLB #1141294). At Sell Quick California, we buy houses as-is across the Bay Area, Sacramento and Napa, and capital gains is one of the first questions sellers ask. This guide explains how the tax is figured, who qualifies for the exclusion, the rules for rentals and inherited houses, and the legal ways to owe less. I’m not a tax advisor, so use it to prepare for that conversation, not to replace it.

How much is capital gains tax on a house in California?

California taxes your gain as ordinary income, at rates from 1% up to 13.3%, with no lower long-term rate. On top of that, you may owe federal capital gains tax of 0%, 15% or 20%, plus a 3.8% surtax for higher earners. Many homeowners owe nothing because the home sale exclusion covers the whole gain.

Two taxes on the same gainThe IRS and California both tax the gain the exclusion doesn’t cover
Federal (2026)0%, 15% or 20%

Married filing jointly, taxable income. Owned a year or less: taxed as wages. Plus 3.8% NIIT when income tops $250,000 ($200,000 single). Excluded gain doesn’t count.

0%
up to $98,900
15%
$98,901 to $613,700
20%
over $613,700
California1% to 13.3%

No lower rate for long-term gains. The gain is added to your income and taxed like wages. The top 13.3% rate applies to income over $1 million. Same $250,000 / $500,000 exclusion.

Rates from IRS Rev. Proc. 2025-32 and the FTB. Brackets change every year.

You pay two taxes on the same gain: federal and California.

  • Federal. If you owned the house more than a year, the gain is long-term and taxed at 0%, 15% or 20%, depending on your taxable income. For 2026, a married couple filing jointly pays 0% up to $98,900 of taxable income, 15% up to $613,700, and 20% above that (IRS Rev. Proc. 2025-32). Owned a year or less, the gain is short-term and taxed like wages (IRS Topic 409).
  • Net investment income tax. Higher earners add 3.8% on investment income, including a taxable home sale gain, once their income passes $250,000 for married couples or $200,000 for single filers. Gain covered by the home sale exclusion doesn’t count (IRS Topic 559).
  • California. California has no lower rate for long-term gains. The gain is added to your income for the year and taxed at the regular rates, from 1% up to 13.3% on income over $1 million (FTB).

Because the gain stacks on top of your other income, a large sale can push you into higher brackets for that one year.

How to figure your gain

How to figure your taxable gainAn example: a married couple sells the home they bought in 2005
Sale price$1,200,000
Selling costsWe pay closing costs; no commission− $0
Purchase priceWhat you paid in 2005− $300,000
ImprovementsKitchen, roof, addition (keep receipts)− $80,000
Gain= $820,000
Home sale exclusionMarried filing jointly− $500,000
Taxable gainTaxed by the IRS and by California$320,000

Illustrative numbers only. Your basis, exclusion and tax depend on your own facts. Ask a tax advisor.

Your gain isn’t the sale price minus what you paid. It’s figured like this:

  1. Start with the sale price and subtract your selling costs, like commission and closing costs. That’s the amount realized.
  2. Subtract your adjusted basis. That’s what you paid for the house, plus closing costs when you bought it, plus the cost of improvements: an addition, a new roof, a remodeled kitchen. Repairs and maintenance don’t count.
  3. What’s left is your gain. Then subtract the home sale exclusion if you qualify (IRS Publication 523).

Improvements are where most people leave money on the table. If you’ve added a room or replaced the roof over 20 years, dig out the receipts. Every dollar of improvements is a dollar less gain.

The home sale exclusion: $250,000 or $500,000

Do you qualify for the home sale exclusion?Up to $250,000 of gain tax-free, or $500,000 for a married couple
  • Owned it 2 of the last 5 years

    The two years don’t have to be in a row.

  • Lived in it 2 of the last 5 years

    As your main home. For couples, both spouses.

  • Haven’t used the exclusion in 2 years

    You can use it once every two years.

Didn’t make two years?

A partial exclusion may apply if you moved for work or health, or after an unforeseen event like a divorce or death.

Was it ever a rental?

Depreciation you took is taxed (up to 25% federal), and rental years before you moved in can shrink the exclusion.

Source: IRS Publication 523, Selling Your Home.

Under Section 121, you can exclude up to $250,000 of gain, or $500,000 on a joint return, if you meet these tests (IRS Topic 701):

  • Ownership: you owned the home for at least two years in the five years before the sale.
  • Use: you lived in it as your main home for at least two years in those five years. The two years don’t have to be in a row.
  • Once every two years: you haven’t excluded gain on another home sale in the two years before this one.

For the full $500,000, either spouse can meet the ownership test, but both must meet the use test. A surviving spouse can still claim $500,000 if the house sells within two years of the spouse’s death (IRS Publication 523).

Sold before two years? You may still get a partial exclusion if the main reason you sold was a job move, a health reason, or an unforeseen event such as a divorce or a death in the family. The exclusion is reduced in proportion to the time you did live there.

There have been bills in Congress to raise or remove these limits, but none has passed. The $250,000 and $500,000 limits still apply.

If the house was a rental or second home

The exclusion only covers your main home. If the house was a rental or a second home:

  • The whole gain is taxable, unless you moved in and made it your main home for two of the last five years.
  • Depreciation is taxed when you sell. Any depreciation you took, or could have taken, while it was a rental is taxed at up to 25% federally, even if the rest of the gain is excluded (IRS Topic 409).
  • Rental years can shrink the exclusion. Time after 2008 that the house was a rental before you moved in counts as “nonqualified use,” and that share of the gain isn’t excluded. Renting it out after you move out doesn’t count against you.
  • A 1031 exchange can defer the tax if you buy another investment property. It has strict deadlines and needs a qualified intermediary before you close.

Our guide on how to sell a rental property in California covers depreciation recapture and 1031 exchanges in detail.

Capital gains on an inherited house

Inherited a house? The basis steps upYour starting point is the value at death, not what your parents paid
Parents paidin 1985$120,000
Value at deathyour new basis$900,000
You sell fora year later$920,000
Taxable gainnot $800,000: the $780,000 of growth during your parents’ lifetime is never taxed$20,000
California couples

If the house was community property, both halves step up when the first spouse dies, so the surviving spouse can often sell with little or no gain.

Illustrative numbers only. Get a date-of-death appraisal to document the basis.

When you inherit a house, your basis is generally its fair market value on the date of death, not what your parents paid. That’s called a step-up in basis. If you sell soon after, there’s usually little or no gain to tax.

California has an extra advantage for married couples. If the house was community property, both halves get a new basis when the first spouse dies, not just the half that was inherited (IRC 1014(b)(6)). A surviving spouse can often sell with little or no gain. A house held in joint tenancy may not qualify, so check how it was titled.

Get a date-of-death appraisal, even if you don’t plan to sell right away. It documents your basis. Our guides to selling inherited property in California and capital gains on inherited property go further.

Two estate planning mistakes that cost families

I see these two mistakes more than any others, and both are easy to avoid with planning.

  • Adding a child to the deed while you’re alive. It feels simpler than a will, but it’s a gift. For gifted property, the child takes over your original basis instead of the stepped-up value at your death, so they can owe tax on decades of growth when they sell (IRS Publication 551).
  • Not putting the house in a living trust. Without a trust, the house usually has to go through probate court before it can be sold, which can take a year or more and adds court and attorney fees. A house in a living trust passes to your heirs without probate and still gets the step-up in basis. Our probate guide explains the court process.

An estate planning attorney can set up a trust for much less than probate costs.

Selling during or after a divorce

Transferring the house to your spouse as part of a divorce generally isn’t taxed. The tax comes later, when the spouse who keeps it sells, and they take over the original basis. If one of you moved out, the divorce agreement can let that spouse keep counting the house as their home for the use test. See our guide to selling a house during or after a divorce.

California withholding at closing (Form 593)

Escrow generally holds back 3 1/3% of the sale price for the state at closing, unless you qualify for an exemption or choose a gain-based calculation on Form 593. It is a prepayment of your California tax, not an extra tax.

California requires escrow to withhold 3 1/3% of the sale price on many real estate sales and send it to the Franchise Tax Board, as a prepayment of your state tax (18 CCR 18662-3). You can avoid it, or reduce it, on Form 593. The most common exemption is that the house was your principal residence under Section 121 (FTB Form 593). You can also choose to have withholding figured on your estimated gain instead of the full price.

If withholding is taken, it isn’t lost. It’s credited against your California tax when you file, and refunded if it’s more than you owe.

Behind on property taxes or the mortgage?

Many of the sellers I talk to are behind on their property taxes, and usually on the mortgage too. Those debts don’t change your capital gain: the back taxes and the loan are paid from the sale at closing, and the gain is still figured from your price and your basis. What they change is the clock. Unpaid property taxes can lead to a county tax sale, and a lender can foreclose much sooner.

A foreclosure doesn’t avoid the tax. The IRS treats a foreclosure as a sale, so you can still owe capital gains tax, and if the lender forgives part of the loan, the forgiven debt can count as income too (IRS Publication 4681). Selling before the foreclosure sale lets you keep whatever equity is left. Our guides to stopping foreclosure in California and selling a house with liens explain how back payments are paid at closing.

Legal ways to pay less capital gains tax

The main ways to owe less are meeting the two-year ownership and use tests, counting every improvement in your basis, selling in a lower-income year, and planning with a CPA before the sale.

  • Wait until you’ve hit two years of ownership and use, if you’re close. The difference can be $250,000 or $500,000 of tax-free gain.
  • Count every improvement in your basis, and keep the receipts.
  • Sell in a lower-income year, like the year after you retire, to keep more of the gain in the lower brackets.
  • Offset the gain with losses from investments sold the same year.
  • For rentals, consider a 1031 exchange to defer the tax into another property.
  • For an inherited house, use the step-up. Selling soon after the death usually means little gain.

Talk to a CPA before you sign. Most of these only work if you plan before the sale, not after.

Does selling for cash change the tax?

No. The tax is the same whether you sell to a cash buyer or list with an agent. What changes is what you walk away with. On a traditional sale, commission and closing costs come off the top. When you sell to us, we pay all closing costs and there’s no commission, so the amount you realize is the full price.

How selling your house to Sell Quick California works

We can’t give you tax advice, but we can give you the numbers your tax advisor needs, early, so you can plan before you commit. If you don’t have a tax advisor, we can refer you to TaxDen in Concord, a tax firm we work with.

Selling as-is to Sell Quick CaliforniaThree steps, no repairs, no commission
  1. Tell us about the house

    Short form or a call. No cleaning or fixing.

  2. Get a written cash offer

    Usually within 24 hours, with every number explained.

  3. Close on your date

    We pay all closing costs. Leave anything behind.

  1. Tell us about the house. Call (925) 854-5040 or fill out the short form. Tell us if it’s a rental, inherited, or part of a divorce.
  2. Get a written cash offer, usually within 24 hours. You’ll see the price and what you’d receive after the loan payoff, so your CPA can estimate the tax. Every offer depends on the house, its condition and the market.
  3. Close on your date. If timing matters for taxes, like reaching two years in the house or closing in January instead of December, we can hold the closing for you. We pay all closing costs, including escrow, title and transfer fees, and there’s no commission. You can leave behind anything you don’t want.

Get your cash offer

This guide is general information, not tax or legal advice. Tax rules and brackets change every year, and your situation is your own, so talk to a CPA or tax advisor before you sell.

This article is general information, not tax advice. Talk to a CPA or tax advisor before you sell.

Keep reading

Related articles

Browse all guides →

Questions & answers

Frequently Asked Questions

Straight answers to what sellers ask us most. Don't see yours?

Talk to us directly (925) 854-5040 Open 7 days, 8am–8pm Get your cash offer
See all FAQs →

Do I pay capital gains tax when I sell my house in California?

Only on gain above the home sale exclusion. If it was your main home and you owned and lived in it for two of the last five years, you can exclude up to $250,000 of gain, or $500,000 if married filing jointly.

What is the capital gains tax rate in California?

California has no separate capital gains rate. The gain is taxed as ordinary income at 1% to 13.3%, on top of the federal 0%, 15% or 20% rate.

How do I avoid capital gains tax on a house in California?

Meet the two-out-of-five-year test for the exclusion, add every improvement to your basis, sell in a lower-income year, offset the gain with investment losses, and for rentals consider a 1031 exchange. Plan with a tax advisor before you sell.

How is capital gain on a house calculated?

Take the sale price, subtract selling costs and your adjusted basis (what you paid plus improvements), and the result is your gain. Then subtract the exclusion if you qualify.

Can I get a partial exclusion if I lived there less than two years?

Yes, if the main reason you sold was a job move, a health reason, or an unforeseen event such as a divorce or death. The exclusion is reduced in proportion to the time you lived there.

Do I pay capital gains tax on an inherited house?

Usually very little. Your basis steps up to the value on the date of death, so you’re only taxed on growth after that. In California, community property can get a step-up on both halves when the first spouse dies.

Do I pay capital gains tax on a rental property in California?

Yes. The exclusion doesn’t cover rentals, and depreciation you took is taxed at up to 25% federally. A 1031 exchange into another investment property can defer the tax.

What is California Form 593?

It’s the real estate withholding form. Escrow withholds 3 1/3% of the sale price for the Franchise Tax Board unless an exemption applies, such as the house being your principal residence.

Should I put my child on the deed to my house?

Usually not without advice. Adding a child to the deed is a gift, so the child takes over your original basis on their share and loses the step-up in basis at your death. A living trust usually avoids that and also keeps the house out of probate.

Can I sell my house if I'm behind on property taxes and the mortgage?

Yes. The back taxes and the loan are paid from the sale at closing. Selling before a foreclosure lets you keep whatever equity is left, and a foreclosure doesn’t avoid capital gains tax.

Does selling for cash change my capital gains tax?

No. The tax is the same. Selling to us means no commission and no closing costs, so you keep more of the sale price.

Ready when you are

Get a Fair Cash Offer on Your California House

Enter the address and we’ll have a written cash offer to you within 24 hours. No repairs, no fees, no obligation.

Prefer to talk? Call (925) 854-5040, open 7 days, 8am–8pm.

  • 5.0 ★ on Google48 reviews across three offices
  • Licensed broker and contractorDRE #01423695 · CSLB #1141294
  • A+ rated by the BBBSell Quick California LLC
Call Get My Cash Offer