Tax-Loss Harvesting Guide

Tax-Loss & Tax-Gain Harvesting Guide: Complete Strategy

Robert Stowe

Robert Stowe, AAMS® | Investment Advisor

Strategic tax management goes beyond simply avoiding losses. It involves deliberately timing when you realize both gains and losses to minimize your lifetime tax burden. Tax-loss harvesting converts paper losses into real tax savings, while tax-gain harvesting captures profits tax-free in lower brackets. Together, these complementary strategies can significantly improve after-tax returns when applied systematically. This guide covers both approaches, including lot selection frameworks, charitable giving optimization, concentrated position management, and portfolio cleanup opportunities that accomplish multiple goals simultaneously.

What Is Tax-Loss Harvesting?

Tax-loss harvesting involves strategically selling investments that have declined below your purchase price to realize a capital loss. The key insight: paper losses have no tax benefit until you sell and "realize" them. Once realized, these losses offset capital gains from other investments, directly reducing your tax liability.

The term "harvesting" refers to deliberately capturing paper losses, converting unrealized losses that exist only on paper into realized losses that produce actual tax savings. This approach works because the tax code doesn't distinguish between losses you planned to realize and those that happen accidentally. A loss is a loss, and it reduces your taxable gains regardless of intent.

The Core Concept

Paper losses don't reduce taxes; only realized losses do. If you bought a stock at $100 and it's now worth $70, you have a $30 paper loss. This loss has no tax benefit until you sell the stock and "realize" the loss. Tax-loss harvesting is the strategic decision to sell and capture that loss for tax purposes.

Why Tax-Loss Harvesting Matters

Tax-loss harvesting creates value through several mechanisms. First, losses directly offset capital gains from profitable investments, reducing your current-year tax bill. Second, up to $3,000 in net losses can offset ordinary income like wages annually, a valuable benefit since ordinary income is often taxed at higher rates than capital gains. Third, unused losses carry forward indefinitely to future tax years, creating a bank of tax savings you can draw against. Finally, you can immediately reinvest in similar (but not identical) securities to maintain market exposure, which means you don't sacrifice your investment strategy to capture tax benefits.

How Tax-Loss Harvesting Works

The basic process involves four steps, each with specific considerations that affect whether the strategy succeeds:

1. Identify Losses

Review your taxable investment accounts for positions trading below your cost basis (purchase price). Individual stocks that have declined, ETFs or mutual funds with unrealized losses, and bond funds that have dropped due to rising rates are all candidates. One critical limitation: only investments in taxable accounts qualify. Losses in IRAs, 401(k)s, and other tax-advantaged accounts cannot be harvested because those accounts don't generate taxable events.

2. Sell to Realize the Loss

Sell the investment to convert the paper loss into a realized loss, creating a taxable event you'll report on your tax return. The loss equals your cost basis minus the sale proceeds, with commissions and fees factored into the calculation. Keep records of purchase date and price. The holding period matters because it determines whether the loss is characterized as short-term or long-term.

3. Reinvest (Carefully)

To maintain your investment strategy and market exposure, reinvest the proceeds in a similar but not "substantially identical" security. For example, you might sell Vanguard S&P 500 ETF (VOO) and buy Schwab Total Market ETF (SCHB), or sell an individual tech stock and buy a diversified tech sector ETF. Alternatively, you can wait 31 days and repurchase the original security. The reason for this careful distinction: the "substantially identical" standard triggers the wash sale rule, which disallows the loss.

4. Apply the Loss

When you file your tax return, realized losses are applied in a specific order: first they offset any capital gains you've realized, then up to $3,000 can be deducted from ordinary income, and finally any remaining losses carry forward to future years. This ordering matters because offsetting capital gains taxed at 15-20% produces less value than offsetting ordinary income taxed at 22-37%, but you don't control the sequence; the IRS applies losses in this prescribed order.

The Wash Sale Rule

The wash sale rule is the most important regulation governing tax-loss harvesting, and violating it, even accidentally, disallows the tax benefit. The IRS created this rule to prevent investors from claiming tax benefits while effectively maintaining the same investment position. In practice, this means you cannot have your cake and eat it too: the tax code requires genuine economic change, not just a paper transaction.

