capital gain tax california calculator

California Capital Gain Tax Calculator

Estimate federal and California tax on a sale of real estate, stocks, crypto, or other assets.

Estimator for planning only. Rates and bracket thresholds are simplified and may not reflect your exact return.

How California taxes capital gains

California does not offer a special lower tax rate for long-term capital gains. Whether your gain came from a home sale, stock sale, business sale, or crypto transaction, California generally taxes the gain as ordinary income. That means your capital gain can push you into higher California brackets.

At the federal level, long-term gains usually receive favorable rates (0%, 15%, or 20%), while short-term gains are taxed at ordinary federal income rates. Because California and federal rules differ, investors in California often see a meaningful gap between federal and state tax treatment.

What this California capital gain calculator includes

  • Estimated raw capital gain (sale price minus adjusted basis and selling costs)
  • Optional primary residence exclusion ($250,000 or $500,000)
  • Federal tax estimate based on long-term or short-term treatment
  • Net Investment Income Tax (NIIT) estimate at 3.8% when applicable
  • California incremental tax estimate from adding the gain to income
  • Total estimated tax, after-tax gain, and effective tax rate

Step-by-step formula used

1) Calculate raw gain

Raw Gain = Sale Price - Purchase Price - Improvements - Selling Costs

This mirrors the common capital gain framework: your basis starts with purchase price and can increase from qualifying improvements.

2) Apply home sale exclusion (if eligible)

If you qualify under IRS primary residence rules, a portion of gain may be excluded from federal and California taxable gain calculations in this estimator.

3) Calculate federal tax

For long-term gains, the calculator applies 0% / 15% / 20% federal capital gains bands based on filing status and taxable income. For short-term gains, it computes the incremental tax at ordinary federal brackets.

4) Calculate California tax

California tax is estimated by calculating state tax with and without the gain, then taking the difference. This reflects how gains can push income into higher California marginal rates.

5) Add NIIT when relevant

The 3.8% Net Investment Income Tax is estimated when income exceeds NIIT thresholds.

Example: California home or stock gain

Suppose you sell an asset for $900,000, bought at $500,000, with $40,000 of improvements and $55,000 of selling costs.

  • Raw gain = $305,000
  • If no exclusion applies, taxable gain = $305,000
  • Federal long-term tax may be partly at 15% and 20%, depending on income
  • California taxes the same gain as ordinary income at your state marginal levels

This is why California investors often focus heavily on basis tracking, timing, and tax-aware exit planning.

Ways to potentially reduce California capital gains tax

  • Increase basis documentation: keep records of remodels, additions, and acquisition costs.
  • Time the sale: shifting a closing date can change the tax year and effective brackets.
  • Installment sale strategy: may spread gain over years (when appropriate).
  • 1031 exchange (investment real estate): defer gain under qualifying rules.
  • Harvest losses: offset gains with capital losses where available.
  • Charitable planning: donating appreciated assets can reduce realized gain exposure.

Important limitations

This calculator is a practical estimate tool, not a tax filing engine. It does not fully model depreciation recapture, AMT impacts, passive activity rules, Qualified Opportunity Funds, surtax interactions, local transfer taxes, or every filing nuance. Always review large transactions with a CPA or tax attorney before closing.

Frequently asked questions

Does California have a lower long-term capital gains rate?

No. California generally taxes capital gains as ordinary income.

Does the federal long-term rate still apply if I live in California?

Yes. Federal rules are separate. You may get a federal long-term rate and still owe ordinary-rate tax to California.

Can I use this for stock sales and crypto?

Yes. The math works for most capital assets, as long as your cost basis and selling costs are entered correctly.

🔗 Related Calculators