When sellers ask me 'will I owe taxes on my profit?', the answer usually starts with the capital gains rules. Many homeowners owe little or nothing thanks to the primary-residence exclusion — but it depends on your numbers. Here is the framework.

Direct AnswerWhen you sell a home, capital gains tax may apply to your profit (sale price minus your cost basis). At the federal level, a primary-residence exclusion can exclude up to $250,000 of gain for single filers and $500,000 for married couples filing jointly, if you meet ownership and use tests. California taxes capital gains as ordinary income at the state level. Always confirm your situation with a CPA.
Information current as of 2026.

How the gain is calculated

Your taxable gain is roughly your sale price (minus selling costs) less your cost basis. Cost basis is generally what you paid plus qualifying improvements. The bigger your basis, the smaller your gain — which is why keeping records of improvements matters.

Important: This is general information, not financial, tax, or legal advice — consult a licensed lender, CPA, or attorney for your situation.

The primary-residence exclusion

The federal exclusion is powerful: if the home was your primary residence and you meet the ownership and use tests, you can exclude up to $250,000 of gain if single, or up to $500,000 if married filing jointly. Many homeowners owe no federal capital gains tax on a sale because of this.

Federal vs California treatment

  • Federally, qualifying gain above the exclusion may be taxed at capital gains rates.
  • California does not have a separate lower capital gains rate.
  • California generally taxes the gain as ordinary income.
  • The federal exclusion concept is widely used, but confirm state treatment with a CPA.

What raises or lowers your gain

Improvements add to your basis and reduce your gain; selling costs reduce the amount realized. Depreciation taken on a rental, or periods the home was not your primary residence, can complicate the calculation. This is why personalized advice matters.

Why records matter

Keep documentation of your purchase, capital improvements, and selling costs. Good records can meaningfully reduce your taxable gain. I encourage sellers to gather this early and share it with their CPA before listing.

Planning your sale

  1. Estimate your gain: sale price minus basis and selling costs.
  2. Check whether you meet the exclusion's ownership and use tests.
  3. Gather records of improvements.
  4. Consult a CPA before you sell.

Frequently Asked Questions

How is capital gains tax calculated on a home sale?

Your taxable gain is roughly your sale price minus selling costs, less your cost basis (generally what you paid plus qualifying improvements). At the federal level, a primary-residence exclusion may remove much or all of the gain. California taxes gains as ordinary income. The details matter, so confirm your situation with a CPA.

What is the primary-residence capital gains exclusion?

If the home was your primary residence and you meet the ownership and use tests, the federal exclusion lets you exclude up to $250,000 of gain if single or up to $500,000 if married filing jointly. Many homeowners owe no federal capital gains tax because of it. Confirm whether you qualify with a CPA.

Does California tax capital gains on a home sale?

California does not have a separate lower capital gains rate; it generally taxes capital gains as ordinary income at the state level. The federal primary-residence exclusion is a separate concept. Because state treatment can affect your total tax, confirm how your gain is taxed in California with a CPA before selling.

How can I lower my capital gains on a home sale?

Increasing your cost basis lowers your gain, so keep records of qualifying improvements, and selling costs reduce the amount realized. Meeting the primary-residence exclusion tests can remove much or all of the gain federally. Strategies depend on your situation, so consult a CPA, especially if the home was ever a rental.

Do I owe taxes if I sell my home for a profit?

Not necessarily. Thanks to the federal primary-residence exclusion, many homeowners owe little or no federal capital gains tax on a profitable sale, provided they meet the ownership and use tests and the gain is within the exclusion limits. California treatment differs. Confirm your specific situation with a CPA before assuming.

What is cost basis?

Cost basis is generally what you paid for the home plus qualifying capital improvements, and it is used to calculate your gain when you sell. A higher basis means a smaller taxable gain. Depreciation on a rental and other factors can adjust it. Keep good records and confirm your basis with a CPA.

Primary sourcesInternal Revenue Service, California Franchise Tax Board. General information only — verify current figures and confirm legal, tax, or financial questions with a licensed professional.

Related on this site