Key Takeaways
Tax-loss harvesting is one of the few tax strategies individual investors can execute directly, without special accounts or vehicles. Its value comes entirely from timing: a loss you realize today offsets a gain you would otherwise pay tax on today, even if the economic position is rebuilt immediately in a substitute security. The catch is that the IRS wrote a specific rule — the wash-sale rule — to prevent investors from doing exactly that with the same security. Knowing where that boundary sits is the difference between a legitimate tax saving and a disallowed deduction you discover on your 1099 the following January.
Direct answer: Tax-loss harvesting is the deliberate sale of a security at a loss to generate a realized capital loss that offsets capital gains elsewhere in your portfolio. Short-term losses net against short-term gains first; long-term losses net against long-term gains first. Net losses beyond your gains reduce ordinary income by up to $3,000 per year, with any excess carrying forward indefinitely on Schedule D. The wash-sale rule (IRC Section 1091) voids the deduction if you buy a substantially identical security within 30 days before or after the sale — the loss isn't gone, but it's deferred into the replacement's cost basis. Valid workarounds include waiting 31 days, buying a comparable (non-identical) ETF, or switching to a comparable-sector stock.
- Realized losses offset realized gains dollar for dollar; after netting, up to $3,000 of excess net loss reduces ordinary income annually.
- Loss netting happens within each category first: short-term losses reduce short-term gains before crossing to long-term, and vice versa.
- Unused losses carry forward with no expiration, applied against gains in future years under the same netting rules.
- The wash-sale window is 61 days total: 30 days before the sale, the sale date itself, and 30 days after. Buying a substantially identical security anywhere in that window disallows the loss.
- The wash-sale rule applies across all accounts you own or control — IRAs, joint accounts, and a spouse's accounts all count.
- TLH provides zero benefit if your capital gains are already in the 0% bracket or if the position is close to crossing from short-term to long-term treatment.
How Tax-Loss Harvesting Works
The tax code treats realized capital gains as taxable income in the year you sell. If you sell a position for more than you paid, you have a realized gain. If you sell for less, you have a realized loss. Those two categories are meant to offset each other: realized losses reduce the pool of taxable gains, so fewer gains remain exposed to the capital gains rate.
Tax-loss harvesting is the strategy of deliberately creating realized losses — selling positions that are currently below your cost basis — when it is tax-advantageous to do so, even if you still want the underlying economic exposure. The loss is the useful thing; the exposure can often be rebuilt immediately with a substitute security, keeping your portfolio positioned while the tax benefit is banked.
Three things flow from a realized loss:
- It offsets capital gains in the same tax year. Short-term and long-term losses are applied against gains under specific netting rules (detailed below), reducing the dollar amount of gains you owe tax on that year.
- Any excess reduces ordinary income up to $3,000. If your total losses after netting exceed your total gains, up to $3,000 of the net loss can be deducted against wages, business income, or other ordinary income on your federal return.
- Losses beyond $3,000 carry forward. The remainder isn't lost — it carries to the following year's Schedule D and is applied against that year's gains and, if still in excess, again reduces ordinary income up to $3,000, indefinitely.
The netting rules: short-term and long-term categories
The IRS distinguishes between short-term capital gains and losses (assets held one year or less) and long-term (assets held more than one year). This matters because short-term gains are taxed at ordinary income rates — which can reach 37% for high earners — while long-term gains are taxed at preferential rates of 0%, 15%, or 20% depending on taxable income.
The netting rules follow a specific order:
- Net all short-term transactions together: all short-term gains minus all short-term losses. The result is either a net short-term gain or a net short-term loss.
- Net all long-term transactions together: all long-term gains minus all long-term losses. The result is either a net long-term gain or a net long-term loss.
- If one category produces a net gain and the other a net loss, offset them against each other.
- The resulting single figure — net short-term gain/loss or net long-term gain/loss — is what flows to the rest of your return.
The ordering matters strategically. A long-term loss applied against a long-term gain saves tax at 15–20%. But if, after netting within each category, that same long-term loss is applied against a net short-term gain, it saves tax at your ordinary income rate — potentially 22%, 24%, or 37%. Generating long-term losses to offset ordinary-rate short-term gains is one of the more valuable configurations, when it arises naturally. You don't get to choose the ordering — the IRS mandates it — but knowing it helps you understand what you're actually getting.
The $3,000 Ordinary Income Deduction and Loss Carryforward
If you end the year with more total losses than gains — a net capital loss position — you can deduct up to $3,000 of that net loss against ordinary income on your federal Form 1040. For married filing separately, the cap is $1,500 per spouse. The $3,000 limit applies to the net excess after all gains have been fully offset.
Any net capital loss above $3,000 is not wasted. It carries forward to the next tax year, preserving its short-term or long-term character, and is applied first against that year's capital gains before any new losses. If it exceeds that year's gains, up to $3,000 of the remaining excess again reduces ordinary income, and any further remainder carries forward again. There is no expiration date — carryforward losses persist through death of the original taxpayer's estate planning complexities, though they do not transfer to heirs.
The mechanics of tracking carryforward losses live on IRS Schedule D and the Capital Loss Carryover Worksheet, which your tax software fills automatically if you enter your prior year's Schedule D data correctly. If you switch software or prepare taxes manually, manually entering the prior year's carryover is your responsibility — it doesn't transfer automatically.
Practical checklist: the $3,000 deduction
- Confirm your net capital loss position (total losses minus total gains) before assuming any $3,000 deduction applies — you need losses to exceed gains first.
- If you have unused carryforward losses from prior years, they reduce your current-year gains before you consider the $3,000 deduction on any new excess.
- Keep a record of your carryforward loss amount and its character (short-term vs. long-term) — your prior year's Schedule D line 6 is the source figure.
The Wash-Sale Rule: The Key Constraint
IRC Section 1091 — the wash-sale rule — exists specifically to prevent the obvious abuse: selling a position at a loss, immediately buying it back, and continuing to hold exactly the same economic position while claiming a tax deduction for the "loss." The IRS considers that transaction a wash — you haven't really changed your position, so the loss shouldn't be recognized.
The rule defines a wash sale as a sale at a loss, combined with the purchase of a "substantially identical" security within the 61-day window surrounding the sale: any time in the 30 days before the sale, the day of the sale, or the 30 days after the sale. If any purchase of a substantially identical security falls anywhere in that 61-day window, the loss from the sale is disallowed.
What happens to the disallowed loss?
A disallowed wash-sale loss is not permanently lost. The IRS adds the disallowed loss amount to the cost basis of the replacement security. This means the deferred loss will eventually be recognized — when you sell the replacement security without triggering another wash sale. In the meantime, you have a higher cost basis in the replacement, which reduces the gain (or increases the loss) on that future sale. The deferral can persist across multiple years if you keep triggering wash sales in the same security.
The cross-account rule
The wash-sale rule's most commonly overlooked element is that it applies across all accounts you own or control — not just the account where you made the sale. If you sell Stock A in your taxable brokerage account at a loss on December 15, and your spouse buys Stock A in their own account on December 20, that is a wash sale. Similarly, if you sell in your taxable account and buy the same security in your IRA within the 30-day window, the loss in the taxable account is disallowed — and uniquely, the IRA version of the rule is particularly punishing because the basis adjustment that would normally offset the deferral doesn't transfer cleanly into a tax-advantaged account. The loss is effectively gone in that scenario.
See our dedicated guide on the wash-sale rule for stocks for the full rule mechanics, including the substantially-identical test for ETFs and the specific IRA treatment.
Navigating the Wash-Sale Rule: Replacement Strategies
There are three practical ways to harvest a loss without triggering a wash sale, each with different trade-offs between simplicity, market-exposure continuity, and regulatory certainty.
Strategy 1: Wait 31 days, then repurchase
The cleanest approach is to sell the position, wait at least 31 days (clearing the 30-day post-sale window), and then repurchase the identical security. This is legally unambiguous — there is no wash sale if the repurchase happens outside the 61-day window.
The trade-off is opportunity cost. If the security rises meaningfully during those 31 days, you repurchase at a higher price, reducing or eliminating the net tax benefit. If your goal is to maintain continuous exposure to that specific security, this approach requires accepting 31 days of gap risk. It works best when you have low conviction about near-term price direction, or when the security is a relatively stable holding where a temporary absence carries little cost.
Strategy 2: Buy a substantially similar — but not identical — replacement
The more common approach in active tax-loss harvesting is to sell the loss position and immediately purchase a replacement security that provides similar economic exposure but is not substantially identical to what you sold. Two securities that aren't substantially identical don't trigger the wash-sale rule.
Common pairings in practice:
- Two ETFs tracking the same or related index. For example, sell an S&P 500 ETF from one fund family and buy an S&P 500 ETF from a different fund family (e.g., Vanguard's VOO and iShares' IVV both track the S&P 500). The IRS has not ruled definitively that two ETFs tracking the same index are substantially identical, and most tax practitioners treat them as sufficiently distinct — though this remains untested in Tax Court, so the risk is not zero.
- ETFs tracking different but correlated indexes. Sell an S&P 500 ETF and buy a total-market ETF that includes large, mid, and small caps. The correlation is high, limiting tracking error, while the underlying indexes are formally different.
- Individual stocks replaced by sector ETFs. Sell an individual tech stock at a loss and buy a technology sector ETF. A single stock and a diversified sector ETF are clearly not substantially identical, so no wash-sale risk. The trade-off is that the ETF exposure is diversified rather than concentrated.
- Comparable-sector stocks. Sell one retail company at a loss and buy a competitor in the same retail sector. Again, two different companies' stocks are not substantially identical. The risk here is stock-specific rather than systematic.
The replacement-security approach keeps you in the market continuously, eliminating the gap-risk problem of waiting 31 days. Its trade-off is tracking error — the replacement security won't behave identically to what you sold, and if you eventually want to return to the original security, you'll need to sell the replacement (possibly at a gain) and buy back.
Strategy 3: Rebalance into existing positions
If a loss position overlaps with an underweight in another existing holding, you can sell the loss position and use the proceeds to increase the underweight position instead of buying a new replacement. This naturally avoids any wash-sale issue (the purchase is a different security), while also nudging the portfolio back toward target allocation. The tax harvesting and rebalancing happen in the same trade.
Worked Dollar Example
Hypothetical example — for educational illustration only. Does not constitute tax advice.
Consider an investor in the 32% ordinary income bracket and the 15% long-term capital gains bracket. During the tax year, they have two realized gains and one unrealized loss position available to harvest:
- Sold Stock A: +$8,000 short-term gain (held 9 months)
- Sold Stock B: +$5,000 long-term gain (held 18 months)
- Stock C is sitting at a $6,000 unrealized loss (held 14 months — a long-term position)
Without harvesting
The investor owes taxes on both gains. The $8,000 short-term gain is taxed at 32% (ordinary income rate): $2,560. The $5,000 long-term gain is taxed at 15%: $750. Total tax: $3,310.
With harvesting — selling Stock C
Selling Stock C realizes a $6,000 long-term loss. The netting sequence: first, net the $6,000 long-term loss against the $5,000 long-term gain. The long-term gain is fully eliminated; $1,000 of long-term loss remains. That $1,000 of excess long-term loss then nets against the $8,000 short-term gain, leaving a $7,000 net short-term gain.
Now the investor owes tax only on the $7,000 net short-term gain: $7,000 × 32% = $2,240. Total tax: $2,240.
Tax saved: $3,310 − $2,240 = $1,070 — in this scenario, by executing one sale and buying a replacement ETF to maintain market exposure.
The deferral reality
The $1,070 in savings is real and immediate — but it's not free money in the sense of being permanent. The replacement security's cost basis is the price paid for it. When that replacement is eventually sold at a gain, that gain is taxable. What tax-loss harvesting does is defer the tax from today to a future year. That deferral has genuine value — a dollar of tax paid in the future is worth less in present-value terms than a dollar paid today, and if the future sale happens in a lower-income year (retirement, for example), you might pay a lower rate on it. But the underlying economics of the position haven't changed.
Automated Tax-Loss Harvesting in Robo-Advisors
Several robo-advisory platforms — most notably Betterment and Wealthfront — have built automated tax-loss harvesting into their core offering. The mechanics differ from manual TLH in one important way: they scan daily, not annually.
Every trading day, the algorithm compares each holding's current price to its cost basis. When a position has fallen sufficiently below its purchase price, the system automatically sells it and immediately buys a pre-defined substitute security. The substitute is chosen to be not substantially identical to the sold security — typically an ETF from a different fund family or tracking a different index — maintaining target allocation while locking in the loss. When the 30-day post-sale window expires, the system can optionally sell the substitute and return to the original holding if that still fits the target allocation.
Advantages of automated TLH
- Frequency. Markets create loss-harvesting opportunities during intra-year dips that largely recover by year-end. An investor checking their portfolio in December sees no loss to harvest; a daily algorithm captured it during the February or October correction. Research from Wealthfront and academic analyses generally finds that daily automated TLH produces more harvested losses over time than year-end manual harvesting.
- Consistent wash-sale compliance. The algorithm tracks the 61-day windows across all positions simultaneously, something difficult to do manually across a diversified portfolio.
Trade-offs of automated TLH
- Tracking error. Substitute securities don't track the original holding perfectly. In a sustained bull run, the substitute may underperform the original, so the "tax alpha" from harvesting is partially offset by return drag from tracking error.
- Cost basis complexity. Automated TLH generates many small lots with adjusted cost bases. If you transfer the account to a different broker or tax advisor, tracking those lots correctly is your responsibility, and errors can create phantom gains or missed deductions.
- Cross-account coordination. Robo-advisors don't see your other accounts. If you or your spouse hold the same underlying securities elsewhere, wash sales can be triggered by the robo-advisor's activity, and the platform has no way to know.
Year-End Timing Considerations
Most individual investors think about tax-loss harvesting in November and December, when the tax year is nearly over and the damage from realized gains is visible on their statements. Year-end harvesting is valid, but it has two friction points that mid-year harvesting avoids.
First, December selling creates a tight timeline. The sale must settle and the replacement purchase must be in place before December 31 — and if you're working with a wash-sale strategy that requires careful sequencing, doing that in the last two weeks of the year leaves little room for error. Brokers handle massive December volume; execution quality can slip.
Second, and more importantly, losses that exist in December often didn't exist in August. Many loss-harvesting opportunities appear mid-year during corrections that partially recover by December, leaving the investor with no loss to harvest by the time they look. The investors who captured those mid-year losses are better positioned than those waiting for December.
Practical approach: do a mid-year review (roughly June or July) in addition to a year-end review. Look for positions sitting meaningfully below cost basis. If you plan to replace them with substitute securities rather than holding cash, the 31-day window concern mostly disappears — you stay invested throughout.
One timing constraint worth noting: if a position is approaching its one-year holding anniversary and is currently at a loss, selling before that anniversary generates a short-term loss. A short-term loss can offset short-term gains (taxed at ordinary rates), which may be more valuable than a long-term loss if you have large short-term gains. Conversely, if the position is near the anniversary and you expect it to recover — so you're harvesting a temporary loss — selling to lock in a short-term loss at the cost of losing the long-term gain rate on future appreciation is a subtler trade-off. Run the math before acting.
When Tax-Loss Harvesting Doesn't Make Sense
Tax-loss harvesting gets discussed as though it's universally beneficial. It isn't. Three situations where it either adds no value or is actively counterproductive:
Low-tax-bracket investors with 0% long-term gains rate
If your taxable income for the year falls below the 0% long-term capital gains threshold — roughly $47,000 for single filers or $94,000 for married filing jointly (2025 figures, adjusted annually for inflation) — your long-term capital gains are taxed at 0%. A $5,000 long-term gain in that income range costs nothing in federal tax. Harvesting a loss to offset it saves zero. The wash-sale workaround adds complexity, the substitute security adds tracking error, and the basis adjustment defers gains you might eventually owe at a higher rate when income is higher. In this bracket, it may be worth doing the opposite: deliberately realizing long-term gains up to the 0% threshold to step up your cost basis while it's free.
Positions approaching the long-term holding threshold
If you hold a losing position and the one-year anniversary is three weeks away, selling now generates a short-term loss. That short-term loss can offset short-term gains at ordinary rates, which sounds useful — but if you intend to hold for the long-term rate on eventual appreciation, you're sacrificing the long-term character of that position at exactly the wrong moment. The right answer often is to wait until the position is past the one-year mark, then evaluate. A loss that's been long-term for a week is still a long-term loss, and you've preserved your ability to eventually sell any recovery as a long-term gain.
Transaction costs and tracking burden exceed the tax benefit
On small accounts, the tax savings from harvesting a loss may be less than the bid-ask spreads, brokerage commissions (if any), or the time cost of tracking adjusted cost bases and wash-sale windows. A $500 unrealized loss in the 22% bracket saves at most $110 in taxes if it offsets a short-term gain, and less if the loss is long-term. The complexity of managing the wash-sale window and adjusted basis may not be worth it. Automated TLH platforms handle this efficiently at scale; doing it manually on small positions often isn't worth the effort.
Misconceptions Versus Reality
| Misconception | Reality |
|---|---|
| Tax-loss harvesting permanently eliminates taxes on gains | It defers taxes, not eliminates them. The replacement security's lower cost basis means a larger gain when eventually sold — the tax bill is delayed, not cancelled |
| You can harvest a loss and immediately buy the same security back | The wash-sale rule disallows the loss if you repurchase within 30 days after (or before) the sale — you must wait 31 days or buy a non-identical replacement |
| The wash-sale rule only applies in the same brokerage account | It applies across all accounts you own or control, including IRAs and your spouse's accounts — cross-account purchases trigger it just as readily |
| Disallowed wash-sale losses are permanently lost | The disallowed loss is added to the replacement's cost basis, deferring it to when the replacement is sold — unless triggered in an IRA, where the transfer is problematic |
| Tax-loss harvesting always makes sense for investors with gains | Investors in the 0% long-term gains bracket have no gains tax to offset; investors with positions near the one-year threshold may be better served waiting for long-term treatment |
| Robo-advisor TLH is risk-free because it's automated | Automated TLH creates tracking error, complex cost basis records, and cross-account wash-sale risk it can't see — it's more systematic, not risk-free |
Common Mistakes When Executing Tax-Loss Harvesting
Triggering a wash sale in an IRA. This is the most damaging variant. If you sell a stock at a loss in your taxable account and repurchase it in your IRA within 30 days, the loss is disallowed and the basis adjustment that would normally defer it to the replacement's eventual sale cannot be applied cleanly inside the IRA's tax structure. The loss can be effectively permanent in that scenario.
Harvesting a loss 28 days before buying the same security. Many investors focus on the 30-day post-sale window and forget the pre-sale window. If you bought the replacement security 15 days before deciding to harvest, and the securities are substantially identical, you've already triggered the wash sale before the loss-producing sale even occurred.
Ignoring the long-term / short-term character of the loss. Not all losses are equally valuable. A long-term loss that offsets a long-term gain saves tax at 15–20%. A short-term loss that offsets a short-term gain saves tax at your ordinary rate. Understanding which kind of gain you're trying to offset helps you prioritize which positions to harvest — short-term losses are generally more valuable because they offset higher-taxed short-term gains.
Failing to track adjusted cost basis. After a wash sale, the replacement security's cost basis is adjusted upward by the disallowed loss. If you don't track this — or your broker doesn't — you may report a phantom gain when the replacement is eventually sold. Your brokerage's 1099-B should reflect wash-sale adjustments, but errors occur, especially if a wash sale spans two different brokerages.
Harvesting losses without realizing gains are already zero. If you have no realized gains this year — and don't expect to realize any — the only benefit from harvesting is the $3,000 ordinary income deduction and the carryforward. The carryforward is valuable but is still just a deferral. Harvesting aggressively when there are no gains to offset is rarely wrong, but the urgency and complexity aren't as justified as when you have specific gains to cancel out.
Tax-Loss Harvesting Checklist
- Identify all positions with unrealized losses — screen your portfolio for current price below cost basis.
- Determine the holding period for each: short-term (held one year or less) or long-term (held more than one year). Match loss character to the gains you most want to offset.
- Confirm you have realized gains this year to offset — or calculate the value of the $3,000 ordinary income deduction and carryforward if you don't.
- Check your prior year's Schedule D for any carryforward losses — these are applied before new losses and affect how much new harvesting is useful.
- For each candidate position, choose a strategy: wait 31 days, buy a non-identical replacement immediately, or reallocate into existing underweight positions.
- If using a replacement security, confirm it is not substantially identical to what you sold — different fund family, different index, or clearly different company.
- Check all other accounts you and your spouse control for any holdings of the same securities you're harvesting — prior purchases within the 30-day pre-sale window, or intended purchases within the 30-day post-sale window, create wash sales.
- Execute the sale and, if using a replacement, purchase it on the same day (or as close as practical).
- Document the sale date, the basis, the realized loss, and the replacement security purchased — your broker's 1099-B will cover most of this, but discrepancies between brokers on wash sales are common.
- At year-end, reconcile your total realized gains and losses and confirm the net amount, wash-sale adjustments, and carryforward figure align with your broker's reporting before filing.
Frequently Asked Questions
What is tax-loss harvesting?
Tax-loss harvesting is a strategy where an investor deliberately sells a security at a loss to generate a realized capital loss that can offset realized capital gains elsewhere in the portfolio. The IRS allows realized losses to reduce taxable gains dollar for dollar: short-term losses are applied to short-term gains first, then to long-term gains; long-term losses are applied to long-term gains first, then to short-term gains. If total losses exceed total gains in a year, up to $3,000 of the excess may reduce ordinary income, with any remaining losses carried forward to future tax years.
How do short-term and long-term losses offset gains differently?
The IRS requires losses to be netted within each holding-period category before crossing over. Short-term losses (from assets held one year or less) first offset short-term gains, which are taxed at ordinary income rates. Long-term losses (from assets held more than one year) first offset long-term gains, which benefit from preferential 0%, 15%, or 20% rates. If one category produces a net loss after netting within it, the excess then offsets gains in the other category. This ordering matters because a long-term loss that ends up offsetting a short-term gain may save more tax than the same loss applied against a long-term gain.
What is the $3,000 ordinary income deduction limit?
After all capital gains and losses in a year have been netted, if you end up with a net capital loss, you may deduct up to $3,000 of that loss against ordinary income — such as wages or business income — on your federal return. For married couples filing separately, the limit is $1,500 each. Any net capital loss exceeding $3,000 is not lost; it carries forward indefinitely and is applied against gains in future years under the same netting rules, with any remaining excess again available for the $3,000 ordinary income deduction each future year.
What is the wash-sale rule and how does it affect tax-loss harvesting?
The wash-sale rule (IRC Section 1091) disallows a realized capital loss if you buy a substantially identical security within the 61-day window surrounding the sale — 30 days before or 30 days after the sale date. If a wash sale is triggered, the disallowed loss is not permanently gone; it is added to the cost basis of the replacement security, deferring the deduction until the replacement is eventually sold. The rule applies to purchases in any account you own or control, including IRAs and a spouse's accounts — buying the replacement security in a different brokerage account or in a retirement account still triggers the wash-sale rule.
How do I avoid the wash-sale rule when harvesting a stock loss?
Three approaches work. First, wait at least 31 days after the sale before buying back the same security — this clears the wash-sale window, though being out of the market during that period is an opportunity cost. Second, buy a replacement security that is similar in exposure but not substantially identical — for example, selling one S&P 500 ETF and buying a different ETF tracking the same or a comparable index. Third, sell individual stocks and replace them with sector ETFs or comparable-sector stocks, maintaining market exposure without holding the same security.
Does tax-loss harvesting make sense for investors in all tax situations?
No. Tax-loss harvesting is least valuable — and can be counterproductive — in three situations. First, if your net capital gains for the year fall in the 0% long-term capital gains bracket, there are no gains to offset and no immediate tax savings. Second, if a position is just days or weeks away from crossing the one-year threshold from short-term to long-term treatment, selling early to harvest a short-term loss sacrifices the lower long-term rate on future appreciation in that security. Third, if the replacement security underperforms during the wash-sale window, the tax savings may not compensate for the portfolio drag.
What is the opportunity cost of being out of the market during the wash-sale window?
If you sell a position to harvest a loss and intend to return to that exact security after 31 days, you are out of the market for the wash-sale window. If the security rises during those 31 days, you buy back at a higher price — reducing or eliminating the net benefit of the loss harvest. Using a substantially-similar-but-not-identical replacement security eliminates this opportunity-cost risk but introduces tracking error between what you sold and what you now hold. Most systematic tax-loss harvesting strategies choose the replacement-security route rather than sitting in cash to avoid this drag.
How does automated tax-loss harvesting in robo-advisors work?
Robo-advisors like Betterment and Wealthfront monitor portfolios daily and automatically sell positions that have declined below their purchase price, immediately replacing them with pre-defined substitute securities to maintain target exposure while respecting the wash-sale rule. This daily scanning captures loss-harvesting opportunities that individual investors checking accounts weekly or monthly routinely miss. The trade-off is tracking error relative to the original allocation when using substitute securities, plus the complexity of tracking adjusted cost bases when positions are eventually consolidated or transferred.
Sources and Methodology
This guide describes tax-loss harvesting mechanics and the wash-sale rule as they apply to U.S. federal taxes based on publicly available IRS guidance, statutory text, and published tax analysis as of mid-2026. Key sources include:
- Internal Revenue Service (IRS): IRC Section 1091 (wash-sale rule), Publication 550 (Investment Income and Expenses), Schedule D and Capital Loss Carryover Worksheet instructions, and IRS Form 8949 instructions document the mechanics described throughout this guide.
- IRS Publication 550 and Form 1040 Schedule D: The netting rules, $3,000 ordinary income deduction, and carryforward mechanics described here follow the IRS's own published ordering rules and worksheet instructions.
- Academic and practitioner research on tax-alpha: Analyses from Vanguard, Morningstar, and independent financial planning literature on the realized value of automated versus manual tax-loss harvesting inform the robo-advisor section.
This content was reviewed by the Swoopr Editorial Team in August 2026 and reflects publicly available information at that time. Capital gains tax rates, income thresholds for the 0% bracket, and related figures are updated annually by the IRS; verify current figures at IRS.gov before relying on any specific number cited here. Nothing in this guide constitutes personalized tax, legal, or investment advice — consult a qualified tax professional for advice specific to your situation.
Conclusion
Tax-loss harvesting is a genuine tax strategy, not a trick — the IRS explicitly permits it, and the mechanics are straightforward once you understand the netting rules and the wash-sale constraint. The core idea is simple: a realized loss today is worth money against a realized gain today, and the IRS allows you to create that loss deliberately as long as you don't immediately buy back what you sold. The $3,000 ordinary income deduction extends the benefit even when gains are small, and the carryforward ensures losses that can't be used this year remain available indefinitely. The wash-sale rule is the only hard constraint, and it's navigable with either a 31-day wait or a well-chosen substitute security. Where it breaks down is at the margins: investors in the 0% bracket, positions near the one-year threshold, and any scenario where the IRA cross-account trap converts a temporary deferral into a permanent loss. Know those limits, and tax-loss harvesting is a legitimate part of an active investor's annual tax management.
Related Reading
- Stock & Investment Taxes — the parent hub for this content group, covering capital gains rates, holding periods, tax forms, and related topics.
- The Wash-Sale Rule for Stocks — the full rule mechanics, including the substantially-identical test for ETFs, the IRA cross-account trap, and the basis-adjustment deferral in detail.