Image Credit: Ridofranz / istockphoto.
What tax-loss harvesting means
When an investment declines in value, the loss remains unrealized inside the portfolio until the position is sold. Tax-loss harvesting is the intentional sale of that holding so the loss becomes realized and can be used as a tax benefit in the same year.
In the absence of losses, capital gains are taxed at 0%, 15%, or 20% for long-term investments depending on income, or as high as 37% for short-term gains. Using harvested losses can reduce or even wipe out that tax burden in the year the loss is realized.
What happens after a losing position is sold?
The goal is to preserve roughly the same market exposure while capturing the tax loss. The replacement investment should be selected carefully so the wash-sale rule is not triggered.
How capital losses lower taxes
Capital losses are applied through an IRS netting process before they affect a tax return. Knowing how that process works helps investors understand the actual value of a harvesting move.
After the first round of netting, any remaining loss of one type can offset gains of the other type. Losses that offset short-term gains usually provide a larger tax benefit per dollar than losses used against long-term gains.
An example of tax-loss harvesting
Imagine an investor who sold a stock position and realized a $120,000 short-term gain. Later in the year, two taxable-account holdings fall in value. Selling them creates a $90,000 realized loss. That loss offsets $90,000 of the short-term gain, leaving $30,000 of net short-term gain subject to tax. At a 37% marginal rate, the current-year tax bill falls by about $33,300.
How the $3,000 ordinary income deduction works
How capital loss carryforwards work
A $40,000 net capital loss with no gains to offset it creates a $3,000 deduction in the first year and a $37,000 carryforward. If a $37,000 gain shows up in a later year, that carryforward can fully offset it, eliminating capital gains tax on that transaction.
Why carryforwards can matter in future years
Carryforwards are often discussed as a way to offset future capital gains, but they also can reduce ordinary income when there are no gains at all. Under IRS rules, if capital losses exceed capital gains in a year, up to $3,000 of the excess loss can be used against ordinary income such as wages, interest, or IRA distributions.
Any unused loss beyond that amount carries forward to later tax years. For example, a $40,000 loss in one year allows a $3,000 deduction that year, leaves a $37,000 carryforward, and then allows another $3,000 deduction the next year against ordinary income, continuing until the loss is fully used or offsets a future gain.
Investors planning to sell rental property, unwind a concentrated stock position, or take large IRA distributions that may push them into higher brackets can build a carryforward in advance to soften those future tax bills. In that sense, harvesting losses during volatile years can be a multi-year planning strategy rather than a one-time move.
How the wash-sale rule affects tax-loss harvesting
Understanding the 61-day wash-sale window

What “substantially identical” means
Selling one S&P 500 index ETF and buying another S&P 500 index ETF from a different provider is generally treated as a wash sale, even if the fund companies are different, because the market exposure is effectively the same.
By contrast, selling an S&P 500 ETF and replacing it with a total market ETF or a large-cap growth ETF is generally not considered a wash sale because the underlying holdings are different. A CPA or fiduciary advisor can review specific fund combinations before a trade is placed.

What happens if a wash sale occurs?
In a taxable account, a normal wash sale does not erase the loss forever. Instead, the disallowed amount is added to the cost basis of the replacement shares. When those shares are later sold in a non-wash transaction, the higher basis reduces the taxable gain, or increases the loss, on that later sale.
The loss is deferred rather than destroyed, but that delay still has value because the deduction that could have reduced taxes now is pushed into the future.
For example:

The IRA problem that can permanently erase the loss
One lesser-known feature of the wash-sale rule is that it reaches across all accounts a person controls, including IRAs, Roth IRAs, 401(k)s, and a spouse’s accounts. If an investor claims a loss in a taxable account and then repurchases the same security inside an IRA within the 61-day window, the loss is permanently disallowed.

Why the wash-sale rule can be costly
Because IRAs do not track cost basis in the same way taxable accounts do, there is no basis adjustment inside the IRA that can preserve the disallowed loss. Withdrawals from Traditional IRAs are taxed as ordinary income, while Roth IRA withdrawals can be tax-free, but neither account can absorb that lost deduction. As a result, the tax benefit disappears completely and cannot be recovered later.

Does the wash-sale rule apply to cryptocurrency?
The IRS currently treats cryptocurrency as property rather than as a security, so IRC Section 1091 does not apply to crypto assets. That means an investor can sell Bitcoin at a loss and buy it back the next day without triggering the wash-sale rule. There have been legislative efforts to extend the rule to digital assets, including proposals considered during the One Big Beautiful Bill Act, but they were not included in the final law.
Because crypto is taxed as property, the wash-sale restriction does not currently apply. That creates a temporary tax strategy: investors can sell crypto at a loss and immediately repurchase it to capture the tax break, though lawmakers are working to close that loophole.

How replacement securities help keep a portfolio invested

What a replacement security should do
A replacement security has two jobs at once. It must be different enough from the sold holding to avoid a wash sale, and it must still provide similar enough exposure so the portfolio is not left underinvested in that asset class during the waiting period. Common substitutes track a related index, represent a similar sector with different holdings, or offer the same asset class through a different fund design.

