You can lower the tax you pay on trading profits by holding positions longer than a year, harvesting losses against gains, routing more of your activity through retirement accounts, and, if you trade full time, electing mark-to-market treatment. Each of these levers is built into federal tax law, and knowing how to save tax on trading income comes down to using them deliberately rather than by accident. The rules below are the ones that move the number on your return.
Hold Past One Year for the Lower Rate
The single biggest factor in what you owe is how long you held the asset before selling. If you owned it for one year or less, the profit is a short-term capital gain taxed at ordinary income rates.1Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses Those rates run as high as 37% for 2026.2Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Day traders and swing traders who close positions within weeks are paying the highest rates the code allows.
Hold for more than one year and the same profit shifts to long-term capital gain status, taxed at 0%, 15%, or 20% depending on your total taxable income. For 2026, a single filer with taxable income up to $49,450 pays nothing on long-term gains. The 15% rate applies above that and runs up to $545,500, with 20% only beyond that level.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses For married couples filing jointly, those breakpoints are $98,900 and $613,700.
The holding period counts from the day after you buy through the day you sell. Selling on day 365 versus day 366 can be the difference between 37% and 15% on the same gain. If you have a winning position approaching the one-year mark, running the math before you click sell is one of the easiest tax savings available.
Harvest Losses to Offset Gains
Selling losing positions to offset winning ones directly reduces your bill. Realized capital losses subtract from realized capital gains dollar for dollar.4Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses The netting happens within category first: short-term losses reduce short-term gains, long-term losses reduce long-term gains. If one category still has a net loss, the leftover offsets gains in the other.
When total losses exceed total gains for the year, you can deduct up to $3,000 of the remaining loss against ordinary income like wages ($1,500 if married filing separately).4Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses Anything beyond that carries forward to the next tax year and keeps its short-term or long-term character.5Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers There’s no expiration on the individual carryforward, so a large loss in one bad year can lower taxes for years to come.
Pick Which Shares You Sell
If you bought the same stock at different prices over time, which lot you sell changes the tax result. Brokerages typically default to first-in, first-out, selling your oldest shares first. That isn’t always best. The specific identification method lets you pick the lot: choose high-basis shares to shrink a gain, or low-basis shares to maximize a harvestable loss. You need to notify your broker of the selection before the trade settles and keep confirmation of that instruction.
Don’t Trigger a Wash Sale
Loss harvesting has a guardrail. If you sell at a loss and buy back a substantially identical security within 30 days before or after the sale, the IRS disallows the loss for that tax year.6Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The restricted window totals 61 days: 30 before, the sale day, and 30 after.
The disallowed loss isn’t gone forever. It’s added to the cost basis of the replacement shares, deferring the loss until you sell those. But if the point was claiming the loss this year, deferral defeats the purpose. The rule also reaches across accounts, including your IRA. Selling in your taxable account and buying the same security in your IRA within the window triggers a wash sale, and because IRA losses generally aren’t deductible at all, that loss can become permanently unrecoverable.
One gap: as of 2026, the wash sale rule applies only to stocks and securities. Cryptocurrency bought and sold on spot markets is classified as property rather than a security, so direct crypto trades generally aren’t covered. You can sell a coin at a loss and rebuy it immediately without a wash sale. The exception does not cover crypto held through exchange-traded funds or other securities wrappers. Legislative proposals to close this gap have circulated since 2021 but haven’t been enacted.
Trade Inside Retirement Accounts
The most powerful shelter for trading activity is also the simplest: use a retirement account. Trades inside a Traditional IRA or 401(k) generate no taxable event at the time of sale. Buy, sell, and rebalance as often as you want with no capital gain to report. Tax comes due only on distributions in retirement, taxed then as ordinary income.
Roth IRAs flip the timing. Contributions go in after tax, but all growth, including trading profits, comes out tax-free if the distribution is qualified. A qualified distribution requires two things: you must be at least 59½, and at least five tax years must have passed since your first Roth IRA contribution.7Office of the Law Revision Counsel. 26 US Code 408A – Roth IRAs If you pull earnings before meeting both, the earnings portion is taxable and may carry a 10% early withdrawal penalty. The five-year clock is the part most people miss, especially those opening a Roth later in life.
2026 Contribution Limits
The annual IRA contribution limit for 2026 is $7,500, with an additional $1,100 catch-up for people 50 and older. For 401(k) plans, the employee limit is $24,500, with an $8,000 catch-up at 50 and over. Workers aged 60 through 63 get a higher catch-up of $11,250 under SECURE 2.0, bringing their maximum to $35,750.8Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500 Maxing these out each year shelters more trading from annual tax.
The Margin Exception
The tax-free treatment has one significant exception. If you use borrowed money inside a self-directed IRA to buy securities, gains attributable to the borrowed portion can trigger unrelated business taxable income. If half your purchase was margin, roughly half the gain could be subject to ordinary income tax inside the IRA. Most standard brokerage IRAs don’t permit margin, but self-directed accounts sometimes do. Trading with leverage in a retirement account is not the clean shelter it looks like.
Qualified Dividends and Fund Distributions
Not all dividends are taxed the same way. Ordinary dividends are taxed at your regular income rate, just like short-term gains. Qualified dividends get the long-term capital gain rates: 0%, 15%, or 20%.
A dividend qualifies for the lower rate only if you held the underlying stock for more than 60 days during the 121-day window that begins 60 days before the ex-dividend date. Traders flipping in and out of dividend payers usually end up with ordinary dividends, which wipes out the advantage. If you collect dividends from positions you plan to keep, clear that 61-day holding requirement before selling.
Mutual fund investors should also watch for year-end capital gains distributions. When a fund sells holdings at a profit, it passes those gains through to shareholders whether or not you sold anything yourself. Those distributions are taxable in the year they’re paid, even if automatically reinvested. Checking a fund’s estimated distribution schedule before buying late in the year can prevent an unwanted tax hit on gains you didn’t earn.
Watch the 3.8% Investment Income Surtax
Higher-earning traders face an additional 3.8% surtax on top of the capital gains rates. The net investment income tax applies when your modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly.9Internal Revenue Service. Questions and Answers on the Net Investment Income Tax It’s calculated on the lesser of your net investment income or the amount by which your income exceeds the threshold.
These thresholds are not indexed for inflation, so more taxpayers cross them each year as incomes rise.9Internal Revenue Service. Questions and Answers on the Net Investment Income Tax The surtax covers interest, dividends, capital gains, and rental income, among other categories. It does not apply to wages, self-employment income, or distributions from qualified retirement plans. For a trader whose modified AGI sits near the threshold, timing a large gain into one year versus splitting it across two can decide whether the extra tax hits at all.
Pay Estimated Taxes to Avoid Penalties
Trading income usually isn’t subject to payroll withholding, so the IRS expects you to pay as you go through quarterly estimated payments. Due dates for 2026 are April 15, June 15, and September 15 of 2026, plus January 15, 2027.10Internal Revenue Service. 2026 Form 1040-ES Missing them triggers an underpayment penalty that accrues daily.
You can avoid the penalty through safe harbor rules. The simplest: pay at least 100% of last year’s total tax, spread across four quarterly payments. If your adjusted gross income last year exceeded $150,000, the safe harbor rises to 110% of last year’s tax.10Internal Revenue Service. 2026 Form 1040-ES Alternatively, paying 90% of your current-year tax works. Traders with volatile income often prefer the prior-year method because the amount is fixed and knowable. Overpayments come back as a refund or apply to next year.
Mark-to-Market Election for Full-Time Traders
Traders who buy and sell securities as their primary business can make an election that changes the treatment of gains and losses. Under Section 475(f), the mark-to-market method converts all trading gains and losses from capital treatment to ordinary treatment.11Internal Revenue Service. Topic No. 429, Traders in Securities The practical benefit is large: the $3,000 cap on net capital loss deductions disappears. A trader with $80,000 in losses can deduct the full amount against other income the same year.
The election is hard to qualify for. The IRS looks for frequent, substantial, and continuous trading with the intent to profit from short-term price movements. Investors who buy and hold, even with large portfolios, don’t qualify.
The Filing Deadline
The election must be made by the due date (not counting extensions) of your tax return for the year before the election takes effect.12Internal Revenue Service. Rev. Proc. 99-17 To get mark-to-market treatment for 2026, the statement needed to be filed by April 15, 2025 (the due date of your 2024 return). You attach it to that return or to a request for extension. The statement must describe the election, identify the first tax year covered, and specify the trade or business.11Internal Revenue Service. Topic No. 429, Traders in Securities
Once active, you treat every security held at year-end as if sold at fair market value on December 31. Gains and losses are reported on Part II of Form 4797 instead of Schedule D.11Internal Revenue Service. Topic No. 429, Traders in Securities For most traders this is a one-way door; revoking requires IRS permission. Plan before you file.
Business Expense Deductions
Qualifying for trader tax status also opens ordinary business expense deductions on Schedule C. Trading software, market data subscriptions, home office expenses, and professional fees all become deductible. Trading gains and losses themselves don’t go on Schedule C; the form is used purely for business expenses. For high-volume traders paying hundreds or thousands annually in platform fees and data, these deductions add up quickly and aren’t available to casual investors.