Tax-loss harvesting can turn an investment loss into a potential tax-planning tool without changing your long-term portfolio plan. This guide explains how realized and unrealized losses differ, how to estimate a harvest, what to check for stocks, ETFs, options, and crypto, and how to use a repeatable review checklist. Tax rules vary by jurisdiction and can change, so treat the examples as planning illustrations rather than personal tax advice.
Overview
Tax-loss harvesting generally means selling an investment whose market value is below its tax basis, realizing the loss for tax purposes, and deciding whether to reinvest the proceeds. The loss may help offset realized capital gains, subject to the rules that apply to your tax residence, account type, asset, and filing situation.
An unrealized loss exists only on paper. If you bought shares for $10,000 and they are now worth $7,500, you have an unrealized loss of $2,500. It usually becomes a realized loss only after you sell or otherwise dispose of the position. The relevant calculation is based on adjusted cost basis, not simply the original purchase price. Commissions, corporate actions, reinvested distributions, option premiums, and other adjustments can affect that basis.
Harvesting is not automatically beneficial. Selling can create trading costs, remove exposure to an asset that may recover, trigger an unwanted holding-period change, or produce a tax result that is less valuable than expected. The decision should compare the potential tax benefit with the cost of selling, the value of staying invested, and the risk that a replacement position does not behave similarly.
For a broader portfolio process, pair this review with a position-sizing framework such as risk-based position sizing for stock trades. Tax planning should support a portfolio plan, not override it.
How to estimate
Start with four separate figures:
- Adjusted basis: what the tax records say you invested after applicable adjustments.
- Net sale proceeds: the amount received after transaction costs and adjustments.
- Realized gain or loss: net proceeds minus adjusted basis.
- Potential tax effect: the estimated tax reduction or deferral after applying the loss to the gains and income categories allowed in your jurisdiction.
A simplified estimate is:
Realized loss = adjusted basis − net sale proceeds
For example, a position with an adjusted basis of $12,000 sold for net proceeds of $9,000 produces a $3,000 realized loss. That is not the same as a $3,000 tax refund. The possible value depends on whether you have eligible gains, how different categories of gains and losses are netted, applicable limits, your marginal tax rate, and whether another rule disallows or defers the loss.
Track short-term and long-term transactions separately when your jurisdiction distinguishes between them. Selling before or after a relevant holding-period threshold can change the classification. Do not assume that an automated broker report has resolved every issue, especially when securities are held at multiple firms or an asset has moved between accounts.
Before selling, also check for a wash-sale or substantially identical replacement rule. In the United States, the wash-sale framework can restrict recognition of a loss when substantially identical securities are acquired within the relevant window around the sale. Application can involve purchases in another account, automatic dividend reinvestment, an individual retirement account, options, or related transactions. Crypto treatment may differ from stock treatment and has been subject to changing guidance and interpretation. Record the transaction and obtain current professional guidance when the result is material or unclear.
Inputs and assumptions
Use one row for every lot or transaction rather than relying only on a total account balance. A practical worksheet should include:
- Asset name, ticker or digital-asset identifier, and account or exchange.
- Purchase or acquisition date, quantity, price, and adjusted basis.
- Sale date, quantity sold, gross proceeds, fees, and net proceeds.
- Realized gain or loss and its short-term or long-term classification, where relevant.
- Any replacement purchase, including date, quantity, price, account, and related asset.
- Open questions about transfers, gifts, inherited assets, corporate actions, options, staking, lending, or missing records.
The following comparison highlights why the same checklist cannot be applied mechanically to every asset:
| Asset | Key calculation | Review points |
|---|---|---|
| Individual stocks | Net sale proceeds minus adjusted basis for each lot | Lot selection, holding period, dividend reinvestment, and replacement purchases |
| ETFs and mutual funds | Basis and proceeds for the shares sold | Automatic reinvestment, multiple lots, fund changes, and substantially identical replacements |
| Options | Premium, closing or exercise transaction, and related basis | Assignment, exercise, expiration, spread legs, and transactions linked to the underlying security |
| Crypto | Proceeds less asset basis, with fees and transaction history documented | Wallet transfers, swaps, token events, missing basis, and jurisdiction-specific reporting rules |
Replacement assets deserve special care. A replacement should fit your intended allocation and risk level, not merely be chosen to imitate a ticker. Two funds can track different indexes, hold different concentrations, or have different costs. A temporary substitute may also create tracking error or leave you outside your investment policy.
Worked examples
Example 1: Stock position
You bought 100 shares for $80 each, giving the position an $8,000 basis. You sell the shares for $62 each and pay $20 in transaction costs. Net proceeds are $6,180, so the estimated realized loss is $1,820. You would then review other realized gains, the holding period, purchases in all related accounts, and whether a replacement trade could create a wash-sale issue. The $1,820 is a planning input, not a guaranteed tax saving.
Example 2: ETF lots
You own two lots of the same ETF: 50 shares with a $4,000 basis and 50 shares with a $5,500 basis. If you sell only the higher-basis lot for $4,700, the estimated loss is $800 before costs. If you sell both lots for $9,000, the combined result is a $500 loss. The choice affects exposure, future basis, and which holding periods remain. Confirm that the selected lot matches the broker instruction and tax records.
Example 3: Crypto transaction
You acquire a digital asset for $3,200, including documented transaction costs, and later dispose of it for net proceeds of $2,450. The estimated realized loss is $750. If the asset was swapped rather than sold for cash, do not assume the event is invisible for tax purposes. Preserve the wallet addresses, transaction IDs, dates, quantities, fees, and basis source. A tax report that omits wallet activity may be incomplete.
These examples omit tax rates, deductions, limits, and jurisdiction-specific rules intentionally. To estimate a possible tax effect, first calculate the loss accurately, then model it against the categories of gains and income permitted under the rules that apply to you. Consider asking a tax professional to review large losses, complex options, crypto activity, or transactions spanning several accounts.
When to recalculate
Revisit the worksheet after selling an investment at a loss, before a planned year-end review, after a major portfolio change, and whenever you connect a new broker, exchange, wallet, or tax-reporting system. A quarterly check can identify missing basis or replacement trades while records are still easy to retrieve.
Use this action checklist:
- Export transaction histories from every broker, exchange, wallet, and relevant account.
- Reconcile purchase dates, quantities, adjusted basis, proceeds, fees, and realized gains or losses.
- Separate short-term and long-term transactions where required.
- Search all accounts for replacement purchases around each loss sale.
- Review options, automatic reinvestments, transfers, swaps, staking, and corporate actions separately.
- Record the intended replacement asset, allocation, holding period, and reason for the trade.
- List unresolved tax questions and confirm them before filing.
- Update the worksheet when tax authorities, broker forms, reporting terminology, or applicable thresholds change.
Tax-loss harvesting works best as a documented portfolio review rather than a last-minute trade. Recalculate whenever the inputs change, and avoid selling solely for a tax result if the transaction conflicts with your risk tolerance, investment horizon, or allocation plan.