How does tax-loss harvesting work?
Mechanics plus the wash-sale rule.

READ7 min·UPDATED·APPLIES TOUnited States·LEVELAdvanced
For investors with unrealized losses in taxable accounts. Sources are listed at the bottom of the page; check their dates before acting.

Bear markets feel bad. They are also the single best opportunity the tax code gives a regular investor. Selling your losers, capturing the loss on paper, and immediately buying back the same exposure is how wealthy clients turn drawdowns into refunds. Bitcoin, for now, is the cleanest asset in the portfolio for this.

Sell a losing position, buy something similar (not "substantially identical"), and deduct the loss against gains, saving up to 37% on the harvested amount. You can offset unlimited capital gainscapital gainsThe profit from selling an asset for more than you paid for it. Taxed differently depending on how long you held the asset., plus $3,000/yr of ordinary income, with carryforward for unused losses.

  • Tax-loss harvesting: sell at a loss, immediately buy a correlated-but-not-identical replacement, bank the tax deduction.
  • The wash-sale rule: can't claim the loss if you rebuy the "substantially identical" security within 30 days.
  • Do not assume that changing issuers makes a replacement safe. Whether funds are substantially identical depends on facts and circumstances, not just ticker or sponsor. [1]
  • Losses offset gains dollar-for-dollar, plus $3,000/yr of ordinary income. Excess carries forward indefinitely.
  • Direct spot Bitcoin differs from securities under current §1091; do not extend that conclusion to all tokens or Bitcoin ETF shares. Check the dated scope below. [2]

This page covers US-specific accounts and tax law. Outside the US? The priority order is the same, the account names differ (ISAIndividual Savings Account (ISA)A UK tax-advantaged account where contributions are post-tax but all growth and withdrawals are tax-free.Full definition in the UK, TFSATax-Free Savings Account (TFSA)A Canadian tax-advantaged account where contributions are post-tax but all growth and withdrawals are tax-free.Full definition/RRSPRegistered Retirement Savings Plan (RRSP)A Canadian tax-deferred retirement account; contributions reduce taxable income and growth is tax-deferred until withdrawal.Full definition in Canada, Super in Australia, etc.).

This page covers tax-loss harvesting mechanics and the wash-sale rule across all taxable investments, as Lever 3. For the Bitcoin-specific harvesting procedure, see Bitcoin Tax Loss Harvesting Guide; for the full legal analysis of Bitcoin and section 1091, see Bitcoin Wash Sale Rule.

Short answer

Sell positions showing a loss. That realized loss offsets capital gains dollar for dollar, plus up to $3,000 of ordinary income per year. Anything left over carries forward indefinitely. For stocks, you cannot rebuy a "substantially identical" security within 30 days (wash sale rulewash sale ruleAn IRS rule preventing you from claiming a tax loss if you repurchase the same security within 30 days. Currently does not apply to Bitcoin.Full definition). For Bitcoin, that rule does not apply - you can sell and rebuy in the same minute. Check current law and the asset-specific discussion below before trading; do not treat a possible legislative change as a reason to rush a trade.

On this page
  1. What it is
  2. The wash sale rule (for stocks)
  3. Bitcoin: no wash sale rule
  4. How to systematically harvest BTC losses
  5. Real example
  6. Pending legislation
  7. A replacement-trade checklist, not a safe-pair list

Not a CPA. The current absence of the wash-sale rule for crypto is based on IRS property classification and has been a legislative target for years. Confirm current status before relying on it.

What it is

Tax-loss harvesting is selling an investment at a loss so you can use that loss to reduce your tax bill. Losses offset gains of the same type first (long-term with long-term, short-term with short-term), then cross over to the other type. After that, up to $3,000 per year can offset ordinary income. Remaining losses carry forward with no expiration.

A $30,000 harvested loss in a bear marketBear marketA long slide in prices, usually defined as a drop of 20% or more from a recent high in a broad market index such as the S&P 500. Bitcoin's four completed cycle bear markets bottomed 77% to 93% below their peaks, and so far it has gone on to new highs after each one. year can shelter $30,000 of gains from your next bull marketbull marketA period when investment prices are rising or expected to rise.. If you never realize $30K of gains, it shelters $3,000/year of ordinary income for the next decade. Either way, the loss is not wasted.

