Capital gains
By the Filoah team · Last checked November 21, 2026 · Rules as of the 2026 tax year
Definition
A capital gain is the profit you make when you sell an investment, such as a stock or fund, for more than its basis, which is usually what you paid for it.
In plain words
If you buy fund shares for $30,000 and sell them for $40,000, your gain is $10,000. Only the gain is taxed, not the whole $40,000.
How it is taxed depends on how long you held it:
- Long-term (held more than one year): lower rates of 0, 15 or 20 percent.
- Short-term (one year or less): taxed at your regular income tax rates.
| 2026 long-term rate | Single, taxable income up to | Joint, taxable income up to |
|---|---|---|
| 0% | $49,450 | $98,900 |
| 15% | $545,500 | $613,700 |
| 20% | above that | above that |
What it leaves out
Higher earners can owe an extra 3.8 percent net investment income tax when modified AGI is over $200,000 single or $250,000 joint. If your losses are bigger than your gains, you can use up to $3,000 of the net loss a year against other income. States tax gains their own way.
Questions
Are gains in an IRA or 401(k) taxed when I sell?
No. Sales inside a retirement account are not taxed each year. A traditional account is taxed when money comes out, and qualified Roth withdrawals are not taxed.
What happens to the gain when someone dies?
Heirs generally get a new basis equal to the value at death. See step-up in basis.
Why do people mention the 0 percent rate in retirement?
In a year with low taxable income, long-term gains up to the 0 percent line are not taxed at the federal level.
Sources
- IRS Topic no. 409, Capital gains and losses
- IRS Revenue Procedure 2025-32 (2026 capital gains rate thresholds)
- IRS Publication 551, Basis of Assets
Sources checked November 21, 2026.
Run this on your own plan.
Make a free plan with your accounts, your Social Security and your state’s taxes.
Free account. No card. No bank linking.
This page is for learning. It is not tax, legal or investment advice.