Sell a stock, a rental house, or even a piece of inherited land, and the IRS wants a cut of the profit.
That cut is the capital gains tax, and the rate you pay swings wildly depending on one thing most people ignore: how long you held the asset.
Hold an investment for a year or less and your profit gets taxed as ordinary income.
That means it stacks on top of your salary, so a high earner could hand over 37% of a short-term gain.
Hold it for more than a year and you flip into long-term territory, where rates drop to 0%, 15%, or 20% depending on your taxable income.
The 0% bracket is the surprise most households miss.
For 2024, married couples filing jointly pay nothing on long-term gains until taxable income tops about $94,050.
Single filers get the 0% rate up to roughly $47,025.
Retirees living mostly on savings often land here, which is why selling appreciated stock in retirement can be far cheaper than people assume.
There's a catch that catches almost everyone: the gain itself counts as income.
If you sell a big position, that profit can push you over a threshold and bump part of your gain into the 15% bracket.
Run the numbers before you sell, not after.
Then there's the 3.8% net investment income tax.
Once modified adjusted gross income crosses $200,000 for singles or $250,000 for couples, this surtax slaps an extra layer on top of your capital gains rate.
Add state taxes and a California or New York resident could see a total bill above 30% on a long-term gain.
Sell your primary residence and you can exclude up to $250,000 of profit if single, or $500,000 if married filing jointly, provided you lived there two of the last five years.
That exclusion has saved countless families from a tax bill that would otherwise run into six figures.
Here's the part that saves real money: losses offset gains.
If you sold a loser stock this year, those losses cancel out your winners dollar for dollar.
Leftover losses can knock out up to $3,000 of ordinary income, and anything beyond that carries forward to future years.
Investors call this tax-loss harvesting, and it's one of the few legal moves that reliably trims a bill.
Selling in December gives you a full year to see your gains and losses and decide what to unload.
Selling in January of the following year pushes the tax bill out roughly 12 more months.
For a household near a bracket edge, that delay can be worth more than the investment return itself.
Retirement accounts change the math entirely.
Gains inside a 401(k) or traditional IRA aren't taxed year by year.
You pay ordinary income tax when you withdraw.
In a Roth IRA, qualified withdrawals come out tax-free, which is why these accounts are such powerful shelters for growth.
Nobody mails you a bill the day you sell.
You settle up at tax time, and the difference between a 0% rate and a 20% rate is often just patience and planning.
Talk to a tax professional before any large sale, especially one involving real estate or a concentrated stock position.
A few hundred dollars of advice can save thousands.
Final Thoughts
The rules reward people who wait, plan, and keep good records, and they punish anyone who sells on impulse in December without checking the bracket first.