California Capital Gains Tax on Real Estate: Essential 2024 Guide




California Capital Gains Tax on Real Estate: Essential 2024 Guide

When you sell real estate in California, the california capital gains tax on real estate can take a significant bite out of your profits. Whether you’re selling a primary residence, investment property, or vacation home, understanding how capital gains taxes work in California is crucial for protecting your bottom line. As a CPA, I’ve helped countless clients navigate this complex tax landscape, and I want to share what you need to know before you list that property.

What Is Capital Gains Tax?

Capital gains tax is the tax you owe when you sell an asset for more than you paid for it. The difference between your sale price and your original purchase price (adjusted for improvements and other factors) is your capital gain. Real estate is one of the most common sources of capital gains, especially in California where property values have appreciated significantly over the past decade.

Think of it this way: if you bought a house for $400,000 and sold it for $600,000, you have a $200,000 capital gain. That gain is taxable income, and California wants its share. The state treats capital gains as ordinary income, which means it’s taxed at your marginal tax rate—and California’s rates are among the highest in the nation.

Federal vs. State Capital Gains

Here’s where it gets tricky: you’ll owe both federal and California state taxes on your real estate gains. The federal government taxes long-term capital gains at preferential rates (0%, 15%, or 20% depending on your income), but California doesn’t offer that courtesy. Instead, California taxes all capital gains—whether short-term or long-term—as ordinary income at your regular tax bracket.

This is a critical distinction. A married couple filing jointly with $300,000 in long-term capital gains might pay only 15% federal tax ($45,000), but California could hit them with 9.3% to 13.3% state tax ($27,900 to $39,900) on the same gain. That’s a combined hit of 24.3% to 33.3%—and that’s before any net investment income tax or other surcharges.

If you’re planning a major real estate sale, understanding this dual-tax reality is essential. I always recommend paying California estimated taxes throughout the year if you expect significant gains, rather than getting hit with a huge bill at tax time.

California’s Tax Rate on Gains

California’s capital gains tax rates are progressive, just like ordinary income tax. For the 2024 tax year, rates range from 1% to 13.3%. The state also added a 1% Mental Health Tax on income over $1 million starting in 2024, which means high earners face up to 14.3% state tax on capital gains.

Here’s the breakdown for single filers in 2024:

california capital gains tax on real estate - 
Mature couple sitting at a financial advisor’s office desk reviewing capi

  • 1% on taxable income up to $10,099
  • 2% on income $10,099–$23,942
  • 4% on income $23,942–$37,788
  • 6% on income $37,788–$52,455
  • 8% on income $52,455–$66,295
  • 9.3% on income $66,295–$340,328
  • 10.3% on income $340,328–$410,011
  • 11.3% on income $410,011–$682,057
  • 12.3% on income $682,057–$1,000,000
  • 13.3% on income over $1,000,000
  • 1% additional Mental Health Tax on income over $1,000,000

Combined with federal long-term capital gains rates, you could face a total tax burden of 33% or higher on your real estate sale. That’s why strategic planning matters.

Primary Residence Exemption Rules

Here’s the good news: if you’re selling your primary residence, the federal government offers a substantial exclusion. You can exclude up to $250,000 of capital gains if you’re single, or $500,000 if you’re married filing jointly. California follows federal tax law on this point, so you get the same break at the state level.

To qualify, you must meet three tests:

  • Ownership test: You must have owned the home for at least 2 of the last 5 years.
  • Use test: You must have lived in the home as your primary residence for at least 2 of the last 5 years.
  • Frequency test: You haven’t excluded gain from another home sale in the past 2 years.

If you meet these requirements, you can walk away from a $750,000 sale with zero capital gains tax (assuming you’re married and bought for $250,000). That’s a massive advantage, and it’s one of the biggest reasons homeownership is so powerful for wealth building in California.

However, if you’re selling investment property or a second home, this exemption doesn’t apply. That’s where things get expensive.

Investment Property Considerations

