Table of Contents
USE THE FORM BELOW TO

CLAIM OFFER

Tax-loss harvesting is one of the most effective strategies to reduce capital gains taxes and improve after-tax returns. Learn how it works, the IRS rules you must follow, and how to apply it correctly.

Every year, investors pay more capital gains tax than they need to. Not because the tax code is unfair, but because they are not using the tools already available to them. One of the most effective and most overlooked tools is tax-loss harvesting — a strategy that lets you use market downturns to your financial advantage rather than simply absorbing the loss.

Most investors focus on what their portfolio gains. Fewer pay attention to what their losing positions can do for their tax bill. The IRS allows you to use realized investment losses to directly reduce your taxable gains — and in some cases, your ordinary income as well. This is not a loophole or an aggressive tax position. It is a standard, IRS-recognized strategy used by individual investors and institutional portfolio managers alike.

This guide covers exactly how tax-loss harvesting works, what rules govern it, how to apply it across different market conditions, and how to determine whether it fits your financial situation. No filler — just the information you need to make an informed decision.

What Is Tax-Loss Harvesting?

Tax-loss harvesting is the practice of selling investments that have declined in value to offset capital gains from other investments. When you realize a loss by selling a security below its purchase price, that loss can be applied against your taxable gains — reducing the amount of tax you owe for the year.

This strategy is not about abandoning your investment plan or locking in losses permanently. After selling the declining asset, you immediately reinvest the proceeds into a similar investment that serves the same role in your portfolio. The result: you maintain your market position while capturing a tax benefit on paper.

Tax-loss harvesting works within both short-term and long-term capital gains categories. Short-term losses offset short-term gains first, and long-term losses offset long-term gains first. When losses in one category exceed gains, the excess can cross over to offset gains in the other category. If total capital losses exceed all capital gains for the year, up to $3,000 of the remaining loss can be deducted against ordinary income — and any losses beyond that carry forward indefinitely to future tax years.

Used correctly, tax-loss harvesting is one of the most reliable, legal methods investors have to reduce their tax burden without changing their long-term investment strategy. It rewards discipline, timing, and an understanding of IRS rules.

How Tax-Loss Harvesting Works Step by Step

The mechanics are straightforward. You review your taxable investment accounts for positions that are currently worth less than what you paid for them. You sell those positions to realize the loss. You then use the cash proceeds to purchase a different but comparable investment — one that tracks the same market or sector without being "substantially identical" under IRS rules. At tax time, the loss you realized reduces your taxable capital gains, and potentially a portion of your ordinary income.

The critical point is that the reinvestment step is what separates tax-loss harvesting from simply selling underperforming assets. You stay invested. You preserve your portfolio's exposure to the market. You only change what you own, not whether you own it.

The IRS Wash-Sale Rule: The Rule You Cannot Ignore

The wash-sale rule is the most important restriction governing tax-loss harvesting. Under IRS rules, you cannot claim a loss on a security if you purchase the same security or one that is "substantially identical" within 30 days before or after the sale. This window spans 61 days in total — 30 days before the sale, the day of the sale, and 30 days after.

If you violate the wash-sale rule, the IRS disallows your loss. That loss is not permanently gone — it gets added to the cost basis of the replacement investment — but you lose the immediate tax benefit, which defeats the entire purpose of the strategy.

The rule applies across all accounts you control. That means if you sell a stock at a loss in your taxable brokerage account and your spouse buys the same stock in their IRA within that window, the loss is disallowed. The rule covers traditional IRAs, Roth IRAs, and 401(k) plans — not just taxable accounts.

To avoid triggering the wash-sale rule, investors typically replace the sold security with a similar but not identical alternative. For example, selling one S&P 500 index ETF and buying a different S&P 500 index ETF from a different fund family may avoid the rule, though investors should consult a tax professional for guidance on whether specific securities qualify.

Benefits of Tax-Loss Harvesting

Tax-loss harvesting delivers multiple financial benefits beyond a one-time tax reduction. When executed consistently and strategically across market cycles, it compounds into significant after-tax wealth over time.