The 61-Day Window

You cannot claim a loss on a security if you purchase the same or a "substantially identical" security within 30 days before OR 30 days after the sale. This creates a 61-day window (30 days + sale day + 30 days) during which you must avoid repurchasing the same security.

If you violate this rule, the loss is disallowed for the current tax year. Instead, it gets added to the cost basis of the replacement security. You don't lose the loss forever, but you defer the tax benefit.

Wash Sale Rule: 61-Day Timeline

-30
30 Days
Before
SALE
Sale
Date
+30
30 Days
After

Red zone: Buying the same security triggers a wash sale  |  Safe: Wait until Day 31 to repurchase

What Triggers a Wash Sale?

Action Triggers Wash Sale? Explanation
Sell VOO, buy VOO within 30 days Yes Identical security
Sell VOO, buy IVV within 30 days Likely Yes Both track S&P 500, substantially identical
Sell VOO, buy VTI within 30 days Generally No Different index (Total Market vs. S&P 500)
Sell Apple stock, buy Microsoft stock No Different companies
Sell VOO in taxable, buy VOO in IRA Yes Rule applies across ALL accounts, including IRAs and 401(k)s
Sell stock, spouse buys same stock Yes Rule extends to spouse's accounts, a common audit finding
Sell stock, wait 31 days, repurchase No Outside the 30-day window

"Substantially Identical" Securities

The IRS hasn't precisely defined "substantially identical," which creates some uncertainty. General guidance suggests that identical securities (same stock, bond, or fund) clearly trigger the rule, as do different ETFs or mutual funds tracking the exact same index. Both VOO and IVV track the S&P 500, making them substantially identical. Funds tracking different indexes, different companies in the same sector, and different share classes of the same stock (common vs. preferred) are generally NOT substantially identical. The underlying principle is that if the economic exposure remains essentially unchanged, the IRS considers the securities substantially identical.

Note: The final determination of "substantially identical" rests with the IRS. When in doubt about whether two securities are substantially identical, consult a tax professional before executing a tax-loss harvesting transaction.

Cryptocurrency Exception (Subject to Change)

As of publication, cryptocurrency is classified as property, not a "security" under IRS rules, which means the wash sale rule has historically not applied to crypto trades. However, this treatment is subject to legislative change. Congress could extend wash sale rules to digital assets in any budget bill. Consult a tax professional for current guidance before relying on this exception.

Capital Gains Netting Rules

Understanding how the IRS applies capital losses against gains is essential for effective tax-loss harvesting because the netting process determines how much tax you actually save. Per IRS Publication 544, gains and losses are categorized as either short-term or long-term based on your holding period, and this distinction matters significantly for the value of harvested losses.

Short-Term (Held 1 Year or Less)

Gains are taxed as ordinary income, meaning federal rates from 10% to 37% based on your tax bracket, plus state income tax in most states. Higher earners face the steepest rates, which makes short-term gains particularly expensive, and consequently makes losses that offset them particularly valuable.

Long-Term (Held More Than 1 Year)

Gains receive preferential tax treatment at federal rates of 0%, 15%, or 20% depending on income. An additional 3.8% Net Investment Income Tax may apply for high earners. Because these rates are lower than ordinary income rates, losses offsetting long-term gains produce less tax savings than those offsetting short-term gains or ordinary income.

The Netting Process

When you file your taxes, gains and losses are netted in a specific order that affects the ultimate tax savings. Short-term losses offset short-term gains first, a beneficial matching because short-term gains are taxed at higher ordinary income rates. Long-term losses offset long-term gains first. If losses remain after matching within categories, they cross over: net short-term losses offset long-term gains, and net long-term losses offset short-term gains. Finally, any remaining net loss can offset up to $3,000 of ordinary income per year, with excess carrying forward indefinitely.

Strategic Implication

Short-term losses are fundamentally more valuable than long-term losses because they first offset short-term gains taxed at ordinary income rates (up to 37%) rather than long-term gains taxed at preferential rates (maximum 20%). The difference can be substantial: a $10,000 short-term loss offsetting short-term gains saves up to $3,700, while the same loss offsetting long-term gains saves at most $2,000. Both types reduce your tax burden, but understanding this difference helps you prioritize harvesting opportunities.

