Taxes · November 14, 2026
How do tax loss harvesting and the wash sale rule work?
Learn how tax loss harvesting offsets capital gains, how the 61-day wash sale rule works, and what to weigh before reinvesting after a market drop.
11 min read · 10 sections

Market downturns reduce the market value of holdings inside a taxable brokerage account, leaving some investments trading below their original purchase price. While unrealized declines carry no immediate tax consequence, selling those depreciated positions converts a paper drop into a recognized tax event. Families and newer investors often review these periods to see whether realizing a decline can lower the federal tax bill generated by other profitable sales or ordinary earnings.
Federal tax policy balances that relief with strict timing boundaries. Without guardrails, an investor could sell a losing holding at the end of a session, claim a deduction on a tax return, and repurchase the exact same holding moments later without ever changing market exposure. To prevent artificial paper deductions, tax statutes disallow a loss deduction whenever an investor exits and re-enters essentially the same position too closely in time.
Making sense of how loss realization interacts with repurchase restrictions helps clarify what happens to proceeds after a sale. Rather than treating a market dip purely as a setback, investors can weigh keeping a position, holding cash temporarily, or switching into a distinct alternative. Individual outcomes depend on account structure, filing status, and household holdings; if you engage Fenul Wealth Management, fees are set out in the firm's written agreement before you engage.
What Is Tax Loss Harvesting?
According to the Financial Industry Regulatory Authority, tax-loss harvesting involves selling an investment that has lost value to offset taxes on gains from other investments. This technique operates strictly within taxable brokerage accounts, where realized investment profits and losses appear on an annual federal return. Retirement accounts such as traditional individual retirement arrangements and employer-sponsored plans operate under separate tax-deferred or tax-exempt rules, so market declines inside those accounts never create deductible capital losses on an individual return.
A taxable capital gain or loss arises only when an asset is sold, comparing the net sale proceeds against the position's cost basis. Cost basis generally reflects the original price spent to acquire the shares, adjusted over time for events such as reinvested distributions or corporate stock splits. When sale proceeds fall below that adjusted basis, the difference is realized as a capital loss for the calendar year in which the trade executes.
Tax rules pair realized losses with realized gains by holding period before determining any leftover balance. Short-term losses, from assets held for a year or less, match against short-term gains, while long-term losses, from assets held longer than a year, match against long-term gains. If one holding-period category ends the year with a net loss and the other ends with a net gain, the two amounts combine into a single net figure.
- Unrealized paper declines create no tax benefit on a return until an actual sale closes.
- Short-term gains generally face ordinary income tax brackets, whereas long-term gains receive lower preferential rates.
- Harvesting opportunities can arise during any market pullback across the calendar year, not solely in December.
| Taxable Brokerage Accounts | Retirement Accounts | |
|---|---|---|
| Capital losses | Can be deducted | Cannot be deducted |
| Tax rules | Annual federal return | Tax-deferred or tax-exempt |
This table compares how investment losses are treated in taxable brokerage accounts versus tax-deferred retirement accounts.
How Much Can You Deduct?
When realized losses exceed realized gains for the year, the remaining balance becomes a net capital loss that can reduce other taxable income. Guidance from the Internal Revenue Service states that if your capital losses exceed your capital gains, you can use the loss to offset up to $3,000 of other income, including wages, salaries, business income, or taxable interest. That offset reduces adjusted gross income directly on the annual tax return.
Filing status changes that annual ordinary-income cap for married couples who choose to submit separate returns. Under the same Internal Revenue Service rules, the limit for deducting net capital losses against ordinary income is $1,500 if you are married filing separately, rather than the higher threshold available to single taxpayers or married couples filing jointly.
Losses above the annual ordinary-income threshold do not vanish when the calendar year ends. The Internal Revenue Service permits taxpayers to carry forward unused capital losses to the next year to offset future gains or income. That remaining loss balance rolls forward year after year, applying against future capital gains before offsetting ordinary income up to the annual limit until the entire balance is exhausted.
The IRS Wash Sale Rule Explained
Claiming a realized capital loss requires respecting a federal timing restriction intended to block purely tax-motivated round-trip trades. As explained by the Securities and Exchange Commission, a wash sale occurs if you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale. Violating that boundary prevents the seller from deducting the loss on that year's tax return.
Counting calendar days on both sides of the sale date forms a wide restricted interval. According to Internal Revenue Service rules on investment income and expenses, the wash sale period covers a total of 61 days, including the day of the sale itself along with the 30 days preceding it and the 30 days following it.
Focusing solely on the month after a sale is a frequent mistake because purchases made during the 30 days leading up to the sale count equally. Automated account settings can also trigger the rule unexpectedly. When dividend reinvestment plans automatically purchase new shares of the same holding inside that 61-day window, those small purchases match against sold shares and disallow a corresponding portion of the loss.
- The Securities and Exchange Commission notes that a wash sale rule also applies if you acquire a contract or option to buy substantially identical securities during the restricted period.
- When fewer replacement shares are acquired than were sold at a loss, the disallowance applies only on a share-for-share basis to the matched portion.
- Selling older shares at a loss after buying a separate tax lot of the same stock earlier that month triggers the restriction even if no subsequent purchase occurs.
- 30 days beforeRestricted period begins
- Day of saleLoss is realized
- 30 days afterRestricted period ends
This timeline illustrates the restricted period around a sale where buying a substantially identical security triggers a wash sale.
What Happens If You Trigger a Wash Sale?
Triggering a wash sale blocks the loss deduction for the current tax year, leading some newer investors to assume the tax benefit is erased forever. That assumption misunderstands how federal tax accounting treats a disallowed taxable-account loss. Rather than eliminating the tax relief permanently, the rule postpones the recognition of that loss until a later qualifying sale, keeping the underlying tax attribute alive inside the new position.
Under Internal Revenue Service guidance, when a wash sale is triggered, the disallowed loss is added to the cost basis of the newly purchased stock. Raising the adjusted cost basis of those replacement shares means that when they are eventually sold outside any wash sale window, the resulting taxable profit is smaller, or the subsequent deductible loss is larger, by the exact deferred amount.
The Internal Revenue Service also provides that the holding period of the new stock in a wash sale includes the holding period of the stock you sold. Inheriting the earlier acquisition clock helps determine whether an eventual sale of the replacement shares qualifies for long-term capital gains rates rather than short-term ordinary rates.
Spousal and IRA Wash Sale Rules
Monitoring a single individual brokerage account leaves blind spots because federal tax law evaluates related parties and separate household accounts together. According to Internal Revenue Service rules, the wash sale rules apply if your spouse or a corporation you control buys substantially identical stock within the 61-day window around your loss sale. Purchases in a joint account, a separate spousal account, or an entity controlled by the taxpayer all fall inside the restriction.
Some households assume they can capture a deduction by selling a losing stock in a taxable account and immediately repurchasing the identical stock inside a tax-sheltered retirement account. However, the Internal Revenue Service states that you cannot deduct a loss on a stock sale if you buy substantially identical stock in your Individual Retirement Account (IRA) during the restricted window.
Crossing between a taxable brokerage account and a retirement account produces a far harsher outcome than triggering a wash sale inside a taxable account alone. Because an Individual Retirement Account (IRA) does not track cost basis for future capital gain deductions, the disallowed loss cannot be added to the replacement shares' basis and is permanently forfeited instead of deferred.
- If your spouse buys the identical stockThe wash sale rule applies to your loss.
- If you buy the identical stock in your IRAThe loss deduction is blocked.
- If a corporation you control buys the stockThe wash sale restriction is triggered.
This flow shows how purchases by related parties or in separate accounts can trigger the wash sale rule.
Swapping ETFs: What Is 'Substantially Identical'?
Because federal rules bar a loss deduction when an investor moves to buy a substantially identical security during the restricted period, staying invested during a market decline requires examining how funds are constructed. The Internal Revenue Service evaluates facts and circumstances rather than offering a mechanical checklist for exchange-traded funds or mutual funds, focusing on whether two holdings offer essentially the same economic exposure and track identical benchmarks.
Two index funds from competing issuers that replicate the exact same benchmark carry meaningful risk of being viewed as substantially identical, whereas two funds tracking distinct indexes built by different providers with differing constituent weights are more clearly separate. When deciding how to handle sale proceeds after realizing a loss, investors generally weigh two distinct approaches, each carrying clear operational and market trade-offs.
One option is to wait 31 days to reinvest: an investor sells the losing holding, leaves the cash proceeds uninvested past the 30-day post-sale boundary, and then repurchases the exact same security. The pros are that this completely avoids a wash sale and lets the investor hold a preferred asset long-term. The cons are that cash sits idle and can miss a sharp market rebound, while requiring accurate calendar tracking. People weigh this approach when they strongly favor the original security and accept sitting out of that market slice for roughly a month.
A second option is to swap for a similar asset immediately: an investor sells the losing position and promptly invests the proceeds into a different fund targeting a comparable sector while following a separate index. The pros are that money remains fully invested in the market and the loss deduction is established for the current year. The cons are that the replacement holding can perform differently than the original fund and requires research to verify the two securities are not substantially identical. People weigh this route when keeping target asset allocation intact outweighs holding the original ticker.
- Index construction: Whether the two funds follow benchmarks calculated by separate index providers using distinct weighting or inclusion rules.
- Portfolio overlap: How substantially the underlying stock holdings, sector weights, and market-capitalization breakdowns differ between the sold fund and replacement fund.
- Management style: Moving from a passive index fund into an actively managed fund or swapping a broad market fund for a slightly narrower or wider benchmark.
A Tax Loss Harvesting Walk-Through
An illustrative example involves Sarah, a single tax filer with a taxable brokerage account who has no other capital gains or losses for the calendar year. Assuming no other wash sale triggers exist across her household accounts, Sarah originally bought 100 shares of a technology exchange-traded fund for $10,000. After a broad market dip, the market value of those shares drops to $7,000, leaving an unrealized loss of $3,000.
If Sarah sells her entire technology holding for $7,000, she turns that decline into a realized $3,000 capital loss, matching the maximum annual deduction allowed against ordinary income for a single filer. To keep technology exposure without buying back the exact same fund inside the 61-day window, she could evaluate putting the $7,000 proceeds straight into a different technology fund that tracks a separate index, or leaving the $7,000 in cash past the 30-day window before repurchasing the original fund.
Neither choice removes investment uncertainty, and every outcome hinges on personal assumptions. Immediately reinvesting the $7,000 keeps Sarah exposed to the technology sector while claiming the $3,000 deduction against ordinary income, yet the replacement fund's returns could trail or diverge from her original holding. Before acting, questions Sarah could ask a tax advisor or financial professional include whether the two indexes are distinct enough to withstand Internal Revenue Service scrutiny, whether any dividend reinvestments exist in separate accounts, and how the swap affects long-term portfolio balance.
- Current market value$7,000,
- Realized capital loss$3,000
- Original cost basis$10,000
This breakdown shows the components of Sarah's technology fund investment when she sells it after a market decline.
Reporting Your Losses to the IRS
After the calendar year closes, brokerage firms issue annual tax forms detailing each sale's gross proceeds, cost basis, holding period, and any wash sale adjustments detected within that individual account. Under Internal Revenue Service procedures, capital gains and losses are reported on Schedule D of Form 1040, which aggregates short-term and long-term totals to calculate the net figure carried onto the main individual return.
Because a single brokerage firm lacks visibility into outside accounts, taxpayers remain responsible for tracking wash sales spanning a spouse's account, a second brokerage firm, or an Individual Retirement Account (IRA). Retaining confirmation records of trade dates, share quantities, and basis adjustments ensures that Schedule D of Form 1040 reflects accurate loss deferrals and any unused carryforwards brought over from prior tax years.
Accurate recordkeeping matters especially when carrying unused losses forward across several tax years. Because Schedule D of Form 1040 relies on prior-year carryover worksheets to determine how much loss remains available, saving past returns alongside brokerage year-end statements helps verify that deferred wash sale basis adjustments and remaining carryforwards are neither omitted nor accidentally claimed twice.
Key takeaways
- Harvesting a loss and buying a replacement fund at a lower price lowers your cost basis going forward, meaning future gains on the replacement position could be larger when eventually sold.
- State tax laws do not always match federal rules; several states restrict or disallow multi-year capital loss carryforwards on state income tax returns.
- Using specific share identification at the time of sale allows an investor to sell only the highest-cost tax lots rather than liquidating an entire holding.
- For year-end tax timing, the trade execution date rather than the later cash settlement date determines which calendar year receives a capital loss.
- Short-term losses typically carry higher tax value per dollar when offsetting short-term gains because short-term gains are taxed at higher ordinary income rates than long-term gains.
Sources
- Wash Sales | Investor.gov (https://www.investor.gov/introduction-investing/investing-basics/glossary/wash-sales)
- Publication 550 - Internal Revenue Service (https://www.irs.gov/publications/p550)
- Topic No. 409, Capital Gains and Losses | Internal Revenue Service (https://www.irs.gov/taxtopics/tc409)
- Publication 550 (2023), Investment Income and Expenses (https://www.irs.gov/pub/irs-pdf/p550.pdf)
- Tax-Loss Harvesting | FINRA.org (https://www.finra.org/investors/insights/tax-loss-harvesting)
- About Schedule D (Form 1040) | Internal Revenue Service (https://www.irs.gov/forms-pubs/about-schedule-d-form-1040)
11Questions
Frequently asked questions
Does the wash sale rule apply to cryptocurrency?
Under current Internal Revenue Service classification, cryptocurrency is treated as property rather than a security, so the statutory wash sale rule written for stocks and securities has not applied to direct spot crypto sales under existing law. However, legislative proposals to extend wash sale treatment to digital assets have been introduced repeatedly, and spot crypto exchange-traded funds structured as securities are subject to standard brokerage rules.
Can I use capital losses to offset my spouse's capital gains?
Yes, when a married couple files a joint federal return, capital losses realized in one spouse's individual taxable account combine with capital gains realized in the other spouse's account. If the couple files separately, each spouse reports only their own gains and losses and faces the lower annual ordinary-income deduction cap.
What happens if I die with unused capital loss carryovers?
Unused capital loss carryovers belong strictly to the taxpayer who incurred them and expire upon death, meaning heirs cannot inherit or apply them on future returns. On the decedent's final joint or individual return, those remaining carryovers can still offset gains and ordinary income up to the annual limit for that final tax year.
Does the wash sale rule apply to restricted stock units (RSUs)?
Restricted stock units create taxable ordinary income when shares vest, and that vesting event establishes a purchase-like acquisition date for wash sale tracking. Selling older shares of the employer's stock at a loss within 30 days before or after a new RSU vesting date can trigger a wash sale on the portion matching the newly vested shares.
How do robo-advisors handle tax loss harvesting and wash sales automatically?
Automated portfolio platforms monitor holdings daily for unrealized losses above internal thresholds and execute swaps into pre-selected secondary funds to avoid repurchasing the same security. Even so, automated software cannot see trades executed inside external spousal accounts, employer retirement plans, or separate brokerages unless those external accounts are explicitly linked or restricted.
Are wash sales illegal?
No, executing a wash sale violates no law and carries no civil or criminal penalty. It is simply a tax accounting adjustment that requires deferring the loss deduction into the cost basis of the replacement holding, or losing the deduction permanently if the repurchase takes place inside an IRA.
13Next step
Take the next step
If you want to talk this through, an advisor at the firm can help.
14Next step
Talk it through with the firm
When you would like to talk something through, book a free call or send a message.

You will speak with Tayeb Ayat, the firm’s founder. (888) 336-8586 · info@fenul.com