The most direct benefit is the reduction of taxable income in the current year. By offsetting capital gains with realized losses, you lower or eliminate your capital gains tax bill for that year. At a federal long-term capital gains rate of 15% or 20% depending on your income — plus applicable state taxes — this can represent thousands of dollars in savings on a single position.

Beyond the immediate savings, tax-loss harvesting improves after-tax returns over time. The tax savings you preserve in the current year stay in your portfolio rather than going to the government. When those savings are reinvested, they compound alongside your existing holdings, and the long-term difference can be substantial.

The strategy also introduces a productive discipline into portfolio management. Regular review of your portfolio for loss-harvesting opportunities leads to cleaner, more intentional positioning. It creates natural checkpoints to reassess high-cost or high-risk holdings, and to rebalance allocations without absorbing unnecessary tax costs.

Save on Taxes Now and in Future Years

Tax-loss harvesting produces savings in two distinct ways. First, it offsets realized capital gains — reducing or eliminating what you owe on profitable sales in the same tax year. If you have $20,000 in capital gains and harvest $20,000 in losses, your net taxable gain is zero.

Second, when losses exceed gains, you can apply up to $3,000 of the remaining net loss against ordinary income each year. For investors in higher income brackets, ordinary income is taxed at rates from 22% to 37% federally, so this deduction carries real weight. Any losses beyond the $3,000 cap carry forward to future tax years with no expiration, giving you a reserve to offset future gains.

Keep Your Portfolio Growing

A common concern with tax-loss harvesting is that selling losing positions means exiting the market at a bad time. In practice, this concern is misplaced. The strategy explicitly requires reinvesting the proceeds into comparable securities immediately after the sale. Your capital stays invested. Your sector and asset class exposures remain intact. The only thing that changes is the specific security you hold, not your overall market participation.

This matters because missing even a few key trading days can significantly reduce long-term returns. By reinvesting promptly into a similar position, you avoid that risk while still capturing the tax benefit.

Turn Market Volatility into a Tax Advantage

Markets decline. Sectors rotate. Individual securities underperform expectations. Tax-loss harvesting converts these unavoidable realities into actionable tax benefits. A period of market volatility that creates paper losses across multiple positions is, from a tax perspective, an opportunity to harvest losses that offset gains elsewhere in the portfolio.

Investors who harvest losses during downturns and reinvest in comparable positions are better positioned when markets recover. They capture the rebound with the replacement security while having already locked in the tax savings from the loss.

Tax-Loss Harvesting Strategies

Effective tax-loss harvesting requires more than knowing the basic concept. Execution matters — the timing of your trades, the securities you choose as replacements, the cost basis methods you use, and how you integrate harvesting into your broader portfolio management all affect how much benefit you actually capture.

The most common mistake investors make is treating tax-loss harvesting as a year-end activity. By the fourth quarter, many opportunities have already passed. Losses that appeared in February or August may have recovered by November, leaving nothing to harvest. Monitoring your portfolio for harvesting opportunities throughout the year — especially after periods of market decline — is the most reliable way to maximize the strategy.

Timing Your Tax-Loss Harvesting

The best time to harvest a loss is when it exists, not when it is convenient. Investments that have declined early in the year may recover by December. Investors who wait often find that the opportunity is gone by the time they act.

There is no ideal season for tax-loss harvesting, but certain conditions create windows: market corrections, sector downturns, earnings disappointments, or rising interest rate environments that put pressure on bond prices. When these conditions reduce the value of specific holdings, that is the moment to evaluate whether harvesting makes sense.

Year-end remains the final deadline. All trades intended for the current tax year must be fully executed and settled by December 31. Settlement times for most securities are one business day (T+1), but investors should confirm settlement timing with their broker and complete all trades several business days before the deadline to avoid missing the window.

Cost Basis Methods and Lot Selection

When you hold multiple purchases of the same security at different prices, the cost basis method you choose determines which shares you are selling — and therefore how large your realized loss is.

