The All-in-One Solution for California Homeowners
House selling tips and advice

Do You Pay Capital Gains Tax When You Sell Your Home in California?

The Osborne Homes Team

Hand-drawn illustration of capital gains tax when selling a home in California, featuring a sold house, tax documents, and property sale calculations.

Most California homeowners who owned and lived in the home for two of the last five years can exclude up to $250,000 of gain, or $500,000 for married couples filing jointly. California follows that federal exclusion. Any gain above it is taxed federally as a capital gain and by California as ordinary income, with no lower state rate.

lightbulbKey Takeaways

check_circle

To exclude gain on a home sale, you must own and live in the home for two of the five years before selling.

check_circle

The exclusion covers up to $250,000 of gain for single filers, $500,000 for joint filers.

check_circle

California has no lower capital gains rate, so gain above those limits is taxed as ordinary income.

check_circle

Improvements such as a new roof and selling costs such as agent commissions shrink your taxable gain.

check_circle

Selling early because of a job move, health issue or unforeseen event can earn a reduced exclusion.

Article Contents

How the Home Sale Exclusion Works

Section 121 of the Internal Revenue Code lets you exclude gain, not the sale price, when you sell your main home. The IRS lays out the rules in Topic 701 and Publication 523.

Two tests apply. You must have owned the home for at least 24 months of the five years before the sale, and lived in it as your main home for at least 24 months of that same window. The months don’t have to be consecutive.

Here are the figures to keep in mind:

  • $250,000: the most gain a single filer can exclude (IRS Topic 701)
  • $500,000: the most a married couple filing jointly can exclude (IRS Topic 701)
  • 24 months: the ownership and use period required within the five years before closing (Publication 523)
  • 2 years: how long you generally must wait between full exclusions (Publication 523)

What Is the Once-Every-Two-Years Rule?

If you excluded gain on another home sale within the past two years, you generally can’t claim the full exclusion again. Moving often or selling a second residence soon after the first can trip this up. A partial exclusion sometimes still applies.

Married Couples and the $500,000 Limit

A joint return gets the $500,000 maximum when either spouse meets the ownership test, both meet the use test, and neither used the exclusion on another sale in the last two years. If only one spouse qualifies, the limit can drop to $250,000. A CPA can sort out separate ownership histories.

California generally conforms to the federal exclusion, so gain you exclude federally is generally excluded from California taxable income too. The Franchise Tax Board says it follows the IRS rules and allows the exclusion when you owned and used the home for at least 2 of the last 5 years. Unusual situations are worth confirming with a CPA.

How California Taxes the Rest of Your Gain

California has no special rate for capital gains. Any gain left after the exclusion lands on your California return as regular income and is taxed at your marginal state rate, which depends on your filing status, other income and the tax year.

The federal side works differently. A taxable long-term gain can face federal capital gains rates, and higher earners may also owe the net investment income tax. Living in the home doesn’t make every dollar of appreciation tax-free, and past rental use adds depreciation to the mix.

Hypothetical Example: One Sale, Two Filing Situations

Say a home sells for $900,000 and has an adjusted basis of $450,000, which makes the gain $450,000. The table assumes every Section 121 test is met and ignores depreciation.

Filing situationSale price ($)Adjusted basis ($)Gain ($)Excluded ($)Taxable ($)
Single filer900,000450,000450,000250,000200,000
Married filing jointly900,000450,000450,000450,0000

The single filer has $200,000 of gain left to report, while the couple has none. The table stops before final tax due, because that depends on income and the year of sale. To model your own numbers, estimate your capital gains tax and confirm the result with a tax professional.

How to Calculate Your Gain and Lower It Legally

Your taxable gain isn’t your sale price minus your mortgage payoff. The IRS measures gain as the amount you realize from the sale minus your adjusted basis, and a big loan balance doesn’t change that.

Before you start, pull together your original closing statement, improvement receipts, any rental records and the estimated seller statement.

  1. Start with the purchase price.
  2. Add the closing costs you paid at purchase, such as title and recording fees.
  3. Add capital improvements that add value or extend the home’s life, like a new roof, a room addition or a major HVAC system.
  4. Subtract depreciation if you ever rented the home or used part of it for business.
  5. Subtract selling costs, including agent commissions and certain closing charges, from the sale price.
  6. Subtract your adjusted basis from that net sale amount. The result is your gain, before any exclusion.

Keep every receipt and invoice, because the IRS expects you to prove what you spent and when. Routine maintenance doesn’t count. Repainting a room, fixing a leaky faucet or replacing a broken part generally won’t raise your basis, and neither will mortgage principal or insurance premiums.

Our guide on whether home improvements are tax deductible in California covers where the line falls, and Publication 523 has worksheets and examples.

Special Cases: Inherited, Rented, Divorce and Partial Exclusions

Four situations change the math, and each has its own rule.

Inherited Homes

