Tax-Aware Trading and Record Keeping
After-tax return is the only return that matters. A strategy generating 18% gross return in an account where all gains are taxed as short-term income at 37% delivers 11.3% net; the same gross return achieved with primarily long-term capital gains treatment at 20% delivers 14.4% — a 3.1 percentage point difference that compounds dramatically over a career. Tax awareness does not mean avoiding tax at the cost of investment returns; it means understanding the framework well enough to make structurally intelligent decisions about holding periods, loss realisation, and account structure without sacrificing edge.
1. Short-Term vs Long-Term Capital Gains
US tax law divides capital gains into two categories based on holding period. Short-term capital gains arise from assets held for one year or less; they are taxed as ordinary income at marginal rates that ranged from 10% to 37% in 2026. Long-term capital gains arise from assets held for more than one year; they are taxed at preferential rates of 0%, 15%, or 20% depending on taxable income, with a 3.8% net investment income tax applicable to high earners. For a trader in the 37% ordinary income bracket, the difference between short-term and long-term treatment on the same gain is 17 percentage points.
The active trading implication: for positions that are profitable and have been held for 10–11 months, there is a mathematically significant incentive to hold for the additional 1–2 months required to qualify for long-term treatment, provided the fundamental thesis and technical structure remain intact. The holding-period decision should never be made purely on tax grounds if it requires holding through a structurally broken thesis or elevated technical risk. A 15% tax saving on a 20% gain (+3%) does not justify holding through a potential 20% reversal (-20%). The trading strategy from the trading plan takes precedence; tax optimisation occurs within the strategy’s constraints, not instead of them.
2. The Wash Sale Rule: The Most Dangerous Tax Trap for Active Traders
The wash sale rule (IRC Section 1091) disallows a tax deduction for a loss on a security sale if the taxpayer purchases the same or substantially identical security within 30 days before or after the sale date — a total 61-day window. The disallowed loss is added to the cost basis of the replacement security rather than being eliminated; it defers the loss recognition rather than permanently denying it, but the timing mismatch can create unexpected tax consequences.
Practical examples of wash sale triggers:
- Selling XYZ at a loss on November 15 and repurchasing XYZ on November 20 — the loss is disallowed.
- Selling a Vanguard S&P 500 ETF at a loss and repurchasing an iShares S&P 500 ETF — likely treated as substantially identical, wash sale applies.
- Selling a stock at a loss and selling an in-the-money put on the same stock within the 30-day window — potentially triggers wash sale rules on certain option transactions.
- Selling at a loss in a taxable brokerage account and repurchasing the same security in an IRA within 30 days — wash sale applies and the loss is permanently lost, not deferred.
The IRA wash sale trap deserves specific attention: it is the most severe variant because the disallowed loss does not adjust the IRA’s cost basis (IRAs have no cost basis tracking in the traditional sense). A taxpayer who sells a stock at a $3,000 loss in a taxable account and purchases it within 30 days in an IRA has permanently forfeited the $3,000 loss deduction. Active traders who maintain multiple account types must track wash sales across all accounts simultaneously.
3. Cost Basis Methods and Their Tax Impact
When a trader has accumulated multiple purchases of the same security at different prices, the cost basis method determines which shares are considered sold when a partial position is liquidated. The method choice can significantly affect the realised gain or loss in any given tax year.
The four primary cost basis methods allowed by the IRS for equity securities:
- FIFO (First In, First Out) — IRS default — Assumes the shares purchased first are sold first. In a rising stock, this produces the largest gains and highest tax bill (oldest shares have lowest cost basis). In a declining stock, this produces the smallest losses.
- LIFO (Last In, First Out) — Assumes the most recently purchased shares are sold first. In a rising stock, this minimises gains by selling the highest-cost shares first. Not allowed for mutual funds; permitted for individual stock lots at most brokers.
- Average Cost — Uses the average cost of all shares held. Simplest to track; permitted for mutual funds; increasingly available for stock lots at major brokers. Eliminates lot-level optimisation but reduces record-keeping complexity.
- Specific Identification (Spec ID) — Allows the taxpayer to designate exactly which lots are being sold, maximising tax flexibility. Requires advance designation before sale and adequate records. Enables optimal after-tax result in each sale by selecting lots that produce the most favourable tax outcome (e.g., selecting short-term lots to harvest losses, or long-term lots to minimise rates on gains).
Specific Identification provides maximum flexibility but requires rigorous lot-level record keeping. Brokers are required to track and report cost basis information to the IRS for “covered” securities (shares purchased after 2011 for most equities), but taxpayers who manage multiple accounts or transfer securities between brokers must maintain independent records to ensure accurate basis tracking.
4. Tax-Loss Harvesting
Tax-loss harvesting is the deliberate realisation of capital losses to offset capital gains in the same tax year, reducing the current-year tax bill. The mechanics: sell a position that has declined below its cost basis to realise the loss, then either stay out of the position for 31 days (to avoid wash sale) or replace it with a similar but not substantially identical security to maintain equivalent market exposure.
Worked example. You have $15,000 in short-term capital gains from successful trades in the first nine months of the year. You also hold Position X with a $7,000 unrealised loss and a deteriorating thesis. Selling Position X realises $7,000 in short-term losses that offset $7,000 of your short-term gains, reducing your taxable short-term gain from $15,000 to $8,000. At a 35% marginal rate, this saves approximately $2,450 in tax. The decision to sell Position X should be driven first by the trading thesis (is it worth holding?), with the tax benefit as a secondary reinforcer when the position is marginal. Tax-loss harvesting should not drive the decision to hold a position that should be exited based on the trading plan.
Capital losses must be applied to capital gains of the same character first: short-term losses offset short-term gains; long-term losses offset long-term gains. Excess losses can offset gains of the other character. Any remaining net capital loss can offset up to $3,000 of ordinary income per year, with the excess carried forward indefinitely. The carryforward nature of losses makes them valuable even in years where they exceed current gains.
5. Record Keeping Requirements
The IRS requires taxpayers to maintain records sufficient to support all items on their tax return. For active traders, this means preserving: trade confirmations (buy and sell), broker statements, Form 1099-B reports, and the trading journal that supports the calculation of cost basis, holding periods, and gain/loss characterisation. The statute of limitations for IRS audit is generally three years from the filing date, but extends to six years if the understatement of income exceeds 25% of gross income. Tax records should be retained for a minimum of seven years.
Broker Form 1099-B reports are the primary tax reporting document for securities transactions. Review the 1099-B carefully each year: brokers are not required to report all cost basis correctly (especially for pre-2011 “uncovered” shares, securities transferred from other brokers, or corporate actions that adjust basis), and errors are common. Maintaining an independent trading journal from Course 39 provides the independent record needed to identify and correct 1099-B errors before filing.
For traders with substantial activity, specialised tax software (such as TradeLog, GainsKeeper, or broker-provided tools from Interactive Brokers or Fidelity) automates wash sale identification and cost basis tracking across multiple accounts. Manual tracking is error-prone at scale; the cost of these tools is substantially less than the cost of a tax error or audit arising from basis miscalculation.
Key Takeaways
| Rule | Practical implication |
|---|---|
| Short vs long-term | 17pp rate difference at top bracket. Hold profitable positions past 1 year if thesis remains valid. |
| Wash sale rule | 61-day window. Applies across all accounts including IRAs. IRA repurchase permanently loses the loss. |
| Cost basis method | Specific ID maximises flexibility. Elect it at the broker before the first sale; maintain independent records. |
| Tax-loss harvesting | Realise losses to offset gains; replace with non-substantially-identical exposure. Trading thesis drives first. |
| Record keeping | 7-year retention minimum. Independent journal supplements (and corrects) broker 1099-B. |
| Professional advice | Tax law is complex and individual. CPA or tax attorney consultation is mandatory for material trading activity. |