Skip to main content
Most Trusted Cash House Buyers Since 2009
Call Us(408) 717-4505
Seller Education

Capital Gains Tax When You Sell Your House in California (2026): What You Actually Owe

July 30, 202611 min readBy Eugene Romberg
Bright, modern contemporary California home in daylight — a primary residence being sold
Selling your California home rarely means a big capital gains tax bill. The home-sale exclusion wipes out the gain on a primary residence for most sellers.

You're about to sell your California home, you've watched its value climb for years, and now a worry has crept in: how much of that gain is the government going to take? You've heard "capital gains tax," done some quick mental math on the difference between what you paid and what it's worth now, and landed on a scary number. So you're searching capital gains tax when selling a house in California, trying to figure out what you'll actually keep.

Here's the reassuring, honest answer: most people who sell their primary home in California owe $0 in capital gains tax. There's a powerful federal rule — the home-sale exclusion — that lets you exclude up to $250,000 of gain if you're single, or $500,000 if you're married filing jointly, on the sale of your main home. For the large majority of California sellers, that exclusion erases the entire taxable gain. This guide walks through exactly how it works, with real Bay Area math, plus what happens if your gain is bigger than the exclusion. (One note up front: this is general education, not tax advice — confirm your specifics with a CPA.)

The rule that saves most sellers: the home-sale exclusion (Section 121)

Under federal tax law (IRC §121), when you sell a home that has been your primary residence, you can exclude a large chunk of the profit from capital gains tax entirely:

  • $250,000 of gain if you file as single
  • $500,000 of gain if you're married filing jointly

This isn't a deduction or a deferral — it's an outright exclusion. That gain simply isn't taxed. And critically, the exclusion applies to your gain (profit), not the sale price. People panic because they picture owing tax on the whole sale amount, or on the entire increase since they bought. Neither is true. You're only ever taxed on gain above the exclusion — and for most California homeowners, there isn't any. The graphic below shows how it plays out.

Most California home sellers owe $0 capital gains: up to $500k of gain is excluded tax-free (married; $250k single) if it was your main home 2 of the last 5 years
A married couple with a $450,000 gain owes nothing, because it falls under the $500,000 exclusion. Only gain above the exclusion is ever taxed — and only the excess, never the whole sale.

A real Bay Area example

Say you and your spouse bought a Hayward home years ago for $400,000, and you're selling it now for $850,000. Here's the math:

  • Sale price: $850,000
  • Original purchase price (your basis): −$400,000
  • Your gain: $450,000
  • Married filing jointly exclusion: −$500,000
  • Taxable gain: $0

Even though the home nearly doubled in value, the entire $450,000 gain is under the $500,000 married exclusion, so none of it is taxed. A single filer with the same numbers would exclude $250,000 and owe tax only on the remaining $200,000 — still far from the "15% of $850,000" nightmare number people fear. And remember, your gain gets even smaller once you factor in your basis additions and selling costs, which we cover below.

Do you qualify? The 2-of-5-year test

To claim the full exclusion, you generally have to pass two tests, both measured over the five years before the sale:

  • Ownership test: you owned the home for at least 2 of the last 5 years.
  • Use test: you lived in it as your main home for at least 2 of the last 5 years.

The two years don't have to be continuous, and for married couples only one spouse needs to meet the ownership test, but both must meet the use test to get the full $500,000. You also generally can't have used the exclusion on another home sale in the past two years. If you've lived in and owned the home you're selling for at least a couple of years, you almost certainly qualify.

What if your gain is bigger than the exclusion?

If your gain exceeds your exclusion — more common for long-held homes in the priciest Bay Area markets — only the excess is taxed, not the whole gain and certainly not the whole sale. That excess is taxed as a long-term capital gain (assuming you owned it more than a year), and here's how the two layers work in California:

  • Federal: long-term capital gains rates of 0%, 15%, or 20% depending on your total income. Most sellers fall in the 15% band.
  • California: the state has no separate capital-gains rate — it taxes the gain as ordinary income (roughly 1%–13.3% by bracket, with most sellers in the ~6%–9.3% range). But again, this applies only to the portion above your federal exclusion.

So even a seller with a gain over the exclusion is taxed only on the slice that pokes above $250k/$500k — a much smaller number than the headline sale price. The same long-term-vs-ordinary rules we explain in our guide to capital gains tax on an inherited California house apply here too, just with the primary-residence exclusion layered on top.

Shrink the gain: what adds to your basis (and what selling costs do)

