If you've been holding a stock or fund for years and thinking about cashing out, the tax bill waiting on the other end might surprise you.
Long-term capital gains rates look simple on paper.
In practice, a few hidden rules decide whether you owe nothing, 15%, or more than you planned.
Assets held longer than a year get preferential treatment: most households pay 0%, 15%, or 20% on the profit, depending on taxable income.
Short-term gains — anything held a year or less — get taxed as ordinary income, which can push you into the 22% or 24% bracket fast.
The 0% bracket is real, but narrower than most people assume.
For 2024, single filers pay nothing on long-term gains up to about $47,000 in taxable income; married couples filing jointly get roughly $94,000.
Cross that line by a dollar and the next slice of profit gets taxed at 15%.
A single big sale can shove you over the threshold, and then part of your gain gets taxed.
Sell $100,000 in stock and the math changes quickly — this is why financial planners often suggest selling in chunks across two tax years instead of all at once.
There's a second layer most people miss: the net investment income tax.
High earners — generally above $200,000 single or $250,000 married — pay an extra 3.8% on investment income.
So a "15% rate" can quietly become 18.8% before state taxes even enter the picture.
Nine states have no income tax at all, but places like California tax capital gains as ordinary income, with top rates above 13%.
A gain that costs 15% federally could cost nearly 30% combined.
Once you stop working, your taxable income often drops into the 0% or 15% range — which is why some advisors suggest delaying big sales until after retirement.
Others use "tax-gain harvesting" in low-income years to lock in the 0% rate on purpose.
A few practical moves can soften the blow.
Donating appreciated stock to charity avoids the gain entirely and can still earn a deduction.
Harvesting losses elsewhere in your portfolio offsets gains dollar for dollar.
And holding just past the one-year mark turns a short-term hit into a long-term one — often the single biggest savings on the table.
Before selling anything, check two numbers: your taxable income and your cost basis.
Most brokerages list basis online, and it's the difference between profit and proceeds.
Then run the scenario before you click sell, not after.
Capital gains rates aren't one number — they're a sliding scale with tripwires built in.
A little planning in December can save more than a year of coupon clipping.
Our take: don't let a tax bracket you didn't know about eat your gains.
Final Thoughts
Spend twenty minutes with your numbers or a tax pro before a big sale, and treat the 0% window as something to plan around, not stumble into.