The wash sale rule (for stocks)

Section 1091 of the Internal Revenue Code says: if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. Instead, it gets added to the cost basiscost basisWhat you originally paid for an asset. Used to calculate how much profit (or loss) you made when you sell.Full definition of the replacement shares.

  • VOO and IVV both track the S&P 500, but the IRS sources here do not give a definitive ruling on that pair. Do not describe the swap as automatically safe or automatically a wash sale. Compare index methodology, holdings and structure with a tax professional before harvesting. [1]
  • Your spouse's accounts count.
  • Your IRAIndividual Retirement Account (IRA)A retirement account with tax advantages and eligibility rules. Traditional IRA contributions may be deductible; taxable withdrawals generally enter income. Roth contributions use after-tax money, and qualified Roth withdrawals are tax-free.Full definition purchases count. Buying the same stock in your IRA within 30 days of a taxable loss kills the loss in taxable, permanently.
  • Options and warrants on the same stock count.

Before selling, review purchases in the preceding 30 days and planned purchases for the following 30 days, including automatic investments and dividend reinvestment. Choose a meaningfully different exposure only after evaluating the substantially-identical standard; alternatively wait outside the window, accepting market-exposure risk. A different issuer alone is not a safe harbor. [1]

Bitcoin: no wash sale rule

IRS Notice 2014-21 treats convertible virtual currency as property for federal tax purposes. Section 1091 covers stock or securities; the text checked September 17, 2026 does not expressly extend the rule to direct spot Bitcoin. Property classification alone is not a blanket exemption: securities are also property, and Bitcoin ETF shares must be evaluated under the securities rules. [2] [3]

Wash sales: stock vs. direct spot BTC
When a purchase disallows the loss
Stock or security§1091 window applies
30 days before30 days afterLoss sale
Direct spot BTCno current §1091 window
Sell and rebuy, same minute
Before the saleAfter the sale
Buying a substantially identical security here disallows the lossOutside any wash-sale window: the loss is allowed
Worked example: 1 BTC
JanuaryBuy 1 BTC$100,000Cost basis
OctoberPrice falls$70,000Unrealized loss: $30,000
Same minuteSell, then rebuy1 BTCNew cost basis: $70,000
ResultLoss banked$30,000BTC position unchanged
Scope: direct spot Bitcoin only, not other tokens. Bitcoin ETF shares are evaluated under the securities rules.
Buying a substantially identical security within 30 days before or after a stock loss sale disallows the loss. Direct spot Bitcoin has no such window under current §1091: sell at $70,000, rebuy the same minute, bank the $30,000 loss and keep 1 BTC.

That means: you can sell 1 BTCBitcoin (BTC)The ticker symbol for Bitcoin, used on exchanges and in price quotes.Full definition at a loss, capture the loss for tax purposes, and buy 1 BTC back ten seconds later. Your position is unchanged. Your market exposure is unchanged. Your tax position is dramatically better.

KEY FACT

This is not a loophole, a trick, or a grey area. It is how the law is currently written. Every CPA who works with crypto clients uses it. What makes it special is that it applies cleanly to the single most volatile legal asset most investors own - guaranteeing multiple harvest opportunities per decade.

How to systematically harvest BTC losses

  1. Use tax software (Koinly, CoinTracker) to identify lots showing unrealized losses. Not your whole position - just specific purchase lots below current price.
  2. Use "Specific ID" or "HIFO" (Highest In First Out) accounting to sell those specific high-cost lots first.
  3. Execute the sale on your exchange of choice. Realize the loss.
  4. Immediately buy back the same amount of BTC. No 30-day wait.
  5. Record the transactions meticulously. Your cost basis in the new lot is the new purchase price. Your unrealized gain starts from there.

Do this in every meaningful drawdown. The math compounds across cycles.