Investment properties, rental homes, and vacation properties don’t qualify for the primary residence exemption. Every dollar of gain is taxable. If you own a rental property you bought for $500,000 and sell for $800,000, that $300,000 gain is fully subject to both federal and California taxes.

But there’s a potential workaround: the 1031 exchange. This IRS provision allows you to defer capital gains tax indefinitely by reinvesting the proceeds into another “like-kind” property. For real estate, this is incredibly powerful. You can trade up to larger properties, diversify your portfolio, or move to different markets—all while deferring the tax bill.

california capital gains tax on real estate - 
Close-up of a calculator, tax forms, and a house keys on a wooden desk with sun

California respects federal 1031 exchanges, so you get the same deferral benefit. However, the rules are strict. You must identify a replacement property within 45 days and close on it within 180 days. Many investors use qualified intermediaries to structure these exchanges properly. If you’re considering an exchange, don’t DIY this—the penalties for getting it wrong are severe.

Timing Your Sale Strategically

When you sell matters. A lot. If you’re on the cusp of a higher tax bracket, delaying your sale by a few months could save you thousands in state taxes. Conversely, if you’re expecting a lower-income year, that might be the ideal time to sell.

Let’s say you’re a business owner considering selling your company in December. Your capital gains from the sale could push you into California’s 13.3% bracket. But if you can structure the deal to close in January of the following year, you might split the gain across two tax years and stay in the 12.3% bracket both years. That’s a 2% savings on potentially hundreds of thousands of dollars.

This strategy is especially powerful if you’re retiring. If you’ll have lower income in retirement, selling before you retire means paying tax at your higher working-years rate. Selling after retirement, when your income drops, could save you significantly. I’ve seen clients save $50,000+ by timing their home sale around retirement.

Deductions and Cost Basis

Your “basis” in a property is what you paid for it, plus any improvements you made. This is critical because your capital gain is calculated as sale price minus basis. The higher your basis, the lower your taxable gain.

Most people forget to add up their improvements. That new roof, kitchen remodel, or addition? Those add to your basis. Even smaller items count: new windows, HVAC system, flooring. Keep receipts and document everything. I recommend maintaining a home improvement log throughout your ownership.

Here’s the catch: repairs don’t count. Fixing a broken window is a repair. Replacing all the windows is an improvement. The IRS draws a line, and crossing it wrong can cost you. When in doubt, consult a tax professional before selling.

california capital gains tax on real estate - 
Diverse business professional reviewing financial charts and real estate portfo

You can also step up your basis if you inherit property. If your parent bought a house for $200,000 and it’s worth $500,000 when they pass, your new basis is $500,000. You could sell it immediately for $500,000 with zero capital gains tax. This is one of the most powerful tax advantages in the code, though it’s politically controversial and may change in the future.

1031 Exchange Opportunities

A 1031 exchange deserves its own deep dive because it’s such a powerful tool. Named after Section 1031 of the Internal Revenue Code, this provision lets you defer—potentially forever—the capital gains tax on real estate by swapping it for another property.

The mechanics are simple in theory: you sell Property A, and instead of pocketing the proceeds, you reinvest them in Property B (or multiple properties). You owe zero capital gains tax on the sale. You can repeat this process indefinitely, building wealth without triggering tax bills.

In practice, the rules are strict:

  • Both properties must be “like-kind” (for real estate, almost any real property qualifies)
  • You must use a qualified intermediary (you can’t touch the money directly)
  • You have 45 days to identify a replacement property
  • You have 180 days to close on the replacement property
  • The replacement property must be of equal or greater value

Many sophisticated investors use 1031 exchanges to trade up from smaller properties to larger ones, or to move from one market to another, all while deferring taxes. Some investors have been in continuous 1031 exchanges for decades, never paying capital gains tax.

However, there’s a catch: the tax is deferred, not eliminated. When you eventually sell without doing another exchange, the tax bill comes due. Still, deferring taxes for years or decades is incredibly valuable because of the time value of money. That deferred tax can stay invested and compound.