The $3,000 Deduction Rule

One of the most valuable aspects of tax-loss harvesting is the ability to use capital losses to reduce ordinary income, not just capital gains. This matters particularly for investors who don't have substantial gains to offset, because the $3,000 deduction means harvested losses still produce tax savings even in years without realized gains.

How the $3,000 Deduction Works

After offsetting all your capital gains with capital losses, if you still have remaining losses, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income like wages, salary, or business income. This effectively converts investment losses into a tax deduction that directly reduces your taxable income. For someone in the 32% bracket, that $3,000 deduction saves $960 in federal taxes annually.

Carryforward Rules

If your total capital losses exceed your gains plus the $3,000 ordinary income deduction, the excess losses carry forward to future tax years indefinitely . You can use carried-forward losses in future years to offset capital gains or take the $3,000 deduction until the losses are exhausted. This creates a bank of tax savings you can draw against for decades, a particularly valuable feature for investors who experience significant losses in market downturns.

Example: Building a Loss Carryforward

Year Capital Gains Capital Losses Net Position $3K Deduction Carryforward
Year 1 $5,000 $20,000 -$15,000 $3,000 $12,000
Year 2 $8,000 $0 -$4,000 (after applying $12K carryforward) $3,000 $1,000
Year 3 $2,000 $0 +$1,000 (after $1K carryforward) $0 $0

Important Limitation

Capital loss carryforwards do not transfer at death . If you pass away with substantial unused capital losses, those losses are lost forever. They cannot pass to heirs or your estate. For older investors with large loss carryforwards, this creates a secondary consideration: it may make sense to realize gains while alive to use up the losses, rather than letting the carryforward disappear unused.

Practical Examples

The following scenarios illustrate how tax-loss harvesting works in practice and demonstrate the range of tax savings available depending on your situation.

Example 1: Basic Tax-Loss Harvest

Situation: Sarah is in the 32% federal tax bracket (plus 5% state). She has:

  • $15,000 in realized long-term capital gains from selling appreciated stock
  • An S&P 500 ETF (VOO) with a $10,000 unrealized loss

Action: Sarah sells VOO to realize the $10,000 loss, then immediately purchases a Total Stock Market ETF (VTI) to maintain similar market exposure.

Result:

  • Net long-term capital gain: $15,000 - $10,000 = $5,000
  • Tax on $5,000 at 15% LTCG rate: $750
  • Without harvesting, tax would be: $2,250 (on $15,000)
  • Tax savings: $1,500

Example 2: Offsetting Ordinary Income

Situation: Michael has no capital gains this year but has $8,000 in unrealized losses in his portfolio. He's in the 24% federal bracket.

Action: Michael harvests $8,000 in losses by selling losing positions and reinvesting in similar (not identical) funds.

Result:

  • $3,000 offsets ordinary income this year (saves $720 federal + state)
  • $5,000 carries forward to future years
  • Next year, he can offset gains or take another $3,000 deduction

Example 3: Short-Term vs. Long-Term

Situation: Jennifer has $20,000 in short-term capital gains (from day trading) and $12,000 in long-term losses from ETFs held over a year. She's in the 35% bracket.

Action: Her long-term losses offset short-term gains through the netting process.

Result:

  • $12,000 long-term losses offset $12,000 of short-term gains
  • Remaining short-term gain: $8,000 (taxed at 35% = $2,800)
  • Without harvesting: $20,000 at 35% = $7,000 tax
  • Tax savings: $4,200

This illustrates the extra value when long-term losses offset highly-taxed short-term gains.

Common Tax-Loss Harvesting Pitfalls

Tax-loss harvesting appears straightforward, but retail investors frequently make costly errors that disallow the tax benefit or create unintended consequences. Understanding these pitfalls is essential because a mistake often cannot be undone once the tax year closes.

1. Triggering Wash Sales

The most common mistake is buying back the same or substantially identical security within 30 days. This rule applies across ALL accounts including IRAs, and includes purchases by your spouse. The consequence: your carefully harvested loss is disallowed. Set calendar reminders for the 31-day mark to avoid accidental repurchases.