Your taxable gain is sale price minus your adjusted basis minus selling costs — so anything that raises your basis or counts as a selling cost lowers the gain:

  • Capital improvements add to your basis: a new roof, an addition, a remodeled kitchen or bath, new HVAC, solar, landscaping, a pool. Keep receipts — decades of improvements can add up to six figures of basis.
  • Selling costs come off the amount realized: agent commissions, escrow and title fees, transfer taxes, and certain closing costs. Our breakdown of what closing costs a California seller pays shows exactly what's deductible against the sale.
  • Routine repairs don't count — patching, painting, and fixing are maintenance, not improvements, and don't add to basis.

For a seller whose gain is near the exclusion limit, documenting improvements and selling costs can be the difference between owing a little and owing nothing.

Special situations worth knowing

  • Divorce. A married couple selling during or around a divorce can usually still claim the $500,000 exclusion if they sell while still legally married and both meet the tests; timing matters, so coordinate with your attorney. (See selling a home during divorce for the practical side.)
  • Inherited, then lived in. If you inherited a home and later made it your primary residence, you may combine the stepped-up basis with the exclusion. The pure-inheritance case is different — that's covered in our inherited-home capital gains guide.
  • A former rental converted to your home. If the property was once a rental, part of your gain tied to depreciation is "recaptured" and taxed even if you later moved in. If you're selling a property you rent out, our guide on selling a rental with tenants covers that path.
  • Partial exclusion. Even if you don't hit the full 2 years, a move forced by a job change, health issue, or other qualifying "unforeseen circumstance" can earn you a prorated exclusion — often still enough to erase the gain.

Does selling to a cash buyer change your capital gains?

No. Your capital gain is driven by your sale price versus your basis, regardless of who buys the home — a cash buyer, an iBuyer, or a retail buyer with a mortgage. What a fast, as-is cash sale does do is remove agent commissions and let you skip pre-sale repairs, which keeps more money in your pocket at closing (and, if your gain is near the exclusion limit, the saved commission can even help keep you under it). If speed matters, see how we rank every option in how to sell a house fast in the Bay Area, and how offers are built in how much cash home buyers pay.

Frequently asked questions

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

Usually not, if it's your primary residence. The federal home-sale exclusion lets you exclude up to $250,000 of gain (single) or $500,000 (married filing jointly), which erases the taxable gain for most sellers. You'd only owe tax on gain above that exclusion — and California taxes only that excess, not the whole sale.

How much is capital gains tax on a home sale in California?

On the portion of gain above your exclusion, you'd pay federal long-term capital gains tax (0%, 15%, or 20% based on income) plus California's ordinary-income rate on that same slice (most sellers land in the ~6%–9.3% range). California has no separate capital-gains rate. If your gain is under the exclusion, the rate is effectively zero.

What is the $250,000 / $500,000 home-sale exclusion?

It's the IRC §121 exclusion. If a home was your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of gain when single, or $500,000 when married filing jointly, from capital gains tax entirely. It applies to your profit, not the sale price.

How do I avoid capital gains tax when selling my house?

For a primary home, the exclusion usually handles it — make sure you meet the 2-of-5-year ownership and use tests, and don't sell two exclusion-eligible homes within two years. Beyond that, document capital improvements (they raise your basis) and selling costs (they reduce the gain). For investment property, a 1031 exchange defers the tax, but that's a different rule from the primary-home exclusion.

Does California have an extra capital gains tax on home sales?

California doesn't have a special capital-gains rate, but it does tax capital gains as ordinary income. So on any gain above your federal exclusion, you'd pay California income tax at your normal bracket. On gain within the exclusion, there's nothing to tax at the state level either.

What if I only lived in the home for one year?

You generally need 2 of the last 5 years to claim the full exclusion. But if your move was triggered by a qualifying reason — a job relocation, a health issue, or certain unforeseen circumstances — you may qualify for a partial exclusion prorated by the time you did live there, which is often still enough to cover the gain.

The honest bottom line

The capital gains tax on selling your California home is almost never the monster it feels like at first. The home-sale exclusion shields up to $250,000 of gain for singles and $500,000 for married couples, which wipes out the taxable gain for the majority of sellers. If your gain is bigger than that, only the excess is taxed — never the whole sale — and improvements and selling costs shrink it further. The tax should rarely be the reason you hesitate to sell.

If you'd like to know what you'd actually net on your Bay Area home — after selling costs and any capital gains — tell us the address and roughly what it's worth, and we'll walk you through a real, no-obligation number. We buy homes as-is, pay all closing costs (no commission), and can close in as little as two weeks. Call (408) 717-4505. We buy across the Bay Area, including Oakland, San Jose, Hayward, and Fremont — and please confirm your specific tax situation with a CPA before you file.

Eugene Romberg

About Eugene Romberg

Eugene Romberg has been buying homes in the San Francisco Bay Area since 2009. He's helped hundreds of families sell their properties quickly and fairly, specializing in situations like probate, foreclosure, divorce, and inherited homes. His mission is to provide honest, transparent cash offers with zero pressure.

