Capital Gains Tax in California: Essential Guide to Save

If you’ve sold a stock, rental property, or inherited asset in California, you’re probably wondering about capital gains tax in California—and how much of your profit the state and federal government will claim. The reality is that California taxes capital gains more aggressively than most states, and understanding the rules can save you thousands of dollars.

What Are Capital Gains?

A capital gain is the profit you make when you sell an asset for more than you paid for it. Let’s say you bought Apple stock for $5,000 and sold it for $8,000—that $3,000 difference is your capital gain. The same applies to real estate, cryptocurrency, collectibles, and even inherited property.

Here’s the thing: California treats these gains like regular income, which is unusual compared to other states. Most states either don’t tax capital gains at all or apply special lower rates. Not California. The state wants its cut, and it wants it at your ordinary income tax rate.

Capital gains fall into two buckets: long-term and short-term. This distinction matters enormously for your tax bill, and it’s one of the biggest levers you can pull to reduce what you owe.

Federal vs. State Tax Rates

When you sell an asset, you’re potentially paying taxes to two entities: the federal government and California. Let’s break down what each one takes.

Federal Capital Gains Taxes: The IRS offers preferential rates for long-term capital gains (assets held over one year). If your income is below certain thresholds, you might pay 0%, 15%, or 20% federally. Short-term gains are taxed as ordinary income, ranging from 10% to 37% depending on your bracket.

California’s Approach: This is where it stings. California taxes both long-term and short-term capital gains as ordinary income. There’s no preferential rate. If you’re in California’s top tax bracket (13.3% for high earners), you’re paying that on your capital gains. Combined with federal taxes, you could be looking at rates exceeding 50% on some gains.

This is why understanding California’s specific rules is critical. You can’t change the law, but you can structure your sales strategically. Consider consulting resources like the IRS guide on capital gains and losses and the California Franchise Tax Board website for official guidance.

capital gains tax in california - 
Couple shaking hands with real estate agent in front of California home with so

California Long-Term Gains Rules

Long-term capital gains are assets you’ve held for more than one year. Federally, these get preferential treatment. In California, they don’t—but there are still planning opportunities.

The holding period is crucial. If you sell on day 365 of ownership, you get long-term treatment. If you sell on day 364, it’s short-term, and you lose the federal advantage. This is why timing your sales matters.

For California purposes, long-term gains are still taxed at your marginal rate. But because they qualify for lower federal rates, your total effective tax rate is lower than for short-term gains. The federal savings can be substantial—potentially 15-20% depending on your income level.

Here’s a real scenario: You inherited rental property worth $500,000 and your cost basis is $300,000 (the stepped-up basis rule helps here). You sell it. That $200,000 gain faces California state income tax at your rate, plus federal long-term capital gains tax. If you’re in the 37% federal bracket and California’s 13.3% bracket, you’re looking at roughly 50% combined—meaning $100,000 of your $200,000 gain goes to taxes.

Short-Term Capital Gains Treatment

Short-term capital gains are assets held one year or less. Both California and the federal government tax these as ordinary income, with no preferential rates. This is the worst-case scenario for your tax bill.

If you’re a day trader or frequently buy and sell stocks, you’re paying ordinary income tax rates on everything. In California, that means potentially 13.3% state tax plus your federal bracket (up to 37%), totaling 50%+ on short-term gains.

This is why many financial advisors recommend holding investments longer than one year whenever possible. The federal tax savings alone can be 15-20%, and every dollar saved is money in your pocket.

capital gains tax in california - 
Close-up of hands holding stock certificate and pen over investment portfolio s

One strategy: If you have a short-term gain you can’t avoid, consider offsetting it with loss harvesting to reduce your net gain. We’ll cover that in detail below.

Net Investment Income Tax

Here’s a tax many people forget about: the Net Investment Income Tax (NIIT), also called the 3.8% Medicare tax. If your modified adjusted gross income exceeds certain thresholds ($200,000 for single filers, $250,000 for married filing jointly), you’ll owe an additional 3.8% federal tax on your capital gains.

This isn’t a California tax—it’s federal. But it adds up fast. On a $100,000 capital gain, that’s $3,800 in extra federal tax if you’re above the threshold.

The NIIT applies to long-term capital gains, dividends, interest, and other investment income. It’s separate from your regular income tax, so you could owe it even if you’re in a lower tax bracket. This is one reason high-net-worth individuals in California need sophisticated tax planning.

Smart Timing Strategies

Timing is everything in tax planning. Here are practical strategies to reduce your capital gains tax burden:

Spread Sales Across Tax Years: If you have a large gain, consider selling in tranches across two calendar years. This can keep you in a lower tax bracket and potentially avoid the NIIT threshold. For example, instead of selling $500,000 of stock in December, sell $250,000 in December and $250,000 in January. You’ll potentially stay in a lower bracket in each year.

Bunching Strategy: Conversely, if you have deductible expenses (charitable donations, business losses), consider timing your gains to the same year to offset them. Bunching deductions into one year can be more tax-efficient than spreading them out.

capital gains tax in california - 
Mature professional looking at computer screen showing investment portfolio and

Year-End Planning: In December, review your portfolio. Do you have unrealized losses? Harvest them to offset gains. Do you have gains that will push you into a higher bracket? Consider deferring the sale to next year.

Charitable Giving: If you’re charitably inclined, donating appreciated securities (instead of cash) is powerful. You avoid capital gains tax on the appreciation and get a charitable deduction. This is one of the most tax-efficient ways to give.

