Most people selling an appreciated asset assume the tax hit is some flat percentage they half-remember from a podcast. Then the return gets prepared, and the number is nothing like what they planned for. The gap is almost never caused by the headline rate. It is caused by holding periods, stacking order, surtaxes, and state treatment that nobody mentioned before the sale closed.
So let’s answer the real question. How do long term capital gains work is not a single-rate question. It is a sequencing question. The rate you pay depends on what else is on your return, when you bought the asset, where you live, and whether a handful of additional taxes get triggered on top of the base rate. Understand the sequence and you can often move the number before you sell rather than complaining about it after.
Quick Answer
A long term capital gain is profit on an asset you owned for more than one year before selling. It is taxed at 0 percent, 15 percent, or 20 percent at the federal level depending on your total taxable income, not at your ordinary income rate. Long term gains stack on top of your ordinary income when determining which bracket applies, and high earners may owe an additional 3.8 percent Net Investment Income Tax on top of the base rate.
Key Takeaway: The holding period threshold is more than one year, measured from the day after acquisition through the sale date. Selling one day early can convert a 15 percent tax into a 24 percent or higher tax on the same dollars.
What Is a Long Term Capital Gain?
A long term capital gain is the profit from selling a capital asset held for more than one year. The calculation is sale price minus cost basis. If you bought stock for $40,000 and sold it eighteen months later for $70,000, your long term capital gain is $30,000.
A few terms need defining before anything else makes sense.
Capital Asset
Almost everything you own for personal or investment purposes. Stocks, bonds, mutual fund shares, cryptocurrency, rental property, land, collectibles, a business interest. Inventory in a business is not a capital asset. Neither is property held primarily for sale to customers, which is why house flippers rarely get long term rates no matter how long they hold.
Cost Basis
What you paid, adjusted. Purchase price plus commissions, improvements, and certain acquisition costs. Minus depreciation you claimed or could have claimed. Basis is where most taxpayers lose money, because they report the purchase price and forget the $62,000 in capital improvements they made to a rental over twelve years.
Holding Period
Starts the day after you acquire the asset. Ends the day you sell it. More than one year qualifies as long term. Exactly one year does not. The IRS is literal about this, and the trade confirmation date governs, not the settlement date.
Realized vs Unrealized
You owe nothing on an asset that has gone up in value while you still hold it. That is an unrealized gain, and it is not a taxable event. Tax applies when you sell, exchange, or otherwise dispose of the asset and the gain becomes realized. This single distinction drives most legitimate capital gains planning.
How Do Long Term Capital Gains Work With the 0, 15, and 20 Percent Brackets?
Here is the mechanic almost nobody explains correctly. Long term capital gains are not taxed inside your ordinary income brackets. They sit in their own separate rate schedule. But your ordinary income fills up that schedule first, and your gains stack on top of it.
Think of it as a glass. Your wages, business income, interest, and retirement distributions pour in first. Whatever space remains at the lower levels gets filled by your capital gains. Once the lower levels are full, the rest of the gain spills into the next rate tier.
2026 Long Term Capital Gains Rate Thresholds
| Rate | Single | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 | Up to $66,200 |
| 15% | $49,451 to $545,500 | $98,901 to $613,700 | $66,201 to $579,600 |
| 20% | Over $545,500 | Over $613,700 | Over $579,600 |
These thresholds are based on total taxable income, meaning after your standard or itemized deduction. That detail matters enormously and gets missed constantly.
Worked Example: The Stacking Mechanic
Marcus and Elena file jointly. Marcus runs a small design studio generating $74,000 in net business income. Elena has no earned income this year. They take the standard deduction of roughly $32,200, putting their ordinary taxable income at about $41,800.
They sell a stock position held for six years with a $55,000 long term gain.
- Ordinary taxable income fills the glass to $41,800
- The 0 percent bracket runs to $98,900
- Remaining 0 percent space: $57,100
- Their entire $55,000 gain fits inside that space
Federal tax on the $55,000 gain: zero dollars. If that same gain had been short term, it would have been taxed as ordinary income at 12 and 22 percent, producing roughly $11,100 in federal tax. The holding period alone was worth $11,100.
Now change one fact. Suppose Elena takes a job paying $70,000. Their ordinary taxable income rises to about $111,800, which already exceeds the 0 percent ceiling. The entire $55,000 gain now lands in the 15 percent bracket, producing $8,250 in federal tax. Same asset, same gain, same holding period, $8,250 difference based purely on what else was happening on the return that year.
Key Takeaway: Capital gains planning is really income-year planning. Control the year you recognize the gain and you control the rate.
The Additional Taxes Nobody Mentions Before You Sell
The 0, 15, 20 schedule is the base layer. Several other taxes can sit on top of it, and this is where projected tax bills fall apart.
Net Investment Income Tax (3.8 Percent)
The NIIT applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds $200,000 single or $250,000 married filing jointly. Those thresholds are not indexed for inflation, which means more households cross them every year without any change in behavior. Capital gains count as net investment income. So does rental income, interest, dividends, and royalties.
Practical effect: a joint filer in the 15 percent capital gains bracket with MAGI above $250,000 is really paying 18.8 percent. A filer in the 20 percent bracket is paying 23.8 percent. See IRS Topic 559 for the full mechanics.
Depreciation Recapture (Up to 25 Percent)
If you sold a rental property, part of your gain is not taxed at long term capital gains rates at all. The portion attributable to depreciation you claimed, or were entitled to claim, is unrecaptured Section 1250 gain, taxed at up to 25 percent. This applies whether or not you actually took the depreciation deductions, which catches owners who never filed depreciation on a property they rented for a decade.
Investors evaluating accelerated depreciation strategies should understand this tradeoff upfront. Our breakdown of cost segregation and its hidden tradeoffs covers how front-loading depreciation affects the eventual sale.
Collectibles Rate (28 Percent)
Art, antiques, coins, precious metals, and certain gold-backed exchange traded funds are taxed at a maximum 28 percent rate on long term gains. Many investors holding physical metals in an ETF wrapper do not realize their long term rate is nearly double what they expected.
State Income Tax
Most states tax capital gains as ordinary income with no preferential rate at all. California is the clearest example. A California resident in the 9.3 percent state bracket selling a long term asset pays 15 percent federal, 3.8 percent NIIT if applicable, and 9.3 percent state, for a combined rate near 28 percent. Our guide to California state income tax blind spots covers the year-end timing issues this creates.
Red Flag Alert: The Mistakes That Cost the Most
Red Flag Alert: Four errors account for the majority of capital gains overpayments we correct. Each one is avoidable with documentation gathered before the sale, not after.
Selling at Eleven Months
The holding period is measured in days, not calendar intuition. An asset bought March 14, 2025 must be sold on or after March 15, 2026 to qualify as long term. Selling March 14 produces a short term gain taxed at ordinary rates. On a $40,000 gain for a taxpayer in the 24 percent bracket, that timing error costs roughly $3,600 in federal tax alone.
Understating Basis on Real Estate
Every capital improvement increases basis and reduces gain. New roof, HVAC replacement, kitchen remodel, added square footage, landscaping that is structural rather than cosmetic. Sellers routinely report only the purchase price. On a property owned fifteen years, missing $80,000 of improvements means paying tax on $80,000 of phantom gain. At a combined 28 percent rate, that is $22,400 handed over unnecessarily.
Ignoring Carryforward Losses
Capital losses from prior years do not expire. They carry forward indefinitely and offset future gains dollar for dollar. Taxpayers who switched preparers or software frequently lose track of a loss carryforward schedule that could have wiped out an entire gain. Pull your prior three returns and check Schedule D line 15 before you assume you owe anything.
Assuming All Gains Are the Same
A single real estate sale can generate four separately taxed components: unrecaptured 1250 gain at 25 percent, long term gain at 15 or 20 percent, NIIT at 3.8 percent, and state tax at ordinary rates. One blended rate estimate will be wrong almost every time.
How to Legally Reduce Long Term Capital Gains Tax
Understanding how long term capital gains work is only useful if it changes what you do. Here are the levers that actually move the number, in rough order of how often they apply.
Step-by-Step: Harvesting Losses Against Gains
- Inventory your positions before December 31. Identify any holdings currently below basis. This takes about twenty minutes with a brokerage statement.
- Calculate your realized gain for the year to date, including any gains from sales already completed.
- Sell losing positions up to the amount of your gains. Losses offset gains dollar for dollar with no limit.
- Apply excess losses against ordinary income up to $3,000 per year. Anything beyond that carries forward.
- Respect the wash sale rule. Do not repurchase the same or a substantially identical security within 30 days before or after the sale, or the loss is disallowed. See IRS Publication 550.
Time the Recognition Year
If you are retiring, taking a sabbatical, or having an unusually low income year, that is the year to recognize gains. A married couple with $45,000 of ordinary taxable income has roughly $54,000 of room in the 0 percent bracket. Recognizing gains into that space costs nothing federally. Repeating it annually is sometimes called gain harvesting, and it resets basis higher at zero tax cost.
Spread the Sale Across Years
An installment sale under Section 453 lets you report gain as payments are received rather than all at once. Selling a $600,000-gain property over four years can keep you under the NIIT threshold and inside the 15 percent bracket in each year, instead of pushing a single year into 20 percent plus 3.8 percent.
Use the Primary Residence Exclusion
Section 121 excludes up to $250,000 of gain for single filers and $500,000 for joint filers on the sale of a primary residence owned and used as your main home for two of the last five years. The two years do not need to be consecutive.
Donate Appreciated Assets Instead of Cash
Donating a long-held appreciated security directly to a qualified charity allows a deduction for fair market value while permanently avoiding the capital gain. On a $50,000 position with $35,000 of gain, this eliminates roughly $5,250 of federal tax while still producing the full deduction.
If you want to model how a planned sale changes your bracket before you pull the trigger, run the numbers through this capital gains tax calculator and compare a current-year sale against a deferred one.
For a structured approach across multiple assets and entities, our tax planning services build the recognition schedule before the sale rather than reconciling it afterward.
KDA Case Study: The Small Business Owner Who Sold a Rental
Dana owns a graphic design LLC in Riverside generating about $96,000 in net profit. In early 2026 she decided to sell a duplex she had owned since 2013. Purchase price was $310,000. Expected sale price was $585,000. She had been told to expect a 15 percent tax on roughly $275,000 of gain, around $41,250.
That estimate was wrong in both directions, and the reconciliation changed her outcome substantially.
What we found when we reviewed the file:
- $71,000 in unreported capital improvements across eleven years, including a full roof replacement, two HVAC units, and a foundation repair. All documented, none previously added to basis.
- $84,000 of accumulated depreciation subject to 25 percent recapture rather than 15 percent, a detail her original estimate ignored entirely.
- A $19,000 capital loss carryforward from a 2019 position she had forgotten about, still sitting unused on her prior Schedule D.
- NIIT exposure that would trigger once the gain pushed her MAGI past $200,000 as a single filer.
The plan: add the $71,000 of improvements to basis, apply the $19,000 carryforward loss, harvest an additional $14,000 of losses from an underperforming brokerage position in December, and structure the sale as a two-year installment so the gain was split across 2026 and 2027.
Result. Corrected total tax across both years came to $29,100 against the original $41,250 projection, with an additional $4,400 saved by keeping year-two income below the NIIT threshold. Total savings: $16,550. Dana paid $3,400 for the planning engagement and basis reconstruction work. First-year return on that fee was approximately 4.9x.
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.
Special Situations and Edge Cases
Standard guidance covers the common path. These scenarios come up constantly and are rarely addressed.
Inherited Assets
Assets received through inheritance get a stepped-up basis to fair market value on the date of death. Heirs who sell shortly after inheriting often have near-zero gain regardless of what the decedent originally paid. Inherited property also automatically receives long term treatment regardless of how briefly the heir held it.
Gifted Assets
Gifts work the opposite way. The recipient takes the donor’s original basis and the donor’s holding period carries over. Gifting appreciated stock to an adult child in a low bracket can be effective, but gifting to someone who will sell immediately in a high bracket accomplishes nothing.
Cryptocurrency
Crypto is treated as property, so the same holding period rules apply. Each disposition is a separate taxable event, including crypto-to-crypto trades. The wash sale rule has historically not applied to crypto in the same way it applies to securities, which created a loss harvesting opportunity that taxpayers should confirm against current guidance before relying on it.
Qualified Small Business Stock
Section 1202 stock in a qualifying C corporation held more than five years may exclude a substantial portion of gain from federal tax entirely. The requirements are strict regarding the issuing company, the acquisition method, and the holding period, but the benefit is large enough to warrant checking.
Married Filing Separately
Separate filers face bracket thresholds that are roughly half the joint amounts and an NIIT threshold of $125,000. Couples who file separately for other reasons frequently pay more on capital gains than they realize.
What Happens If You Get This Wrong?
Brokerages report sales to the IRS on Form 1099-B. Real estate closings generate Form 1099-S. The IRS has the gross proceeds figure before you file. If you omit a sale, the automated matching system issues a CP2000 notice that assumes zero basis, meaning it taxes the entire sale price as gain.
On a $585,000 property sale, a zero-basis assessment produces a proposed tax bill in the six figures. The notice is almost always wrong, but responding requires the basis documentation you should have assembled before selling. Accuracy-related penalties of 20 percent can apply to substantial understatements, plus interest accruing from the original due date.
Pro Tip: Keep a running basis file for every long-held asset. Closing statements, improvement receipts, and reinvested dividend records. Reconstructing fifteen years of basis under a CP2000 deadline is expensive. Maintaining it as you go costs nothing.
Should You Sell This Year or Wait?
Sell this year if:
- Your ordinary income is unusually low and you have room in the 0 or 15 percent bracket
- You have loss carryforwards or harvestable losses to absorb the gain
- You are below the NIIT threshold and the gain will not push you over it
- You expect your income to rise substantially in future years
Wait or spread the sale if:
- You are within weeks of crossing the one-year holding threshold
- This year already includes a bonus, business sale, or other income spike
- A single-year recognition would push you into the 20 percent bracket plus NIIT
- You are retiring within two years and expect a much lower ordinary income base
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
Do I pay capital gains tax if I reinvest the proceeds?
Yes, for ordinary securities. Reinvesting does not defer the tax. The sale is the taxable event regardless of what you do with the money afterward. The notable exception is real estate, where a properly structured 1031 like-kind exchange can defer gain on investment property, subject to strict 45-day identification and 180-day closing deadlines.
How are long term capital gains different from qualified dividends?
They use the same 0, 15, 20 rate schedule and stack the same way. The difference is the trigger. Capital gains require a sale. Qualified dividends are paid out by the company while you continue holding the position. Both are subject to NIIT at the same thresholds.
Does California offer a lower rate on long term gains?
No. California taxes capital gains as ordinary income at rates up to 13.3 percent with no preferential long term treatment. This is why California residents often see a meaningfully higher effective rate than the federal schedule suggests, and why multi-year recognition planning matters more here than in states with no income tax.
What if I sold at a loss overall this year?
Net capital losses offset up to $3,000 of ordinary income per year for single and joint filers, $1,500 for married filing separately. The remainder carries forward indefinitely to offset future gains. Track it on Schedule D and verify it transfers if you change preparers.
Holding an asset 366 days instead of 364 is the highest hourly-rate decision most investors will ever make.
This information is current as of 11/12/2026. Tax laws change frequently. Verify updates with the IRS or FTB if reading this later.
Book Your Tax Strategy Session
If you are holding an appreciated asset and planning to sell in the next eighteen months, the decisions that reduce your tax bill happen before the sale closes, not at filing time. We will reconstruct your basis, locate unused loss carryforwards, model the recognition year against your bracket, and tell you exactly what the sale costs under each scenario. Click here to book your consultation now.