Tax-Loss Harvesting: How It Works in a Financial Plan
Tax-loss harvesting is a portfolio management technique that uses realized investment losses to offset taxable capital gains, reducing a taxpayer's net capital gain liability in a given tax year. The strategy operates within the capital gains tax framework established by the Internal Revenue Code (IRC) and is subject to specific limitations, including the wash-sale rule under IRC § 1091. It sits at the intersection of tax planning in financial plans and investment management, making it a relevant consideration across a broad range of financial planning engagements.
Definition and scope
Tax-loss harvesting is the deliberate sale of a security that has declined below its cost basis for the purpose of recognizing a capital loss that can be applied against capital gains or, within statutory limits, ordinary income. The technique does not eliminate tax liability permanently — it defers it by resetting the cost basis of a replacement position lower than the original holding.
The Internal Revenue Service (IRS) governs capital loss recognition and application through IRC § 1211 and IRC § 1212. Under these provisions, individuals may offset capital gains dollar-for-dollar with capital losses. If losses exceed gains in a tax year, up to $3,000 of net capital loss may be deducted against ordinary income annually (per IRS Publication 550), with any remaining loss carried forward to future tax years indefinitely.
The scope of tax-loss harvesting extends to taxable brokerage accounts. Tax-advantaged accounts — including 401(k) plans, IRAs, and 529 plans — do not generate taxable capital gains events, rendering the strategy inapplicable within those wrappers. The technique is most relevant in the context of capital gains tax planning for investors with meaningful taxable portfolio holdings.
How it works
The mechanical process of tax-loss harvesting involves four discrete steps:
-
Identify unrealized losses. The investor or adviser reviews the taxable portfolio for positions trading below their adjusted cost basis. The cost basis method (FIFO, specific identification, or average cost) affects which lots are deemed sold and must be elected consistently per IRS cost-basis reporting rules under IRC § 1012.
-
Execute the sale. The losing position is sold, converting the unrealized loss into a realized capital loss recorded on IRS Form 8949 and Schedule D of Form 1040.
-
Reinvest proceeds. To maintain portfolio exposure, proceeds are reinvested in a comparable but not substantially identical security. This step is critical to preserving the investment strategy while avoiding the wash-sale rule.
-
Apply the loss. Realized losses are netted against realized gains on Schedule D. Short-term losses offset short-term gains first; long-term losses offset long-term gains first. After same-category netting, cross-category offsets apply.
The wash-sale rule under IRC § 1091 disallows the recognized loss if the taxpayer purchases a "substantially identical" security within 30 days before or after the sale — a 61-day window in total. The disallowed loss is added to the cost basis of the replacement security, deferring rather than permanently eliminating the tax benefit.
Common scenarios
Equity portfolio rebalancing. When a planned rebalance requires reducing an equity position, a concurrent tax-loss harvest in underperforming holdings within the same asset class can offset gains triggered by the rebalance. For example, selling a losing position in a domestic large-cap ETF and replacing it with a different large-cap ETF from a separate fund family may avoid wash-sale treatment, depending on the specific securities involved.
Year-end gain offset. Investors who have realized capital gains from asset sales — including real estate, business interests, or fund distributions — may harvest losses in the taxable portfolio before December 31 to neutralize part or all of the gain. Mutual fund capital gain distributions, which are common in the fourth quarter, create a predictable annual harvesting opportunity.
Concentrated position management. High-net-worth investors managing financial planning for high-net-worth situations may use harvested losses to partially unwind concentrated equity positions without realizing the full tax cost, spreading gain recognition across multiple years.
Loss carryforward banking. In years with no current-year gains, realized losses still have value. The $3,000 ordinary income deduction applies, and excess losses carry forward. A substantial carryforward balance can shelter future gains from an anticipated liquidity event, such as the sale of a business or property.
Decision boundaries
Not all market declines warrant harvesting. The key constraints and tradeoffs that shape professional judgment in this area include:
Short-term vs. long-term classification. Losses on positions held 12 months or fewer are short-term and offset short-term gains taxed at ordinary income rates (up to 37% for the highest bracket under IRC § 1(j)). Losses on positions held longer than 12 months are long-term. Short-term losses harvested to offset short-term gains produce a larger absolute tax benefit than long-term losses offsetting long-term gains taxed at preferential rates of 0%, 15%, or 20% (IRS Revenue Procedure 2023-34 provides current bracket thresholds).
Transaction costs and tracking complexity. Harvesting generates additional transaction costs, may complicate cost-basis tracking across tax lots, and requires discipline in replacement security selection to avoid inadvertent wash-sale violations — including through spousal accounts or IRAs holding substantially identical securities.
Net Investment Income Tax exposure. Taxpayers subject to the 3.8% Net Investment Income Tax under IRC § 1411 — generally those with modified adjusted gross income exceeding $200,000 (single) or $250,000 (married filing jointly) — receive additional marginal benefit from harvesting, as capital gains reduction reduces NIIT exposure.
State tax interaction. State income tax treatment of capital losses varies. California, for example, conforms to the federal wash-sale rule but does not allow the $3,000 ordinary income deduction, requiring state-level analysis separate from the federal calculation.
The regulatory context for financial planning in which tax-loss harvesting is deployed matters as well. Registered Investment Advisers (RIAs) operating under the Investment Advisers Act of 1940 have a fiduciary duty when implementing harvesting strategies for clients, meaning the technique must serve the client's documented financial objectives rather than generating transaction activity. The Financial Industry Regulatory Authority (FINRA) and the SEC both maintain guidance on suitability and fiduciary standards applicable to tax-motivated portfolio transactions.
The full landscape of financial planning services, including tax planning, investment management, and estate coordination, is described across the reference resources at Financial Planning Authority.
References
- Internal Revenue Code § 1091 — Wash Sales (Cornell LII)
- Internal Revenue Code § 1211 — Limitation on Capital Losses (Cornell LII)
- Internal Revenue Code § 1212 — Capital Loss Carrybacks and Carryovers (Cornell LII)
- Internal Revenue Code § 1012 — Basis of Property — Cost (Cornell LII)
- Internal Revenue Code § 1411 — Net Investment Income Tax (Cornell LII)
- IRS Publication 550 — Investment Income and Expenses
- IRS Form 8949 and Schedule D Instructions
- IRS Revenue Procedure 2023-34 — Inflation-Adjusted Tax Tables
- SEC — Investment Advisers Act of 1940
- FINRA — Investor Education and Regulatory Guidance