Tax and Record Keeping for Stock Traders
Taxes, Record-Keeping, and the Business of Trading
You now have more foundational knowledge than most retail traders ever acquire — but knowledge alone isn't enough. You also need to build the operational and legal infrastructure that separates serious traders from those who wash out. That infrastructure has two pillars: understanding the tax implications of your trades, and maintaining records meticulous enough to prove what you did and why.
It's tempting to skip this section. Tax code is dry. Record-keeping feels like busywork. But here's the reality: every dollar you save through tax efficiency goes directly into your pocket, and every hour you invest now in clean record-keeping saves you days of chaos later. More importantly, failing to understand how taxes work can turn a profitable year into a financial disaster — not because your trading was bad, but because you didn't account for the government's cut until it was too late.
Disclaimer: This section is educational in nature and does not constitute tax advice. Tax laws change, individual circumstances vary enormously, and the consequences of getting this wrong can be expensive. Please consult a qualified tax professional — ideally one who specializes in trader taxation — for guidance specific to your situation.
The Two Categories That Matter: Short-Term and Long-Term
Let's start with the biggest tax lever available to you: the distinction between short-term and long-term capital gains.
Short-term gains are taxed as ordinary income — meaning they're stacked on top of your other income and taxed at your marginal federal income tax rate, which currently ranges from 10% to 37% depending on your tax bracket. For active traders doing significant volume, especially anyone with a day job on top of their trading, this can mean a lot of your gains disappear. A trader in the 24% bracket who made $10,000 in short-term gains owes $2,400 in federal taxes before state taxes enter the picture. A trader in the 32% bracket owes $3,200. This is the number that surprises people.
Long-term capital gains apply to positions held for more than one year. The federal tax rates here are dramatically better: 0%, 15%, or 20% depending on your total taxable income, with most middle-income investors landing in the 15% bracket. Some higher earners also face an additional 3.8% Net Investment Income Tax (NIIT) on top of this, but even at 18.8%, it's substantially below the ordinary income rates.
graph TD
A[You Sell a Position at a Profit] --> B{How Long Did You Hold It?}
B --> C[365 days or fewer\nShort-Term Gain]
B --> D[More than 365 days\nLong-Term Gain]
C --> E[Taxed as Ordinary Income\n10% - 37% Federal Rate]
D --> F[Preferential Capital Gains Rate\n0%, 15%, or 20% Federal Rate]
E --> G[Add State Income Tax]
F --> G
The practical implication for your trading strategy is real. If you're holding a position that has a significant gain and you're approaching the one-year mark, it's worth asking whether waiting a few weeks to cross into long-term territory makes financial sense — even if the trade setup suggests you should exit sooner. That calculation depends on your specific tax situation and the size of the gain, but it's a question that sophisticated traders ask regularly.
This isn't a reason to hold losing positions or let winners turn into losers chasing a tax status. But it is a reason to be aware of your holding periods as a matter of routine, not just an afterthought.
The Wash Sale Rule: The Trap That Catches Almost Everyone
Of all the tax concepts specific to trading, the wash sale rule is the one that produces the most expensive surprises for beginners. It's not complicated once you understand it, but it's counterintuitive enough that people walk right into it thinking they're being smart.
Here's the scenario: You buy 100 shares of a stock at $50. The position moves against you, and it's now trading at $38. You decide to sell, lock in the loss for tax purposes, and then buy back in because you still believe in the trade. Seems like a sensible move — you get a tax deduction on the $1,200 loss and stay in the position.
The IRS anticipated exactly this maneuver. The wash sale rule, codified in IRC Section 1091, disallows the deduction of a capital loss if you purchase the same or "substantially identical" security within 30 days before or after the sale. That's a 61-day window total — 30 days before the sale through 30 days after — and if you buy back in during that window, your loss is disallowed.
What happens to the disallowed loss? It doesn't disappear forever. It gets added to the cost basis of the repurchased shares. So you'll eventually get to claim it, just not now and not in the way you planned. The problem is that "eventually" might be in a different tax year, when offsetting it against other gains isn't available to you — or the new position might behave differently and create a mess.
A few things that catch people off guard:
"Substantially identical" is broader than you think. Obviously buying back the same stock triggers the rule. But the IRS also considers certain derivative positions and conversions to be substantially identical — including options on the same stock under some circumstances. Selling shares at a loss and then selling a put option on the same stock within the 30-day window? Potentially a wash sale. The rule gets murky fast around options, and this is one place where a tax professional earns their fee.
It applies across accounts. If you sell XYZ at a loss in your taxable brokerage account and your spouse buys XYZ in their account within the wash sale window, the loss is still potentially disallowed. If you sell XYZ at a loss in your taxable account and buy it in your IRA, same problem — and in that case, the loss is permanently disallowed, not just deferred, because the cost basis adjustment mechanism doesn't apply across account types in the same way.
Your broker's 1099 may not catch all wash sales. Brokers are required to track wash sales within a single account, and they'll flag them on your 1099-B. But brokers aren't required to track wash sales across multiple accounts, which means if you have accounts at two different brokers, the wash sale compliance falls entirely on you.
Active traders are especially exposed. If you're trading the same few tickers repeatedly — entering and exiting positions in the same names over and over — you can create wash sale situations almost accidentally. A loss on trade #3 in SPY might be disallowed because you entered trade #4 within 30 days of exiting trade #3. Tracking this manually across dozens of trades is genuinely difficult, which is why trade tracking software (discussed later in this section) isn't optional for anyone doing significant volume.
The bottom line on wash sales: if you want to harvest a loss for tax purposes, the cleanest path is to exit the position entirely and wait 31 days before re-entering, or replace it with a similar-but-not-substantially-identical security to maintain market exposure. Switching from one S&P 500 ETF to a different S&P 500 ETF likely doesn't trigger the rule if they're not tracking identical indexes, but the IRS guidance here is not crystal clear, and reasonable people (and tax professionals) disagree on specific cases.
How Options Are Taxed: More Complex Than You'd Hope
Options taxation is its own universe, and if you've been trading options after working through Section 13 of this course, you need to understand the basics before tax season arrives.
The general framework: most options for regular investors are taxed under the same short-term/long-term capital gains rules as stocks, with the same 365-day holding period test. But options introduce complications that stocks don't have, because there are multiple ways an option position can end — expiration, closing sale, or assignment — and each treatment can differ.
Basic puts and calls: If you buy a call option and later sell it at a profit, and you held it for more than a year, that's a long-term gain. If you held it for less than a year (which is true of most options, given typical expiration timelines), it's a short-term gain taxed as ordinary income. If the option expires worthless, you recognize a capital loss on the date of expiration equal to the premium you paid.
Writing (selling) options: If you sell a covered call or a cash-secured put and it expires worthless, you recognize a short-term capital gain equal to the premium you received, regardless of how long ago you sold the option. Options you've written are generally treated as short-term positions.
Assignment: This is where things get complicated. If you're assigned on a call you wrote (meaning your shares are called away), the premium you received is added to the sale price of your shares for tax purposes. The holding period for the shares themselves determines whether the gain on the stock is short- or long-term. If you're assigned on a put you wrote (meaning you have to buy shares), the premium reduces your cost basis in the newly acquired shares.
Section 1256 contracts: Index options and futures contracts get special treatment under Section 1256 of the tax code. These are taxed on a 60/40 basis — 60% of the gain or loss is treated as long-term, 40% as short-term — regardless of how long you actually held the position. This is genuinely favorable treatment and one reason some active traders prefer trading index products like SPX options.
Multi-leg strategies: Spreads, straddles, and other multi-leg options positions introduce straddle rules that can defer losses, and the tax treatment can depend on the specific legs, timing, and whether positions are considered "offsetting." This is firmly in "please see a tax professional" territory if you're doing significant options volume.
The honest assessment: options taxation is sufficiently complex that most active options traders benefit from professional tax preparation rather than self-filing, at least until they understand the rules cold. The cost of a mistake isn't just the tax bill — it's the penalties and interest that accrue on underreported income.
Tax-Loss Harvesting: Turning Lemons Into a Tax Deduction
Tax-loss harvesting is the practice of intentionally selling positions at a loss to offset capital gains you've realized elsewhere — and it's one of the few tax strategies that's both legal and genuinely useful for active traders.
The mechanics are straightforward. Capital losses offset capital gains dollar for dollar. If you realized $8,000 in short-term gains from active trading and you have positions sitting at a $5,000 unrealized loss, you can sell those losing positions before year-end to bring your net short-term gain down to $3,000. You've just saved yourself taxes on $5,000 of income.
If your capital losses exceed your capital gains in a given year, you can deduct up to $3,000 of the excess against ordinary income. Losses beyond $3,000 carry forward to future years, where they can offset future gains. This carryforward is valuable — if you have a rough year, some of that pain becomes ammunition for a more profitable future year.
A few practical notes:
Timing matters. Tax-loss harvesting is most valuable before December 31st, when you still have time to act. Many traders do a tax-situation review in October or November to see where they stand on gains and losses before the year closes. Doing this on December 30th is stressful and occasionally impossible given settlement times.
Don't let the tax tail wag the dog. Tax-loss harvesting is a tool, not a trading strategy. If you're selling a position you genuinely believe will recover just to capture a tax loss, make sure the tax benefit is worth the risk of missing the recovery. The 30-day wash sale window means you can't immediately buy back in, and a lot can happen in 30 days.
Short-term losses offset short-term gains first. The IRS has specific ordering rules for how losses offset gains: short-term losses first offset short-term gains, then long-term gains; long-term losses first offset long-term gains, then short-term gains. This matters because the tax rates are different, and you generally want to use losses to offset the highest-rate gains possible.
It's free money — but it requires active management. Automated tax-loss harvesting is one of the genuine value-adds offered by robo-advisors like Betterment and Wealthfront. For self-directed traders, this requires manual review of your portfolio, which is another argument for robust record-keeping throughout the year rather than trying to reconstruct your position at year-end.
Your Broker's 1099 Forms: What They Tell You and What to Watch For
Every January, your brokerage will send or make available a consolidated 1099 tax form covering your trading activity from the previous year. Understanding what's in this document is essential for filing your taxes correctly.
The main components you'll care about:
1099-B: This covers your stock, ETF, and options transactions — proceeds from sales, your cost basis, your gain or loss on each transaction, whether the gain is short- or long-term, and whether any wash sales were flagged. The IRS also receives a copy of your 1099-B, which is why the amounts must agree with what you report on your tax return.
1099-DIV: Covers dividends and distributions, including any qualified dividends (which receive favorable tax treatment) versus ordinary dividends (taxed as regular income). If you hold dividend-paying stocks or ETFs, this matters.
1099-INT: Covers interest income, including interest earned on cash balances in your brokerage account.
When your consolidated 1099 arrives, resist the urge to just hand it to TurboTax and click through. Look at it. Verify that your cost basis figures make sense. If you transferred positions between brokers during the year, your new broker may have incomplete cost basis information — sometimes showing a cost basis of zero, which would make all proceeds appear as a gain. This is a known issue that the IRS addressed with cost basis reporting reforms, but it still creates problems for transferred positions, especially older ones.
Also check the wash sale column. Your broker identifies wash sales within their system, but they're not catching cross-account wash sales. If you traded the same securities across multiple accounts, you may need to make adjustments.
If you find errors on your 1099, brokers can and do issue corrected 1099s — typically by the March amended deadline. It's worth catching errors early rather than filing with incorrect information.
Record-Keeping: Building a System That Doesn't Require You to Panic in February
The single best thing you can do for your tax situation as a trader is keep good records throughout the year. The second-best thing is keep mediocre records. The third-best thing — reconstructing your trading history from memory and partial screenshots in April — is the option almost every beginner defaults to, and it's terrible.
What to track for each trade:
- Date of entry and date of exit
- Security name and ticker
- Number of shares or contracts
- Entry price and exit price
- Commissions and fees paid
- Gain or loss on the trade
- Whether the holding period qualifies as short-term or long-term
- Any relevant notes (why you entered, why you exited)
Your broker's trade history export is the foundation of your record-keeping. Most major brokers allow you to export transaction history as CSV or Excel files, which gives you a complete record of every trade. Download and archive this at least quarterly — don't rely on your broker to maintain indefinite access to historical data if you switch platforms or the company is acquired.
Tools for organizing trade records:
Several software tools are designed specifically for trader tax preparation:
- TradeLog — one of the longest-standing dedicated trader tax software solutions, handles wash sale calculations, generates Schedule D data, and supports multiple brokers
- GainsKeeper — broker-integrated tax tracking used by some platforms
- TurboTax with the TurboTax Investor Center — handles simpler trading situations and can import 1099-B data directly from major brokers
- Spreadsheets — for lower-volume traders, a well-designed spreadsheet can handle everything and gives you full visibility into your position history
For active traders doing hundreds of trades per year, dedicated trade accounting software is worth the subscription cost just for the wash sale tracking alone. Calculating wash sales manually across dozens of positions in multiple securities is the kind of work that creates errors, and errors on your tax return create problems that are disproportionately expensive to fix.
The IRS recommends keeping tax records for at least three years from the date you file your return, and longer in some circumstances. For trading records, keep everything. Hard drive space is cheap. Tax audits are not.
Estimated Quarterly Tax Payments: Don't Wait Until April
Active traders — especially those with significant short-term gains — often discover that the standard "pay it all in April" approach creates a problem: the IRS expects you to pay taxes as you earn income, not all at once at year-end.
The US tax system operates on a pay-as-you-go basis. Employees have taxes withheld from their paychecks throughout the year. Traders and self-employed individuals need to make estimated quarterly tax payments, due four times a year:
- April 15 (covering January 1 – March 31)
- June 15 (covering April 1 – May 31)
- September 15 (covering June 1 – August 31)
- January 15 of the following year (covering September 1 – December 31)
If you don't pay enough in estimated taxes during the year, the IRS can charge you an underpayment penalty — even if you pay your full tax bill when you file in April. The penalty isn't catastrophic, but it's an annoying and avoidable cost.
The general safe harbor rules: you avoid underpayment penalties if you've paid at least 90% of the current year's tax liability through withholding and estimated payments, or 100% of last year's tax liability (110% if your prior-year adjusted gross income was over $150,000). If you had a day job last year and taxes were withheld normally, your prior-year withholding may cover the safe harbor even if your trading generated significant income this year — but this requires checking your specific numbers, not assuming.
The practical recommendation: if you've had a profitable trading year and you're not certain your withholding from a day job covers your tax liability, consult a tax professional or use the IRS estimated tax calculator to figure out whether you should be making quarterly payments.
Trader Tax Status and Mark-to-Market Accounting
Most traders are classified by the IRS as investors — people who buy and sell securities for personal investment purposes. Investors use Schedule D to report capital gains and losses, face wash sale limitations, and can't deduct trading expenses as business deductions.
A small subset of very active traders can qualify for trader tax status, which is a designation the IRS grants based on the nature and intensity of their trading activity. According to IRS guidance and related Tax Court decisions, qualifying as a trader generally requires:
- Trading must be substantial, regular, frequent, and continuous
- The trader must seek to profit from short-term market swings rather than long-term appreciation or dividends
- Trading activity must be their primary means of earning income (or at least a substantial activity)
There's no bright-line rule for how many trades per year qualifies, but the Tax Court has generally looked unfavorably on anything under a few hundred trades, and "a few hundred" is a conservative floor, not a safe harbor. People who make 30 trades a year and call themselves traders in their hearts are, to the IRS, investors.
Why does trader tax status matter?
Traders can deduct trading-related expenses as ordinary business expenses — home office deductions, data subscriptions, software, education, trading platforms — rather than as investment expenses, which were largely eliminated by the 2017 Tax Cuts and Jobs Act. This can be meaningful for traders with significant overhead.
More importantly, traders who qualify can elect mark-to-market accounting under Section 475(f) of the tax code. Under mark-to-market, you treat all your positions as if you sold them on December 31st each year, recognizing gains and losses for tax purposes. The major benefits: all gains and losses are treated as ordinary income/loss (you avoid the $3,000 capital loss limitation), and you're completely exempt from the wash sale rule.
The catch: this election must be made by the tax deadline for the prior year (typically April 15th of the year you want the election to take effect). You can't retroactively elect mark-to-market after a good year to change how your gains are treated. And if your trading is profitable, mark-to-market means all your gains are taxed as ordinary income — you lose the favorable long-term capital gains rates. It's not a slam dunk for everyone.
graph TD
A[How the IRS Classifies You] --> B{What's Your Trading Activity?}
B --> C[Casual to Moderate\nInvestor Status]
B --> D[Substantial, Frequent, Continuous\nPotential Trader Status]
C --> E[Schedule D for gains/losses\nWash sale rules apply\nNo business expense deductions\nCapital loss limit: $3000/yr]
D --> F[Business expense deductions\nOptional Section 475 election]
F --> G[Mark-to-Market Accounting\nOrdinary income/loss treatment\nNo wash sale rules\nNo $3000 loss limitation]
The practical reality for most beginners and intermediate traders: you're almost certainly an investor, not a trader, by IRS standards. The day when you need to seriously think about mark-to-market accounting is also the day when you can definitely afford a tax professional who specializes in trader taxation. For now, understanding that this exists and what triggers it is sufficient.
Trading in Retirement Accounts: The Tax-Advantaged Sandbox
One of the most underappreciated tools available to traders is the ability to trade within retirement accounts — and the tax treatment is dramatically different from a standard taxable brokerage account.
Roth IRA: Contributions are made with after-tax dollars. Growth and qualified withdrawals are completely tax-free. If you buy and sell stocks inside a Roth IRA — even generating short-term gains on every trade — you pay no capital gains tax, ever, on those trades. The wash sale rule is still technically relevant (wash sales involving your IRA can permanently disallow a loss in your taxable account), but within the Roth IRA itself, there are no tax consequences to selling and repurchasing positions.
Traditional IRA: Contributions may be tax-deductible (depending on your income and whether you have a workplace retirement plan). Growth is tax-deferred — you pay no taxes on gains until you take withdrawals in retirement, at which point withdrawals are taxed as ordinary income.
The retirement account tradeoff: The tax advantages are real and substantial. But retirement accounts come with rules that constrain how you can use them. Roth IRA contributions are limited to $7,000 per year for 2024 ($8,000 if you're 50 or older), and income limits can restrict your ability to contribute directly to a Roth. Traditional IRA contribution limits are the same. Early withdrawals before age 59½ typically incur a 10% penalty plus taxes. These accounts are designed for long-term retirement saving, and treating them purely as tax-free trading sandboxes — especially with day-trading frequency — pushes against the intent of the accounts and may attract regulatory scrutiny.
Additionally, retirement accounts have restrictions on certain trading strategies. Margin trading is generally prohibited in IRAs, and certain options strategies — particularly naked options selling — are typically not permitted. Pattern Day Trader rules still apply if you're day trading in an IRA, though the PDT designation and its consequences (discussed in Section 11) are somewhat different in the retirement account context.
The strategic takeaway: if you have positions you plan to hold for the long term with strong appreciation potential, holding them in a Roth IRA can be extremely powerful. If you're actively trading and generating short-term gains, moving some portion of that activity into a Roth IRA — within contribution limits — eliminates the tax drag entirely. Many sophisticated traders maintain both a taxable account for their active trading and a Roth IRA where they manage their more tax-sensitive positions.
When to Stop DIY-ing Your Taxes
There's a pattern worth naming. A trader who made $2,000 in their first year of trading can probably handle their own taxes with a quality software package and careful attention to their 1099-B. A trader who made 400 trades across three accounts, sold covered calls, did some tax-loss harvesting, holds positions in both a Roth IRA and a taxable account, and has a day job with significant W-2 income should not be self-filing, full stop.
The decision point isn't really about how sophisticated you feel. It's about the cost of errors relative to the cost of professional help. A CPA who specializes in trader taxation typically charges a few hundred to over a thousand dollars depending on complexity. The cost of mishandling wash sales, miscategorizing options transactions, or failing to make estimated quarterly payments is typically much higher — and unlike your trading losses, tax penalties don't teach you anything useful.
The American Institute of CPAs can help you find CPAs, and organizations like the National Association of Enrolled Agents list tax professionals who specialize in areas including investments and trading. Look specifically for someone who mentions trader taxation, options, or Section 475 in their practice description — a generalist CPA who does small business returns may not be comfortable with the nuances of active trading taxation.
Practically, here are indicators that you should bring in a professional:
- You have more than 100 trades in a year
- You trade options, especially multi-leg strategies
- You have accounts at multiple brokers
- You're uncertain whether you might qualify for trader tax status
- You're considering a Section 475 mark-to-market election
- You received a letter from the IRS about a prior return
- Your trading income meaningfully exceeds your employment income
It's also worth noting that a good trading-focused CPA will do more than just file your return correctly — they'll help you understand what records to keep, when to harvest losses, how to structure your accounts, and what elections might be available to you. That proactive value can easily exceed the cost of their services.
Pulling It Together: Making Tax Awareness Part of Your Process
The traders who consistently underperform their theoretical returns are often the ones who treat taxes as someone else's problem. The ones who outperform on a risk-adjusted, after-tax basis tend to build tax awareness into their process throughout the year.
Practically, this looks like:
-
Track your trades in real time, not retrospectively. Export transaction history monthly. Don't let it pile up.
-
Know your running gain/loss position. Keep a rough sense of whether you're net positive or negative for the year and how your positions are split between short-term and long-term.
-
Think about holding periods before you exit. When a position is approaching the one-year mark with a significant gain, factor the tax difference into your exit decision — not as the only factor, but as a real one.
-
Harvest losses deliberately, especially in Q4. Review your portfolio in October or November with an eye toward losses that could offset your gains.
-
Make quarterly estimated payments if needed. Avoid the April surprise.
-
Keep everything. Download your trade history. Archive your 1099s. Keep records of any trades you manually adjust for wash sales.
-
Bring in a professional when the complexity exceeds your confidence. There's no prize for doing your own taxes when the cost of an error exceeds the cost of professional help.
Taxes are not exciting. They're not why anyone opens a brokerage account. But they're a fixed feature of the landscape, and understanding them is simply part of trading intelligently. The market is indifferent to whether you understood the wash sale rule. The IRS is not.
As you move into the final section of this course — where we pull together everything into a complete trading plan — carry this with you: your actual edge as a trader isn't just about finding good setups. It's about keeping what you earn. Tax efficiency is part of that. So is risk management, emotional discipline, and everything else we've covered. The traders who last are the ones who take all of it seriously.
Only visible to you
Sign in to take notes.