Quick Answer
How does LTCG tax work? Long-term capital gains tax applies when you sell an asset you’ve held for more than one year, and the tax rate depends on your income bracket. Unlike ordinary income taxed up to 37%, LTCG rates are 0%, 15%, or 20% federally, but California residents also pay full state income tax on top of federal rates, with no preferential treatment. That means a high earner in California could face a combined rate exceeding 33% on long-term gains.
If you just sold stock, real estate, or a business asset and you’re staring at a five-figure or six-figure gain, understanding how does LTCG tax work could save you thousands in taxes or prevent a costly mistake. Most taxpayers think holding an asset for over a year automatically means lower taxes, but California adds a layer of complexity that catches people off guard every single year.
The IRS treats long-term capital gains more favorably than short-term gains or wages, but California doesn’t care how long you held the asset. The state taxes all capital gains as ordinary income. That disconnect creates planning opportunities and traps, depending on how you structure the sale, when you recognize the gain, and what deductions or offsets you have available.
What Is Long-Term Capital Gains Tax?
Long-term capital gains (LTCG) tax is a federal tax on the profit from selling an asset held for more than 12 months. The holding period starts the day after you acquire the asset and ends on the day you sell it. If you sell before hitting the one-year mark, it’s a short-term gain taxed as ordinary income.
The three federal LTCG tax rates are:
- 0% for single filers with taxable income under $47,025 or married filing jointly under $94,050 in 2026
- 15% for single filers between $47,025 and $518,900 or married filing jointly between $94,050 and $583,750
- 20% for single filers above $518,900 or married filing jointly above $583,750
These brackets are indexed for inflation annually. Most middle and upper-middle income taxpayers fall into the 15% federal bracket. High earners hit the 20% rate, plus the 3.8% Net Investment Income Tax (NIIT) if modified adjusted gross income exceeds $200,000 for singles or $250,000 for married couples filing jointly.
For example, if you’re a married couple earning $150,000 in W-2 income and you sell stock with a $50,000 long-term gain, you’ll pay 15% federal LTCG tax ($7,500) plus potential NIIT and California state tax. The total bill could easily reach $17,000 to $18,000 depending on other factors.
How the Holding Period Works
The IRS uses a specific counting method. If you bought shares on March 15, 2025, you must hold them until at least March 16, 2026, for the gain to qualify as long-term. Selling on March 15, 2026, would be short-term, taxed at your ordinary income rate (up to 37% federally plus California’s 13.3% top rate).
Inherited assets get special treatment. If you inherit stock or real estate, the holding period is automatically considered long-term, regardless of how long you actually hold it. You also receive a step-up in basis to the fair market value on the date of death, which can eliminate decades of embedded gains.
What Counts as a Capital Asset?
Capital assets include stocks, bonds, mutual funds, ETFs, real estate (including rental properties and vacation homes), business assets, collectibles, cryptocurrency, and intellectual property. Your primary residence qualifies for the Section 121 exclusion (up to $250,000 for singles, $500,000 for married couples), which can shield part or all of the gain from taxation.
Inventory, property held for sale to customers, and accounts receivable are not capital assets. If you’re a house flipper or day trader, your gains are ordinary income, not capital gains.
California’s Unique Capital Gains Tax Treatment
Here’s where California taxpayers get hit harder than most of the country. While the federal government offers preferential rates for long-term capital gains, California does not. The state taxes all capital gains, whether short-term or long-term, as ordinary income at rates up to 13.3%.
That means a California resident in the top state bracket pays:
- 20% federal LTCG tax
- 3.8% Net Investment Income Tax
- 13.3% California state income tax
Total combined rate: 37.1% on long-term capital gains. Compare that to a Texas or Florida resident who pays zero state tax and keeps their total rate at 23.8%. It’s a $13,300 difference on every $100,000 of long-term gains.
This is one of the reasons California has seen significant wealth migration over the past five years. According to recent IRS data, California lost $91.4 billion in net income between 2019 and 2023, with many high-net-worth individuals relocating to states like Nevada, Texas, and Florida specifically to avoid the state’s capital gains tax burden. If you’re planning a large liquidity event (selling a business, cashing out stock options, or liquidating real estate), the timing of your move matters.
California’s Franchise Tax Board (FTB) scrutinizes residency closely. If you move to Nevada in January but keep your California home, your kids in California schools, and your spouse working in Los Angeles, the FTB will argue you’re still a California resident subject to the 13.3% rate. Residency cases can drag on for years and cost tens of thousands in legal fees. If you’re considering relocating, our tax planning services can help you structure the move correctly and document your change of domicile.
Red Flag Alert: Selling Before Establishing Non-California Residency
If you sell an asset while you’re still a California resident, you owe California tax on the gain, even if you move out of state the next day. The FTB looks at your residency status on the date of sale. Moving after the transaction closes doesn’t help. You need to establish bona fide residency in another state before the sale.
The FTB audits high-income individuals who claim non-residency, especially after a large capital gain. They review bank records, credit card statements, travel logs, driver’s license dates, voter registration, and even social media posts. One Instagram photo at your Malibu beach house during the year you claimed Nevada residency can torpedo your case.
How LTCG Tax Is Calculated Step-by-Step
Calculating your long-term capital gains tax involves several steps. Here’s the process:
Step 1: Determine Your Cost Basis
Your cost basis is what you paid for the asset, plus any improvements or adjustments. For stock, it’s the purchase price plus commissions. For real estate, it’s the purchase price plus closing costs, plus capital improvements (new roof, kitchen remodel, etc.), minus any depreciation claimed.
If you received stock as compensation, your basis is typically the fair market value on the date it vested (for RSUs) or the strike price (for exercised options). If you inherited the asset, your basis is the fair market value on the date of the decedent’s death.
Step 2: Calculate Your Gain or Loss
Subtract your cost basis from the sales proceeds. If you sold stock for $100,000 and your basis was $40,000, your gain is $60,000. If you paid a $500 brokerage commission on the sale, you can subtract that, reducing the gain to $59,500.
Step 3: Determine the Holding Period
Count the months from the day after acquisition to the sale date. More than 12 months qualifies as long-term. Exactly 12 months or less is short-term.
Step 4: Apply the Appropriate Tax Rate
Use your taxable income (after deductions) to determine which federal LTCG bracket you fall into. Remember that the capital gain itself can push you into a higher bracket. If you’re a single filer with $500,000 of taxable income before the gain, adding a $100,000 long-term gain pushes you from the 15% LTCG rate into the 20% rate, plus triggers the 3.8% NIIT.
Step 5: Add California State Tax
California taxes the $100,000 gain as ordinary income. If you’re in the 9.3% or 13.3% bracket, that’s an additional $9,300 to $13,300 owed to the state. The total tax on a $100,000 gain for a high earner in California could be $23,800 federal + $13,300 state = $37,100.
Step 6: Offset with Capital Losses
If you have capital losses from other sales during the year, you can offset your gains dollar-for-dollar. If you sold one stock for a $60,000 gain and another for a $20,000 loss, your net gain is $40,000. If your losses exceed your gains, you can deduct up to $3,000 per year against ordinary income and carry forward the rest indefinitely.
KDA Case Study: Real Estate Investor
Daniel, a 48-year-old real estate investor in San Diego, sold a rental property in early 2025 for $850,000. He had purchased it in 2010 for $400,000 and made $50,000 in capital improvements over the years. He also claimed $80,000 in depreciation deductions during his ownership.
His adjusted cost basis was $400,000 + $50,000 – $80,000 = $370,000. His gain was $850,000 – $370,000 = $480,000. Of that, $80,000 was depreciation recapture taxed at 25% federally, and $400,000 was long-term capital gain taxed at 20% plus 3.8% NIIT.
Federal tax: ($80,000 × 25%) + ($400,000 × 23.8%) = $20,000 + $95,200 = $115,200. California tax: $480,000 × 13.3% = $63,840. Total tax bill: $179,040.
Daniel came to KDA before the sale. We restructured the transaction using a 1031 exchange, allowing him to defer 100% of the gain by reinvesting in a replacement property within the IRS timelines. He paid $3,200 for our exchange consulting and intermediary services. First-year tax savings: $179,040. ROI: 56x.
Ready to see how we can help you? Explore more success stories on our case studies page to discover proven strategies that have saved our clients thousands in taxes.
Common Capital Gains Tax Mistakes
Most taxpayers make at least one of these errors when dealing with capital gains. Avoiding them can save you thousands.
Mistake 1: Ignoring the Wash Sale Rule
If you sell stock at a loss and buy the same or substantially identical stock within 30 days before or after the sale, the IRS disallows the loss under the wash sale rule. The loss gets added to the basis of the new shares, deferring it until you sell again.
This rule applies to stocks, bonds, and options, but not to real estate or cryptocurrency (as of 2026). However, proposed legislation could extend wash sale rules to crypto, so don’t assume the loophole will last forever.
Mistake 2: Missing the Primary Residence Exclusion
If you sell your main home, you can exclude up to $250,000 of gain ($500,000 for married couples) under Section 121, as long as you owned and lived in the home for at least two of the past five years. Many taxpayers don’t realize the exclusion is available even if they rented the house for part of that period, as long as they meet the use test.
You can use this exclusion once every two years. If you’re a serial house flipper who lives in each property for two years, you can shield substantial gains from taxation over time.
Mistake 3: Selling Too Soon
Selling one day before the one-year mark converts a 15% or 20% federal rate into a 32% or 37% rate. On a $100,000 gain, that’s a difference of $17,000 to $20,000. If you’re close to the one-year threshold, wait a few extra days.
Mistake 4: Not Tracking Basis Correctly
Many taxpayers lose track of their original purchase price, especially for stock acquired through multiple purchases, DRIP plans, or employee compensation. Brokers report basis to the IRS, but they don’t always have the full picture, especially for older accounts or transferred positions.
If you don’t have records, the IRS may treat your entire sale proceeds as taxable gain (zero basis). Keep detailed records of every purchase, including dates, shares, and prices.
Mistake 5: Forgetting About State Tax When Moving
California taxes gains on the sale of unvested RSUs and stock options even if you move out of state before they vest, if you performed the work while a California resident. The FTB uses a complex sourcing formula based on the number of days you worked in California during the vesting period.
If you received a grant in 2023 while living in California, then moved to Texas in 2024, and the shares vested in 2026, California will tax a portion of the gain based on the time you worked in the state. Plan your move carefully and consult a professional before making assumptions.
Strategies to Reduce Long-Term Capital Gains Tax
Smart tax planning can significantly reduce or defer your capital gains tax liability. Here are proven strategies:
1. Tax-Loss Harvesting
Sell losing positions to offset gains. If you have $80,000 in gains and $30,000 in losses, your net taxable gain drops to $50,000. You can harvest losses throughout the year to create a cushion for future gains. Losses carry forward indefinitely, so even if you don’t have gains this year, banked losses reduce taxes in future years.
2. Qualified Opportunity Zones (QOZ)
Invest capital gains into a Qualified Opportunity Fund within 180 days of the sale and defer the tax until 2026 or when you sell the QOZ investment, whichever is earlier. If you hold the QOZ investment for 10 years, you pay zero tax on appreciation within the fund. This is one of the most powerful deferral strategies available under current law.
3. Donate Appreciated Stock to Charity
If you donate stock you’ve held for more than one year directly to a qualified charity, you get a deduction for the full fair market value and avoid paying capital gains tax on the appreciation. If you hold $50,000 of stock with a $10,000 basis, donating it saves you $12,000 to $18,000 in taxes (depending on your bracket) compared to selling it, paying tax, and donating cash.
4. Use a 1031 Exchange for Real Estate
If you sell investment or business real estate, you can defer 100% of the gain by reinvesting the proceeds into like-kind property within strict IRS timelines (45 days to identify, 180 days to close). You can repeat 1031 exchanges indefinitely, deferring tax until you cash out or die (at which point your heirs get a step-up in basis).
5. Installment Sales
Spread the gain over multiple years by selling on an installment basis. If you sell a business for $1 million and receive $200,000 per year over five years, you recognize $200,000 of gain each year instead of $1 million all at once. This keeps you in a lower tax bracket and may avoid triggering the NIIT.
6. Relocate Before a Large Sale
If you’re planning to sell a business, liquidate a large stock position, or sell appreciated real estate, consider establishing residency in a no-income-tax state before the transaction. This requires careful planning and documentation, but the savings can be enormous. On a $5 million gain, moving from California to Nevada saves $665,000 in state taxes.
What About Collectibles and Other Special Assets?
Not all capital gains are taxed the same. Collectibles (art, antiques, rare coins, stamps, precious metals) held for more than one year are taxed at a maximum federal rate of 28%, not the standard 0%, 15%, or 20% LTCG rates. California still taxes collectibles as ordinary income, so a California resident could pay up to 41.3% combined on collectible gains.
Cryptocurrency is taxed as property. Long-term crypto gains follow the same rules as stock. If you held Bitcoin for 18 months and sold it for a $100,000 gain, you’d pay 15% or 20% federal tax plus California’s 13.3%. The IRS requires reporting of all crypto transactions, and exchanges now report to the IRS, so underreporting is riskier than ever.
Small business stock that qualifies under Section 1202 can be 100% excluded from federal tax if you held it for more than five years and meet specific requirements. California does not conform to Section 1202, so the gain is still taxable at the state level. If you’re selling qualified small business stock, plan for the California tax bill even if the federal tax is zero.
Special Situations and Edge Cases
Here are scenarios that complicate capital gains tax planning:
Divorce and Property Transfers
Transfers between spouses or incident to divorce are generally tax-free. The recipient spouse takes over the transferor’s basis. If you received stock in a divorce settlement with a $50,000 basis and you later sell it for $150,000, you owe tax on the $100,000 gain, not your ex-spouse.
Gifts of Appreciated Property
If you give someone stock or real estate, they inherit your basis (carryover basis), not the fair market value. If you bought stock for $10,000 and it’s now worth $100,000, and you gift it to your daughter, her basis is $10,000. When she sells it, she owes tax on the full $90,000 gain. Gifting appreciated property doesn’t eliminate the tax, it just shifts who pays it.
Inherited Property and Step-Up in Basis
When you inherit property, your basis steps up to the fair market value on the date of death. If your father bought stock in 1980 for $5,000 and it’s worth $500,000 when he dies, your basis is $500,000. If you sell it the next day for $500,000, you owe zero capital gains tax. This is one of the most valuable tax benefits in the code and a key reason wealthy families hold appreciated assets until death.
Expats and Foreign Tax Credits
If you’re a U.S. citizen living abroad, you still owe U.S. tax on worldwide capital gains. However, if you pay foreign tax on the same gain, you may claim a foreign tax credit to offset some or all of the U.S. tax. The rules are complex, especially for California residents who moved overseas but maintain enough contacts to remain California tax residents under FTB rules.
Ready to Reduce Your Tax Bill?
KDA Inc. specializes in strategic tax planning for business owners, S Corps, LLCs, and high-net-worth individuals. Book a personalized consultation and walk away with a clear plan.
Frequently Asked Questions
Can I Avoid Capital Gains Tax by Reinvesting?
Reinvesting proceeds from a stock sale does not defer the tax. The gain is taxable in the year of sale, regardless of what you do with the money. The exception is real estate, where a 1031 exchange allows deferral if you follow strict IRS rules. For stocks, there’s no equivalent mechanism unless you invest in a Qualified Opportunity Fund.
What Happens If I Sell at a Loss?
Capital losses offset capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 per year against ordinary income (wages, interest, etc.). Unused losses carry forward indefinitely. If you have a $50,000 loss this year and only $10,000 in gains, you’ll use $10,000 to offset the gains, deduct $3,000 against ordinary income, and carry forward $37,000 to next year.
Do I Owe Tax If I Don’t Receive Cash?
Yes. If you trade one asset for another (outside of a 1031 exchange), you recognize gain or loss based on the fair market value of what you received. If you trade stock worth $100,000 with a $30,000 basis for a car worth $100,000, you have a $70,000 taxable gain, even though you received no cash.
How Does the NIIT Affect My Capital Gains?
The 3.8% Net Investment Income Tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). Capital gains count as investment income. If your MAGI is $300,000 and you have $80,000 in capital gains, you pay 3.8% on the $80,000 ($3,040 additional tax).
Can I Deduct Investment Expenses Against Capital Gains?
Investment expenses (advisory fees, subscription services) are no longer deductible under current law for most taxpayers. Prior to the Tax Cuts and Jobs Act, they were deductible as miscellaneous itemized deductions subject to the 2% AGI floor, but that provision was suspended through 2025 and may be extended. Brokerage commissions and transaction fees are still added to basis or subtracted from proceeds, reducing the taxable gain.
California-Specific Considerations
If you live in California, here’s what you need to know beyond the federal rules:
California does not conform to many federal tax provisions. The state has its own calculation for capital gains, and it doesn’t offer preferential rates for long-term holdings. Every dollar of capital gain is taxed at your marginal state rate, which ranges from 1% to 13.3% depending on income.
The FTB is aggressive about auditing high-income taxpayers, especially those who claim non-residency or report large capital gains. If you sell a business, exercise stock options, or liquidate real estate, expect scrutiny. Keep detailed records of your residency, travel, and financial transactions. The FTB can audit you up to four years after you file (six years if they suspect fraud or substantial underreporting).
California also has its own rules for installment sales, like-kind exchanges, and other deferral strategies. In some cases, California requires you to recognize income earlier than the IRS. For example, if you use an installment sale to defer federal tax, California may still tax the full gain upfront depending on the structure.
If you’re considering a move to avoid California tax, consult a professional before you make any decisions. The FTB has a 323-page manual on residency determination, and they use it. One misstep can cost you hundreds of thousands of dollars.
What to Do If You Owe Capital Gains Tax
If you sold an asset in 2025 or plan to sell in 2026, here’s your action plan:
Step 1: Calculate your estimated tax liability using the steps outlined above. Don’t wait until April to figure out what you owe.
Step 2: Make estimated tax payments if you expect to owe more than $1,000 in tax. The IRS requires quarterly estimated payments (April 15, June 15, September 15, and January 15). California has the same requirement. Missing estimated payments triggers underpayment penalties and interest.
Step 3: Explore strategies to reduce or defer the tax. Can you harvest losses? Donate appreciated stock? Use a 1031 exchange or QOZ? These decisions need to be made before December 31 in most cases.
Step 4: Keep detailed records of the transaction. Save your purchase confirmations, brokerage statements, closing documents, and any records of improvements or adjustments to basis. If you’re audited, the IRS will ask for documentation, and if you can’t produce it, they’ll disallow your basis adjustment.
Step 5: Report the sale correctly on your tax return. Use Form 8949 to report each transaction and Schedule D to summarize your capital gains and losses. Errors on these forms are common and attract IRS attention.
Book Your Tax Strategy Session
If you’ve realized a significant capital gain or you’re planning a large sale in the next 12 months, don’t leave your tax bill to chance. Understanding how does LTCG tax work is just the starting point. The real value comes from structuring your transactions to minimize tax legally and strategically. Book a consultation with our team and get a customized plan that fits your situation, your timeline, and your goals. Click here to schedule your personalized tax strategy session now.
This information is current as of 3/31/2026. Tax laws change frequently. Verify updates with the IRS or FTB if reading this later.