Profits from trading are subject to federal capital gains tax, and the rate turns on one question: how long did you hold the asset before selling. Trades closed within a year of purchase are short-term gains taxed as ordinary income at rates up to 37%. Trades held more than a year are long-term gains taxed at 0%, 15%, or 20%. The capital gains tax on trading only applies to gains you actually realize by selling, exchanging, or spending an asset, so a portfolio that climbs on paper generates no tax until you close the position.
When You Actually Owe the Tax
Tax attaches to realized gains, not unrealized ones. A closed transaction is what triggers the calculation: you acquired an asset, then you sold, exchanged, or otherwise disposed of it for more than you paid.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Common triggers include selling stock for cash, swapping one cryptocurrency for another token, and using a digital asset to pay for goods or services. Each creates a moment where the IRS measures the difference between what you originally paid and what you received, using fair market value at the time when cash isn’t involved.
The One-Year Line
Federal law splits capital gains into two buckets. A short-term capital gain comes from selling an asset held for one year or less. A long-term capital gain comes from selling an asset held for more than one year.2Office of the Law Revision Counsel. 26 USC 1222 – Capital Gains and Losses Defined
Your holding period starts the day after you buy and includes the day you sell. Shares bought on March 1, 2025 would need to be sold on March 2, 2026 or later to qualify for long-term treatment. A sale on March 1, 2026 is still short-term. For an active trader, that single extra day can move the same profit from a 37% rate to a 15% rate.
“Capital asset” covers most property held for investment or personal use, including stocks, bonds, mutual funds, ETFs, cryptocurrency, and real estate. Inventory held for sale to customers and certain depreciable business property are excluded.3Office of the Law Revision Counsel. 26 US Code 1221 – Capital Asset Defined
2026 Capital Gains Tax Rates
Short-term gains receive no preferential rate. They stack on top of your wages, interest, and other ordinary income and are taxed at your regular federal rate, from 10% to 37% depending on total taxable income.4Internal Revenue Service. Federal Income Tax Rates and Brackets For traders flipping positions within weeks or months, this is where the real tax pain lives.
Long-term gains are taxed at preferential rates. For the 2026 tax year:5Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
- 0% on taxable income up to $49,450 (single) or $98,900 (married filing jointly)
- 15% on taxable income from $49,450 to $545,500 (single) or $98,900 to $613,700 (married filing jointly)
- 20% on taxable income above $545,500 (single) or $613,700 (married filing jointly)
These thresholds are based on total taxable income, not just your gains. Your salary and other earnings push those gains into higher brackets even when the gains themselves are modest. Most traders land in the 15% bracket.
Collectibles and Small-Business Stock
Long-term gains on collectibles like coins, art, antiques, and precious metals face a maximum rate of 28% regardless of your income bracket.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses If you trade physical gold or rare coins, that higher ceiling applies. The 28% rate also applies to certain small-business stock under Section 1202.6Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed
The 3.8% Surtax on Higher Incomes
Higher earners face an additional 3.8% Net Investment Income Tax on investment income, capital gains included. The NIIT applies to single filers with modified adjusted gross income above $200,000 and married couples filing jointly above $250,000, calculated on the lesser of your net investment income or the amount by which your income exceeds the threshold.7Office of the Law Revision Counsel. 26 US Code 1411 – Imposition of Tax These thresholds are not adjusted for inflation.
A single filer in the 20% long-term bracket with income above $200,000 can therefore see a combined federal rate of 23.8% on long-term gains, before any state tax.
Figuring the Gain on Each Trade
The math is straightforward: subtract your cost basis from your sale proceeds. Basis is what you paid, including any commissions or fees on the buy side. Proceeds are what you received, minus any fees on the sell side. The difference is your gain or loss for that trade.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
You run that calculation on every transaction, then net the results. Short-term gains and losses net against each other. Long-term gains and losses net separately.
Choosing a Cost Basis Method
When you’ve bought the same stock or fund at different times and prices, which shares count as sold matters for your bill. The default is first-in, first-out (FIFO), which assumes the oldest shares went first. That is often not the most tax-efficient choice, because your oldest shares may carry the lowest basis and therefore the largest taxable gain.
Most brokerages let you pick another method. Specific lot identification gives you the most control: you choose exactly which shares to sell and can target higher-basis lots to shrink the gain. Highest-cost-first-out automates that same idea. For mutual fund shares, you can elect the average cost method, which divides total cost by shares owned.8Internal Revenue Service. Mutual Funds (Costs, Distributions, Etc.) Pick a method deliberately before tax season rather than defaulting into FIFO.
Inherited Shares
If you inherited stock, your basis is not what the original owner paid. You receive a stepped-up basis equal to fair market value on the date the previous owner died.9Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent Stock bought for $10,000 in 1990 and worth $100,000 at death gives you a $100,000 basis, wiping out decades of unrealized appreciation. If the asset had lost value before death, the basis steps down.
Losses, the $3,000 Cap, and the Wash Sale Rule
End the year with a net capital loss and you can deduct up to $3,000 of it against ordinary income ($1,500 if married filing separately). Anything beyond that carries forward indefinitely, offsetting future gains or another $3,000 of ordinary income each year until it’s used up.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Selling a losing position to claim the deduction and immediately buying it back doesn’t work. Under the wash sale rule, if you sell a stock or security at a loss and buy a substantially identical replacement within 30 days before or after the sale, the loss is disallowed.10Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The restricted window covers 61 days total: 30 days before, the sale date, and 30 days after.
The disallowed loss is not permanently lost. It adds to the basis of the replacement shares, and the original holding period tacks on. But the deduction you were counting on for this year’s return is blocked.
One boundary worth knowing: the wash sale rule currently applies to stocks and securities but not to cryptocurrency, because the IRS treats crypto as property. Crypto traders can harvest losses and immediately repurchase the same token. Legislation has been proposed to close that gap, so check the current rules before relying on it.
Futures and Broad-Based Index Options
Certain futures and options get a unique blended treatment regardless of holding period. Under Section 1256, gains and losses on qualifying contracts are automatically split 60% long-term and 40% short-term.11Office of the Law Revision Counsel. 26 US Code 1256 – Section 1256 Contracts Marked to Market Even a same-day trade on a qualifying contract gets the blend.
Qualifying instruments include regulated futures contracts, options on broad-based stock indexes such as S&P 500 options, and certain foreign currency contracts. Equity options on individual stocks generally do not qualify. These contracts are also marked to market at year-end: open positions on December 31 are treated as sold at their closing price, with the resulting gain or loss reported that year.12Internal Revenue Service. Form 6781 – Gains and Losses From Section 1256 Contracts and Straddles Report them on Form 6781 rather than Form 8949.
If Trading Is Your Job
Most people who trade stocks are classified as investors even when they trade frequently. If trading is essentially your full-time work, you may qualify for trader tax status. The IRS looks at whether you trade to profit from daily price movements rather than long-term appreciation or dividends, whether the activity is substantial in both frequency and dollar amount, and whether you carry it on with continuity and regularity.13Internal Revenue Service. Topic No. 429, Traders in Securities
Qualifying lets you deduct business expenses (data subscriptions, trading software, home office costs) on Schedule C. The larger lever is the option to elect mark-to-market accounting under Section 475(f).14Office of the Law Revision Counsel. 26 USC 475 – Mark to Market Accounting Method for Dealers in Securities
With the election, all your trading gains and losses become ordinary income and losses. Ordinary losses aren’t capped at $3,000, and the wash sale rule no longer applies to your trades.13Internal Revenue Service. Topic No. 429, Traders in Securities A trader with a brutal year could deduct the entire loss against other income. The tradeoff is real: you also lose the preferential long-term rate, so every profitable trade is taxed at ordinary rates. The election must be made by the due date of the prior year’s return (generally April 15) and applies to all future years unless the IRS approves a revocation.
Paying Through the Year
If your trading gains are significant and no employer is withholding tax from a paycheck, you likely need to make quarterly estimated payments. Waiting until April to settle a large bill can result in underpayment penalties.15Internal Revenue Service. Publication 505 – Tax Withholding and Estimated Tax
For the 2026 tax year, estimated payments are due:16Internal Revenue Service. 2026 Form 1040-ES
- April 15, 2026, covering January through March
- June 15, 2026, covering April through May
- September 15, 2026, covering June through August
- January 15, 2027, covering September through December
You can skip the January payment by filing your full return and paying any remaining tax by February 1, 2027.
To avoid the underpayment penalty, you generally need to pay at least 90% of the current year’s tax liability or 100% of the prior year’s, counting withholding and estimated payments together. If last year’s adjusted gross income exceeded $150,000 ($75,000 married filing separately), the prior-year threshold rises to 110%. You also escape the penalty if you owe less than $1,000 at filing time after withholding and credits.17Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty For traders whose income is unpredictable, the prior-year safe harbor is the simplest approach: pay 100% (or 110%) of last year’s total tax across the four deadlines and you’re covered regardless of how this year turns out.
Reporting Your Trades
Your brokerage reports each sale to you and the IRS on Form 1099-B, listing the transaction date, proceeds, and (for shares acquired after 2011) cost basis.18Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions For digital asset transactions, brokers now issue Form 1099-DA beginning with the 2026 tax year.19Internal Revenue Service. About Form 1099-DA, Digital Asset Proceeds From Broker Transactions
You list each transaction on Form 8949, which separates short-term from long-term sales and reconciles any adjustments to what the broker reported. Totals from Form 8949 flow to Schedule D of Form 1040, where the IRS sees your final net gain or loss.20Internal Revenue Service. Instructions for Form 8949 Because the broker sends the same data to the IRS, mismatches between the 1099 and your return trigger automated notices. If the broker didn’t report a cost basis (common for shares transferred in from another firm or bought before 2012), the IRS assumes it was zero. Keep your own records of purchase dates and prices.
Filing Deadlines and State Tax
Capital gains are reported on your annual return, due April 15. You can request an automatic six-month extension to October 15 by filing Form 4868, but that extension covers filing, not payment.21Internal Revenue Service. Get an Extension to File Your Tax Return Tax owed is still due April 15, and the IRS charges interest on unpaid balances from that date.
IRS Direct Pay pulls funds from your bank account with no fee.22Internal Revenue Service. Direct Pay With Bank Account Credit card, debit card, and digital wallet payments through IRS-approved processors typically carry a convenience fee.
Most states also tax capital gains, generally as ordinary income, at rates from roughly 0% to over 13%. A handful of states impose no income tax at all. Your combined federal and state rate is what actually determines how much of your trading profit you keep, so factor in your state before estimating the total bill.