Sell a stock, a rental property, or a slice of a small business and Washington wants its cut.
That cut is the capital gains tax, and the rate you pay depends on how long you held the asset and how much you earn.
Hold an investment for more than a year and you land in the long-term bucket, where the headline rates look gentle: 0%, 15%, or 20%.
Hold it for a year or less and the profit gets taxed as ordinary income, which for a middle-class household can mean 22% or more on every dollar of gain.
The catch most people miss is that these brackets don't work like paycheck brackets.
The IRS layers your gains on top of your regular income, so a raise at work can quietly push a chunk of your investment profit from 15% into the 20% tier.
There's also a surtax worth knowing about.
High earners can owe an extra 3.8% net investment income tax on top of the base rate, which nudges the top effective hit past 23%.
For a single filer, that extra charge generally kicks in once modified adjusted gross income clears $200,000; for married couples filing jointly, it's $250,000.
That math lands harder when rent, groceries, and credit card interest are already eating your budget.
Someone who cashed out an old fund to cover a roof repair or a medical bill may find the tax bill arrives before the money has done much good.
A few practical moves can soften the blow.
Tax-loss harvesting lets you sell a loser to offset a winner, and long-term holding periods exist precisely to reward patience.
Contributing to a retirement account can also lower the income that determines your bracket in the first place.
If you're staring down a big sale, a quick session with a tax professional usually costs less than guessing wrong.
Rules shift with income, filing status, and the type of asset, and the difference between a 15% and a 20% year can be thousands of dollars.
None of this is a pitch to avoid investing.
It's a reminder that the tax code rewards people who plan ahead and punishes people who sell first and read later.
Check your bracket before you cash out, not after the 1099 shows up.
The real story here isn't the rate itself.
Final Thoughts
It's that a system built around patience quietly rewards households with enough cushion to wait, and squeezes the ones who can't.