California Capital Gains Tax Calculator for Home Sales

Federal and state tax when you sell a house
How much tax will the sale trigger?
Taxable gain$0
Estimated tax$0
Get a cash offer for the house
  • No repairs or cleanup
  • No fees or commissions
  • Close on your timeline

Call or Text  (424) 435-2326


Last updated November 25, 2026. Reviewed by the Cash Home Buyers CA team.

Selling a California house can produce two tax bills, one from the IRS and one from the Franchise Tax Board. Many owners who lived in the home owe nothing. Landlords, heirs and long-time owners in expensive neighborhoods often do owe, and the amount surprises them. This calculator estimates both taxes for a house held longer than one year, using the 2026 federal long-term rates and the most recent California rate schedule.

Fill in the boxes above with your own figures. The result updates as you type, and the table below shows each step so you can check the math or hand it to your tax preparer.

Your numbers, step by step

Step 1: figure your gain

Gain is not the sale price minus what you owe the bank. Your loan balance has nothing to do with it. Gain is the sale price, minus selling costs, minus your adjusted basis.

Basis if you bought the house

Start with the purchase price. Add certain closing costs you paid when you bought, such as title insurance and recording fees. Then add the cost of improvements that added value or extended the life of the home: a new roof, an addition, a kitchen remodel, new plumbing, solar you own, an ADU. Ordinary repairs and maintenance, such as patching a leak or repainting a room, do not count.

Basis if you inherited the house

Inherited property generally gets a new basis equal to its fair market value on the date the owner died. This is the stepped-up basis. If your mother bought a house for $90,000 in 1982 and it was worth $700,000 when she passed, your basis is $700,000, not $90,000.

Enter the date-of-death value in the box labeled what you paid. An appraisal dated close to the death is the usual proof. Our guide to capital gains on inherited property in California goes deeper.

Selling costs

Commission, escrow and title fees, transfer tax and similar costs of the sale reduce your gain. If you are not sure what they will be, our home sale net proceeds calculator adds them up.

Step 2: apply the home sale exclusion

Federal law lets you leave out up to $250,000 of gain on the sale of your main home, or up to $500,000 if you are married and file a joint return.

To qualify you generally must have owned the home and lived in it as your main home for at least two of the five years before the sale, and you cannot have used the exclusion on another home in the past two years. The two years do not have to be continuous.

California follows the same exclusion for state income tax. If your gain is under the limit and you meet the tests, you usually owe neither tax, and you can stop here.

Three situations come up often:

  • You moved out and rented the house. You can still qualify if you lived there two of the last five years, but depreciation you claimed while it was a rental is taxed regardless.
  • You fell short of two years. A partial exclusion may be available if you sold because of a job change, a health reason or certain unforeseen events.
  • Your spouse died. A surviving spouse who has not remarried can generally still use the $500,000 limit if the sale happens within two years of the death and the other tests were met.

Choose No in the main home box if the house was a rental, a second home or an inherited house you never lived in. The calculator then applies no exclusion.

Step 3: federal tax on what is left

Gain on a house held more than a year is taxed at the long-term rates of 0, 15 or 20 percent. Which rate applies depends on your total taxable income, with the gain stacked on top of your other income. For 2026 the 15 percent rate begins above $49,450 of taxable income for single filers and $98,900 for joint filers. The 20 percent rate begins above $545,500 for single filers and $613,700 for joint filers.

There is also the 3.8 percent net investment income tax. It applies to the taxable part of your gain to the extent your income is above $200,000 if you are single or $250,000 if you file jointly. Those two thresholds are not adjusted for inflation. The calculator uses your other taxable income plus the gain as a stand-in for the income figure the IRS uses, which is close for most households.

Step 4: California tax

California has no separate capital gains rate. The state taxes your gain as ordinary income, at rates from 1 percent to 12.3 percent, plus another 1 percent on taxable income above $1 million. For most sellers with a sizable gain, the state rate on that gain is 9.3 percent or higher.

