Tax-loss harvesting can reduce the tax impact of investment gains, but only when the sale, replacement purchase, account type, and tax reporting are handled carefully. This guide explains how to harvest investment losses, how the wash-sale rule works, what limits may apply, and how to use a repeatable checklist before year-end or during a market downturn.
Overview
Tax-loss harvesting is the process of selling an investment that is worth less than its tax basis and using the realized loss to offset eligible capital gains. The strategy is generally relevant in taxable brokerage accounts, not tax-deferred retirement accounts such as traditional 401(k)s and IRAs, where trades usually do not create currently reportable capital gains or losses.
A realized loss is not the same as an unrealized loss. An investment that has declined while you continue to hold it has an unrealized loss. The loss generally becomes realized only after you sell. Selling may create a tax benefit, but it also changes your portfolio. The decision should therefore begin with your investment plan, not with the tax result alone.
Capital gains and losses are typically classified as short-term or long-term based on the holding period. Short-term losses generally apply first against short-term gains, and long-term losses generally apply first against long-term gains. Tax rules may allow losses of one type to offset gains of the other after the applicable netting process. If total capital losses exceed eligible gains, a limited amount may be usable against ordinary income in a given tax year, with unused losses generally carried forward subject to applicable rules. Because annual limits and tax treatment can change, verify the current rules before filing or acting.
| Decision point | What to review |
|---|---|
| Account | Taxable brokerage accounts are the usual setting. Retirement-account transactions follow different rules and generally do not provide the same loss benefit. |
| Gain or loss period | Identify whether each position is short-term or long-term and calculate the net result rather than judging one trade in isolation. |
| Replacement investment | Choose an investment with similar portfolio exposure that is not treated as substantially identical under the wash-sale rule. |
| Deduction limit | Compare total realized losses with realized gains and review the current limit for any net loss applied against ordinary income. |
| Carryforward | Track losses that cannot be used in the current year and confirm how they will be reported on future returns. |
Tax-loss harvesting is not a guarantee of a tax saving. A sale may reduce one tax bill while creating future gains, transaction costs, or a period of unwanted portfolio exposure. Consider the tax effect alongside allocation, risk, fees, and the reason you own the investment.
Checklist by scenario
You have realized or expected capital gains
- List the taxable-account positions with unrealized losses.
- Estimate the cost basis, sale proceeds, holding period, and expected realized loss for each position.
- Identify realized gains by short-term and long-term category.
- Decide whether selling the losing position supports your target allocation and investment plan.
- Select a replacement that maintains appropriate exposure without being substantially identical.
- Record the trade date, quantity, proceeds, cost basis, replacement security, and rationale.
One practical approach is to replace a single security with a broadly similar fund or another diversified holding, but similarity must be evaluated carefully. A replacement should fit your risk and allocation objectives; tax efficiency alone is not a sufficient reason to buy it.
You want to harvest a loss but remain invested
Before selling, map the exposure you need to preserve. A replacement could differ by fund provider, index methodology, asset mix, or issuer, depending on the portfolio role. Do not assume that two securities are safe replacements merely because they have different names, or that two funds are automatically acceptable because their tickers differ. The wash-sale standard focuses on whether investments are substantially identical, and the facts can matter.
You have a net loss and limited gains
Calculate whether the sale would create more losses than you can use in the current year. Excess losses may be carried forward, but they are not a reason to sell an unsuitable investment. Keep a year-by-year record of carryforwards and use the applicable tax forms or software to confirm that they transfer correctly.
You are near year-end
- Review all taxable accounts, including accounts held at different brokers.
- Check pending orders, automatic investments, dividend reinvestment, and recurring purchases.
- Allow time for trade settlement, broker processing, and record collection.
- Review the wash-sale window before and after the sale.
- Keep enough time to correct an unintended purchase or consult a tax professional.
What to double-check
Wash-sale timing
The wash-sale rule generally addresses a purchase of the same or a substantially identical investment within the period beginning 30 days before and ending 30 days after the sale. The rule can disallow or defer the loss rather than eliminating the economic loss permanently. A replacement purchase may cause the disallowed amount to be added to the basis of the replacement position, depending on the circumstances.
Review the entire window, not just the day of the sale. The relevant transaction may be in another taxable account, a spouse’s account, or an automatic reinvestment program. Retirement-account purchases create additional complexity and should not be treated as interchangeable with taxable-account transactions.
Broker records versus your complete records
Brokerage tax forms may not reflect every transaction that matters for your tax position, particularly when accounts are held at multiple firms or when related-account activity is involved. Compare trade confirmations, year-end statements, dividend records, and cost-basis information. A reported basis can also require review after transfers, corporate actions, inherited assets, or partial sales.
Tax cost and investment cost
Estimate the value of the tax benefit using your own tax situation, then compare it with spreads, commissions if applicable, fund expenses, and the risk of being out of the market. A tax loss may be less useful if it causes a large allocation change or if the replacement has materially different risk.
Reporting and documentation
Retain purchase and sale dates, quantities, proceeds, basis, holding period, replacement details, and any wash-sale adjustment. Review the capital-gains reporting section of your return and investigate differences between your records and broker forms. When the situation involves multiple accounts, substantial gains, or unclear basis, professional tax advice may be appropriate.
Common mistakes
- Buying back too soon: Purchasing the same or substantially identical investment inside the wash-sale window can affect the intended loss.
- Forgetting automatic activity: Dividend reinvestment and recurring purchases can create an unintended replacement transaction.
- Harvesting without a replacement plan: Selling a holding without deciding how to maintain the portfolio’s intended exposure can turn tax planning into an allocation error.
- Ignoring holding periods: Short-term and long-term gains and losses may receive different treatment during the netting process.
- Assuming the broker has everything: One brokerage statement may not capture transactions in other accounts or accounts connected to a spouse.
- Using outdated limits: Annual deduction limits, forms, and interpretations can change. Confirm the rules for the tax year being reported.
- Confusing tax deferral with tax elimination: A disallowed or deferred loss, or a future sale after a basis adjustment, may shift when tax is recognized rather than remove it.
When to revisit
Use this checklist at least once during annual tax planning and again before the final trading sessions of the tax year. Revisit it after a broad market decline, a major portfolio rebalance, a large stock sale, or a change in household tax circumstances. It is also worth checking after opening a new brokerage account, changing automatic investment instructions, transferring assets, or receiving an inherited position.
Before acting, complete these five final steps:
- Export or gather current holdings, cost basis, and transaction history from every relevant account.
- Separate unrealized losses from realized gains and classify each by holding period.
- Scan the wash-sale window for prior and planned purchases, including automatic reinvestments.
- Confirm that the replacement investment fits your allocation and is not merely a tax-driven substitute.
- Save the records and revisit the result when tax documents arrive.
This article is general educational information, not individualized tax or investment advice. Tax treatment depends on the facts and the rules in effect for the applicable year. Confirm current guidance and consider consulting a qualified professional before executing a complex tax-loss harvesting strategy.