Estimated Tax Payments Required

Here’s something that catches many sellers off guard: if you’re expecting a large capital gain, you probably need to make quarterly estimated tax payments. California requires this if you’ll owe $500 or more in state taxes.

california capital gains tax on real estate - 
Handshake between a real estate professional and a client in front of a Califor

Missing these payments triggers penalties and interest. I’ve seen sellers get hit with surprise bills for underpayment penalties because they didn’t anticipate the tax hit. If you’re selling a property in 2024 and expecting significant gains, start planning now. Pay California estimated taxes quarterly to avoid this problem.

The good news: if you’re selling in December and closing in January, you might avoid quarterly payments altogether by shifting the income to the next year. Again, timing matters.

Frequently Asked Questions

Do I have to pay capital gains tax if I sell my primary residence?

Not if you meet the requirements. You can exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain from your primary residence sale if you’ve owned and lived in the home for at least 2 of the last 5 years. However, you must file Form 8949 and Schedule D with your tax return to claim this exclusion.

What’s the difference between short-term and long-term capital gains in California?

Federal law taxes long-term gains (assets held over 1 year) at preferential rates. California, however, taxes all capital gains as ordinary income regardless of holding period. So a short-term gain and long-term gain on California real estate are taxed identically at your marginal rate. This is one of California’s less taxpayer-friendly rules.

Can I deduct real estate commissions from my capital gains?

Yes. Real estate agent commissions, title insurance, escrow fees, and other selling costs reduce your net proceeds and thus your taxable gain. These are factored into your basis calculation. Keep all closing documents to document these expenses.

What happens if I sell at a loss?

Capital losses can offset capital gains. If you sell one property at a $100,000 gain and another at a $50,000 loss, you net $50,000 in taxable gains. If losses exceed gains, you can deduct up to $3,000 of excess losses against ordinary income, with unused losses carrying forward indefinitely.

Is there a way to avoid California capital gains tax?

Short answer: not legally, unless you qualify for an exemption (primary residence) or use a 1031 exchange to defer it. However, strategic timing, proper basis documentation, and understanding your tax bracket can minimize what you owe. Some people move out of California before selling, but California taxes gains on real property located in the state even if you’re no longer a resident.

california capital gains tax on real estate - 
Financial advisor or CPA explaining tax documents to a client couple in a profe

Do I need to report the sale to California?

Yes. You’ll report capital gains on your California tax return (Form 540) and federal return (Form 1040 with Schedule D and Form 8949). The title company also files a Real Estate Withholding Statement with California, so the state knows about the sale regardless.

What if I inherited the property?

You get a “step-up” in basis to the fair market value at the date of death. This is huge. If your parent bought a house for $200,000 and it’s worth $600,000 when they pass, your new basis is $600,000. If you sell immediately for $600,000, you owe zero capital gains tax. This is one of the most valuable tax breaks in the code.

Can I split my primary residence gain with my spouse?

If you’re married filing jointly, you can exclude up to $500,000 total. You don’t need to split it—you can use the full $500,000 exclusion on a single property. However, if you’re married filing separately, each spouse gets only $250,000 of exclusion.

Bottom Line

The california capital gains tax on real estate is real, and it’s expensive. But with proper planning, you can minimize the damage. If you’re selling a primary residence, take advantage of the federal and state exclusions. If you’re selling investment property, consider a 1031 exchange to defer taxes indefinitely. And regardless of what you’re selling, document your basis carefully and time your sale strategically.

California’s tax rates are among the highest in the nation, which means real estate decisions here have major tax implications. Don’t make a $500,000 decision based on a $100 tax question. Work with a CPA or tax attorney to structure your sale properly. The cost of professional advice is almost always less than the tax savings it generates.

If you’re expecting capital gains, start planning now. The earlier you understand your tax situation, the more options you have to optimize it. And remember: the best tax strategy is the one you implement before the transaction closes, not after.