2. Harvesting in Tax-Advantaged Accounts

You cannot harvest losses in IRAs, 401(k)s, or other tax-deferred accounts because these accounts aren't subject to capital gains taxes, so losses have no tax benefit to capture. Worse, buying in an IRA can trigger a wash sale that permanently disallows a loss in your taxable account.

3. Ignoring Transaction Costs

For small positions, trading costs (commissions, bid-ask spreads) can erode or exceed the tax benefit. The strategy only makes sense when tax savings significantly outweigh the costs of selling and repurchasing. A $500 loss producing $75 in tax savings isn't worth a $20 round-trip in trading costs.

4. Missing Year-End Mutual Fund Distributions

Mutual funds often distribute capital gains in December. If you buy a fund just before the distribution date, you'll owe taxes on gains you didn't benefit from. This happens because fund distributions are taxable to current shareholders regardless of when they purchased. Check distribution dates before purchasing replacement funds.

5. Over-Harvesting

Harvesting losses beyond what you can reasonably use complicates your portfolio and increases costs. Once you have substantial carryforward losses ($50,000+), additional harvesting has diminishing returns since you can only use $3,000 per year against ordinary income unless you have offsetting gains.

6. Forgetting State Tax Rules

Some states don't allow capital loss carryforwards or have different limits than federal rules. Check your state's treatment before assuming the federal benefit translates fully. In practice, this means state tax savings may be smaller or unavailable.

The Cost Basis Reset Trap

A subtle but important issue: when you sell and repurchase a similar investment, your cost basis resets to the new (lower) purchase price. This means when you eventually sell the replacement investment at a gain, you'll owe taxes on a larger gain. The loss harvesting didn't eliminate the tax. It deferred it to the future.

Is the Deferral Worth It?

Tax-loss harvesting doesn't eliminate taxes. It defers them. The value comes from two sources: the time value of money (a dollar saved today is worth more than a dollar paid later, because you can invest it in the meantime) and potential rate arbitrage (if you're in a higher bracket now than in retirement, you're effectively converting high-rate savings into low-rate future taxes). For most investors, the deferral is valuable, but understanding that it's not "free" tax savings helps set realistic expectations.

When Tax-Loss Harvesting Makes Sense

Good Candidates for Tax-Loss Harvesting

  • High-income earners: Those in the 32%+ federal bracket benefit most from offsetting gains taxed at high rates
  • Investors with realized gains: If you've sold winners, harvesting losers can directly offset the tax hit
  • Market downturns: Broad declines create harvesting opportunities across many positions
  • Year-end planning: Good time to review portfolio for harvesting opportunities before Dec 31
  • Those expecting lower future rates: Deferring gains to retirement when income may be lower

When It May Not Be Worth It

  • Low tax brackets: If you're in the 0% capital gains bracket, there's little to save
  • Small losses: Transaction costs may exceed tax benefits for small positions
  • Complex situation: If managing wash sales across multiple accounts is too burdensome
  • Large existing carryforwards: If you already have substantial losses to carry forward
  • Expecting higher future rates: If you believe tax rates will increase significantly

Timing Considerations

While many investors focus on year-end tax-loss harvesting, opportunities exist throughout the year. Market volatility creates fresh harvesting opportunities. There's no reason to wait until December when a sharp decline in February provides the same tax benefit. Strategic harvesting can also help manage tax brackets by offsetting gains that would push you into a higher rate. One critical deadline: for losses to count in the current tax year, sales must settle by December 31 (typically requiring you to sell by December 29 for stocks, given T+1 settlement). If you harvest in late December, be careful not to repurchase the same security in early January, as the 30-day window extends into the new year.

Tax-Gain Harvesting: The Opposite Strategy

While tax-loss harvesting captures losses to reduce taxes, tax-gain harvesting does the opposite. It deliberately realizes gains when you can do so at favorable rates. The strategy makes sense because long-term capital gains are taxed at 0% for investors in lower tax brackets, creating an opportunity to reset cost basis without paying any federal tax on the appreciation.

The 0% Long-Term Capital Gains Bracket

