Selling an investment at a profit usually triggers a federal tax of 15% or 20% on the gain, depending on your income.
That bill can quietly eat a chunk of what you thought you earned.
But a few strategies can shrink what you owe, and some don't require waiting until retirement.
The long-term rate only applies if you held the asset for more than a year.
Sell at 12 months or less, and the gain gets taxed as ordinary income—potentially 22%, 24%, or higher.
That single holding period is often the difference between keeping more of your money and handing it over.
If your taxable income sits low enough in a given year, the long-term capital gains rate can be 0%.
For single filers in 2024, that 0% bracket covered taxable income up to about $47,025, and for married couples filing jointly, roughly $94,050.
Retirees living mostly on savings, or anyone with a gap year between jobs, may be able to sell appreciated stock and owe nothing on the gain.
That 0% window also opens up something called tax-gain harvesting.
Instead of scrambling to book losses before year-end, some investors deliberately sell winners while their income is low, pay no tax on the gain, and then repurchase the position.
The catch: you can't buy back the same stock within 30 days if you're also trying to book a loss, and the rebuy would reset your cost basis higher, which could mean a bigger taxable gain later.
For most working households, the rate lands at 15%.
The 20% rate kicks in above about $518,900 for single filers and $583,750 for joint filers in 2024.
On top of that, higher earners may owe a 3.8% net investment income tax, pushing the top effective rate near 23.8%.
One often-overlooked move: selling losing investments to offset gains.
If your losses exceed your gains, you can deduct up to $3,000 against ordinary income and roll the rest forward.
That can knock your taxable income down and, in some cases, drop you into a lower capital gains bracket entirely.
Selling early in the year gives you months to adjust before tax season.
Selling late can force decisions in a rush, especially if the market moves against you.
Gains inside a 401(k) or traditional IRA aren't taxed year by year—they're taxed when you withdraw.
A Roth IRA can grow and be withdrawn tax-free in retirement if you follow the rules, though there are income limits on who can contribute.
The takeaway isn't to chase a perfect strategy.
It's that the rate you pay is often more flexible than the headline number suggests.
A little planning around holding periods, income years, and loss offsets can keep more of your gains in your pocket.
Closing thought: The tax code rewards patience and planning more than it rewards timing the market.
Final Thoughts
If a sale is coming, check which bracket you're in before you click the button—not after.