Selling an investment below its tax basis can turn an unrealized loss into a realized capital loss, which may reduce taxes on capital gains and, within limits, other income. But the sale doesn’t put the investment loss back in your pocket: you still own less than you invested, and selling can change your portfolio’s risk and future returns. Here’s how harvesting works, what the wash-sale rule can undo, and what to check before placing a trade.
A sale turns a market loss into a tax loss
A decline in an account’s displayed value is not usually deductible by itself. For tax purposes, the loss generally becomes realized when you sell or otherwise dispose of the investment for less than its adjusted cost basis. The basis is typically what you paid, adjusted for items such as reinvested distributions and certain corporate actions, so the figure on a brokerage statement may need checking.
For example, suppose you bought shares for $10,000 and later sell them for $8,000. If your adjusted basis is still $10,000, the sale realizes a $2,000 capital loss before considering any transaction costs or other adjustments. If the shares recover after you sell, that recovery does not reverse the sale; it affects the value of any replacement investment you hold instead.
The practical first step is to confirm the tax lot you intend to sell. If you bought shares at different prices, selling a higher-basis lot may realize a larger loss than selling a lower-basis lot. Review your brokerage’s cost-basis method and trade confirmation, and keep your own records if the reported basis is incomplete or incorrect.
Losses offset gains first, with a limited deduction for other income
For U.S. federal taxes, capital losses are generally netted against capital gains. Short-term losses are first netted with short-term gains, and long-term losses with long-term gains; any remaining amounts are then combined. The IRS explains these rules in Publication 550, Investment Income and Expenses. Because short-term and long-term gains can be taxed differently, the character of a loss may matter as well as its dollar amount.
Suppose you have $4,000 of realized gains and $2,500 of eligible realized losses for the year. If the losses are not disallowed under the wash-sale rule, they can reduce the net taxable gain to $1,500. That is a smaller tax gain, not a $2,500 refund: the actual tax reduction depends on your tax situation and the type of gains involved.
If your allowable losses exceed your gains, individuals can generally deduct up to $3,000 of net capital loss against other income in a tax year, or $1,500 if married filing separately. Unused losses can generally be carried forward to later years. For instance, an $8,000 net loss with no capital gains could generally produce a $3,000 deduction against other income that year and a $5,000 carryforward, subject to the applicable rules. Check the IRS instructions for your return or consult a tax professional about how a carryforward applies to your circumstances.
A tax benefit does not make the investment loss profitable
Harvesting changes the tax treatment of a realized loss; it does not undo the drop in the investment’s value. If you sell an investment worth $8,000 that cost $10,000, you have turned a paper loss into a real economic loss. A tax reduction may soften the effect, but its size depends on whether you have gains to offset, the rules that apply to your return, and your tax rates.
There is also an investment decision to make. Selling a holding can reduce your exposure to a company, market segment, or asset class. If you sell without a plan for maintaining an appropriate allocation, you may end up with a portfolio that no longer matches your goals. On the other hand, holding an investment solely to avoid recognizing a loss can leave you exposed to a position you no longer want.
Before selling, separate the tax question from the portfolio question. Ask whether you would still choose to own the investment at its current price, and whether you can replace its role without simply making a bet on a short-term rebound. A tax benefit is a possible side effect of a suitable portfolio change—not a reason to hold an unsuitable investment or to trade without considering costs and risk.
The wash-sale rule can disallow a loss
The wash-sale rule can apply when you sell a security at a loss and acquire the same or a substantially identical security within 30 days before or after the sale. That means the relevant period is 61 days in total, including the sale date. The restriction can catch a purchase made shortly before you decide to sell, not just one made afterward.
For example, selling shares at a loss and buying substantially identical shares 10 days later may trigger the rule. In many ordinary taxable-account cases, the disallowed loss is added to the basis of the replacement shares, potentially affecting tax treatment when those shares are later sold. IRS rules also address purchases made in other circumstances, including by a spouse or through an IRA; an IRA-related wash sale can have especially unfavorable consequences because the disallowed loss may not be recovered through an increase in the IRA’s basis.
“Substantially identical” is not a simple label that applies only to identical ticker symbols. The IRS standard can require judgment, and there is no universally safe list of replacement funds that are similar enough to preserve an investment strategy but different enough to avoid the rule. If you are considering switching between funds that track similar indexes, or coordinating trades across accounts, don’t assume the switch is automatically clear.
To reduce the chance of a surprise, check recent purchases and scheduled automatic investments before selling. Review dividend reinvestments, recurring contributions, and activity in accounts held by you and your spouse. If avoiding the rule would require a long period out of the market, weigh that exposure against the potential tax benefit rather than treating a replacement purchase as a purely administrative step.
Choose a replacement for its portfolio role, not just its ticker
After selling, you can hold the proceeds in cash, buy a different investment, or leave the portfolio position unfilled. Each choice has a trade-off. Cash avoids buying a potentially problematic replacement, but it also leaves you less invested; a replacement can maintain market exposure, but may differ in risk, holdings, or performance from what you sold.
A replacement should fit the job the original investment performed. If you sell a broad-market fund, for example, think about whether the alternative offers the kind of diversification and exposure you want—not just whether its name looks different. Two investments that appear similar may not be substantially identical under tax rules, but that conclusion is not guaranteed by different branding or a different ticker.
Also consider transaction costs, bid-ask spreads, and any account restrictions. A small potential tax reduction may not justify a costly trade or an investment you would not otherwise choose. If you plan to buy back the original holding, track the wash-sale period carefully and remember that a different purchase elsewhere in the household can matter. When the boundary is unclear, a tax professional can help assess the specific securities and transactions.
Tax timing, account type, and records can change the result
Tax-loss harvesting generally concerns taxable investment accounts. A decline inside a tax-advantaged retirement account does not normally create a current deductible capital loss when you sell an investment there. Selling in a taxable account and buying a replacement in an IRA can also raise wash-sale concerns, so check activity across accounts before trading.
The calendar matters, too. A loss can generally help with the tax year in which it is realized, but a loss that cannot be used fully may carry forward under the applicable rules. Waiting until late in the year to review holdings can make it harder to spot automatic purchases, verify cost basis, and decide whether a portfolio change makes sense. A calendar reminder to review tax lots periodically can be more useful than rushing to sell near year-end.
Keep records of the sale, purchase history, adjusted basis, and any replacement investment. Compare your brokerage’s tax documents with your own records, especially if you transferred assets between firms or reinvested distributions. State tax treatment can differ from federal treatment, and the value of a loss depends on your overall return; consult a tax professional if you have complex holdings, substantial losses, or uncertainty about reporting.
Frequently Asked Questions
Can I harvest a loss if I think the investment will recover?
You can sell at a loss and later decide whether to invest in something else, but a hoped-for recovery is not a tax reason by itself to sell. Consider whether you want to keep the investment based on its role and risks, and whether a replacement would leave your portfolio appropriately invested. If you buy the same or a substantially identical security within the wash-sale period, the loss may be disallowed.
Can I sell only some of my shares?
Yes. If you own multiple tax lots, you can often sell a portion of a position rather than the entire holding. The tax result depends on which shares are treated as sold, so review the lot-selection instructions and basis method with your brokerage before placing the order. Confirm the selected lots afterward and retain the records.
Can losses offset interest or dividends?
Capital losses generally offset capital gains first. If allowable losses still exceed gains, an individual may generally use a limited amount of net capital loss against other income, subject to filing-status rules. Don’t assume a capital loss can be applied directly to every kind of investment income in whatever amount you choose; check the current IRS rules for your return.
Does harvesting work the same way for state taxes?
Not necessarily. States may have their own rules for recognizing, deducting, or carrying forward capital losses. If state taxes are important to your decision, check your state’s tax guidance or ask a tax professional rather than assuming the federal result carries over unchanged.
Before you place a tax-motivated trade
Start by identifying the specific tax lot and confirming its adjusted basis. Then estimate how the loss would net against your realized gains, check purchases and automatic reinvestments across relevant accounts for the wash-sale period, and decide what—if anything—you would hold instead. Finally, compare the possible tax effect with transaction costs and the portfolio change you are making. If the trade involves similar funds, an IRA purchase, a large carryforward, or uncertain basis, get tax advice before acting.