The calculator works out California tax with and without the gain and shows the difference, using the 2025 rate schedules published by the Franchise Tax Board. The state adjusts its brackets for inflation each year, so the next schedule will move the result slightly.

Two worked examples

An owner who lived in the home

A single owner sells for $750,000. She paid $300,000, spent $40,000 on improvements and has $45,000 of selling costs. Her gain is $365,000. She lived there for years, so $250,000 is excluded and $115,000 is taxable. With $90,000 of other taxable income, the federal tax is 15 percent of $115,000, or $17,250, plus $190 of net investment income tax because her income ends $5,000 over the $200,000 line. California tax on the gain is $10,695. The total is about $28,135.

An heir who sells soon after inheriting

A son inherits a house valued at $700,000 on the date of death and sells it eight months later for $750,000, with $45,000 of selling costs. His basis is $700,000, so the gain is only $5,000. He never lived there, so no exclusion applies, but the tax is small: $750 federal and $465 to California on $90,000 of other income, about $1,215 in total. Inherited property is treated as long-term no matter how briefly the heir held it.

The lesson in the second example is timing. The stepped-up basis is fixed on the date of death. Every month an heir holds the house afterward, any rise in value becomes taxable gain, and the holding costs keep running.

What this calculator leaves out

The result is an estimate for planning. A tax professional should confirm it before you rely on it, especially in these cases.

  • Rental depreciation. If you rented the house and claimed depreciation, that amount is taxed at up to 25 percent federally and is not covered by the exclusion. Bring your depreciation schedule to your preparer.
  • Houses held one year or less. Short-term gains are taxed at ordinary federal rates, which are higher.
  • Head of household and separate filers. Their thresholds differ from the two statuses offered here.
  • Credits, deductions and other gains or losses. Stock losses, for example, can offset part of a housing gain.
  • Exchanges. Investment property can sometimes be exchanged for other investment property and the tax deferred. That requires planning before the sale closes.

Withholding at closing is not the tax

On many California sales, escrow withholds 3 1/3 percent of the sales price and sends it to the Franchise Tax Board. Sellers often mistake this for the tax itself. It is a prepayment. You claim it as a credit on your state return and get back any excess.

Sales of a principal residence and several other situations are exempt if you sign the certification on the withholding form before closing. Ask your escrow officer for the form early, because once the money is sent, the only way to recover it is to file your return.

Ways sellers lower the bill

  • Gather receipts for every improvement. Unclaimed improvements are the most common reason people overpay.
  • If you are a few months short of the two-year mark, check whether waiting is worth it.
  • If you inherited, get a date-of-death appraisal even if no one asks for it.
  • Sell in a year when your other income is lower, since both the federal rate and the state rate depend on it.
  • Married couples should confirm both spouses meet the use test before counting on $500,000.

Frequently asked questions

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

Only if your gain is larger than the exclusion you qualify for. An owner-occupant with a gain under $250,000, or a married couple under $500,000, usually owes nothing to either the IRS or California.

What is the capital gains tax rate in California?

The state does not have one. Gains are added to your other income and taxed at your ordinary California rate, from 1 to 12.3 percent, with an extra 1 percent above $1 million of taxable income. Federal tax of 0, 15 or 20 percent is on top of that.

Do I have to buy another house to avoid the tax?

No. That rule ended in 1997. The exclusion applies whether or not you buy again.

How is an inherited house taxed when sold?

You are taxed only on the increase in value since the date of death, less selling costs. If you sell soon, the gain is often small.

Does the calculator work for a rental property?

It gives a starting point. Choose No for main home and enter your original cost. It does not add tax on depreciation, so the real bill for a long-held rental will be higher.

Is the tax different if I sell to a cash buyer?

No. The tax depends on your gain, not on who buys or how they pay. A cash sale usually has lower selling costs and a lower price, and both figures flow into the gain.

Related tools and pages

Thinking about selling?

If the tax on these numbers has you weighing a sale, we can give you a written cash offer to compare. Start with sell my house fast, or go to the page for your area: we buy houses in Los Angeles, we buy houses in Orange County or we buy houses anywhere in California.

Sources