Learn more about Eugene

Related Articles

Landlord Resources

1031 Exchange When You Sell a California Rental (2026): Defer the Tax — or When a Cash Sale Beats It

A 1031 exchange defers capital gains when you roll a California rental into another investment property. Here's how the rules really work — and when just selling for cash nets you more.

Read More
Legal Guides

Partition Action in California: When Co-Owners Won't Agree to Sell (and How to Avoid the Lawsuit)

Co-owner refusing to sell a California property? A partition action can force a sale — but it takes 12-18 months and $20k+. Here's the faster, cheaper cash-buyout off-ramp most people miss.

Read More
Seller Education

How to Sell a House Fast in the Bay Area (2026): Every Path, Ranked by Speed

The four real ways to sell a Bay Area home, ranked fastest to slowest — cash buyer (7-14 days), iBuyer, flat-fee agent, or traditional MLS — with honest timelines and net-proceeds tradeoffs.

Read More
Financial Distress

Sell a House with an Underwater Mortgage in California (Your Real Options, 2026)

Owe more than your Bay Area home is worth? Here's the honest decision tree — cash-to-close, short sale, or a direct cash sale — with real negative-equity math.

Read More
Seller Education

Capital Gains Tax When You Sell an Inherited House in California (2026)

Inherited a CA home? You're not taxed on the whole sale price — only the gain above its value at the date of death (the stepped-up basis). Here's the real math.

Read More
Seller Education

Cash Buyer vs. Wholesaler: Who Actually Buys Your Bay Area House (2026)

A wholesaler doesn't buy your house — they assign your contract to someone else. How to spot a real estate wholesaler vs a real Bay Area cash buyer before you sign.

Read More
Seller Education

How Much Do Cash Home Buyers Pay? Real Bay Area Numbers for 2026 (Complete Guide)

Cash home buyers in the Bay Area typically pay 70-85% of after-repair value. See the exact offer formula, 3 real math scenarios (Antioch to Berkeley), and what actually affects your number.

Read More
Legal Guides

How to Sell a House in Probate in California (2026 Guide)

Inherited a property in California? Learn the probate process, your options for selling, and how to navigate this complex situation with confidence.

Read More
Foreclosure Help

How to Stop Foreclosure in California: 5 Options (2026)

Facing foreclosure in California? You have options. Learn 5 proven ways to stop foreclosure and protect your credit, including selling your house fast for cash.

Read More
Seller Education

Can You Sell a House As-Is in California?

Learn the legal requirements, disclosure obligations, and pros and cons of selling a house as-is in California. Discover how cash buyers make as-is sales simple.

Read More
Seller Education

Cash Offer vs. Listing with an Agent: Honest Bay Area Comparison

An honest numbers-driven comparison of selling your Bay Area house for cash vs. listing with a real estate agent. See which option actually nets you more after all the math.

Read More
Legal Guides

Selling an Inherited House with Multiple Owners

Inherited a house with siblings or other heirs? Learn how to navigate multi-owner property sales in California, resolve disagreements, and close smoothly.

Read More
Legal Guides

How to Sell a House During Divorce in CA

Selling your house during a California divorce? Learn about community property rules, court orders, and how a fast cash sale can simplify the process.

Read More
Landlord Resources

How to Sell a Rental with Tenants in the Bay Area

Want to sell your Bay Area rental property but have tenants? Learn California tenant rights, notice requirements, and how cash buyers simplify occupied sales.

Read More
Market Insights

Bay Area Housing Market Update (2026)

Get the latest Bay Area housing market trends for 2026. Median prices by city, inventory levels, and what it all means if you're thinking about selling.

Read More
Seller Education

What Closing Costs Does a Seller Pay in CA?

A complete breakdown of closing costs California home sellers pay, from escrow fees to transfer taxes. Learn how selling to a cash buyer eliminates most costs.

Read More
Difficult Properties

How to Sell a Hoarder House in California (Without Cleaning It Out First)

Need to sell a hoarder house in California? Learn your real options, what cleaning actually costs, and how to sell as-is for cash without lifting a finger. Honest 2026 Bay Area guide.

Read More
Difficult Properties

Sell a House with a Tax Lien in California (IRS, State, or Property Tax — 2026 Guide)

Have a tax lien on your California property? You can still sell. Learn how IRS, state, and property tax liens are paid at closing — and how to close in 14 days even with the IRS attached to your title.

Read More
Difficult Properties

Sell a House with Foundation Issues in California (Bay Area Guide 2026)

Foundation cracks, sloping floors, or a failed inspection? You can sell a California house with foundation issues without spending $15-$100K on repairs. Bay Area cash sale guide with real numbers.