Heirs generally take a stepped-up basis equal to the home’s fair market value on the date of death, which can shrink or erase the gain. Inheriting a house doesn’t satisfy the residence tests, though. If you’re selling an inherited house, ask an estate attorney or CPA to confirm the basis.

Homes That Were Rented

A former rental can leave you with depreciation recapture even when you qualify for the exclusion, and the years it spent as a rental can limit how much gain you exclude. Landlords weighing a sale should read our post on capital gains tax on California rental property first.

Divorce

Divorce can change how ownership and use periods are counted. If a divorce or separation instrument gives your former spouse the right to live in the home, you may be able to count that time toward your own use test. The deed and settlement terms matter, so get individual advice. Our page on selling a house during divorce covers the sale side.

Job Moves, Health and Unforeseen Circumstances

Selling before you reach 24 months can still earn a reduced exclusion when the main reason is a work-related move, a health issue or an unforeseen event. The IRS prorates the amount by how long you owned and lived in the home, so it won’t be the full $250,000 or $500,000 (Publication 523).

Withholding at Closing

Escrow may hold back 3⅓% of the sale price for the Franchise Tax Board unless you certify an exemption on Form 593. A principal residence sale is one of the qualifying exemptions, but escrow won’t assume yours qualifies. Publication 1016 explains the rules, including an alternative calculation based on your gain where permitted.

Withholding is a prepayment, not your final tax bill. Read the form and your estimated closing statement before you sign so nothing on the settlement sheet surprises you.

Osborne Homes is a direct buyer and investor, not a real estate agent, and any offer depends on an inspection of the property. A cash sale goes through the same escrow and withholding rules as any other.

FAQs

How long do I have to live in my house to avoid capital gains tax in California?

You generally need to own the home and use it as your main residence for at least two of the five years before the sale. Meeting that test doesn’t erase every dollar of gain, because anything above $250,000 ($500,000 for joint filers) can still be taxed. Partial exclusions exist for some early sales.

Yes, when taxable gain remains after the exclusion. California generally follows the federal exclusion but taxes what’s left as ordinary income, with no separate capital gains rate.

No. The Section 121 exclusion doesn’t require a replacement home, and buying one doesn’t make otherwise taxable gain exempt.

Capital improvements raise your adjusted basis, which lowers your gain. Additions, a new roof and a major HVAC upgrade are typical examples. Routine repairs and maintenance generally don’t count.

Federal law has no separate home sale exclusion for seniors. Older homeowners use the same Section 121 rules as everyone else. Any property tax benefits for older homeowners are separate from capital gains tax.

It may withhold 3⅓% of the sale price unless you certify an exemption. A principal residence sale generally qualifies when you properly complete Form 593. Ask escrow and your CPA to review it before closing.

Know What You’ll Keep Before You Sell

Once you know roughly what you’ll keep after taxes, you can weigh your options with real numbers. If you’re selling to downsize or simply ready to move, Osborne Homes can give you a no-obligation cash offer to compare against the net proceeds of a traditional listing.

We’re a direct buyer and investor, not an agent, and any offer depends on an inspection of the property. See where we buy houses in California or get your cash offer today.

This article is general information, not legal or tax advice. Talk with a California attorney or CPA, or contact the Franchise Tax Board or IRS, about your own situation.

Sources

  1. IRS Topic No. 701, Sale of Your Home
  2. IRS Publication 523, Selling Your Home
  3. FTB: Income from the sale of your home
  4. FTB: Capital gains and losses
  5. FTB Publication 1016, Real Estate Withholding Guidelines
  6. FTB Form 593, Real Estate Withholding Statement (2026)
The Osborne Homes Team

The Osborne Homes Team

The Osborne Homes team specializes in California real estate, helping buyers, sellers, and homeowners navigate the market with clarity and confidence. Our articles are written to provide practical guidance, local insight, and up-to-date information you can trust.

Recommended for you

Osborne Homes graphic showing a California house with a for-sale sign and common reasons a home may not be selling, including pricing, repairs, marketing, timing, and curb appeal.
House selling tips and advice
Deciding between a cash offer or a realtor? Discover which option suits your needs for speed, price, and convenience in 2026.
Hand-drawn illustration of an underwater mortgage in California, featuring mortgage documents showing a loan balance higher than the home's value.
Homeownership
Deciding between a cash offer or a realtor? Discover which option suits your needs for speed, price, and convenience in 2026.
Hand-drawn illustration of a California transfer on death deed, featuring property transfer documents, house keys, and an inherited home.
House selling tips and advice
Deciding between a cash offer or a realtor? Discover which option suits your needs for speed, price, and convenience in 2026.

Ready to explore your options?

Get a no-obligation cash offer in as little as 48 hours. No repairs, no agents, no stress. Just a dignified way to move forward.

Address of the house you want to sell - Step 1 of 2
House Address

Free property assessment. No obligation. No pressure.

sell

"