The specific identification method gives you the most control. It allows you to select exactly which tax lot you are selling, enabling you to choose the shares with the highest cost basis to maximize the realized loss. This requires more recordkeeping but produces the best tax outcomes in most scenarios.

Other common methods include first-in, first-out (FIFO), which sells the oldest shares first, and average cost, which uses the average price across all lots. FIFO often produces smaller losses and larger gains because early purchases tend to have lower cost bases. Average cost falls somewhere in between. Investors focused on tax efficiency should use specific identification wherever their broker supports it.

Some brokerage platforms offer algorithmic lot selection tools that automatically identify the optimal shares to sell based on your tax situation. These tools analyze all your lots in real time and recommend the combination that minimizes tax impact — which can be especially useful for portfolios with many positions and frequent trading activity.

Real-Life Example of Tax-Loss Harvesting

Concrete numbers make the strategy easier to understand. Consider an investor who holds two positions in a taxable account.

Investment A is a technology ETF they purchased for $80,000. Due to a sector decline, it is now worth $50,000 — a $30,000 unrealized loss. Investment B is a healthcare stock they purchased for $40,000 that they sold earlier in the year for $65,000 — a $25,000 realized gain.

Without tax-loss harvesting, the investor owes capital gains tax on the full $25,000 gain from Investment B. At a federal long-term rate of 15%, that is $3,750 in taxes owed.

With tax-loss harvesting, the investor sells Investment A and realizes the $30,000 loss. That loss offsets the $25,000 gain from Investment B entirely, reducing the taxable gain to zero. The investor owes no capital gains tax. There are $5,000 in losses remaining. Of that, $3,000 can be applied against ordinary income — saving an additional $1,050 at a 35% ordinary income tax rate. The remaining $2,000 carries forward to the next tax year.

Calculating the Total Tax Savings

In this example, the investor's total tax savings are $4,800:

  • $3,750 saved by eliminating capital gains tax on the $25,000 gain (at 15% long-term rate)
  • $1,050 saved by deducting $3,000 against ordinary income (at 35% rate)
  • $2,000 in losses available to offset gains or income in future years

The investor simultaneously reinvests the $50,000 proceeds from selling Investment A into a comparable ETF — maintaining broad technology sector exposure without triggering the wash-sale rule. Their portfolio composition remains effectively the same, but their tax bill for the year drops by $4,800.

This is a hypothetical example for illustration purposes. Actual tax savings depend on your specific tax rates, holding periods, and portfolio structure.

Rules and Compliance Considerations

Tax-loss harvesting operates within a defined set of IRS rules. Misunderstanding or ignoring these rules can result in disallowed losses, penalties, or audits. Before implementing the strategy, investors need to understand not just the federal framework but also how their state tax code interacts with it.

The federal rules are relatively consistent. Losses must be realized — meaning the securities must actually be sold, not just declined in value on paper. Transactions must settle within the same tax year. The wash-sale rule must be respected across all accounts. Cost basis must be accurately tracked and reported.

State-level rules vary significantly and can reduce the effectiveness of the strategy. Some states do not recognize capital loss carryforwards. Some treat all capital gains as ordinary income regardless of holding period, which changes the value of offsetting long-term versus short-term gains. Investors in high-tax states need to analyze both the federal and state impact of each harvesting decision.

State-Specific Rules That Affect Your Strategy

Federal tax rules are only part of the picture. State capital gains tax treatment varies enough that the same harvesting decision can produce very different results depending on where you live.

Several states — including California, New York, and New Jersey — tax all capital gains as ordinary income, with no preferential rate for long-term gains. This means the combined federal and state tax rate on capital gains can reach 30% to over 40% for high earners in these states, making tax-loss harvesting significantly more valuable than for investors in states with no income tax.

Some states also do not allow capital loss carryforwards. In those states, losses that exceed gains in the current year produce no future benefit at the state level — only at the federal level. Investors in these states need to calibrate how much harvesting they do, since there is a risk of generating more losses than they can use in a given year at the state level.