Read More
Difficult Properties

Sell a House with a Past-Due HOA Lien or HOA Foreclosure in California (2026 Guide)

Past-due HOA dues, special assessment, or active HOA foreclosure? You can still sell. Learn how HOA liens are paid at closing, your rights under California Civil Code, and how to close in 14 days.

Read More
Difficult Properties

Sell a House with Code Violations in the Bay Area (2026 Guide)

Open city violations, unpermitted additions, illegal garage conversion? Sell your Bay Area house with code violations as-is to a cash buyer in 14 days. Real Oakland/Hayward/SF math + disclosure law explained.

Read More
Difficult Properties

Sell a Fire-Damaged House in the Bay Area (Smoke, Char, Total Loss — 2026 Guide)

Sell a fire-damaged Bay Area house in 14 days, even if insurance is slow or your home is a total loss. Real Oakland Hills math + how cash buyers handle smoke, char, and structural fire damage.

Read More
Difficult Properties

Sell a House with Mold or Water Damage in the Bay Area (2026 Guide)

Sell a Bay Area house with black mold, water damage, or moisture issues without a $30K+ remediation bill. Real Pacifica/Half Moon Bay/coastal math + California disclosure law explained.

Read More
Difficult Properties

Sell a Vacant House in California — Stop Squatters, Vandalism, and Insurance Cancellation (2026 Guide)

Vacant house in California? Insurance carriers cancel coverage after 30-60 days vacancy and squatters know which homes are empty. Sell as-is in 14 days, no eviction battles. Bay Area cash buyer guide.

Read More
Difficult Properties

Sell a Bay Area House During Bankruptcy (Chapter 7 vs Chapter 13 vs Cash Sale — 2026 Guide)

Filing or considering bankruptcy in California with a home? Learn how Chapter 7 and 13 affect your house, when the trustee approves a sale, California homestead exemptions, and how a cash sale fits.

Read More
Difficult Properties

Sell a House with Title Problems or a Cloud on Title in California (2026 Bay Area Guide)

Title search revealed liens, missing heirs, or other defects? Sell a Bay Area house with title problems in 14-45 days. California quiet title process, partition actions, and cash buyer workarounds explained.

Read More
Difficult Properties

Sell a House with Squatters in California: Eviction, Cash-for-Keys & Cash Buyer Paths (2026 Bay Area Guide)

Selling a Bay Area house with squatters inside? See California's eviction process, cash-for-keys math, and how cash buyers close in 30 days with squatters still in place.

Read More
Legal Guides

Sell a House After Death Without Probate in California (2026 Guide)

Inherited a Bay Area house and dreading 9-18 months of probate? See the 5 ways a California home passes without probate, how to sell once title clears, and how to sell even if probate is required.

Read More
Education / Comparison

Cash Offer vs Opendoor and Offerpad — Bay Area 2026 Comparison

Opendoor still operates in the Bay Area on tighter terms; Offerpad exited. How iBuyer offers actually work in 2026 plus the real Hayward math vs a local cash buyer.

Read More
Seller Education

Sell a House with a Reverse Mortgage in California — Heirs' Guide to HECM Payoff, Probate, and the Cash-Sale Path

Inherited a California home with a reverse mortgage? The heirs' guide to the HECM due-and-payable clock, the 6-month payoff window, and selling before foreclosure.

Read More
Seller Education

Short Sale in California — How It Works, the Timeline, and When a Cash Sale Beats It

A plain-English guide to the California short sale process — how lender approval works, the credit hit vs. foreclosure, and why most Bay Area homeowners who think they need a short sale actually have a faster, better option.

Read More
Seller Education

Facing Pre-Foreclosure in California? Your 4 Options Before Auction Day

A Notice of Default isn't foreclosure — it's the start of a ~111-day clock. The real California pre-foreclosure timeline and your 4 options before auction day.

Read More
Seller Education

Are Cash Home Buyers Legit? How to Vet a Bay Area Cash Buyer Before Signing

Most cash home buyers are legit — but not all. The 10-point checklist to vet any Bay Area 'we buy houses' company in 20 minutes, plus the bait-and-switch to avoid.

Read More

Get Your Free Cash Offer Today

No repairs, no commissions, no stress. Tell us about your property and we'll send you a fair cash offer within 24 hours.

Get Your Free Cash Offer

No obligation. Get your offer in 7 minutes.

By submitting this form, you agree to receive SMS/text messages from Eugene Bay Area Home Buyersat the phone number provided, including messages sent by autodialer. Msg & data rates may apply. Msg frequency varies. Reply STOP to opt out. Consent is not a condition of purchase. Terms & Privacy Policy.

Your information is safe & secure