To calculate short-term capital gains tax, subtract your cost basis (what you paid for the asset, plus fees) from the net proceeds of the sale, then apply your ordinary income tax rate to the profit if you held the asset for one year or less.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses For 2026, ordinary rates run from 10% to 37%, and high earners may owe an additional 3.8% surtax on investment income, pushing the effective top rate to 40.8%.
When a Gain Counts as Short-Term
A gain is short-term if you held the asset for one year or less before selling.2Office of the Law Revision Counsel. 26 U.S. Code 1222 – Other Terms Relating to Capital Gains and Losses The holding period starts the day after you acquire the asset and includes the day you sell.3Internal Revenue Service. Publication 550, Investment Income and Expenses Buy stock on March 1 and sell on March 1 the next year, and you’ve held for exactly one year, so the gain is still short-term. Sell one day later and the gain becomes long-term, which qualifies for lower rates.
One boundary worth flagging: inherited property is automatically treated as held for more than a year, no matter when the deceased owner bought it.4Office of the Law Revision Counsel. 26 U.S.C. 1223 – Holding Period of Property Any gain on inherited property is always long-term, so the short-term calculation never applies.
Working Out Your Cost Basis and Sale Proceeds
Your cost basis begins with what you paid for the asset.5Office of the Law Revision Counsel. 26 U.S. Code 1012 – Basis of Property Cost Add any transaction fees, brokerage commissions, and other purchase costs. A higher basis means a smaller taxable gain, so don’t skip the fees.
On the sale side, the amount realized is the total proceeds minus selling costs like broker fees or transfer charges. Your brokerage reports both figures on Form 1099-B, which it sends to you and the IRS after year-end.6Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions Check those numbers against your own trade confirmations. Brokerages sometimes report the wrong basis, especially for assets transferred in from another firm.
The Calculation, Step by Step
For each sale during the year:
- Subtract your adjusted cost basis from the net sale proceeds. The result is your gain or loss on that transaction.
- Repeat for every short-term sale.
- Add up all short-term gains and subtract all short-term losses. That’s your net short-term capital gain or loss.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
- Add the net short-term gain to your other taxable income (wages, freelance earnings, interest).
- Apply the ordinary income tax brackets to the combined total.
A worked example. You’re single, earning $80,000 in salary. In March you buy stock for $5,000 and pay a $10 commission. Seven months later you sell it for $8,000 after fees. Your basis is $5,010, your net proceeds are $8,000, and your short-term gain is $2,990. That gain gets added to your $80,000 salary for total income of $82,990. The $2,990 sits entirely inside the 22% bracket for a single filer, so federal tax on the gain is about $658.7Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
2026 Ordinary Income Tax Brackets
Short-term gains are taxed as ordinary income at the same graduated rates that apply to your wages.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses The gain stacks on top of your other income, and the total decides which brackets apply.
For 2026:7Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
- 10%: Up to $12,400 single / $24,800 joint
- 12%: $12,401–$50,400 single / $24,801–$100,800 joint
- 22%: $50,401–$105,700 single / $100,801–$211,400 joint
- 24%: $105,701–$201,775 single / $211,401–$403,550 joint
- 32%: $201,776–$256,225 single / $403,551–$512,450 joint
- 35%: $256,226–$640,600 single / $512,451–$768,700 joint
- 37%: Over $640,600 single / Over $768,700 joint
Because the gain stacks, even a modest profit can be taxed at a higher rate than you expect. If your salary already sits near the top of the 22% bracket, a $10,000 short-term gain can push part of the profit into 24%.
The 3.8% Net Investment Income Tax
If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), you owe an extra 3.8% on the smaller of your net investment income or the amount by which your income exceeds the threshold.8Office of the Law Revision Counsel. 26 U.S.C. 1411 – Imposition of Tax Short-term capital gains count as net investment income. The surtax doesn’t appear in the bracket tables, but it lifts the top federal rate on short-term gains from 37% to 40.8%.
State Tax
Most states with an income tax also tax short-term gains at ordinary rates, adding roughly 3% to 13% depending on where you live. A handful of states have no income tax at all. Build your state’s rate into any estimate of what you’ll actually owe.
Netting Losses Against Gains
You don’t pay tax on each winning trade in isolation. The IRS requires you to net gains and losses in a specific order. Short-term losses first offset short-term gains; long-term losses offset long-term gains separately. If one category shows a net loss and the other a net gain, the loss crosses over. A $10,000 net short-term gain paired with a $4,000 net long-term loss leaves $6,000 taxable.
If total losses exceed total gains for the year, you can deduct up to $3,000 of the excess against wages or other ordinary income ($1,500 if married filing separately).9Office of the Law Revision Counsel. 26 U.S.C. 1211 – Limitation on Capital Losses Anything above that carries forward indefinitely to future years.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Watch the Wash Sale Rule
If you sell at a loss and buy a substantially identical security within 30 days before or after the sale, the IRS disallows the loss.10Office of the Law Revision Counsel. 26 U.S.C. 1091 – Loss From Wash Sales of Stock or Securities The window covers 61 total days: 30 before, the sale date, and 30 after. Sell a stock at a loss on June 10, buy it back on June 25, and the loss is disallowed.
In most cases the disallowed loss is added to the basis of the replacement shares, so the deduction is only deferred. The exception hurts: if you repurchase the security inside a traditional or Roth IRA, the loss is permanently forfeited because the IRA’s basis doesn’t increase.
Reporting and Estimated Payments
Individual sales go on Form 8949 with dates, proceeds, and basis for each transaction. Totals flow to Schedule D of Form 1040.11Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses
A large short-term gain can leave you owing a big balance in April if you haven’t adjusted withholding or made estimated payments. If you owe more than $1,000 after withholding and credits, you may face an underpayment penalty. Estimated payments for 2026 are due April 15, June 15, and September 15 of 2026, plus January 15, 2027.12Internal Revenue Service. 2026 Form 1040-ES, Estimated Tax for Individuals To avoid penalties, pay at least 90% of your current-year tax or 100% of last year’s tax. If your prior-year adjusted gross income was over $150,000, the safe harbor rises to 110% of last year’s tax.
Penalties for Getting It Wrong
Underreporting capital gains triggers an accuracy-related penalty of 20% of the underpaid amount.13Office of the Law Revision Counsel. 26 U.S. Code 6662 – Imposition of Accuracy-Related Penalty on Underpayments It applies to careless errors too, not just intentional wrongdoing. Common triggers: using the wrong basis, misclassifying a short-term gain as long-term, or omitting a sale the IRS already sees on a 1099-B.
Deliberately hiding gains is another matter. Tax evasion is a felony carrying fines up to $100,000 and up to five years in prison.14Office of the Law Revision Counsel. 26 U.S. Code 7201 – Attempt to Evade or Defeat Tax The IRS matches 1099-B data against returns. If your brokerage reported a sale and it doesn’t appear on your return, expect a notice.