Property Sales Considerations

Real estate is where capital gains taxes hit hardest. If you’ve owned a home in California for years, that appreciation is substantial—and potentially heavily taxed.

Primary Residence Exclusion: Good news: If you sell your primary residence, you can exclude up to $250,000 of gain ($500,000 if married filing jointly) from federal taxation. California follows the federal rule, so you also exclude this amount from state tax. This is a massive benefit for homeowners.

To qualify, you must have owned and lived in the home for at least two of the last five years. If you meet this, the first $250,000-$500,000 of gain is tax-free.

Rental Property Sales: Rental properties don’t get this exclusion. If you sell a rental property with a $300,000 gain, you owe taxes on all of it. This is where the pain is real. Many investors use 1031 exchanges to defer these taxes by reinvesting proceeds into another qualifying property.

A 1031 exchange lets you defer capital gains tax indefinitely by rolling proceeds into a like-kind property. This is complex but powerful for real estate investors. The IRS provides detailed 1031 exchange rules.

capital gains tax in california - 
Tax professional in glasses reviewing capital gains calculations on desk with o

Loss Harvesting Techniques

Loss harvesting is using investment losses to offset gains and reduce your tax bill. This is one of the most underutilized strategies.

Basic Concept: If you have a stock down 20%, you can sell it at a loss. This loss can offset capital gains from other sales. If you have $50,000 in gains and $30,000 in losses, you only pay tax on $20,000 of net gain.

The Wash Sale Rule: There’s a catch. If you sell a security at a loss, you can’t buy substantially identical security within 30 days before or after the sale (that’s 61 days total). The IRS calls this the wash sale rule. If you violate it, the loss is disallowed.

But you can work around this. Sell the losing position, wait 31 days, then buy it back. Or buy a similar (but not identical) security immediately—like selling Apple and buying Microsoft in the tech sector. Then, after 31 days, you can buy Apple back.

Excess Losses: If your losses exceed your gains in a year, you can deduct up to $3,000 of net loss against ordinary income. Losses beyond that carry forward indefinitely to future years. This is valuable if you have a bad year in investments—you can use those losses to offset gains for years to come.

Example: You have $100,000 in capital gains and $150,000 in losses. You net $50,000 in losses. You deduct $3,000 against ordinary income this year, and carry forward $47,000 to future years. Over the next 16 years, you’ll deduct the remaining losses against future gains or income.

Frequently Asked Questions

Does California have a capital gains tax?

Yes. California taxes capital gains as ordinary income at your marginal tax rate, which can be as high as 13.3% for top earners. This is in addition to federal capital gains taxes. Unlike many states, California offers no preferential rate for long-term gains.

capital gains tax in california - 
Diverse financial advisor explaining tax strategy to clients in modern office c

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

Long-term gains (assets held over one year) get preferential federal tax rates (0%, 15%, or 20%) but are taxed as ordinary income in California. Short-term gains (held one year or less) are taxed as ordinary income federally and in California, with no break. Holding assets longer than one year saves you federal taxes, though California still taxes both the same.

How do I avoid capital gains tax in California?

You can’t fully avoid it, but you can reduce it. Use the primary residence exclusion ($250,000-$500,000), harvest losses to offset gains, time sales strategically across tax years, donate appreciated securities to charity, and consider 1031 exchanges for rental property. Consulting a tax professional about deductions and strategies is wise.

Is the 3.8% Net Investment Income Tax in addition to capital gains tax?

Yes. If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married), you owe an extra 3.8% federal tax on investment income, including capital gains. This is on top of your regular capital gains tax.

Can I use capital losses to offset capital gains?

Absolutely. Capital losses offset capital gains dollar-for-dollar. If you have $50,000 in gains and $20,000 in losses, you’re taxed on $30,000 of net gain. Excess losses (up to $3,000) can offset ordinary income, with the remainder carrying forward indefinitely.

What is a 1031 exchange?

A 1031 exchange allows you to defer capital gains tax by selling one investment property and reinvesting the proceeds in another like-kind property within strict timelines (45 days to identify, 180 days to close). This is complex and requires professional guidance, but it’s powerful for real estate investors.

Does inherited property get a stepped-up basis?

Yes, federally and in California. When you inherit property, your cost basis is stepped up to the fair market value on the date of death. If you inherited a home worth $1 million and your parent paid $300,000, your basis is $1 million. If you sell immediately, there’s no gain. This is a major tax benefit of inherited assets.

Are there any California-specific capital gains tax breaks?

Not really. California taxes capital gains as ordinary income with no preferential rates. The primary residence exclusion is federal and applies in California, but that’s the main break. For high earners, California’s top rate of 13.3% is among the highest in the nation.

The Bottom Line

Capital gains tax in California is steep, but it’s not unavoidable with smart planning. The key is understanding the difference between long-term and short-term gains, using loss harvesting, timing your sales strategically, and leveraging exclusions like the primary residence rule. If you’re selling significant assets—property, stocks, or inherited investments—take time to plan. A few hours with a CPA or financial advisor can easily save you thousands in taxes.

Remember: the tax code rewards patience and planning. By holding investments longer than one year, offsetting gains with losses, and timing sales wisely, you keep more of what you earn. That’s not tax avoidance—it’s smart tax management.

For detailed information, visit the California Franchise Tax Board or consult a licensed tax professional in your area. When your gains are substantial, professional guidance pays for itself many times over.