Capital Gains Tax Basics for New Investors: Short-Term vs. Long-Term
Capital gains tax basics for new investors, including short-term vs. long-term rates, the 2026 0%, 15% and 20% income thresholds, how cost basis works, how losses offset gains and simple ways to keep more of your returns.

When you sell an investment for more than you paid, the profit is a capital gain, and the IRS wants a share. How big that share is depends mostly on one thing you control: how long you held the investment before selling.
This guide covers capital gains tax basics for new investors in a taxable brokerage account: what counts as a gain, short-term vs. long-term rates, how to calculate your gain, how losses help and practical ways to reduce the tax legally.
This is general education, not tax advice. Tax rules and thresholds change, so confirm current figures on IRS.gov or with a tax professional.
What is a capital gain?
A capital asset is almost anything you own for investment or personal use: stocks, bonds, ETFs, mutual funds, crypto, real estate and collectibles. A capital gain is:
Sale price − cost basis = gain (or loss)
Your cost basis is usually what you paid, including commissions or fees. It can be adjusted by things like reinvested dividends, which add to your basis.
Two key ideas:
- You only owe tax when you sell (a "realized" gain). If your fund rises 30% and you hold it, there is no capital gains tax yet.
- This applies to taxable accounts. Gains inside a 401(k), traditional IRA or Roth IRA are not taxed when you sell within the account. Withdrawals follow those accounts' own rules. See taxable brokerage account vs. IRA for the trade-offs.
Short-term vs. long-term capital gains
| Short-term | Long-term | |
|---|---|---|
| Holding period | One year or less | More than one year |
| Tax rate | Your ordinary income tax rate (10% to 37%) | 0%, 15% or 20%, depending on taxable income |
| Typical example | Selling a stock 8 months after buying | Selling an index fund after 3 years |
The holding period starts the day after you buy and includes the day you sell. "More than one year" means at least one year and one day.
The gap between the two can be large. A high earner in the 32% bracket pays 32% on a short-term gain but 15% on the same gain held a bit longer.
2026 long-term capital gains rates
For tax year 2026 (returns filed in 2027), the IRS set these taxable income thresholds for long-term gains and qualified dividends:
| Filing status | 0% rate | 15% rate | 20% rate |
|---|---|---|---|
| Single | Up to $49,450 | $49,451 to $545,500 | Over $545,500 |
| Married filing jointly | Up to $98,900 | $98,901 to $613,700 | Over $613,700 |
| Head of household | Up to $66,200 | $66,201 to $579,600 | Over $579,600 |
The thresholds are adjusted for inflation every year, so check IRS.gov for the year you are filing.
Two details trip people up:
- The thresholds use taxable income, which is after deductions such as the standard deduction, not your salary.
- Gains stack on top of your other income. Your wages fill the lower brackets first. Part of a gain can be taxed at 0% and the rest at 15%.
The net investment income tax
Higher earners may also owe a 3.8% net investment income tax on gains, dividends and interest. It applies when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. Those thresholds are not indexed for inflation.
Exceptions with different rates
Some long-term gains are taxed differently. Gains on collectibles such as art, coins and precious metals (including some metal ETFs) can be taxed at up to 28%. Certain gains on real estate tied to past depreciation can be taxed at up to 25%. Most new investors buying stocks and funds will not hit these.
Worked example: same gain, different timing
Maya is single and has $60,000 of taxable income from her job after the standard deduction. She bought $10,000 of an index fund and it is now worth $14,000, a $4,000 gain.
| Scenario | How it is taxed | Approximate federal tax on the gain |
|---|---|---|
| Sells after 10 months | Short-term, at her ordinary rate of 22% | About $880 |
| Sells after 13 months | Long-term, at 15% (her income is above the 0% threshold) | $600 |
Waiting three more months saves her about $280 in federal tax, before any state tax. States treat gains differently, and most tax them as regular income.
How capital losses help
Losses are not wasted. The IRS lets you use them in this order:
- Losses offset gains of the same type first (short-term against short-term, long-term against long-term).
- Any remaining net loss offsets the other type.
- If you still have a net loss, you can deduct up to $3,000 a year ($1,500 if married filing separately) against ordinary income.
- Anything left carries forward to future years with no expiration.
Example: You realize a $5,000 long-term gain and a $7,000 short-term loss. The net is a $2,000 loss, which you can deduct against your other income.
The wash sale rule
If you sell an investment at a loss and buy the same or a "substantially identical" investment within 30 days before or after the sale, the loss is disallowed for now. It gets added to the basis of the new shares instead. This also applies if you buy it back in an IRA. To harvest a loss and stay invested, people often switch to a similar but not identical fund.
How you report capital gains
Your brokerage sends Form 1099-B early in the year, listing your sales, proceeds and, for most shares bought in recent years, your cost basis. You report the details on Form 8949 and summarize them on Schedule D of Form 1040. Tax software imports 1099-B data from most brokerages.
Check that the cost basis is right, especially for shares transferred from another broker, inherited shares or old employer stock. A missing basis can make it look as if your whole sale price is profit.
Mutual fund distributions: Funds can pay capital gain distributions even if you never sold anything, because the fund sold holdings inside it. These appear on Form 1099-DIV and are generally taxed as long-term gains. ETFs tend to distribute fewer gains because of how they are structured; see ETFs vs. mutual funds.
Seven practical ways to reduce capital gains tax
- Hold winners more than a year when it fits your plan.
- Use tax-advantaged accounts first for frequent trading or high-turnover funds.
- Use the 0% bracket in low-income years, such as a gap year, early retirement or a year of reduced work.
- Harvest losses in down markets to offset gains, while respecting the wash sale rule.
- Pick which shares to sell. Many brokers let you choose specific lots. Selling higher-cost lots creates a smaller gain.
- Rebalance with new money instead of selling, by directing new contributions to the underweight asset. Our guide to rebalancing your portfolio shows how.
- Give appreciated shares to charity instead of cash, if you itemize; you may avoid the gain and deduct the fair market value, subject to IRS limits.
Do not let taxes override good investing. Selling a position you no longer want and paying 15% is often better than holding something unsuitable just to avoid tax.
Special cases worth knowing
- Selling your home: If you meet the ownership and use tests, you can exclude up to $250,000 of gain ($500,000 for most married couples filing jointly).
- Inherited investments: The basis generally "steps up" to the value on the date of death, which can erase gains built up during the original owner's life.
- Gifted investments: The recipient usually takes over the giver's original basis.
- Crypto: The IRS treats it as property, so selling, trading one coin for another or spending it can trigger a capital gain or loss.
To see how growth compounds before taxes, try the compound interest calculator.
Frequently asked questions
Do I pay capital gains tax if I reinvest the money?
Yes, in a taxable account. Selling triggers the gain even if you immediately buy something else. Only sales inside tax-advantaged accounts like IRAs and 401(k)s avoid immediate tax.
Are dividends taxed like capital gains?
Qualified dividends get the same 0%, 15% and 20% rates as long-term gains. Non-qualified dividends are taxed as ordinary income. Read what are dividends for the difference.
When do I pay capital gains tax?
It is due with your annual return, but if you have a large gain you may need to make estimated tax payments during the year to avoid an underpayment penalty.
Can I really pay 0% on capital gains?
Yes. If your taxable income, including the gain, stays within the 0% threshold for your filing status, your long-term gains in that range are federally tax-free. State tax may still apply.
Spotted an error? Tell us and we will review it under our editorial policy.