Single filers and married couples filing jointly with taxable income below the top of the 0% long-term capital gains bracket (thresholds are adjusted annually for inflation; see our IRS capital gains rates) pay 0% federal tax on long-term capital gains. This creates a powerful planning opportunity: if your taxable income falls in this range, you can sell appreciated investments, pay zero federal tax on the gains, and immediately repurchase the same securities to establish a higher cost basis.

The benefit compounds over time. By resetting your cost basis during low-income years, you reduce the gain you'll eventually pay taxes on when you sell in the future, potentially saving 15-20% on that portion of appreciation.

When Tax-Gain Harvesting May Be Most Effective

Tax-gain harvesting is particularly valuable in specific situations. Early retirees often have a gap between leaving work and claiming Social Security or pension income, creating years with unusually low taxable income. Sabbatical years or career transitions can produce similar opportunities. Investors who live primarily on Roth distributions or after-tax savings may have low taxable income despite comfortable lifestyles. The key is recognizing these windows and acting strategically rather than letting them pass unused.

Good Candidates

  • Early retirees before Social Security begins
  • Years between jobs or during career transitions
  • Living on Roth distributions or taxable savings
  • Part-time work with reduced income
  • Significant itemized deductions reducing AGI

Be Cautious If

  • Receiving ACA Premium Tax Credits
  • Income-based financial aid for college
  • State taxes capital gains as ordinary income
  • IRMAA thresholds for Medicare premiums
  • Other income-tested benefits at stake

Watch for Benefit Clawbacks

Realized capital gains increase your Modified Adjusted Gross Income (MAGI), which can affect income-tested benefits even when the gains themselves are taxed at 0%. The most common trap is the Premium Tax Credit for ACA marketplace health insurance, as even "tax-free" gains reduce your subsidy. For someone receiving $8,000 annually in premium subsidies, realizing $20,000 in gains might cost $4,000 in reduced credits, turning a "tax-free" transaction into an expensive one. Consider modeling the full impact before executing.

Tax-Gain Harvesting Example

Situation: Maria and David are early retirees living on Roth IRA distributions. Their only taxable income is $30,000 from a small pension. They have a brokerage account with $400,000 in appreciated stocks, including $150,000 of unrealized long-term gains.