Examples of replacement securities
Fiduciary advisors often use replacement pairings such as:
Selling a Vanguard Total Stock Market ETF and replacing it with a Schwab U.S. Broad Market ETF: similar broad exposure, different fund structure.
Selling an S&P 500 ETF and replacing it with a large-cap growth ETF: overlapping, but not identical, holdings.
Selling shares of one company and replacing them with a sector ETF that includes competitors: less single-stock concentration while keeping sector exposure.
These pairings are not automatically safe in every situation, so a tax advisor should review each one before a trade is placed.

What happens after the 31-day waiting period?
After the sold position is out of the portfolio, the account must stay in the replacement security for at least 31 days after the sale date to remain outside the wash-sale window. Once that period passes, the original security can be bought again and the replacement can be sold. By then, the portfolio may be close to its original makeup, while the tax loss has already been captured.

How dividend reinvestment can create a wash sale

Why year-round harvesting can beat year-end planning
Markets do not fall only near the end of the year. A technology selloff in one month, a bond downturn in another, or a broad market correction at another time can all create harvesting opportunities that disappear if prices recover before year-end. Investors who wait until December to look for losses may find that the positions they hoped to harvest have already rebounded and the tax opportunity is gone.

How harvested losses affect estimated tax payments

How investors can deliberately create a carryforward
Some years create enough harvesting opportunities to generate a capital loss carryforward beyond what current gains can absorb. That carryforward becomes a planning tool for future years. A household expecting a business sale, a property sale, or large IRA distributions can build the carryforward ahead of time to offset those gains and reduce or eliminate the tax impact.

Why tax-loss harvesting is hard to manage
Tax-loss harvesting is not a one-time trade. It requires ongoing monitoring of positions across multiple accounts, attention to wash-sale windows, coordination with tax reporting, and a view of the investor’s broader financial picture.

The wash-sale coordination challenge
Most brokerages only track wash sales inside the account they hold. A loss in a taxable account at one firm and a repurchase inside an IRA at another firm may not be flagged by either system. Investors are still responsible for tracking those cross-account issues themselves.

How harvesting ties into the full income picture

How replacement securities should be managed
Swapping a sold investment for a substitute asset requires active oversight. The replacement needs to be monitored during the required 30-day holding period. After day 31, the investor must decide whether to switch back to the original security or keep the substitute in place.

How IRA repurchases can permanently disallow a loss
The permanent loss of a deduction that can happen when a wash-sale security is repurchased inside an IRA is easy to cause and impossible to undo. Running a harvest without checking every household account can create an unintended wash-sale problem through:

How a financial advisor can help

FAQs
It depends on how large the losses are relative to the gains. Capital losses offset capital gains dollar for dollar with no annual cap. If losses equal or exceed gains in the same year, capital gains tax for that year can be reduced to zero. The $3,000 annual limit applies only to using net losses against ordinary income, not to offsetting gains. For someone with $200,000 in gains and $200,000 in harvested losses, the capital gains tax for that year would be zero regardless of the $3,000 rule.
No. IRAs, Roth IRAs, and 401(k)s do not produce taxable capital gains or losses. Selling an asset at a loss inside a Roth IRA creates no tax deduction because the account’s gains are already tax-free and its losses are not deductible. Tax-loss harvesting applies only to taxable investment accounts.
Capital losses do not pass to heirs. A capital loss carryforward owned by someone who dies cannot be transferred by the estate or by beneficiaries. Any unused carryforward is lost permanently at death, which is why a fiduciary advisor may help ensure accumulated losses are used before that happens.
Wash sales are reported on Form 8949, the IRS form used to report individual capital asset transactions, including wash sales and disallowed losses. The disallowed loss is shown in column (g) with code W in column (f), and the result carries over to Schedule D. Brokerages report wash sales only for transactions within the same account and the same CUSIP number. Cross-account wash sales must be tracked by the taxpayer.
Yes. If one spouse sells a security at a loss and the other spouse repurchases the same security within the 61-day window, that is a wash sale. This applies across account types held by either spouse, so household-level coordination is important before any sale is made.

Glossary

Important information
SteadyRetire is a retirement education platform that provides practical financial resources and access to a financial advisor matching service. This article is for informational and illustrative purposes only and does not constitute financial, legal, tax, or investment advice. It does not create a professional-client relationship and should not replace guidance from a qualified financial advisor, tax professional, or attorney. Although efforts are made to keep information accurate and current, retirement rules and regulations can change. Always consult a certified professional about your specific situation.
More from Digilifetrends
She Wants to Invest $400,000 in an Annuity to Avoid Market Swings. Using Pretax IRA Money Instead of After-Tax Savings Would Make Another $12,240 of Her Social Security Taxable
An advisor guides an older couple through critical financial and estate planning decisions, such as asset protection for long-term care.
4 min read · Published 2026-11-29Savvy Senior: Should you convert a traditional IRA to a Roth IRA?
Dear Savvy Senior,
3 min read · Published 2026-11-29