Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to the guide
THE FINANCEBASE List yours

Guide

LTCG Tax Harvesting: When to Sell and Rebuy Investments to Reduce Tax

By TheFinanceBase Team 10 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Yes, you can sell an investment at a loss to offset capital gains, but buying the same or a substantially identical security during the 30 days before or after the sale can trigger the wash-sale rule. The loss is then deferred by adjusting the basis of replacement shares instead of reducing your current taxable gain. To keep market exposure while making a loss deductible, investors generally use a replacement that has been reviewed for substantially-identical risk, or wait until the 61-day window has passed before buying the original security again.

This guide focuses on tax-loss harvesting of positions that may offset long-term capital gains (LTCGs) in a U.S. taxable account. It is not a personalized tax conclusion: your filing status, income, state, account registrations, lot history and other transactions can change the result.

As an Amazon Associate I earn from qualifying purchases.

What LTCG tax harvesting actually means

“LTCG tax harvesting” is often used loosely. In practice, the strategy discussed here is tax-loss harvesting: selling an investment whose current market value is below its tax basis, realizing the capital loss, and using that loss to offset realized capital gains. The gains being offset may be long-term, short-term or a combination, depending on the netting results on your tax return.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A capital asset held for more than one year generally produces a long-term gain or loss. Holding-period treatment is reported under the rules explained in IRS Publication 550. A lot held for one year or less is generally short-term, so separate lots of the same fund or stock can have very different tax consequences.

The strategy does not create a guaranteed tax saving. A loss is useful only in relation to your complete return: realized gains, other losses, capital-loss carryforwards, ordinary income, state taxes and applicable rates all matter. Selling merely because a position is down can leave you with transaction costs, a different portfolio and no immediate federal benefit.

Why the wash-sale rule controls when you can sell and rebuy

Internal Revenue Code §1091 disallows a loss when you acquire the same or a “substantially identical” stock or security within a defined period around the loss sale. The statute describes an acquisition period “within a period beginning 30 days before the date of such sale or disposition and ending 30 days after such date.” Counting the sale date, that is a 61-day window.

The rule can apply to more than a simple sell order followed by a buy order in one brokerage account. It can cover purchases in another taxable account, a spouse’s account, an IRA, automatic dividend reinvestments, and contracts or options to acquire the security. The statutory language reaches stock or securities and contracts or options to acquire them, so an option transaction deserves the same pre-trade review as a share purchase.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What happens when a wash sale occurs

The loss is generally not gone forever. Instead, the disallowed amount is deferred through a basis adjustment to the replacement shares. Because the replacement lot now carries adjusted basis information, the tax effect may appear when those shares are eventually sold. Your current return therefore does not receive the loss deduction you expected from the original sale.

What “substantially identical” does not tell you

The law does not provide a universal bright-line list covering every stock, ETF, mutual fund, option and related security pair. Two funds can have nearly identical economic exposure without an automatic safe harbor, and a different ticker does not by itself eliminate risk. Analyze the specific instruments, their legal structure and the transaction dates rather than relying on a rule of thumb.

Rank #2
Sale
The Psychology of Money: Timeless lessons on wealth, greed, and happiness
  • Ideal for Gifting
  • Ideal for a bookworm
  • Compact for travelling

How harvested losses are used on your return

Capital losses first offset capital gains. The calculation nets short-term and long-term results under the capital-gain rules, so you should identify the holding period of every lot before deciding what to sell. A loss that appears “long-term” in your account may interact with short-term gains differently from the simple headline gain or loss shown on a performance screen.

If your net capital result is still a loss after offsetting gains, federal rules generally allow up to $3,000 of net capital loss against other income for the year, with additional losses carried forward, subject to the applicable return and current law. The $3,000 figure is a federal limit summarized for 2026; use the instructions for the tax year you are filing and your filing status.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For context, a 2026 summary of federal rules identifies a top long-term capital-gains rate of 20% and a possible 3.8% net investment income tax (NIIT). Those are not universal rates: income level, filing status, deductions, surtaxes and future law determine your actual liability. A harvested loss can reduce the amount exposed to a rate, but it does not automatically produce a tax bill reduction equal to the loss multiplied by 20%.

Key figures at a glance

