Course 40: Tax-Loss Harvesting & Trade Record Keeping
Advanced Track · 26 min read
Every serious trader eventually confronts a truth that separates disciplined professionals from casual participants: the after-tax return is the only return that actually matters. A trader who generates a 40% gross gain but manages tax exposure carelessly can retain less net capital than one who earns 25% and applies rigorous tax-minimisation strategy. In cryptocurrency markets, where short-term gains are taxed at ordinary income rates, where assets can swing from significant gains to significant losses within a single calendar year, and where the blockchain creates an immutable audit trail of every transaction, the opportunity to manage tax outcomes proactively is substantial. Tax-loss harvesting — the deliberate realisation of capital losses to offset capital gains — is the central technique. Executed with precision, it converts unrealised portfolio losses from a source of discouragement into a productive financial instrument. This course covers the mechanics, the legal framework, cost basis methodology, and the professional record-keeping infrastructure that makes effective harvesting possible.
The Mechanics of Capital Gains in Crypto
In most major jurisdictions, cryptocurrency is treated as a capital asset for tax purposes. When you dispose of a cryptocurrency — by selling it, trading it for another token, spending it, or transferring it in certain ways — you realise either a capital gain or a capital loss equal to the difference between the disposal proceeds and the cost basis of the asset disposed. If the asset was held for more than one year before disposal, the gain qualifies as a long-term capital gain, typically taxed at a preferential rate. If held for one year or less, the gain is short-term and taxed as ordinary income — meaning your marginal income tax rate applies, which for high earners in the United States can reach 37%, not including state taxes.
The practical implication is stark: two identical gross gains in crypto can produce materially different after-tax results depending entirely on whether the underlying positions were held for more or less than twelve months. A trader who holds a position for thirteen months rather than eleven months on a $50,000 gain might save $8,000 to $12,000 in US federal taxes at higher income brackets. This holding-period awareness is the first layer of tax strategy. Tax-loss harvesting is the second: it generates losses in the current tax year that can be used to offset gains, reducing the taxable amount entirely without requiring you to exit winning positions permanently.
What Tax-Loss Harvesting Actually Is
Tax-loss harvesting is the practice of deliberately selling an asset that is currently trading below its cost basis in order to realise a capital loss. That realised loss then offsets capital gains elsewhere in your portfolio, reducing your taxable income. The critical nuance is that after realising the loss, you are free to repurchase the same or a similar asset — so your economic exposure to the asset class is maintained while the tax benefit is captured. In equities, the IRS wash-sale rule prohibits repurchasing the same or a substantially identical security within thirty days before or after a loss sale, negating the loss for tax purposes. As of 2026, this rule does not apply to cryptocurrency under US tax law because crypto is not classified as a security. This creates a materially more favourable environment for harvesting: you can sell Bitcoin at a loss, immediately repurchase Bitcoin at the same price, and the realised loss is still valid. You are not required to wait thirty days. This advantage is significant and should be exploited systematically.
The mechanics are straightforward. Suppose you purchased 1 BTC at $65,000 in March and the price has fallen to $52,000 in November. Selling that Bitcoin realises a $13,000 short-term capital loss. If you also have $13,000 in short-term gains from other trades during the year, the loss eliminates the tax liability on those gains entirely. If your losses exceed your gains, up to $3,000 of net capital losses can be deducted against ordinary income annually in the US, and remaining losses carry forward indefinitely to future tax years. That carry-forward is not dead money — it is a tax credit against future profitable years. For a trader who intends to continue trading for many years, building a substantial loss carry-forward in down years can provide meaningful tax shelter in subsequent bull markets.
Cost Basis Methods: FIFO, LIFO, HIFO, and Specific ID
The choice of cost basis accounting method is among the most consequential decisions a crypto trader makes, yet it is frequently treated as an afterthought. The method you select determines which tax lots are deemed sold when you dispose of an asset, directly controlling whether you realise short-term gains, long-term gains, or losses. In the US, the following methods are generally accepted for crypto:
First In, First Out (FIFO) assumes that the oldest units are sold first. If you bought BTC across several purchases and sell a portion, FIFO attributes the disposal to your earliest purchases. In a market that has trended upward over time, FIFO tends to produce the largest gains (because the earliest purchases have the lowest cost basis) and the highest tax liability. FIFO is the IRS default if no method is specified.
Last In, First Out (LIFO) assumes the most recently acquired units are sold first. In a rising market where recent purchases have higher cost bases, LIFO produces smaller short-term gains or smaller losses. LIFO can reduce tax liability in bull markets but may create complications in bear markets and is not universally accepted by all tax authorities outside the US.
Highest In, First Out (HIFO) is generally the most tax-efficient method in most market conditions. HIFO assumes that units with the highest cost basis are sold first, minimising the gain (or maximising the loss) on each disposal. For a diversified portfolio with purchases at varying prices, HIFO consistently produces the lowest taxable gain across bull and bear environments and should be the default choice for any serious trader. Note that consistent application and adequate record-keeping are required — you cannot selectively apply HIFO to some transactions and FIFO to others within the same asset.
Specific Identification (Spec ID) allows you to designate which exact tax lots are being disposed of at the time of each sale. This is the most flexible method and, combined with real-time tracking of your cost basis by lot, allows precise optimisation on each trade. You can choose to sell the lot with the highest cost basis when harvesting losses and the lot with the lowest cost basis (or longest holding period) when taking profits. The operational requirement is rigorous: you must maintain contemporaneous records identifying each lot and provide adequate confirmation of which lot was sold, typically before or at the time of settlement.
Year-End Harvesting Strategy
Effective harvesting is not a reactive scramble in late December — it is a systematic process maintained throughout the year. The professional approach involves three ongoing practices. First, maintain a real-time or near-real-time view of the unrealised gain or loss on every position, broken down by tax lot. Most professional-grade crypto tax calculators and portfolio trackers provide this. Second, define a harvesting threshold: when an unrealised loss on any position exceeds a defined percentage (commonly 10% to 15%), evaluate whether harvesting is appropriate given your overall portfolio gain position and the asset's medium-term outlook. Third, execute harvesting in batches rather than continuously, to avoid excessive transaction costs and to allow your portfolio structure to stabilise.
In the fourth quarter, particularly October through mid-December, the harvesting calculus intensifies. You now have visibility into your approximate full-year gain and loss position. If you have accumulated significant net short-term gains, the incentive to harvest losses before December 31 is strong. The procedure is: identify all positions with unrealised losses; prioritise those with the largest losses relative to their current market value; sell to realise the losses; immediately repurchase (exploiting the absence of the wash-sale rule for crypto); and document the transactions contemporaneously. The repurchase price becomes the new cost basis for the replacement position, so you have not altered your economic exposure — you have simply converted an unrealised tax liability into a realised tax benefit.
One strategic subtlety deserves particular attention: the interaction between harvested losses and the type of gains they offset matters. Capital losses first offset capital gains of the same type (short-term losses against short-term gains, long-term losses against long-term gains), and then cross-offset against the opposite type. Because short-term gains are taxed at higher rates, harvested short-term losses are more valuable than long-term losses in dollar terms per unit of gain offset. When planning harvesting activity, prioritise generating short-term losses if you have a short-term gain problem. If your primary exposure is long-term gains, long-term losses are equally valuable at the preferential rate.
Professional Record Keeping
The foundational requirement of all crypto tax strategy is comprehensive, auditable records. The IRS and tax authorities in most jurisdictions require documentation sufficient to reconstruct every disposal: the date and amount acquired, the cost basis at acquisition (including exchange fees), the date and amount disposed, and the proceeds at disposal. In crypto, where a single active trader may execute hundreds or thousands of transactions per year across multiple exchanges, DeFi protocols, and wallets, manual record keeping is not viable. The professional standard requires software automation.
The key data points to capture for each transaction are: timestamp, transaction type (buy, sell, swap, transfer, DeFi interaction), quantity, asset, exchange or protocol, price at transaction time (in your home currency), total fee paid, and the resulting cost basis of the position. For DeFi interactions — liquidity provision, staking, yield farming, governance votes that trigger taxable events — the complexity increases substantially, as some platforms generate dozens of on-chain events per strategy that may or may not constitute taxable disposals depending on jurisdiction. Maintaining a detailed trading journal that records your intent and context for each significant transaction category can provide protection in an audit by demonstrating that your tax treatment was deliberate and reasoned rather than arbitrary.
Reputable crypto tax software platforms — Koinly, CoinTracker, TaxBit, and TokenTax are the leading options as of 2026 — automate the reconciliation of transactions from exchange APIs and blockchain wallet addresses. They classify transactions, apply your chosen cost basis method, calculate gains and losses per lot, and generate tax reports in jurisdiction-specific formats. The selection of software should be based on the specific exchanges and chains you use (not all software supports all platforms), the granularity of DeFi support, and whether the software can handle the cost basis method you have selected. Validate the software's output against your own records periodically — API integrations can miss transactions during maintenance windows, and blockchain imports can encounter indexing errors that produce incorrect cost basis figures.
The Carry-Forward Advantage
Net capital losses that exceed the annual deduction limit carry forward indefinitely. For a trader who operates through significant bear markets, this creates a structural tax asset: accumulated losses from years like 2022 can shelter gains generated in the subsequent bull cycle. The key is to realise the losses — unrealised paper losses have no tax value. A systematic policy of harvesting losses during downturns, even when psychologically difficult, converts bear market pain into a meaningful future asset. Consider a trader who harvests $80,000 in net capital losses during a bear year. In a subsequent bull year where they generate $80,000 in short-term gains, those carry-forward losses eliminate the entire short-term tax liability — worth approximately $29,600 at the 37% bracket. This is real, compoundable capital that remains in the portfolio to generate further returns.
The professional perspective is to view the tax carry-forward balance as a component of portfolio value. It is not reflected in your brokerage account balance, but it has measurable present value equal to the tax savings it will generate discounted for the expected timing of those savings. Traders who manage this systematically — tracking their carry-forward position, timing large gains to absorb available carry-forwards, and replenishing the carry-forward balance through continued harvesting — operate at a material structural advantage over those who treat taxes as a post-hoc obligation.
Finally, record keeping and harvesting strategy are inseparable from the broader trading plan and performance review process. Tax outcomes should be reviewed quarterly alongside trading performance metrics. Position sizing decisions — explored in depth in the Kelly Criterion course and the ATR position sizing course — interact directly with tax lot management, since larger positions create larger tax events that require more sophisticated lot-level planning. Use the free crypto tax estimator to model tax outcomes before executing large disposals. The goal is not merely to trade well — it is to keep the maximum proportion of what you earn.
Disclaimer: This course is educational content only and does not constitute tax, legal, or financial advice. Tax laws vary significantly by jurisdiction and change frequently. Consult a qualified tax professional familiar with cryptocurrency before implementing any tax strategy.