Short term vs long term capital gains
How holding period changes the tax on investment gains, a worked example, losses, the wash sale rule and records to keep.
By Figuring Wealth editors · Nov 29, 2026 · 2 min read

When you sell an investment for more than you paid, the profit is a capital gain. How long you held it matters.
The holding period
Held one year or less: short term, taxed as ordinary income. Held more than one year: long term, taxed at lower rates of 0%, 15% or 20% for most assets, depending on taxable income.
Example
You buy shares for $1,000 and sell for $1,600. Sold after eight months, the $600 gain is short term. Sold after thirteen months, it is long term and often taxed less.
Losses
Capital losses offset gains. If losses exceed gains, up to $3,000 a year can usually offset other income, with the rest carried forward.
Wash sale rule
Selling at a loss and buying substantially identical securities within 30 days before or after can disallow the loss for now.
Cost basis
Your basis is what you paid, adjusted for certain items. Brokers report it on Form 1099-B for many purchases.
Extra taxes
Higher earners may owe an additional net investment income tax.
Retirement accounts
Gains inside 401(k)s and IRAs are not taxed when realized.
Crypto
Crypto is treated as property for tax purposes; see how crypto gains are taxed.
Do not let tax drive everything
Holding a risky position just to reach a year can cost more than the tax saved.
Records
Keep purchase dates, amounts and sale confirmations.
Choosing which shares to sell
If you bought the same investment at different times, the method used to identify shares sold affects the gain. Many brokers default to first in, first out but allow specific identification. Choose before the trade settles and keep confirmation.
Mutual fund distributions
Funds may distribute capital gains even if you did not sell, which are taxable in non retirement accounts. Check expected distribution dates before buying late in the year.
Related reading
Brokerage vs retirement accounts.
Frequently asked questions
Are dividends capital gains?
Dividends are separate, though qualified dividends use similar rates.
What about gifts?
Gifted assets have special basis rules.
Is my home sale taxed?
There is a separate exclusion for a main home if conditions are met.
This article is general education, not financial, tax or investment advice. Rules and figures change; check the linked sources and consider a qualified adviser for your situation.
Related guides
Taxes · 2 min read
Organizing tax records without stress
Taxes · 2 min read
Estimated taxes for freelancers
Taxes · 2 min read