
HB Locals Only · Homeowner Wealth
Capital gains when you sell your primary home in California.
When you sell your primary home, the Section 121 exclusion generally shields a big chunk of the gain. Here's how it works, and why longtime HB owners sometimes go over it.
The short version
When you sell your primary residence in California, your federal capital gain is generally the sale price minus your selling costs minus your adjusted basis, which is roughly what you paid plus qualifying improvements. The Section 121 exclusion generally lets a single filer exclude up to $250,000 of that gain, and a married couple filing jointly up to $500,000, if you meet the ownership and use tests, which generally means you owned the home and lived in it as your main home for at least two of the last five years. In Huntington Beach, longtime owners who bought decades ago at a low price can have gains above the exclusion, so part may be taxable. Keeping records of your improvements matters, because they can raise your basis and lower your taxable gain. This is general education, not tax advice, and every situation is different, so talk to a CPA.
Updated 2026-06-25
At a glance
The exclusion
$250k single / $500k joint
Section 121, on gain from a primary residence, if you meet the ownership and use tests.
The tests
2 of the last 5 years
Generally owned the home and lived in it as your main home for at least two of the prior five years.
Gain, not price
Sale price minus costs minus basis
The exclusion applies to your gain, not the full amount the home sells for.
Why it matters here
Decades of HB appreciation
Longtime owners can have gain above the exclusion, so part may be taxable.
Start here
The calm version, in plain English.
Selling your primary home is one of the few times the tax code is genuinely on your side, and a lot of people don't realize how generous it can be. Ratowsky Group at Compass hears the same worry over and over: that a sale will trigger a giant tax bill on the whole sale price. That's almost never how it works. The tax, if there is any, generally applies only to your gain, and a big chunk of that gain is often excluded entirely.
Here's the framework. When you sell, your federal capital gain is generally the sale price, minus your selling costs, minus your adjusted basis. Then the Section 121 exclusion generally lets a single filer shield up to $250,000 of that gain, and a married couple filing jointly up to $500,000, if you meet the ownership and use tests. The rest of this page walks through each piece. None of it is tax advice, and your numbers are your own, so a CPA is the right person to run them.
The Section 121 exclusion
The $250k and $500k amounts, and who qualifies.
The home-sale exclusion lives in Section 121 of the tax code, and the dollar figures are long-standing. Generally, a single filer can exclude up to $250,000 of gain on a primary residence, and a married couple filing jointly can exclude up to $500,000. These aren't deductions you claim against income. They're amounts of gain that simply don't get taxed, assuming you qualify.
Qualifying generally comes down to the ownership and use tests. In broad terms, you need to have owned the home and lived in it as your main home for at least two of the five years before the sale. The two years of use don't have to be continuous, and the rules around married couples, recent moves, and partial qualification get specific quickly. That's the pattern with this whole topic: the headline is simple, the edges are not. A CPA is the right person to confirm whether you meet the tests in your particular situation.
The general shape of the exclusion
- Up to $250,000 of gain excluded for a single filer.
- Up to $500,000 of gain excluded for a married couple filing jointly.
- Generally requires owning and living in the home 2 of the last 5 years.
- Applies to your gain, not the full sale price.
- Generally usable more than once over a lifetime, subject to the rules.
How gain is calculated
Sale price, selling costs, and your basis.
Gain is where people get tripped up, because they think in terms of sale price when the tax code thinks in terms of gain. In general terms, your gain is the sale price, minus the costs of selling, minus your adjusted basis. Selling costs can generally include things like the commission and certain closing expenses, and a CPA can tell you which ones count. The piece that does the heavy lifting, though, is basis.
Your adjusted basis generally starts with what you originally paid for the home, and then qualifying improvements over the years can add to it. A higher basis generally means a lower taxable gain, because gain is roughly sale proceeds minus basis. So two owners who sell for the same price can have very different taxable gains, depending on what they paid and what they invested in the home along the way. This is exactly why the next section about records matters so much.
Why this hits harder in Huntington Beach
Longtime owners can run past the exclusion.
Here's where it gets real for this town. Picture someone who bought in Old Town, near the wetlands, or over in Huntington Harbour decades ago, at a price that sounds almost made-up now. Their basis is low, the home has appreciated for years, and the gain on a sale can run well past $250,000 or $500,000. When that happens, the exclusion may cover part of the gain, and the rest may be taxable. That part genuinely surprises people, and it's far better to learn it months before a sale than at the closing table.
This isn't a reason to panic, and it's definitely not a reason to avoid selling. It's a reason to understand your real numbers early. Craig and Justin Ratowsky have worked with owners who held a home for 30-plus years, and the calm move is always the same: get a realistic read on your potential gain, loop in a CPA before you make decisions, and plan with eyes open. The goal is no surprises, just a clear picture of what a sale actually looks like for your household.
The lever you control
Why your old improvement records matter.
Since the tax turns on gain, anything that lowers your taxable gain matters, and basis is the lever you actually have some control over. The boxes of old receipts in the garage are worth more than they look. If you've owned for decades, the new roof, the addition, the kitchen and bath remodels, the re-piping, the seawall work on a harbor property, all of that can potentially factor into basis under the rules.
Routine repairs and maintenance generally don't count the same way as capital improvements, and the line between them has its own definitions, so this is another spot to defer to a CPA. The practical, non-advice takeaway is simple: keep your records. The owner who can document what they put into the home over thirty years generally hands their tax professional a much better starting point than the owner who can't. You don't need to know what qualifies. You just need to keep the paper so your CPA can decide.
Frequently asked
How much capital gain can I exclude when I sell my primary home in California?
Do I pay capital gains tax on the full sale price of my home?
What are the ownership and use tests for the home-sale exclusion?
Why might a longtime Huntington Beach owner owe tax even with the exclusion?
How do home improvements affect my capital gains?
Is the home-sale exclusion the same as Proposition 19 or stepped-up basis?
Your Huntington Beach real estate team
Craig and Justin Ratowsky.
Craig Ratowsky and Justin Ratowsky are equal partners at Ratowsky Group, principal agents with Compass, and founding members of the Compass Huntington Beach office. Craig has sold Huntington Beach real estate since 1977, bringing 49 years of pricing and negotiation experience. Justin is a third-generation California Realtor® focused on local guidance and modern marketing. Together, they bring 58+ years of combined experience.
Planning a move with major equity?
Thinking through a sale that's decades in the making?
Justin and Craig Ratowsky at Ratowsky Group at Compass can talk through the real-estate side and point you to the right attorney, CPA, or advisor for the rest.
Ratowsky Group at Compass. Craig Ratowsky DRE #00608046, Justin Ratowsky DRE #02026158. Educational content only, not legal, tax, or financial advice.