Tax loss harvesting is one of the more talked-about year-end tax topics, and also one of the most misunderstood. The basic idea is straightforward: realize losses on investments that have declined in value, use those losses to offset capital gains elsewhere in the portfolio, and potentially reduce the year's tax liability. The mechanics in practice are nuanced. The wash sale rule, lot identification, account-level coordination, and the difference between short-term and long-term losses all affect whether a harvest actually produces the intended outcome.
This guide is for taxpayers who want to walk into a year-end conversation with their tax advisor and CPA prepared to ask the right questions, not for someone trying to execute tax loss harvesting alone. Every situation is different. The right strategy depends on your specific account structure, holding history, income, and broader tax picture. The topics below are the ones worth surfacing with a professional rather than guessing at.
Photo by www.kaboompics.com on Pexels
The Basics: Capital Gains, Losses, and Offsetting
Before getting to the nuanced topics, a few definitions help frame the conversation.
A capital gain is the profit on a sale of an investment held in a taxable account (not a tax-deferred account like a traditional IRA or 401(k), where realized gains do not produce a taxable event in the year of sale). A capital loss is the opposite: a loss on a sale of an investment that has declined in value.
The U.S. tax code (per IRS guidance on capital gains and losses) generally allows realized losses to offset realized gains, with rules around how short-term and long-term gains and losses interact. If losses exceed gains in a tax year, up to $3,000 of net loss can be applied against ordinary income, with the remainder carried forward indefinitely to future tax years.
The strategy of tax loss harvesting is to deliberately realize losses (by selling losing positions) to use those losses against gains realized elsewhere in the same year. The goal is to reduce the tax owed without changing the investor's overall market exposure.
The complexity comes from the rules and edge cases that surround this basic mechanic. The topics below are the ones worth reviewing with a tax advisor before executing any year-end harvest.
Topic 1: The Wash Sale Rule
The wash sale rule is the most-cited complication in tax loss harvesting. Per the IRS, a wash sale occurs when an investor sells a security at a loss and purchases the same or a "substantially identical" security within 30 days before or after the sale (a 61-day window total).
When a wash sale is triggered:
- The realized loss is disallowed for current-year tax purposes
- The disallowed loss is added to the cost basis of the replacement security
- The holding period of the replacement security is adjusted
Topics worth clarifying with a tax advisor:
- What counts as "substantially identical" in your specific situation? Two mutual funds tracking the same index, ETFs from different providers tracking similar benchmarks, and individual stocks all have different treatment that depends on the specific facts.
- Does the wash sale rule apply across account types in your situation? A loss in a taxable account triggered by a purchase in an IRA is a real issue that has been clarified in revenue rulings.
- Does spousal account coordination matter? Purchases in a spouse's account can trigger wash sale treatment in some circumstances.
- How does your custodian track wash sales? Most major brokerages track wash sales at the account level but not across accounts, which creates reporting gaps the taxpayer is responsible for.
The wash sale rule is the single most common reason a tax loss harvesting strategy fails to produce the expected tax benefit. Surface this topic early in any planning conversation.
Topic 2: Lot Identification and Cost Basis Methods
When you sell a portion of a holding (not the entire position), the IRS allows the taxpayer to choose which "lots" (groups of shares purchased at different times and prices) are being sold, within rules that vary by account type.
Lot identification methods include:
- FIFO (First In, First Out): sells the oldest lots first
- LIFO (Last In, First Out): sells the most recently acquired lots first
- Highest Cost First: sells lots with the highest cost basis first
- Specific Identification: explicitly designate which lots are sold
For tax loss harvesting, the choice of method significantly affects which lots are sold and therefore what losses are realized. A FIFO default might produce different losses than a specific identification approach that targets the lots with the largest unrealized losses.
Topics worth clarifying with a tax advisor:
- What is your current default cost basis method at each brokerage? Defaults vary by custodian and can be changed.
- Should you switch to specific identification for tax-sensitive accounts? This requires written election before the sale, not after.
- How are lot details tracked across account transfers? Transferred lots sometimes lose their original basis information, creating problems years later.
- For securities received through stock options, restricted stock, or inheritance, what is the correct basis?
This topic is more important than most investors realize. The default method may not produce the result that is most tax-efficient for your situation.
Topic 3: Short-Term vs Long-Term Treatment
Capital gains and losses are categorized as short-term (held one year or less) or long-term (held more than one year), and they are taxed at different rates. Short-term gains are taxed at ordinary income rates; long-term gains are taxed at preferential rates that depend on the taxpayer's income bracket.
The interaction matters for tax loss harvesting:
- Short-term losses first offset short-term gains, then long-term gains
- Long-term losses first offset long-term gains, then short-term gains
- The net result after both categories interact is then applied to ordinary income up to the $3,000 annual cap
A short-term loss has more tax value (when offset against short-term gains) than a long-term loss because short-term gains are taxed at higher rates. The strategy implications depend entirely on what gains the taxpayer has in each category.
Topics worth surfacing:
- What is your projected gain mix for the year (short-term and long-term)?
- If gains are unbalanced toward one category, what loss harvesting approach matches?
- Are there positions where waiting to cross the one-year holding period changes their tax treatment dramatically?
The answer to any of these depends on the full picture of the year's transactions. A loss that seems harvestable in isolation may be more or less valuable depending on what else has been realized.
Topic 4: Account-Level Coordination
Tax loss harvesting only applies to taxable accounts. Losses in IRAs, 401(k)s, 529s, and similar tax-advantaged accounts produce no tax benefit and no realized loss for tax purposes. Conversely, gains realized in these accounts produce no current-year tax liability (though they may affect later distributions).
For investors with assets across multiple account types, this creates coordination opportunities:
- Loss harvesting concentrated in taxable accounts where it produces real tax benefit
- Higher-turnover or tax-inefficient strategies placed in tax-advantaged accounts where wash sale rules and gains do not matter
- Asset location decisions (which holdings live in which account type) that affect how much loss harvesting is even possible
Topics worth coordinating with both your tax advisor and any wealth manager involved:
- Are taxable and tax-advantaged accounts both holding the same securities (creating potential wash sale issues)?
- Are tax-inefficient assets (bonds, REITs, actively managed funds) located in the right account type for tax efficiency?
- Does your account structure make loss harvesting easier or harder than it could be?
The asset location question is often more important to long-term after-tax returns than the harvest itself, though loss harvesting gets more attention because it produces visible year-end tax savings.
Photo by Leeloo The First on Pexels
Topic 5: The Charitable Giving Alternative
For taxpayers who plan to make charitable contributions, donating appreciated securities directly to charity (rather than selling and donating cash) is sometimes more tax-efficient than tax loss harvesting paired with cash giving.
The mechanics differ:
- Donating appreciated long-term securities avoids capital gains on the appreciation entirely (the recipient charity sells without tax consequence)
- The donor typically gets a charitable deduction for the full fair market value of the donation
- Combined, the tax benefit can exceed what loss harvesting would produce on the same dollar amount
Topics worth reviewing with a tax advisor:
- What is the breakeven between loss harvesting and charitable giving of appreciated securities in your situation?
- For donations large enough, does a donor-advised fund or private foundation structure change the analysis?
- How do donation limits (typically 30 percent of AGI for appreciated securities, 60 percent for cash) constrain timing?
This is a topic where the tax advisor's view and a financial advisor's view both matter, and the right answer depends on the full year's planned charitable activity, not just the harvest decision.
Topic 6: Replacement Security Selection
After harvesting a loss, the investor often wants to maintain market exposure. The wash sale rule prohibits buying the "same or substantially identical" security within 30 days, but allows purchase of similar (not identical) securities.
This creates a planning question about replacement security selection:
- For broad-market index funds, replacement securities from different providers tracking different (but similar) indexes are usually considered not substantially identical.
- For individual stocks, replacement is harder. Buying a competitor stock is one option, but introduces different fundamental risk.
- For bonds, replacement depends on maturity, credit quality, and issuer characteristics.
Topics worth reviewing:
- What replacement securities are appropriate for your situation, and do they maintain meaningfully similar exposure?
- After the 30-day wash sale window, do you plan to repurchase the original security, or is the replacement permanent?
- Does the replacement create any unintended consequences (different expense ratios, different tax treatment of distributions, different liquidity)?
The replacement decision is the part of loss harvesting most often executed poorly, because the "easy" replacement (a fund that is technically not substantially identical but is very close) may not actually maintain the intended exposure or may introduce subtle costs.
Topic 7: State Tax Implications
Tax loss harvesting affects federal taxes, but state tax treatment varies. Some states fully conform to federal rules; others have their own quirks around capital gains, AMT, or loss carryforward rules.
For taxpayers in high-tax states or who recently moved between states, the state-level analysis matters:
- Does your state allow the same loss carryforward as federal?
- Are state-level capital gains taxed at preferential rates or at ordinary income rates?
- If you moved states during the year, what is the residency treatment of gains and losses realized in each state?
Resources from professional organizations like the AICPA cover state-level tax planning issues that tax loss harvesting touches. A CPA familiar with your specific state matters here.
Topic 8: Documentation and Recordkeeping
Tax loss harvesting depends on accurate records. Documentation worth reviewing:
- 1099-B forms from each brokerage (some report wash sales, some do not)
- Cost basis records, especially for securities transferred between brokerages
- Specific identification election records, if used
- Records of any inherited securities and their adjusted basis
Topics worth confirming:
- Are your brokerage records aligned with what you expect for tax reporting?
- For accounts that have transferred between custodians, is cost basis information complete and correct?
- For positions held a long time, has the basis been adjusted correctly for splits, mergers, and distributions?
Discovering a basis error during tax filing is much more disruptive than catching it at year-end. A pre-filing review with your tax advisor or CPA is worth scheduling.
Coordinating With Your Professional Team
Tax loss harvesting sits at the intersection of investment strategy and tax planning, which means it usually involves multiple professionals: a tax advisor or CPA, possibly a financial advisor or wealth manager, and sometimes an estate planning attorney for higher-net-worth situations.
The topics above are the ones worth surfacing across this team. For taxpayers thinking about how to coordinate with an advisor on tax-efficient strategies, the Capivise tax-efficient reinvestment advisor matching page covers how to think about matching with a professional, and the questions to ask an advisor guide walks through the conversation framework. The general Capivise homepage has more context on the educational approach.
Resources for self-education on the underlying mechanics include IRS Publication 550 on investment income and expenses, SEC investor education materials on basic investment topics, and the FINRA investor education center for guidance on working with financial professionals.
This guide is educational and does not constitute tax, legal, or financial advice. Every taxpayer's situation is different, and the topics above should be reviewed with qualified professionals familiar with the specifics of your circumstances.
