After a long run of appreciation, the tax on your gain can be one of the highest costs of selling, and the rules reward planning. Understandingcapital gains tax when you sell a home in California helps you keep more of what you have earned and avoid an unwelcome surprise at tax time. One important note before we go further. This is general information, not tax advice. Every situation is different, and you should review yours with a qualified CPA or tax advisor before making decisions.
With that said, here is how capital gains work on a home sale in California, why San Francisco sellers so often face them, and the legitimate strategies that can reduce the bill.
How Capital Gains Work on a Home Sale
At its simplest, your capital gain is the sale price minus your cost basis. Your basis is what you paid for the home plus the cost of qualifying improvements over the years, things like a renovation, an addition, or a new roof. Tracking those improvements matters because every dollar you add to your basis is a dollar of gain you do not pay tax on. Selling costs, such as commission, also reduce the taxable gain.
The Primary Residence Exclusion
The most valuable break for homeowners is the federal primary residence exclusion. If the home was your main residence for at least two of the last five years, you can exclude up to $250,000 of gain if you file singly, or up to $500,000 if you are married filing jointly. For many homeowners, that exclusion covers the entire gain. In San Francisco, where homes have appreciated dramatically, a lot of sellers exceed it, and the portion above the exclusion is where the tax applies.
How California Taxes Your Gain
California does not have a separate, lower capital gains rate the way the federal system does. Instead, it taxes capital gains as ordinary income, at rates that climb to 13.3 percent at the top of the scale. That treatment catches many sellers off guard, because the state portion of the bill can be substantial on a large gain.
Federal Rates and the Extra 3.8 Percent
At the federal level, long-term capital gains, on a home held more than a year, are taxed at 0, 15, or 20 percent depending on your income. Higher earners may also owe the 3.8 percent Net Investment Income Tax on top. Stack the federal rate, the possible additional tax, and California's ordinary income treatment together, and you can see why planning matters so much at the high end.
Ways to Reduce What You Owe
Several legitimate strategies can lower the bill, each best handled with a CPA. Keeping careful records of improvements raises your basis. Timing the sale around your income can affect the federal rate that applies. For investment property rather than a primary residence, a 1031 exchange can defer the gain entirely by rolling it into another property. Installment sales can spread the gain across years. None of these is one size fits all, which is exactly why professional guidance is worth it.
What This Means for San Francisco Sellers
With seven-figure gains common in this market, the exclusion often covers only part of the picture. A couple who bought years ago and sells today may have a gain well beyond $500,000, leaving a meaningful taxable amount. That is not a reason to wait; it is a reason to plan, so the sale is structured with the tax consequences understood from the start.
The gain is taxable above the exclusion, but informed timing and good records protect your proceeds. Planning for capital gains tax when you sell a home in California is simply part of a smart sale, and the earlier you start, the more options you have. Pair a knowledgeable agent with a trusted CPA, and you will keep more of what your home has earned.
About The Lurie Group
The Lurie Group ranks among the top 1% of San Francisco agents and is a Wall Street Journal-ranked top 100 team in California, with more than 500 homes sold and over $1 billion in total sales. The team achieves a sales premium averaging 3.3 timesthe citywide average, and founder Alexander Fromm Lurie, a third-generation San Franciscan, is recognized as the city's leading agent for private, off-market sales. The team helps sellers plan the full financial picture and coordinates with your CPA and attorney so nothing slips through the cracks, whether you are working tobuy orsell, and offers a dedicatedconcierge service along with afree home valuation to help you understand your starting point. As a reminder, this guide is general information rather than tax advice. To talk through a sale strategy, call (415) 696-0288.
Frequently Asked Questions
Do I pay capital gains tax if I sell my primary home in California?
Only on the gain above the federal exclusion of $250,000 for single filers or $500,000 for married couples filing jointly, assuming you meet the residency requirement. Gains below that are generally excluded.
How much is the capital gains tax in California?
California taxes capital gains as ordinary income, up to 13.3 percent, on top of federal rates of 0, 15, or 20 percent and a possible 3.8 percent additional tax. A CPA can confirm your specific figure.
How can I avoid capital gains tax on a home sale?
Legitimate approaches include using the primary residence exclusion, tracking improvements to raise your basis, and, for investment property, a 1031 exchange. Each should be reviewed with a tax professional.
Does the $250,000 exclusion apply to every sale?
No. It applies to a primary residence you owned and lived in for at least two of the last five years, with specific rules and limits. A tax advisor can confirm whether you qualify.