Opportunity: With $30,000 in taxable income, they have substantial "room" remaining in the 0% capital gains bracket for married filers (the threshold is adjusted annually; check the current year's bracket). They calculate how much they can realize in long-term gains while staying within the 0% bracket and pay zero federal tax.

Action: They sell $120,000 worth of appreciated stock with a $56,000 cost basis, realizing $64,000 in gains. They immediately repurchase the same positions (no wash sale rule for gains).

Result:

  • Federal tax on $64,000 gain: $0
  • New cost basis: $120,000 (up from $56,000)
  • Future tax saved: $9,600 (assuming 15% rate on eventual sale)

By repeating this strategy annually during their low-income years, they can systematically reset their entire portfolio's cost basis over time.

Lot Selection Strategy: Prioritizing Which Securities to Sell

Most investors own multiple "lots" of the same security purchased at different times and prices. When harvesting gains or losses, which lots you sell matters significantly. A systematic framework for prioritizing lots helps you capture the maximum tax benefit while accomplishing other portfolio goals.

The Tax Impact Percentage Framework

Professional advisors often calculate a "Tax Impact Percentage" for each lot to inform their decisions. The formula is straightforward:

Tax Impact % = Unrealized Gain (or Loss) ÷ Current Market Value

This metric normalizes gains and losses relative to position size, making it easier to compare lots across your portfolio. A stock with a $10,000 gain on a $50,000 position (20% Tax Impact) carries more embedded tax liability per dollar than a $10,000 gain on a $100,000 position (10% Tax Impact).

How to Use Tax Impact Percentage

Goal Prioritize Lots With Rationale
Tax-Loss Harvesting Most negative Tax Impact % Captures the largest loss relative to capital deployed
Tax-Gain Harvesting Lowest positive Tax Impact % Resets basis with minimal gain recognition
Charitable Giving Highest positive Tax Impact % Avoids capital gains tax on donated shares
Rebalancing Sales Depends on tax situation Consider holding period (long vs. short-term) and current bracket

Building Your Lot Analysis Spreadsheet

A systematic approach to lot selection involves tracking key data points for each position. Consider creating a spreadsheet with these columns:

Essential Data Points for Each Lot

  • Acquisition Date: Determines long-term vs. short-term treatment
  • Cost Basis: Your original purchase price plus any adjustments
  • Current Value: Market value as of your analysis date
  • Unrealized Gain/Loss: Current Value minus Cost Basis
  • Tax Impact %: Unrealized Gain/Loss divided by Current Value
  • Holding Period: Long-term (>1 year) or Short-term, with days until long-term status
  • Position Type: RSU, ESPP, ISO, NQSO, purchased shares, etc.
  • Account: Which brokerage account holds this lot

For concentrated positions in employer stock, tracking acquisition type matters because RSUs, ESPPs, and stock options have different tax treatment and holding period rules. A well-organized lot database makes it easy to identify suitable candidates for any tax strategy.

Charitable Giving Optimization

Donating appreciated securities to charity offers a double tax benefit: you avoid paying capital gains tax on the appreciation, and you receive a charitable deduction for the full fair market value. This makes charitable giving one of the most tax-efficient ways to dispose of highly appreciated positions.

The Math Behind Appreciated Stock Donations

Suppose you want to donate $10,000 to charity and have two options: donate cash, or donate stock worth $10,000 with a $4,000 cost basis.

  • Cash donation: You get a $10,000 deduction. If you're in the 32% bracket, that saves $3,200 in taxes.
  • Stock donation: You get the same $10,000 deduction ($3,200 tax savings), PLUS you avoid paying capital gains tax on the $6,000 gain. At 15% LTCG + 3.8% NIIT, that's another $1,128 saved.

Result: Donating stock saves $4,328 vs. $3,200 for cash, 33% more tax benefit for the same charitable impact.

Prioritizing Lots for Charitable Giving

When selecting which lots to donate, prioritize those with the highest Tax Impact Percentage, the lots where unrealized gains represent the largest share of current value. These positions carry the most embedded tax liability per dollar, making them the most efficient to donate.

Donor-Advised Funds: Bunching Donations Efficiently

A Donor-Advised Fund (DAF) allows you to make a large tax-deductible contribution in one year while distributing grants to charities over time. This is particularly powerful for appreciated stock donations because you can "bunch" several years of charitable giving into a single tax year to exceed the standard deduction threshold, then continue making grants from the DAF in subsequent years.

The combination of donating highest-gain lots to a DAF during a high-income year creates maximum tax efficiency: avoiding capital gains on the donated shares while generating a large deduction when it's most valuable.

Requirements for Stock Donations

  • Holding period: Stock must be held more than one year to receive full fair market value deduction
  • Public securities: Publicly traded stocks, ETFs, and mutual funds qualify; private stock has additional limitations
  • Transfer process: Securities must be transferred directly to the charity or DAF (don't sell and donate proceeds)
  • AGI limits: Deduction limited to 30% of AGI for appreciated property (excess carries forward 5 years)

Managing Concentrated Stock Positions

Concentrated positions, where a single stock represents a significant portion of your portfolio, create both investment risk and tax complications. Employees with stock compensation often find themselves with large positions in their employer's stock, facing the challenge of diversifying without triggering substantial tax bills.

Why Concentration Matters

A diversified portfolio spreads risk across hundreds or thousands of securities. When a single position grows to represent 20%, 30%, or more of your wealth, your financial outcome becomes heavily dependent on one company's performance. Company-specific risks, such as management changes, competitive disruption, regulatory issues, or sector downturns, can devastate a concentrated portfolio even when the broader market performs well.

The Diversification Imperative

The tax cost of diversifying is real, but so is the risk of not diversifying. Consider: a 15-20% capital gains tax is a known, manageable cost. A 50% decline in a concentrated position is a catastrophic loss that may take years to recover. Systematic diversification trades a certain small cost for significant risk reduction.

Strategic Approaches to Unwinding Concentration

Systematic Annual Sales

Sell a fixed percentage or dollar amount annually, spreading gains across multiple tax years. This approach smooths tax impact and avoids timing risk. Prioritize lots approaching long-term status to benefit from preferential rates.

Charitable Donations

Donate highest-gain lots to charity or a DAF, avoiding capital gains tax on donated shares while supporting causes you care about. If you would donate cash anyway, redirecting to appreciated stock may be more tax-efficient.

Tax-Loss Offset

Pair sales of appreciated concentrated stock with harvested losses from other positions. This reduces the net tax impact of diversification.

Opportunistic Selling on Dips

When the concentrated stock declines, the embedded gain shrinks. Selling during downturns generates less taxable gain while still accomplishing diversification.

Timing Around Life Events

Major life changes often shift your tax bracket significantly, creating opportunities to time concentrated position sales strategically. Consider deferring large gains until after retirement when income typically drops. Conversely, if you're getting married to a high-earning spouse, you might accelerate gains into your last single year when your bracket is lower.

Example: Pre-Marriage Tax Planning

Alex has concentrated employer stock with $80,000 in unrealized gains and currently files single in the 22% bracket. Next year, Alex will marry a high earner, pushing the household into the 35% bracket.

Strategy: Alex realizes the $80,000 gain this year as a single filer, paying 15% long-term capital gains tax ($12,000). Waiting until after marriage could mean paying 20% plus 3.8% NIIT ($19,040).

Savings: $7,040 by accelerating the gain into the lower-bracket year.

Portfolio Cleanup Opportunities

Tax harvesting provides an opportunity to accomplish multiple portfolio improvements simultaneously, what some advisors call "portfolio cleanup." By strategically selecting which positions to sell, you can address tax goals while also improving your overall investment structure.

Exiting Legacy Holdings

Many investors hold securities they inherited, received as gifts, or purchased years ago that they wouldn't buy today. These "legacy holdings" often include individual stocks from a different era of your investing life, actively managed funds with high expense ratios, or positions that no longer fit your investment philosophy. Tax-gain harvesting in the 0% bracket provides a tax-free exit opportunity; even in higher brackets, there's value in replacing suboptimal holdings with better alternatives.

Signs a Position Is a "Legacy Holding"

  • You wouldn't buy it today at current prices
  • The expense ratio exceeds 0.50% for an actively managed fund
  • You're not sure why you own it or when you bought it
  • It doesn't fit your current asset allocation or investment strategy
  • It's a small position that creates administrative complexity

High Expense Ratio Fund Exits

Actively managed mutual funds with expense ratios of 1% or more create significant drag on long-term returns. Over 30 years, a 1% annual fee difference can reduce your ending balance by 25% or more. When you have capacity in the 0% capital gains bracket, or losses to offset gains, exiting these funds becomes particularly attractive.

Mutual Fund to ETF Conversion

ETFs offer structural advantages over traditional mutual funds, including lower expense ratios, better tax efficiency, and no year-end capital gain distributions. Converting from mutual funds to equivalent ETFs (for example, from an S&P 500 mutual fund to an S&P 500 ETF) is a one-time taxable event that can improve after-tax returns for decades.

Why ETFs Are More Tax-Efficient

Mutual funds must distribute capital gains when they sell securities to meet redemptions, even if you didn't sell your shares. You can owe taxes on gains you never personally realized. ETFs avoid this problem through their "in-kind" creation/redemption mechanism, which allows them to shed low-basis shares without triggering taxable events. For taxable accounts, this structural advantage compounds significantly over time.

Consolidating Brokerage Accounts

Multiple brokerage accounts create complexity: harder to track overall allocation, more statements to review, and greater risk of overlooking positions. Tax harvesting can facilitate account consolidation: sell positions at one broker and repurchase at your primary broker. If you're harvesting gains tax-free in the 0% bracket, there's no cost beyond the trading execution; if you're harvesting losses, you're generating tax savings while simplifying your financial life.

Tidying Up Small Lots

Over time, dividend reinvestment, partial sales, and spin-offs can leave you with dozens of small lots across various positions. These create recordkeeping hassles and cost basis complexity. When harvesting, consider cleaning up these small positions entirely rather than selecting specific lots from larger positions.

Integrating Harvesting with Rebalancing

Portfolio rebalancing, selling positions that have grown above target and buying those that have shrunk below target, is a fundamental investment discipline. Strategic investors accomplish rebalancing and tax harvesting together, using one activity to support the other rather than treating them as separate exercises.

Rebalancing Creates Harvesting Opportunities

When you need to sell an asset class that has performed well, you're often selling appreciated positions. Choosing which specific lots to sell is a tax decision: prioritize lots approaching long-term status to qualify for preferential rates, or use lots with smaller gains when possible. When you need to sell positions that have declined, you're automatically harvesting losses.

The Integrated Approach

Rather than rebalancing mechanically, consider your tax situation at each rebalancing event. In the 0% capital gains bracket, be more aggressive about selling appreciated winners. You're rebalancing tax-free while resetting cost basis. In higher brackets, prioritize sales of underperformers to harvest losses, using new contributions or sales in tax-advantaged accounts to accomplish the rebalancing.

Prioritization Framework for Rebalancing Sales

  1. Harvest available losses: If rebalancing requires selling positions with losses, capture those losses for tax benefit
  2. Exit concentrated positions: If you need to reduce equity exposure, prioritize reducing single-stock concentration over selling diversified funds
  3. Clean up legacy holdings: If selling from an asset class where you hold both preferred and legacy funds, sell the legacy holdings first
  4. Consider holding period: If selling appreciated positions, favor those held over one year to qualify for long-term rates
  5. Mind the gain amount: Among long-term positions, consider selling lower-gain lots first (lower Tax Impact %)

Key Takeaways

  1. Both gains and losses can be harvested strategically: Tax-loss harvesting captures losses to offset gains and ordinary income. Tax-gain harvesting realizes gains tax-free in the 0% bracket to reset cost basis. The right strategy depends on your current and expected future tax brackets.
  2. Respect the wash sale rule (for losses only): Wait 31 days before repurchasing the same or substantially identical security when harvesting losses. This rule applies across all accounts and extends to spousal accounts. Note: there's no wash sale rule for gains, so you can repurchase immediately.
  3. Tax Impact % can help prioritize lots: Unrealized Gain (or Loss) divided by Current Value shows the embedded tax exposure of each lot. Higher percentage lots may be more tax-efficient to donate; lower percentage lots may be candidates for tax-gain harvesting; most negative percentage lots may be candidates for tax-loss harvesting.
  4. Donate appreciated securities instead of cash: When making charitable contributions, donate your highest-gain lots to a DAF or directly to charity. You avoid capital gains tax on the appreciation while receiving a deduction for full market value.
  5. Watch for benefit clawbacks: Even "tax-free" gains in the 0% bracket increase your MAGI, potentially reducing ACA Premium Tax Credits, increasing Medicare IRMAA surcharges, or affecting college financial aid. Model the full impact before executing.
  6. Use harvesting opportunities to clean up your portfolio: Exit legacy holdings you wouldn't buy today, reduce concentrated positions, convert expensive mutual funds to low-cost ETFs, consolidate brokerage accounts, and tidy up small lots, all while accomplishing your tax goals.
  7. Harvesting can integrate with rebalancing: When rebalancing requires selling, some investors consider whether those sales also accomplish tax goals: harvesting losses when available, reducing concentrated positions, or exiting legacy holdings.
  8. Life events affect tax brackets: Marriage, retirement, job changes, and sabbaticals shift tax brackets. Some investors consider timing gains to coincide with lower-bracket years and deferring losses until gains are available to offset.

Bottom Line: Tax-efficient investing involves ongoing attention rather than year-end scrambles. Some investors integrate loss harvesting, gain harvesting, charitable giving, and portfolio maintenance into an ongoing framework. A tax professional can help evaluate how these strategies apply to your situation.

Related Guides

Use these resources to optimize your overall tax and investment strategy:

Roth Conversion Guide

Coordinate tax-loss harvesting with Roth conversions for improved tax outcomes

IRMAA Medicare Surcharge Guide

Manage income to avoid Medicare premium surcharges

Retirement Withdrawal Strategy

Plan withdrawal strategies with tax efficiency in mind

Additional Resources