PRO MODULE πŸ‡ΊπŸ‡Έ Internal Revenue Code § 1091

Turn market downturns into permanent tax alpha without leaving the market.

Tax-loss harvesting allows investors in taxable brokerage accounts to capture capital losses to offset capital gains and up to $3,000 of ordinary W-2 income annually, carrying excess losses forward indefinitely. When executed correctly using substitute index funds, you maintain 100% market exposure while lowering your current tax bill.

Mechanics & statutory rules

Six structural principles of institutional loss harvesting.

Under Internal Revenue Code Section 1091, harvesting losses requires precise calendar tracking and strict avoidance of substantially identical replacement assets.

01 / THE 61-DAY WASH-SALE RULE

The Strict 30-Day Window

Under IRC § 1091, a wash sale occurs if you sell a security at a loss and purchase a "substantially identical" security within a 61-day window: 30 days prior to the sale date, the exact date of the sale, or 30 days after the sale. If triggered, your realized loss is disallowed for the current tax year and added to the cost basis of the newly acquired replacement shares, postponing your tax deduction.

02 / CAPITAL OFFSET ORDER

Gains First, Then $3,000 Income

Realized capital losses offset realized capital gains dollar-for-dollar on IRS Schedule D: short-term losses offset short-term gains first, and long-term losses offset long-term gains. If net losses exceed net gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) directly against ordinary earned income (W-2 salary, interest, business profits), reducing your top marginal tax bracket.

03 / UNLIMITED CARRYFORWARD

Banking Lifetime Tax Shields

Capital losses do not expire under federal law. If you harvest a $30,000 loss during a severe bear market and have zero capital gains that year, you deduct $3,000 against ordinary income in year one and carry forward the remaining $27,000 to subsequent tax years. You continue offsetting $3,000 per year or extinguishing large future capital gains (such as selling a business or investment real estate) until the pool is exhausted.

04 / SUBSTITUTE ETF PAIRS

Zero Days Out of the Market

Novice investors mistakenly sell equities and sit in cash for 31 days to avoid wash sales, exposing themselves to catastrophic rebound risk. Professional investors immediately swap into a substitute ETF tracking a different index. For example, selling Vanguard S&P 500 ETF (VOO) and instantly buying Vanguard Large-Cap ETF (VV) or Schwab U.S. Large-Cap ETF (SCHX) maintains continuous equity exposure while fully satisfying IRC § 1091.

05 / THE BASIS STEP-UP ARBITRAGE

Deferral into Permanent Exemption

Critics argue that harvesting losses simply lowers your cost basis, meaning you will owe more tax when you eventually sell decades later. However: (1) a dollar saved today compounds over 20–30 years at market rates; (2) you may liquidate in retirement at a 0% or 15% long-term capital gains bracket; and (3) under IRC § 1014, unsold assets receive a stepped-up basis at death, permanently eliminating the deferred gain.

06 / SPECIFIC IDENTIFICATION

Selecting Highest-Cost Lots

To maximize harvested losses, you must configure your brokerage cost basis methodology to Specific Identification (SpecID) or Highest In, First Out (HIFO) rather than Average Cost or First In, First Out (FIFO). SpecID allows you to selectively liquidate only the highest-priced shares purchased near market peaks, maximizing the capital loss while preserving low-basis legacy shares.

Applied execution scenario

Brandon's $18,400 tech correction: Capturing tax alpha in real time.

Brandon, age 38, is a software engineering manager in Austin, Texas, earning $185,000 (32% federal income tax bracket). He holds $150,000 in Vanguard Total Stock Market ETF (VTI) in a taxable brokerage account. During an autumn market pullback, several tax lots of VTI purchased earlier in the year decline in market value, generating an unrealized loss of $18,400.

Rather than panic-selling to cash or ignoring the drop, Brandon executes a systematic tax-loss harvest:

  • Brandon checks that his automatic Dividend Reinvestment Plan (DRIP) is turned off and no automatic monthly investments executed within the prior 30 days.
  • Using Specific Share Identification, Brandon sells $65,000 worth of depressed VTI lots, realizing an immediate capital loss of $18,400.
  • Within seconds of the sale clearing, Brandon deploys the exact $65,000 proceeds into iShares Core S&P Total U.S. Stock Market ETF (ITOT). ITOT tracks the S&P Total Market Index, whereas VTI tracks the CRSP US Total Market Index. Because they track different proprietary indices managed by different commercial benchmark providers, they are not substantially identical under IRS guidelines.

Portfolio mapping

Primary & secondary ETF substitute pairs for U.S. investors.

To safely maintain asset class exposure while avoiding IRC § 1091 wash sales, swap between funds tracking different commercial benchmark indices.

