Disclosure: This article is for informational and educational purposes only. FinanceCompassPro.com may earn compensation through display advertising or affiliate relationships. We may reference third-party products, services, platforms, or tools for educational purposes. These mentions are not paid endorsements unless clearly stated. Nothing in this article constitutes personalized financial, legal, tax, or investment advice. Tax rules are complex and change over time – always confirm current figures with the IRS or a qualified tax professional.

Sell an investment for more than you paid, and the IRS wants a share of the difference. How much depends almost entirely on one number: how many days you held it.
Sell after holding an investment for one year or less, and the gain is generally short-term. Hold it for more than one year, and it is generally long-term – a difference that can materially change the federal tax rate you pay.
Most beginners learn this the hard way, after the sale, when a 1099-B shows up at tax time. This guide explains the rule before you need it.
Quick Answer
For most stocks, ETFs, and mutual funds held in a taxable account, the holding period determines whether a gain is short-term or long-term. Short-term gains (one year or less) are generally taxed at ordinary federal income tax rates – up to 37% in 2026. Most net long-term gains (more than one year) qualify for 0%, 15%, or 20% rates based on taxable income. Special assets and transactions, such as collectibles or certain real estate gains, can follow different rules.
What Counts as a Capital Gain?
A capital gain is the profit you make when you sell an investment for more than your cost basis – generally what you originally paid for it, plus certain adjustments.
This applies to stocks, ETFs, mutual funds, bonds, real estate, and most other investment property. If you’re still building a portfolio and haven’t chosen your first funds yet, What Is an ETF and How Does It Work? covers the basics first.
Two important distinctions matter here.
Realized vs. unrealized. An increase in market value is not taxable merely because the price went up. If an ETF rises in value and you do not sell, that appreciation remains unrealized. However, an ETF or mutual fund may still distribute taxable dividends or capital-gain distributions each year even when you personally sell no shares. Dividends themselves come with their own tax split – see Qualified vs. Ordinary Dividends for how that works.
Gains vs. losses. Sell for less than your cost basis, and you have a capital loss instead. Losses can offset gains and, in some cases, reduce your other taxable income – a strategy covered in more detail in ETF Tax-Loss Harvesting Explained.
The Holding Period Rule: Short-Term vs. Long-Term
The IRS splits every capital gain into one of two categories, based only on how long you owned the asset before selling.
| Category | Holding Period | Tax Treatment |
|---|---|---|
| Short-term capital gain | One year or less | Taxed as ordinary income (same brackets as your salary) |
| Long-term capital gain | More than one year | Taxed at preferential rates: 0%, 15%, or 20% |
The clock starts the day after you buy and ends the day you sell. To qualify for long-term treatment, you need to own the investment for at least one year and one day.
This is why the rule surprises so many beginners. Selling one day too early can move an entire gain from the 15% long-term bracket into the 22%, 24%, or higher ordinary-income bracket – with no other change in the transaction at all.

