Sell a stock, a rental property, or even a chunk of a mutual fund, and the IRS wants a cut of the profit.
That cut is the capital gains tax, and the rate you pay depends on two things: how long you held the asset and how much you earn.
Get the holding period wrong by a single day, and your tax bill can jump from 15% to 37%.
Hold an investment for more than one year and the profit counts as a long-term gain.
Hold it for a year or less and it's short-term, taxed at your ordinary income rate — the same brackets you pay on wages, which run from 10% to 37%.
That gap is why financial planners repeat the phrase "one year and one day" like a mantra.
For 2024, most single filers with taxable income up to $47,025 pay 0% on long-term gains.
The 15% rate applies up to $518,900, and anything above that hits 20%.
Married couples filing jointly get roughly double those thresholds.
There's also a 3.8% net investment income tax that kicks in for higher earners, which can push the top effective rate near 24%.
A big one-time sale can shove you into a higher bracket for that year, even if your salary never changed.
Sell $80,000 of stock in a year you also earned $60,000, and part of that gain may land in the 15% tier instead of the 0% tier.
The tax isn't retroactive on your whole income — only the portion above each threshold — but the jump still stings.
Under current rules, single filers can exclude up to $250,000 of profit on a primary residence, and married couples filing jointly can exclude up to $500,000, as long as you lived there two of the last five years.
That's why many sellers never owe a dime on their house.
Rental properties and second homes don't get that break, and they may also trigger depreciation recapture.
Retirement accounts sidestep the whole system.
Gains inside a 401(k) or traditional IRA aren't taxed year by year — you pay ordinary income tax when you withdraw.
Roth accounts can come out tax-free in retirement if you follow the rules.
For most households, maxing out those accounts beats trying to game capital gains rates in a taxable brokerage account.
If you're sitting on a winner, a few moves can help.
Selling in a low-income year, like right after a layoff or in early retirement, may land you in the 0% bracket.
Donating appreciated shares to charity avoids the tax entirely and can generate a deduction.
And "tax-loss harvesting" — selling losers to offset winners — is one of the few free lunches the code allows.
One warning: wash-sale rules block you from claiming a loss if you buy the same investment back within 30 days.
The IRS watches this closely, and brokers now report the details on your 1098-B.
Keep records of every purchase date and price, because your broker's cost basis isn't always right.
Before you sell anything in a taxable account, check the calendar, estimate your income for the year, and run the numbers — or pay someone to.
A 20-minute conversation with a tax pro can save more than the fee, especially on six-figure sales.
Final Thoughts
The rules aren't complicated, but the deadlines are unforgiving, and the IRS doesn't offer do-overs.