Asset Class Primary Ticker & Index Harvest Partner 1 (Substitute) Harvest Partner 2 (Secondary)
U.S. Total Stock Market VTI (CRSP US Total Market) ITOT (S&P Total Market) SCHB (Dow Jones US Broad Market)
S&P 500 / Large Cap VOO (S&P 500 Index) SCHX (Schwab US Large-Cap) VV (CRSP US Large Cap)
Total International Stock VXUS (FTSE Global All Cap ex-US) IXUS (MSCI ACWI ex-US) VEU (FTSE All-World ex-US)
Total U.S. Bond Market BND (Bloomberg U.S. Aggregate) AGG (Bloomberg U.S. Aggregate)* SPAB (Bloomberg U.S. Aggregate)
Developed International VEA (FTSE Developed All Cap ex-US) IEFA (MSCI EAFE Investable Market) SCHF (FTSE Developed ex-US)

*Note: While BND and AGG track the same underlying index from different managers, tax professionals generally prefer pairing funds from differing index families (e.g. VTI vs ITOT) to provide unquestioned defense against IRS audit challenge.

Compliance hazards

Six catastrophic tax-loss harvesting mistakes to avoid.

Misunderstanding IRS Section 1091 can result in permanently destroyed tax deductions, unexpected IRS penalties, and taxable basis confusion.

TRAP 01

The IRA Wash Sale Disaster

Under IRS Revenue Ruling 2008-5, if you sell a security at a loss in a taxable account and repurchase it within 30 days inside an IRA or Roth IRA, the loss is disallowed, and the basis cannot be added to the IRA. The tax deduction is permanently vaporized with zero future recovery. Never purchase substitute securities inside retirement accounts within 30 days of a taxable sale.

TRAP 02

Automated Dividend Reinvestment (DRIP)

If you harvest a loss on VOO on September 15, and on September 28 your remaining VOO shares pay a quarterly dividend that automatically reinvests $45 into new VOO shares, that automatic reinvestment is an acquisition within the 30-day window! It creates a partial wash sale, disallowing a proportional fraction of your loss. Disable DRIP across all accounts prior to harvesting.

TRAP 03

Spousal Account Attribution

IRC § 1091 applies across all accounts controlled by you and your spouse if you file a joint tax return. If you sell VTI at a loss in your individual taxable account, and your spouse's 401(k) or Roth IRA purchases VTI two days later via automatic payroll deferral, the IRS treats it as a wash sale. Review both spouses' portfolios before harvesting.

TRAP 04

The Mutual Fund NAV Distribution Trap

Harvesting losses in mutual funds requires extreme caution in November and December. Actively managed mutual funds frequently distribute massive taxable capital gains at year-end. If you swap into a replacement mutual fund right before its ex-dividend date, you will incur an immediate taxable distribution on money you just invested.

TRAP 05

Brokerage 1099-B Blind Spots

Custodians (Fidelity, Schwab, Vanguard) only track wash sales that occur within the same account and same CUSIP. If you trigger a wash sale across two different brokerages or between a taxable account and an IRA, your Form 1099-B will not reflect the violation. However, you remain legally required on Form 8949 to manually report and disallow the loss.

TRAP 06

Excess Trading Spread Friction

Harvesting losses on low-volume, illiquid small-cap stocks or specialized sector ETFs can cost more in wide bid-ask trading spreads than the tax deduction yields. Only execute loss harvesting on liquid ETFs with penny-wide bid-ask spreads (such as VOO, VTI, ITOT, and VXUS).

Simulate Multi-Year Tax Savings in the Pro Workbench

Model your exact tax brackets, short-term vs. long-term gain offsets, and multi-year loss carryforward pools in our interactive Tax Command Center.

Launch Tax Command Center →

Action checklist

Your tax-loss harvesting execution protocol.

Follow these five systematic steps whenever market volatility generates significant unrealized losses in your taxable portfolio.

No actions saved yet.

Authoritative statutory sources

Federal tax code references for wash sales and capital losses.

Tax-loss harvesting and wash-sale compliance are strictly governed by federal statutes and IRS revenue rulings.

Primary references: 26 U.S. Code § 1091 (Loss from wash sales of stock or securities), IRS Publication 550: Investment Income and Expenses, IRS Form 1040 Schedule D, IRS Form 8949 (Sales and Other Dispositions of Capital Assets), and IRS Revenue Ruling 2008-5 (IRA Wash Sales).

Next: Learn where to locate stocks, bonds, and REITs across Taxable, Traditional, and Roth accounts.

General educational information only; not individualized tax, legal, or investment advice. Basic Investor is not an accounting firm or registered investment advisor. Consult a qualified CPA or Enrolled Agent for personal tax filing compliance.