Tax-Loss Harvesting Guide: How to Offset Capital Gains Without Triggering Wash-Sale Problems
tax-loss harvestingcapital gainswash sale ruletax planningtaxable investingportfolio management

Tax-Loss Harvesting Guide: How to Offset Capital Gains Without Triggering Wash-Sale Problems

MMarket Pulse Editorial Team
2026-11-09
7 min read

Learn how tax-loss harvesting works, how to monitor wash-sale windows, and how to document losses, replacements, and carryovers.

Tax-loss harvesting can help reduce the tax impact of investment gains, but a rushed sale can create a wash-sale problem or leave your portfolio unintentionally out of balance. This guide explains how tax-loss harvesting works, what to monitor, how to choose a replacement investment, and when to revisit your records before filing.

Overview

Tax-loss harvesting is the process of selling an investment in a taxable account for less than its tax basis and using the realized loss to offset eligible capital gains. The investment may then be replaced with another holding that keeps your portfolio near its intended allocation without being considered substantially identical under the wash-sale rule.

The strategy applies primarily to taxable brokerage accounts. Selling an investment at a loss inside a traditional 401(k), traditional IRA, Roth IRA, or similar tax-advantaged account generally does not create the same deductible capital-loss opportunity because those accounts have separate tax rules. Before acting, confirm the account type, the investment's cost basis, and your tax situation.

A loss is not normally available for tax purposes merely because an account statement shows a lower market value. It usually becomes a realized loss when the position is sold. The result depends on the purchase lots, fees, distributions, prior adjustments, and whether a wash-sale rule applies.

Tax-loss harvesting is not automatically beneficial. Taxes are only one part of the decision. A sale can change your asset allocation, create trading costs, remove exposure to a recovery, or produce a replacement that does not behave as expected. The objective is to make a tax-aware portfolio decision, not to sell solely because a holding is down.

What to track

A simple tracking sheet can prevent many year-end errors. Review these variables for each taxable-account holding:

  • Unrealized gain or loss: Compare the current value with the adjusted cost basis, not just the original purchase price.
  • Tax lot and acquisition date: Record the date and number of shares for each lot. Different lots can have different gains, losses, and holding periods.
  • Short- or long-term classification: The holding period can affect how a realized gain or loss is matched and reported. Confirm the classification with your broker and tax records.
  • Recent and planned purchases: Review purchases in the 30 days before and after a sale. Include automatic investing, dividend reinvestment, and recurring mutual-fund purchases.
  • Related accounts: Check taxable accounts and, where relevant, accounts belonging to a spouse. A purchase in another account can require additional review under wash-sale rules.
  • Replacement security: Document what you plan to buy instead, why it fits the portfolio, and how long you expect to hold it.
  • Estimated realized totals: Keep a running estimate of short-term gains, long-term gains, and realized losses across all taxable accounts.

The wash-sale rule is the central risk. In general terms, a loss may be disallowed when the taxpayer buys the same or a substantially identical security during the window beginning 30 days before and ending 30 days after the sale. The disallowed loss is often added to the basis of the replacement shares, but the timing and reporting can become complicated. Broker software may not identify every cross-account or cross-institution transaction.

Replacement choices require judgment. An investor selling one broad-market fund might use a different fund with a similar purpose but a different index, structure, or holdings. A sector fund could be replaced with a broader fund, or one company position could be replaced with a diversified alternative. Similar exposure does not necessarily mean substantially identical, but no general example can guarantee a particular tax result.

Cadence and checkpoints

Tax-loss harvesting works best as a recurring review rather than a single December trade. Use this workflow monthly or quarterly, with a more detailed review before the end of the tax year.

  1. Scan taxable accounts: Export current holdings, cost basis, unrealized gains and losses, and recent transactions.
  2. Separate candidate lots: Identify losses that are large enough to justify review after considering commissions, bid-ask spreads, taxes, and the importance of the position to your plan.
  3. Estimate the tax picture: Compare potential losses with realized short- and long-term gains. Also consider income, other capital transactions, and any unused capital loss carryover.
  4. Check the wash-sale window: Search for purchases during the 30 days before the planned sale and schedule a review of purchases during the 30 days after it. Pause automatic reinvestment if appropriate and permitted by your account settings.
  5. Choose a replacement: Select a holding that supports your target allocation without assuming that a similar name or ticker is automatically safe.
  6. Execute and document: Save the trade confirmation, lot details, sale date, proceeds, basis, replacement decision, and any related account activity.
  7. Recheck after the trade: Confirm that the broker's records reflect the intended lot sale and investigate any wash-sale adjustment shown on the statement.

