You bought a stock.
It went up.
You sold it.
Now what?
Most beginners panic about taxes they may not even owe.
What capital gains tax actually is
When you sell an investment for more than you paid, that profit is a capital gain. The government taxes it.
Important: you do not owe capital gains tax until you sell. Holding a stock that doubled means nothing to the IRS. Selling it triggers the tax event. Until then, your gains are unrealized — and untaxed.
The two types of capital gains
Short-term capital gains are taxed as ordinary income — same rate as your salary. Up to 37% in the highest US bracket.
Long-term capital gains get a special, much lower rate: 0%, 15%, or 20% depending on your income.
The difference between holding 11 months vs. 13 months can cut your tax bill in half. Sometimes more.
If your total taxable income is under $47,025 (single) or $94,050 (married filing jointly) in 2024, your long-term capital gains tax rate is 0%. You can sell investments at a profit and owe absolutely zero in capital gains tax. Most early-career professionals qualify.
The simple example
You bought $5,000 of an ETF. Held it for 14 months. Sold for $7,000. Your gain is $2,000. If your income puts you in the 15% LTCG bracket, you owe $300. If you sold at month 11 instead, that same $2,000 gets taxed at your ordinary income rate — possibly $480 or more.
What is NOT taxed
- Unrealized gains — your portfolio going up while you hold.
- Investments inside a Roth IRA — sells inside the account are tax-free.
- Investments inside a 401(k) — taxed only when withdrawn in retirement.
- Investments inside an HSA — never taxed if used for medical expenses.
This is why "tax-advantaged accounts" matter so much. Same investment, same growth — wildly different final amount in your pocket.
How to legally minimize what you owe
- Hold for at least one year. Always. Unless you have a very specific reason not to.
- Use Roth IRA, 401(k), and HSA accounts — capital gains inside these are not taxed.
- Tax-loss harvesting — sell losers to offset winners. Up to $3,000/year in losses can offset ordinary income.
- Time your sells around income years — if you have a low-income year (sabbatical, between jobs), realize gains then. The 0% bracket may apply.
The mistake that costs beginners thousands
Selling and rebuying just to "lock in gains." Every sale triggers tax. Buy-and-hold investing is not just a strategy — it is a tax-minimization strategy. Every year you hold without selling, your gains compound tax-free.
Estimate your potential tax bill before you sell. Run the numbers in the tax calculator and see exactly what holding for one more month or one more year would do.
Calculate your tax liability
Know what you owe before you sell. Free, no signup required.
Try it free →