Real example

WORKED SCENARIO
  • January: you DCADollar-cost averaging (DCA)Investing a fixed amount on a regular schedule, such as $50 every payday, regardless of price. It spreads out when money enters the market and buys more units when prices are low, but it does not guarantee a better price than investing all at once, a profit or protection against loss.Full definition-buy 1 BTC at $100,000. Cost basis: $100K.
  • October: BTC drops to $70,000. Your 1 BTC is now worth $70K. Unrealized loss: $30,000.
  • You sell the lot. Realize a $30,000 capital losscapital lossThe dollar amount you lose when you sell an investment for less than you paid for it. The IRS lets you use these losses to cancel out investment profits and save on taxes.Full definition.
  • Same minute, you buy back 1 BTC at $70,000. New cost basis: $70K.
  • Your BTC position: unchanged. Your market exposure: unchanged.
  • Your tax return: $30K of capital losses. Offsets $30K of future capital gains, or $3K/year of ordinary income for 10 years.

At a 24% marginal rate applied to $3K/year, that is ~$720 of direct tax savings per year, for 10 years. If used against future capital gains at 20% plus NIITNet Investment Income Tax (NIIT)A 3.8% extra federal tax on investment income for higher earners (above $200k single, $250k married).Full definition, it is closer to $7,100 in one shot.

Pending legislation

The crypto wash-sale loophole has been a target since at least 2021. The Build Back Better framework in 2021, the Biden FY budgets, and multiple standalone bills have all proposed extending wash-sale rules to digital assets. None have passed as of this writing, but the pressure is real.

Planning note: treat this like an expiring tax benefit. Harvest aggressively while it exists. If legislation passes, it will almost certainly be prospective - but do not bet the strategy on that.

Not a loophole in the pejorative sense. It is how the law reads, as written. The IRS knows. Congress knows. Use it honestly while it is legal.

Reminder: not tax advice. For anything material, hire a CPA who works with crypto clients.

A replacement-trade checklist, not a safe-pair list

US federal scope checked September 17, 2026. Section 1091 disallows covered losses when substantially identical stock or securities are acquired within 30 days before or after a loss sale. Review all of your accounts, spouse transactions, controlled-entity transactions, options and automatic purchases; a broker may not identify every cross-account wash sale. The ordinary taxable-account basis adjustment is not universal: a replacement in your IRA or Roth IRA can permanently disallow the loss without increasing IRA basis under Rev. Rul. 2008-5. Employer-plan replacement questions need separate professional review rather than treating that IRA ruling as a ruling on every 401(k). [1] [4]

These sources do not establish a definitive safe or prohibited ruling for every ETF pair. Direct spot Bitcoin’s current treatment is not a blanket exemption for all property or all digital assets. Keep sale/rebuy confirmations, fees, lot basis, loss carryforwards and the replacement-trade rationale; netting and annual ordinary-income deduction limits still apply. [1] [2] [3]

Where to go from here

Do next

Bitcoin Wash Sale Rule

Confirms exactly why and where the section 1091 wash-sale exemption for Bitcoin currently stops.

Read next

Tax-Gain Harvesting

The mirror-image strategy, realizing gains at 0% instead of harvesting losses.

Explore further

Sources

Bracketed numbers in the text link to these sources. Figures, rates and rules change: check each source’s date before acting on it.

  1. Publication 550 (2025), Investment Income and Expenses | Internal Revenue Service ↩
  2. washlaw ↩
  3. IRS Notice 2014-21 (virtual currency as property) - irs.gov ↩
  4. Internal Revenue Service, Rev. Rul. 2008-5 (Section 1091 wash sales) ↩
  5. IRC Section 1091 (Wash Sale rule) - cornell.edu
  6. Build Back Better and follow-on proposals to extend wash-sale to digital assets - Congress.gov
  7. Koinly guide to tax-loss harvesting - koinly.io

Last updated . Not legal or tax advice. For anything material, hire a CPA. Disclosures · How pages are reviewed

Subscribe via RSS for new articles.