2026 Federal Long-Term Capital Gains Rates for Most Investments
Long-term capital gains use their own bracket structure, separate from ordinary income tax brackets. For 2026, the rates are:
| Long-Term Rate | Single Filers (Taxable Income) | Married Filing Jointly (Taxable Income) |
|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 |
| 15% | $49,451 to $545,500 | $98,901 to $613,700 |
| 20% | Above $545,500 | Above $613,700 |
Figures reflect 2026 IRS thresholds and are adjusted annually for inflation. Confirm current numbers at IRS.gov before relying on them for a specific tax year. These are the standard federal rates for most net long-term capital gains – collectibles, certain real-estate depreciation gains, and some other assets may be taxed under different maximum rates.
Notice something important: your taxable income includes the gain itself. A large one-time sale can push part of your gain into a higher bracket, even if your regular income alone would have stayed in the 0% or 15% range.
Short-Term Capital Gains: Taxed Like Your Paycheck
Short-term gains don’t get a special rate at all. They’re added to your other income and taxed at your regular federal bracket – which in 2026 ranges from 10% up to 37%, depending on your total taxable income.
For example, a $5,000 gain taxed at a 24% ordinary rate costs $1,200. The identical $5,000 gain, held one extra day to qualify as long-term at 15%, costs $750 instead – a difference of $450 for changing nothing except the calendar.
This is one of the clearest, most repeatable arguments for a buy-and-hold approach: patience alone can lower your tax bill, with no change in investment selection required.
Two Things That Add to the Bill: NIIT and State Taxes
The federal rates above aren’t always the whole story.
The Net Investment Income Tax (NIIT). Higher-income taxpayers may owe the 3.8% Net Investment Income Tax on top of the regular capital gains rate. For individuals, it generally applies to the lesser of net investment income or the amount by which modified adjusted gross income exceeds the applicable threshold – $200,000 for single or head-of-household filers and $250,000 for married couples filing jointly.
State taxes. Most states also tax capital gains, and many simply treat them as ordinary income at the state level – there’s no separate long-term discount in most state tax codes. Your total tax bill depends on where you live, not just federal rules.
Neither of these changes the core short-term versus long-term logic, but both can meaningfully change what you actually owe.
Where You Hold the Investment Changes Everything
Everything above applies to a taxable brokerage account. Account type changes the picture entirely.
Inside a Roth IRA, qualified withdrawals are tax-free – there’s no capital gains tax to calculate at all, regardless of holding period. Inside a Traditional IRA or traditional 401(k), investment sales generally do not create an immediate capital-gains tax bill; taxable withdrawals are generally treated as ordinary income instead. Roth 401(k) accounts follow the same tax-free treatment as a Roth IRA for qualified withdrawals.
This is why the short-term versus long-term distinction matters specifically for a taxable brokerage account. If you’re deciding which account to prioritize first, Roth IRA vs. Brokerage Account walks through that decision directly.
ETFs add one more layer worth understanding on top of the general rules here – specifically how fund distributions and in-kind redemptions affect what gets reported each year. ETF Taxes Explained covers that layer in detail.

Capital Losses: The Other Side of the Ledger
Not every sale is a gain. When you sell for less than your cost basis, that’s a capital loss – and losses aren’t just bad news.
Capital losses first offset capital gains of the same type (short-term losses against short-term gains, long-term against long-term), then against the other type, and finally up to $3,000 of ordinary income per year if losses exceed gains ($1,500 if married filing separately). Unused losses carry forward to future tax years.
Deliberately realizing losses to offset gains is called tax-loss harvesting. It comes with one important restriction – the wash-sale rule – which is explained fully in ETF Tax-Loss Harvesting Explained rather than repeated here.
Common Mistakes Beginners Make
Selling exactly at the one-year mark instead of after it. The rule requires more than one year – one year and one day, at minimum. Selling on the exact anniversary date is still short-term.
Assuming a big sale won’t change their bracket. A large gain is added to your other income for the year, which can push part of it into a higher bracket than your regular salary alone would suggest.
Assuming reinvesting the proceeds cancels the sale. Whether you reinvest the sale proceeds immediately or hold the cash, the sale that generated the gain already happened – reinvesting doesn’t undo the tax event.
Ignoring state taxes entirely. Federal planning is only half the picture; state rules can add a meaningful amount on top.
FAQ About Capital Gains Tax
A. The difference is how long you held the investment before selling. One year or less is a short-term gain, taxed at your ordinary income rate. More than one year is a long-term gain, taxed at the lower 0%, 15%, or 20% rate.
A. No. Capital gains tax applies only to realized gains – meaning you actually sold the investment. An investment that has grown in value but that you still own has an unrealized gain, which is not taxed.
A. Generally, no – not in the same way. Inside a Roth IRA, qualified withdrawals are tax-free regardless of holding period. Inside a Traditional IRA or traditional 401(k), investment sales generally do not create an immediate capital-gains tax bill, and taxable withdrawals are generally treated as ordinary income later instead. Roth 401(k) accounts follow the same tax-free treatment as a Roth IRA for qualified withdrawals.
A. Yes. Capital losses first offset capital gains, and up to $3,000 of any remaining loss can offset ordinary income each year, with additional losses carried forward to future years. Consult a tax professional for how this applies to your specific situation.
The Bottom Line
Capital gains tax comes down to one question: how long did you hold it? One year or less, and the gain is taxed like ordinary income. More than one year, and it qualifies for a lower rate.
Everything else – the NIIT, state taxes, account type, capital losses – adjusts the final number, but the holding period is what decides which set of rules applies in the first place.
For most long-term investors, the practical takeaway is simple: know your purchase date, and think twice before selling a winning position just before it crosses the one-year line.
This article is for informational and educational purposes only and does not constitute financial, legal, or tax advice. Tax rates, thresholds, and rules referenced here reflect 2026 federal figures and are subject to change. Always confirm current figures with the IRS or a qualified tax professional before making decisions based on your specific situation.