Always review your state's specific treatment of capital gains and losses before finalizing a harvesting strategy, and consult a qualified tax professional who understands your state's rules.

Deadlines and Settlement Requirements

Every tax-loss harvesting transaction for a given tax year must be executed and settled before December 31 of that year. For most equity securities, settlement occurs one business day after the trade date (T+1). That means trades placed on December 31 will settle in January of the following year — too late to count for the current tax year.

To avoid this, complete all harvesting trades by December 26 or 27 at the latest, giving enough buffer for settlement. Check with your broker for any securities that may have longer settlement windows, including some mutual funds and certain fixed-income securities.

Automated Tax-Loss Harvesting

Managing tax-loss harvesting manually across a large portfolio is complex and time-consuming. Automated solutions — offered by many robo-advisors and managed account platforms — run this analysis continuously and execute harvesting trades when conditions are met, without requiring the investor to monitor each position individually.

Automated tax-loss harvesting scans portfolios daily, identifies positions with realizable losses, executes the sale, and purchases replacement securities — all while monitoring for wash-sale violations across accounts. Because the system runs continuously rather than only at year-end, it captures more harvesting opportunities and produces better tax outcomes on average than manual approaches.

Automation also reduces human error. Manually tracking the 30-day wash-sale window across multiple accounts, coordinating spouse accounts, and monitoring reinvestment timing leaves significant room for mistakes. Automated systems enforce these rules programmatically.

That said, automation does not eliminate the need for professional tax oversight. Automated platforms harvest losses based on algorithms, but they may not account for your full tax picture — including state-specific rules, income changes, or strategic decisions about which positions to hold long-term. A tax professional can review the outputs of automated harvesting and ensure they align with your broader financial goals.

Is Tax-Loss Harvesting Right for You?

Tax-loss harvesting produces the most benefit for investors who have significant realized capital gains in taxable accounts, are in higher income tax brackets, and hold diversified portfolios where individual positions can decline without undermining the overall strategy.

Investors in lower tax brackets — particularly those whose long-term capital gains rate is 0% — may see limited benefit from harvesting, since there are no capital gains taxes to offset. The strategy is also less relevant in tax-advantaged accounts like IRAs and 401(k)s, where gains are not taxed annually regardless.

Investors with concentrated positions in single stocks or those who trade frequently may face additional complications related to wash-sale rules, holding period requirements, and cost basis tracking. In these cases, professional guidance is essential to ensure the strategy is implemented correctly.

The right question is not whether tax-loss harvesting works in theory — it does — but whether it fits your specific tax situation, account structure, and investment approach. A tax professional can run the numbers on your actual portfolio and tell you whether the expected savings justify the effort.

Conclusion

Tax-loss harvesting is a straightforward strategy with a significant impact on after-tax investment returns. By realizing losses strategically, reinvesting in comparable securities, and applying those losses against capital gains and income, investors reduce what they owe to the IRS — without abandoning their investment plan or timing the market.

The rules around wash sales, state-specific treatment, cost basis methods, and settlement deadlines require careful attention. Executed correctly, however, the benefits compound year after year.

If you are looking for professional guidance on tax-loss harvesting, capital gains planning, income tax preparation, or year-round tax strategy, GTA Accounting Group provides expert tax services tailored to individual investors and business owners. Contact our team today to learn how we can help you reduce your tax liability and keep more of what you earn.

Unlock Financial Excellence Today!

Experience the difference with our tailored accounting solutions. Let's transform your financial landscape together. Get in touch for a consultation!

Get in touch
15%
arrow
Revenue Growth
chart
img

Book Your Appointment & Claim Our Offer

At GTA Accounting Group, we value proactive clients — which is why when you book an appointment, you’ll also receive an exclusive offer designed to help you save more, plan better, and make confident financial decisions.

Simply fill out the form, and our team will reach out to confirm your appointment and deliver your award. It only takes 30 seconds and gets you one step closer to expert support.

USE THE FORM BELOW TO

CLAIM OFFER