The federal tax rate on capital gains from stocks depends on how long you held the shares. Sell after more than a year and the profit is taxed at 0%, 15%, or 20%, based on your taxable income and filing status. Sell within a year and the profit is taxed at your ordinary income rate, which ranges from 10% to 37%. High earners may owe an additional 3.8% surtax on investment income, bringing the top effective federal rate to 23.8%.
Why the Holding Period Decides Your Rate
One year is the line. If you owned the stock for one year or less before selling, the IRS treats the profit as a short-term capital gain and taxes it like wages. If you held for more than one year, the profit qualifies as a long-term capital gain and gets the preferential rates.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The clock starts the day after you buy and includes the day you sell. Buy on March 1 and sell on March 2 of the following year, and you’ve held for one year and one day, which qualifies as long-term.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses A single day can be the difference between a 15% rate and a 37% rate on the same dollar of profit.
Short-Term Gains Are Taxed Like Your Paycheck
Short-term capital gains get no special treatment. The IRS adds them to your other income and applies the same progressive brackets that hit your salary and interest. For 2026, those brackets are 10%, 12%, 22%, 24%, 32%, 35%, and 37%.2Internal Revenue Service. Federal Income Tax Rates and Brackets
Because short-term gains stack on top of everything else, a profitable trade can push part of your income into a higher bracket. Someone earning $95,000 in salary who books a $15,000 short-term gain doesn’t pay one rate on the whole gain. Some of it fills the current bracket; the rest spills into the next.
Long-Term Capital Gains Brackets for 2026
Long-term gains use their own bracket system, set by the IRS for the 2026 tax year at the following taxable-income thresholds.3Internal Revenue Service. Revenue Procedure 2025-32
0% Rate
You pay nothing on long-term stock gains if your total taxable income stays at or below:
- Single: $49,450
- Married filing jointly: $98,900
- Head of household: $66,200
- Married filing separately: $49,450
The 0% rate is real and easy to miss. Retirees living mostly on Social Security, or anyone in a low-income year, can sell appreciated stock and owe zero federal capital gains tax so long as total taxable income stays under the threshold.
15% Rate
Most investors fall here. The 15% rate applies to taxable income above the 0% ceiling up to:
- Single: $545,500
- Married filing jointly: $613,700
- Head of household: $579,600
- Married filing separately: $306,850
20% Rate
The top rate applies only to the portion of taxable income that exceeds those 15% ceilings. A single filer with $600,000 in taxable income doesn’t pay 20% on the whole amount, only on the portion above $545,500.3Internal Revenue Service. Revenue Procedure 2025-32
These thresholds adjust for inflation each year. Qualified dividends from stocks you’ve held long enough are taxed at the same preferential rates rather than as ordinary income.4Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed
The 3.8% Net Investment Income Tax
High earners face an additional 3.8% tax on investment income, capital gains included. This Net Investment Income Tax kicks in when your modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly.5Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax The 3.8% applies to the smaller of your net investment income or the amount by which your modified AGI exceeds the threshold.
These thresholds do not adjust for inflation, so more taxpayers cross them each year as incomes rise.6Internal Revenue Service. Questions and Answers on the Net Investment Income Tax An investor in the 20% long-term bracket who also owes the surtax pays an effective federal rate of 23.8% on stock profits. You calculate the surtax on Form 8960.7Internal Revenue Service. Instructions for Form 8960
Your Cost Basis Determines the Taxable Gain
The gain isn’t your sale price. It’s the sale price minus your cost basis, which is generally what you paid for the shares plus commissions and fees. Buy 100 shares at $50 and sell at $70, and your gain is $2,000, not $7,000.
When you’ve bought the same stock at different prices, you have to decide which shares you’re selling. The IRS defaults to first-in, first-out, treating the oldest shares as sold first.8Internal Revenue Service. Stocks (Options, Splits, Traders) 3 You can instead use specific identification and designate which lot you’re selling, but the election has to be made at the time of the trade.
Inherited Stock
Inherited shares get a stepped-up basis. Your basis is generally the fair market value on the date the previous owner died, not what they originally paid.9Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent If your parent bought at $10 and the shares were worth $100 at their death, your basis is $100. Selling at $105 produces a $5 gain.
Gifted Stock
Gifts work differently. You generally carry over the donor’s original basis. If they paid $10 and gave you the shares when they were worth $100, your basis for calculating a gain is still $10. If the market value at the time of the gift was lower than the donor’s basis, you use that lower value when calculating a loss.10Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust
Losses Reduce What You Owe
Losses from stock sales offset your gains. Short-term losses first offset short-term gains, long-term losses first offset long-term gains, and leftover losses in one category then offset the other.
If total losses exceed total gains, you can deduct up to $3,000 of the excess against ordinary income each year. For married filing separately, the limit is $1,500.11Office of the Law Revision Counsel. 26 U.S. Code 1211 – Limitation on Capital Losses Any unused loss carries forward indefinitely until it’s used up.12Internal Revenue Service. Schedule D (Form 1040) – Capital Gains and Losses
The Wash Sale Rule
Sell a stock at a loss and buy back the same or a substantially identical security within 30 days before or after the sale, and the IRS disallows the loss.13Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities The restricted window runs 61 days total: the 30 days before, the sale date, and the 30 days after.
The disallowed loss isn’t lost forever. It gets added to your cost basis in the replacement shares, so you eventually benefit when you sell those. Sell at a $15 per share loss and repurchase at $30, and your adjusted basis in the new shares is $45.
State Taxes Sit on Top of Federal
Federal rates are not the full bill. Most states tax capital gains as ordinary income. Nine states have no income tax, though Washington imposes a separate capital gains tax on high earners. In some states the combined state and federal rate tops 35% for top earners. Your total depends on where you live.
When a Higher 28% Rate Applies
Two categories fall outside the standard 0%/15%/20% framework and instead face a maximum 28% rate: gains from collectibles and the taxable portion of gains from qualified small business stock under Section 1202.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses The collectibles rate is aimed at things like art and coins, not ordinary stock holdings. Qualified small business stock matters only if you hold shares in a company that meets the Section 1202 requirements and part of your gain is not fully excluded.