Do You Pay Taxes When You Sell Your House? The $250K/$500K Rule Explained

It's usually the second question a seller asks, right after "what's it worth?": how much of this is the government going to take? The answer surprises most people — for the majority of California home sellers, the federal and state tax on the sale of their own home is zero, thanks to one of the most generous rules in the tax code. But the rule has conditions, the gain math is widely misunderstood, and long-time LA-County owners with huge appreciation need to plan rather than assume. Here's the whole picture in plain language.

Quick Answer

If the home was your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of profit from capital gains tax ($500,000 for a married couple filing jointly) — and California follows the same exclusion for state tax. "Profit" means sale price minus selling costs minus what you paid minus qualifying improvements over the years — not the sale price itself, and not your equity. Most sellers fall entirely under the exclusion and owe nothing. Gain above the cap is taxed as long-term capital gain; rentals, second homes, and short ownership follow different rules.

The rule, in one paragraph

Federal tax law (Section 121, if you want to impress someone) lets you exclude gain from the sale of your main home: up to $250,000 of profit if you're single, up to $500,000 if you're married filing jointly. To qualify, you must have owned the home and lived in it as your principal residence for at least two of the five years before the sale — the two years don't need to be consecutive, and only one spouse needs to meet the ownership test as long as both meet the residence test for the full $500,000. California conforms: gain excluded federally is excluded on your state return too. There's no age requirement, no requirement to buy another home, and no once-in-a-lifetime limit — those are all leftovers of old law that still circulate as myths.

The math: what "gain" actually means

Sellers routinely overestimate their taxable gain because they start from the wrong number. The calculation runs:

  1. Start with the sale price.
  2. Subtract selling costs — commissions, escrow and title fees, transfer taxes, seller-paid credits and repairs done for the sale.
  3. Subtract your cost basis: what you originally paid, plus most of your original closing costs.
  4. Subtract capital improvements made over the years — the new roof, the remodeled kitchen, the added bathroom, the HVAC replacement, landscaping projects (repairs and maintenance don't count; upgrades do).
  5. What's left is your gain. Apply the $250K/$500K exclusion to that.

Notice what's NOT in the math: your mortgage payoff. Owing a lot (or nothing) on the loan has zero effect on taxable gain — a seller with no mortgage and a seller with an 80% loan on the same house have the same gain.

A Downey example

A couple bought their Downey home in 1998 for $180,000, put roughly $90,000 into it over 25 years (roof, kitchen, windows, a bathroom), and sells today for $860,000 with about $50,000 of selling costs. Their gain is $860,000 − $50,000 − $180,000 − $90,000 = $540,000. Married filing jointly they exclude $500,000, leaving $40,000 taxed as long-term capital gain — for many couples at a 15% federal rate that's about $6,000 federal plus California tax on the same $40,000, on a sale that put well over half a million in their pocket. And notice how the improvement records mattered: without that $90,000 documented, their taxable slice would have more than tripled. This is why the shoebox of receipts is worth real money — and why long-time owners should tally basis before listing, not at tax time.

When the answer isn't zero

The situations that fall outside the easy case:

  • You haven't lived there 2 of the last 5 years — the home is a rental, a second home, or you moved out more than three years before selling. The exclusion shrinks or disappears (a partial exclusion exists for moves forced by work, health, or certain unforeseen events even under two years).
  • You converted a rental to your residence (or vice versa) — the rules get genuinely technical: depreciation you took as a landlord is taxed on sale regardless of the exclusion, and years of rental use can make part of the gain non-excludable. This is CPA territory, ideally before you sell.
  • You used the exclusion on another sale within the last two years — it generally can't be claimed twice inside 24 months.
  • Your gain exceeds the cap — common for 30-year owners in appreciated neighborhoods. The excess is taxed at long-term capital gains rates (0%, 15%, or 20% federally depending on income, plus California's ordinary rates, plus possibly the 3.8% net investment income tax at higher incomes).
  • You inherited the home — good news: your basis stepped up to the value at the owner's death, which usually shrinks the gain dramatically. Different article, better outcome.

The California paperwork at escrow

One state-specific detail catches sellers off guard: California real estate withholding. By default, escrow must withhold a percentage of the sale price and send it to the Franchise Tax Board as a prepayment of state tax. But sellers who qualify — most importantly, anyone selling a home that qualifies as their principal residence under the federal exclusion — simply certify the exemption on Form 593 at escrow and nothing is withheld. It's a routine form your escrow officer handles; just don't be alarmed when it shows up in your signing package, and don't skip it, because without the certification the withholding is automatic even if you owe no tax at all.

We're real estate brokers, not tax professionals — this article is the general framework, not advice for your return. Anything beyond the plain-vanilla case (rental history, gain near or above the cap, recent exclusion use) deserves an hour with a CPA before you list, while choices can still be made.

Frequently asked questions

I'm selling my house for way more than I paid. Will taxes eat my proceeds?

Probably not — if it's been your primary home for 2 of the last 5 years, your first $250,000 of profit ($500,000 married) is completely tax-free, and "profit" is calculated after subtracting selling costs, your purchase price, and improvements. Most sellers fit entirely inside that shelter. Sellers with truly large gains owe tax only on the slice above the cap, at capital-gains rates that are lower than ordinary income rates.

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

No. That rule died in 1997 — the old "rollover" requirement is the most persistent myth in residential real estate. The exclusion applies whether you buy again, rent, move in with family, or leave the state. (The separate strategy of a 1031 exchange applies to investment property, not your own residence.)

How does the IRS even know what I sold the house for?

Escrow reports the sale on Form 1099-S in most cases, so the sale price is on record. Whether you owe anything — and whether you even need to report the sale — depends on the exclusion math. If you receive a 1099-S, report the sale on your return and claim the exclusion; if your gain is fully excluded and no 1099-S was issued, reporting is generally not required. Your tax preparer sorts this in minutes with your escrow closing statement.

What about property taxes — will my tax bill follow me to my next California home?

Different tax, and potentially good news: if you're 55 or older, Prop 19 lets you transfer your low Prop 13 assessed value to a replacement home anywhere in California (up to three times), which can save thousands a year on the next house. It's one of the strongest arguments for long-time owners who feel trapped by a low tax bill. We have a calculator that runs your numbers.