Rule or figure Practical meaning
30 days before and 30 days after The acquisition period in IRC §1091 that can disallow a loss when the replacement is the same or substantially identical security.
61 days total The full window when the sale date is included in the 30-days-before/30-days-after rule.
$3,000 The generally permitted maximum of net capital losses against other income for a federal return, with excess losses carried forward under applicable rules.
20% and possible 3.8% NIIT Top federal long-term capital-gains rate and possible NIIT identified in a 2026 federal-rate summary; your income and applicable law control.

When selling a loss is more likely to help

A loss sale is most useful when you have realized gains that you otherwise expect to recognize this year, especially gains in a tax bracket where reducing the taxable amount has meaningful value. It can also be useful when you deliberately want to realize a limited net loss and have room under the annual deduction limit, provided the portfolio decision still makes sense.

Do not assume that every unrealized loss should be harvested. Consider these conditions before placing an order:

  • You have identified the specific tax lot and confirmed its adjusted basis and holding period.
  • You know the realized gains and losses already booked for the year, including transactions at other firms.
  • You have checked whether a prior-year capital-loss carryforward already offsets the gains you planned to harvest against.
  • The expected tax benefit is large enough to justify commissions, bid-ask spreads, fund expenses, and any difference in market exposure.
  • You have a plan for the 61-day wash-sale window and for documenting every related purchase.
  • You have reviewed state treatment separately; state rules and timing may not match federal treatment.

A pre-trade workflow for loss harvesting

  1. Inventory taxable-account lots. List each holding with its number of shares, adjusted basis, current value, acquisition date and holding period. Separate lots that are long-term from those that are short-term.
  2. Build a year-to-date gain and loss picture. Include realized trades, distributions reported as capital gains, and transactions at every brokerage. Compare the proposed loss with the gains it could actually offset.
  3. Search the prior 30 days. Review purchases, automatic dividend reinvestments, spouse accounts, IRAs and options for the same or substantially identical security. A transaction outside the account where you sell can still matter.
  4. Choose the lot and trade size. Decide whether to sell all shares or only enough to reach a target loss. Record the trade date, proceeds, basis and holding period as soon as the order executes.
  5. Choose an exposure plan. If you need to stay invested, evaluate a replacement that is not substantially identical, or accept the risk of being out of the market until repurchase is permitted. Similar economic exposure is not an automatic safe harbor.
  6. Control the next 30 days. Pause recurring purchases and dividend reinvestment if they could acquire the sold security. Keep a written calendar through the end of the window.
  7. Reconcile tax forms. When available, compare your records with Form 1099-B and broker-reported wash-sale adjustments. Use Form 8949 and Schedule D reporting, and investigate any basis discrepancy before filing.

How to preserve exposure without creating a wash sale

The investment decision and the tax decision are connected but not identical. Selling a fund and buying another product that tracks a broadly similar market segment may reduce the time you are uninvested, but similarity alone does not establish that the replacement is safe. The substantially-identical standard is fact-specific and has no comprehensive IRS list for every fund pair.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Compare the replacement on seven axes

  • Tax-lot holding period: Selling a long-term lot and replacing it can change the future holding-period clock and the character of a later gain or loss.
  • Realized gains available for offset: A replacement decision is less valuable if there are no gains or if carryforwards already absorb them.
  • Market exposure: Compare index methodology, asset mix, concentration and expected tracking difference, not just the fund name.
  • Expense ratio and trading costs: A tax benefit can be reduced by spreads, commissions, redemption fees or a higher ongoing expense ratio.
  • Wash-sale similarity risk: Document why the replacement is not the same or substantially identical, while recognizing that broadly similar exposure is not a guaranteed safe harbor.
  • State-tax treatment: Check whether your state follows the federal loss treatment and whether its rates or conformity rules differ.
  • Time out of market: Decide how much price movement you are willing to accept while moving between securities or waiting to repurchase.

A same-index mutual-fund and ETF swap may look economically close. It should not be described as automatically permissible under §1091; obtain a qualified tax professional’s view when the relationship is uncertain.

Timing: when to sell and when you may rebuy

