How to choose
What to weigh before you pick
It usually comes down to 3 things. Compare your options on each before deciding.
How each option is taxed going in and coming out.
Income rules, contribution caps, and deadlines.
Access to the money and what it costs to change course.
- Waiting one extra month to cross the one-year holding threshold can save $1,400 in federal tax on a $20,000 gain for someone in the 22% bracket — that is the difference between a 22% short-term rate and a 15% long-term rate.
- At $100,000 in capital gains, the gap between a 22% short-term rate and a 15% long-term rate is $7,000 in federal tax owed, entirely based on how many days you held the asset.
- High earners also face a 3.8% Net Investment Income Tax on top of long-term rates — pushing the effective federal rate on large gains to 23.8% for individuals above $200,000 in modified adjusted gross income.
Capital gains tax is one of the few taxes where your behavior changes the rate you pay. The federal government taxes investment profits differently depending on how long you held the asset before selling. Hold for one year or less: you pay your ordinary income tax rate. Hold for more than one year: you pay a substantially lower long-term capital gains rate.
The difference is large enough to change investment decisions. A single holding period crossing from short-term to long-term can save thousands of dollars on a single trade, with no difference in the underlying investment itself. This guide explains the mechanics clearly, shows the dollar impact at common gain sizes, and identifies the situations where selling short-term still makes financial sense despite the higher tax cost.
This is educational information about tax law. Consult a tax professional for advice specific to your situation.
What a Capital Gain Is
A capital gain is the profit you make when you sell an asset for more than you paid. The gain equals your sale price minus your cost basis (what you originally paid, including commissions).
If you bought 100 shares at $30 per share ($3,000 total) and sold them at $50 per share ($5,000 total), your capital gain is $2,000.
The key question is how long you held the shares before selling.
Short-Term vs Long-Term: The Holding Period Rule
Short-term capital gains apply when you sell an asset held for one year or less. The IRS taxes short-term gains at your ordinary income tax rate, which ranges from 10% to 37% for federal taxes depending on your taxable income. Source: IRS Publication 550.
Long-term capital gains apply when you sell an asset held for more than one year. The federal rates are 0%, 15%, or 20% depending on taxable income. Source: IRS.
The one-year threshold is strict. An asset sold on the exact one-year anniversary of purchase still qualifies as short-term. You must hold for at least one year and one day to receive long-term treatment.
The 2026 Rate Structure
For long-term capital gains, the 2024 IRS thresholds (the most recently published; these adjust annually for inflation) are:
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $47,025 | $47,026 to $518,900 | Above $518,900 |
| Married filing jointly | Up to $94,050 | $94,051 to $583,750 | Above $583,750 |
| Head of household | Up to $63,000 | $63,001 to $551,350 | Above $551,350 |
Note: these thresholds adjust for inflation each year. The 2026 thresholds will be published by the IRS in late 2025. Verify current-year figures at IRS.gov or consult a tax professional.
For short-term gains, the 2024 federal ordinary income brackets are 10%, 12%, 22%, 24%, 32%, 35%, and 37%. The bracket that applies depends on your total taxable income for the year.
Dollar-Impact Math: The Cost of Selling Early
Investor A sells stock with a $20,000 gain after 11 months of holding (short-term):
- Falls in the 22% ordinary income bracket
- Federal tax owed: $20,000 x 22% = $4,400
Investor B waits 2 more months and sells after 13 months (long-term):
- Taxable income puts them in the 15% long-term capital gains bracket
- Federal tax owed: $20,000 x 15% = $3,000
Savings from waiting: $4,400 - $3,000 = $1,400 in federal tax
That $1,400 savings required no additional investment, no change in the asset, and no market risk. The only variable was the number of days the investor held the position.
At $100,000 in capital gains:
Short-term (22% bracket): $100,000 x 22% = $22,000 in federal tax Long-term (15% bracket): $100,000 x 15% = $15,000 in federal tax
Federal tax saved by holding past one year: $7,000
For someone in the 24% bracket selling short-term vs the 15% long-term rate: $100,000 x 24% = $24,000 (short-term) $100,000 x 15% = $15,000 (long-term) Savings: $9,000
These figures are federal only. State taxes stack on top (see below).
Consult a tax professional for your specific situation.
The Net Investment Income Tax (An Extra 3.8% for High Earners)
For investors with modified adjusted gross income above $200,000 (single) or $250,000 (married filing jointly), the IRS applies an additional 3.8% Net Investment Income Tax (NIIT) on top of regular capital gains rates. Source: IRS.
This means a high-income investor selling a long-held position with a large gain may face:
- 20% long-term capital gains rate (top bracket)
- 3.8% NIIT
- Combined federal rate: 23.8%
At the same income level, a short-term gain would be taxed at ordinary rates (potentially 37%) plus 3.8% NIIT, for a combined federal rate of 40.8%.
The NIIT applies to capital gains, dividends, interest, and net rental income. It does not apply to wages, Social Security, or distributions from IRAs and 401(k) plans.
State Taxes: Often Overlooked, Sometimes Large
Many states impose their own capital gains tax, and most treat capital gains as ordinary income regardless of the federal distinction.
State treatment of capital gains varies significantly:
- No capital gains tax: Texas, Florida, Washington, Nevada, Wyoming, South Dakota, Alaska, Tennessee (on investment income), New Hampshire (on investment income)
- Taxes all gains as ordinary income: California, New York, New Jersey, Oregon, Minnesota, and most other states
- Special treatment: A few states offer partial exclusions or lower rates on long-term gains
Residents of high-tax states should factor state rates into the math. In California, the combined federal-plus-state tax on a short-term gain at the top bracket approaches 50%.
Tax-Loss Harvesting: Using Losses to Offset Gains
If you have both gains and losses in a taxable account, selling losing positions can offset the tax bill on profitable sales. This strategy is called tax-loss harvesting.
The rules:
- Capital losses offset capital gains dollar for dollar
- Short-term losses first offset short-term gains; long-term losses first offset long-term gains (any excess can cross types)
- If losses exceed all gains, up to $3,000 of net losses can offset ordinary income per year
- Losses beyond $3,000 carry forward to future tax years
The wash sale rule is the main restriction. If you sell an investment at a loss and repurchase the same or substantially identical security within 30 days before or after the sale, the IRS disallows the loss. You cannot sell a stock to harvest the loss and immediately buy it back.
You can work around the wash sale by buying a similar but not identical security (for example, selling one S&P 500 ETF and purchasing a different S&P 500 ETF from a different provider) and waiting 31 days before repurchasing the original. The securities must be different enough that the IRS does not consider them substantially identical.
Assets With Special Rules
Not all assets receive standard long-term capital gains rates, even after a holding period longer than one year.
Collectibles (art, coins, precious metals held physically, antiques): taxed at a maximum 28% rate even on long-term gains, rather than the standard 20% maximum. Source: IRS.
Small business stock (Section 1202): Certain qualified small business stock held for more than five years may be eligible for a 50-100% exclusion of gains. This requires meeting specific criteria and consulting a tax professional.
Real estate depreciation recapture: When you sell rental property that you have taken depreciation deductions on, the depreciated portion may be "recaptured" and taxed at up to 25%, even if the overall sale qualifies as long-term.
Home sales: The Section 121 exclusion allows primary residence sellers to exclude up to $250,000 (single) or $500,000 (married) of gain tax-free if they have lived in the home for at least 2 of the last 5 years. Gains above those thresholds are taxed at long-term rates.
Choose Selling Now (Short-Term) If
Despite the higher tax rate, there are legitimate reasons to sell within one year:
You need the cash now. A financial emergency, business investment, or planned expense may require liquidity regardless of the tax cost.
The asset is likely to decline further. If you believe the investment will lose more value over the next few months than the tax savings from waiting, selling short-term and taking the loss (or smaller gain) may be correct.
You are in a low income year. If your taxable income is unusually low (you left a job, retired, or had large deductions), your short-term rate may be lower than in a normal year. Selling in a low-income year can reduce the rate difference.
The gain is small. On a $2,000 gain, the difference between 22% and 15% is $140. If waiting creates meaningful market risk or opportunity cost, it may not be worth the wait.
You are harvesting a loss. Selling a losing position short-term is fine and often intentional. Short-term losses can offset short-term gains at the same high rate.
When the Answer Flips
The default advice is to hold past one year. These situations change that calculus:
Hold for long-term if:
- The gain is large ($20,000 or more) and you are weeks away from the one-year mark
- You are in a high-tax state and the combined state-plus-federal short-term rate approaches 40-50%
- You have no pressing need for cash and believe the asset will hold its value
Sell short-term if:
- You need the cash for a concrete purpose now
- You have offsetting capital losses that eliminate the tax difference
- Your income is unusually low this year (making the short-term rate closer to the long-term rate)
- You have a large capital loss carryforward from prior years that will absorb the gain
- The investment is likely to lose significant value before the one-year mark is reached
Consult a tax professional before making sell decisions driven primarily by tax timing, especially on large gains.
IRAs and 401(k)s: Where the Distinction Disappears
Inside a traditional IRA or 401(k), you can buy and sell investments without triggering capital gains in the year of the transaction. The short-term vs long-term distinction is irrelevant inside these accounts.
The tax calculation defers to withdrawal:
- Traditional IRA / 401(k): withdrawals taxed as ordinary income regardless of the underlying gain type
- Roth IRA: qualified withdrawals are tax-free; no capital gains on anything inside the account
This means a Roth IRA is particularly powerful for investments you expect to trade frequently or that generate short-term gains. Frequent trading in a taxable account produces a string of short-term gains taxed at ordinary rates; the same activity inside a Roth produces no taxable events.
How This Guide Works
SwitchWize presents capital gains tax information using IRS Publication 550, IRS announced tax brackets, and publicly available state income tax rate schedules. Dollar calculations illustrate how the rules work mechanically and use simplified scenarios for clarity. Actual tax outcomes depend on your full income picture, filing status, state of residence, and other factors.
This is educational information about how capital gains taxes work. It is not tax advice. Individual tax situations vary substantially. Consult a qualified tax professional before making sell decisions based on tax considerations.
What to Do Now
Frequently Asked Questions
How long do I have to hold a stock to get long-term capital gains rates?
What is the capital gains tax rate for 2026?
Can I avoid capital gains tax by investing in an IRA?
What is tax-loss harvesting?
Do I pay capital gains tax on a home sale?
What is the Net Investment Income Tax?
Answer a few questions about your situation and goals. Money Map points you to the highest-value next step across savings, mortgage, cards, and debt.
Editorial review
What changed since the last update
Was this guide helpful?