Remember that trade date and settlement date are not interchangeable. Tax reporting and year-end deadlines can depend on the transaction date, while settlement affects when cash and securities move. Confirm the relevant deadline with your broker and consult current tax instructions rather than relying on an old calendar or an online estimate.

ItemWhy it mattersWhat to record
Taxable brokerage accountUsually where realized capital gains and losses are reportedAccount, security, lot, basis, proceeds, and dates
Replacement investmentMaintains intended exposure while the original position is soldFund or security, allocation role, purchase date, and rationale
Short- and long-term resultsHelps organize gains and losses for tax reportingHolding period and realized amount
Capital loss carryoverUnused losses may be available in a later tax year, subject to applicable rulesPrior return, carryover amount, and current-year use
Tax documentsBroker and tax forms support the final returnYear-end statement, Form 1099-B, and applicable return schedules

How to interpret changes

A larger unrealized loss does not always make a better harvesting candidate. Ask whether the position still belongs in the portfolio, whether selling would disrupt diversification, and whether the replacement gives you an acceptable level of market exposure. If the answer is no, keeping the investment may be more consistent with the long-term plan.

When realized losses exceed realized gains, the remaining amount may be used against other income or carried forward under applicable federal and state rules. Limits, ordering rules, filing status, and state treatment can change the result. Verify the current tax-year instructions and keep a copy of the return showing any carryover.

Watch for adjustments that are easy to miss. Dividend reinvestment can create a small replacement purchase. Mutual funds can distribute capital gains even when the fund's share price has fallen. Transfers between brokers may produce incomplete basis records. Corporate actions, mergers, and inherited shares can also alter basis or holding period.

Crypto transactions require separate care. The tax treatment of digital assets, the application of loss limitations, reporting requirements, and transactions across platforms can differ from ordinary stock or fund activity. Do not assume that a stock-market wash-sale example answers a crypto question. Keep complete wallet, exchange, transfer, and transaction records and seek qualified tax advice when the situation is complex.

When to revisit

Revisit your tax-loss harvesting plan after a broad market decline, a sharp fall in an individual holding, a portfolio rebalance, or a change in your income or filing situation. A monthly or quarterly review is usually enough for routine monitoring; increase the frequency only if you trade actively or have many accounts and automatic purchases.

Before year-end, complete a full account inventory and allow time to verify trade deadlines, replacement purchases, and wash-sale windows. After year-end, compare broker forms with your own transaction log. During tax preparation, confirm realized gains and losses, basis adjustments, and any carryover from prior returns. If a broker reports an unexpected adjustment, resolve it before filing rather than assuming the form is complete.

Use this final checklist:

  • List every taxable account and export current transactions.
  • Review each loss by tax lot, holding period, and adjusted basis.
  • Match potential losses against realized gains and existing carryovers.
  • Search all relevant accounts for purchases inside the wash-sale window.
  • Choose a replacement based on portfolio purpose, not just price movement.
  • Record trade dates, settlement details, confirmations, and replacement purchases.
  • Check current federal and state instructions before filing.
  • Ask a tax professional about multiple accounts, options, mutual funds, digital assets, inherited holdings, or uncertain substantially identical positions.

For broader portfolio decisions, pair this review with an allocation check and a written investment plan. Tax-loss harvesting should support that plan, not replace it. Rules and forms can change, so update this workflow each tax year and whenever official guidance or your personal circumstances change.

Related Topics

#tax-loss harvesting#capital gains#wash sale rule#tax planning#taxable investing#portfolio management
M

Market Pulse Editorial Team

Personal Finance Editors

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.