The sale can occur on any trading day, but the relevant clock is based on the acquisition period around that sale. If you sell at a loss on June 15, purchases of the same or substantially identical security from May 16 through July 15 fall inside the 30-days-before/30-days-after period, assuming ordinary calendar counting. The sale date itself is included in the 61-day window.

Before selling, inspect the preceding 30 days for accidental purchases. After selling, disable automatic investment features that could create a replacement lot. If recognition of the loss is your goal, wait until the post-sale portion of the window has passed before buying the same security again. Keep the confirmation showing execution date rather than relying only on an order-entry timestamp.

Market risk is the trade-off. Waiting can mean the security rises before you are allowed to repurchase it; switching to a different security can produce tracking error. Treat the tax benefit as one input in an allocation decision, not as a reason to abandon a long-term investment plan.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Illustrative example: why the numbers must be personalized

Suppose an investor has already realized $12,000 of long-term gains and owns a long-term lot with a $5,000 unrealized loss. Selling that lot could reduce the net long-term gain to $7,000 before considering other transactions. If the investor instead has $2,000 of gains and no other relevant activity, the same sale may create a $3,000 net loss. That loss could be used against other income up to the federal annual limit, with any excess carried forward under the applicable rules.

Those are illustrations of the netting mechanics, not a tax projection. The actual result depends on short-term transactions, prior carryforwards, filing status, ordinary income, state rules and whether a wash sale defers part or all of the loss.

Common failure modes and how to correct them

Automatic reinvestment creates a replacement lot

A small dividend reinvestment can fall inside the window even when you did not place a manual buy order. Turn off reinvestment before selling or account for the resulting replacement shares and basis adjustment.

A spouse or IRA buys the security

Checking only the selling account is insufficient. Coordinate household taxable accounts and retirement accounts, and review standing instructions before the trade.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An option or contract is overlooked

Contracts or options to acquire the security can be covered by the rule. Include open and recently closed derivatives in the pre-trade review.

Best Value
Sale
I Will Teach You to Be Rich: No Guilt. No Excuses. Just a 6-Week Program That Works (Second Edition)
  • It can be a gift option
  • Comes with secure packaging
  • Helpful in various ways

The broker’s 1099-B does not show every related transaction

Broker reporting may not capture purchases at another institution or in another account. Maintain your own consolidated transaction log and reconcile it to Form 8949 and Schedule D.

A loss is harvested without a gain or tax need

If no gains remain and the expected deduction is small relative to trading costs or portfolio disruption, harvesting may not improve the outcome. Recalculate after including carryforwards and state taxes.

Records to keep

Retain trade confirmations, lot-selection instructions, basis calculations, dividend-reinvestment records, account statements, the replacement-security analysis and a calendar of the 61-day window. Record the security identifier, number of shares, execution date, proceeds, basis and holding period. These records let you explain a broker’s wash-sale adjustment and establish the correct basis when replacement shares are eventually sold.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When professional advice is warranted

Consult a qualified tax professional before trading when the replacement is a related fund, when options or multiple accounts are involved, when an IRA or spouse’s account may create a wash sale, or when state rules could materially change the result. Individualized tax savings cannot be calculated from the position’s loss alone; they require your full return data and complete transaction history.

Bottom line

Loss harvesting can reduce the amount of capital gain recognized in a taxable account, but the timing of a rebuy is decisive. Check the 30 days before and after the sale, include every account and automatic purchase, and treat “substantially identical” as a fact-specific standard rather than a ticker-symbol test. Sell only after confirming the gain, loss, cost and exposure trade-offs, then document the transaction through your tax forms.

Quick Recap

SaleBestseller No. 1
SaleBestseller No. 2
The Psychology of Money: Timeless lessons on wealth, greed, and happiness
The Psychology of Money: Timeless lessons on wealth, greed, and happiness
Ideal for Gifting; Ideal for a bookworm; Compact for travelling
$10.99
SaleBestseller No. 5
I Will Teach You to Be Rich: No Guilt. No Excuses. Just a 6-Week Program That Works (Second Edition)
I Will Teach You to Be Rich: No Guilt. No Excuses. Just a 6-Week Program That Works (Second Edition)
It can be a gift option; Comes with secure packaging; Helpful in various ways
$9.15

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a comment

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More guides

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.