Stock Wash Sale Rule & Short-Term vs. Long-Term Capital Gains Tax Calculator
Calculate disallowed losses, cost basis adjustments, and taxable net capital gains under the IRS 30-day wash sale rule for stock and ETF trading accounts now.
Direct Rate-Card Audit (Verified against official 2026 platform documentation)
Dual-model mathematical verification against published developer documentation, SEC 10-K/10-Q filings, and merchant platform agreements. Our algorithms are open-source and deterministic, ensuring zero sponsored skew or affiliate distortion in calculation outputs.
Interactive Platform Profit & Margin Engine
Unit Economics & Take-Home Yield
Financial & Tax Disclaimer: Figures are estimates based on user inputs and published 2026 platform schedules. CreatorCalcLab does not provide CPA or legal tax advice. Verify specific account charges with your merchant statements.
Share & Save This Calculator
Copy live calculations or pin the high-resolution 2026 fee cheat-sheet.
Deconstructing Financial Realities in 2026
Tax-loss harvesting is a premier wealth preservation strategy employed by equity investors to offset realized capital gains and reduce ordinary taxable income. However, executing tax-loss sales without rigorous calendar tracking exposes investors to IRS Section 1091: the Wash-Sale Rule. Under federal tax law, if an investor sells corporate stock or securities at a tax loss and, within a 61-day window (30 calendar days before the sale, the day of the sale, or 30 calendar days after the sale), purchases "substantially identical" stock or acquires options contracts to buy replacement shares, the realized loss is legally disallowed for current tax year deduction. The disallowed capital loss is not permanently forfeited; instead, the IRS mandates that the unallowable loss amount is added directly to the cost basis of the newly acquired replacement shares. Furthermore, the holding period of the original liquidated stock lot is tacked onto the replacement shares, dictating whether future sales qualify for short-term ordinary income rates (up to 37%) or preferential long-term capital gains rates (0%, 15%, or 20%). Understanding wash sale mathematics protects tax deductions across active brokerage portfolios.
Exact Mathematical Formula & Logic
Unlike simplistic estimates, our algorithmic engine calculates net profit by computing discrete operational friction variables:
Formula Variable Legend
The dollar loss generated on the sale of original shares that cannot be deducted on Schedule D due to the 30-day repurchase rule.
The gross execution price per share paid to acquire the new substantially identical stock or options contract.
The new IRS-compliant cost basis per share of the replacement shares, incorporating the deferred tax loss.
Original share purchase date duration tacked onto replacement shares to determine long-term status (366+ days).
Tax-Loss Harvesting 80 Shares of a Tech Stock and Repurchasing Within 14 Days
An investor holds 80 shares of an enterprise cloud software company purchased in February 2026 at $175.00 per share (cost basis: $14,000.00). In October 2026, the stock drops to $145.00. The investor sells all 80 shares to claim a $2,400.00 capital loss to offset earlier capital gains. However, 14 days later, the stock dips to $148.00 and the investor repurchases 80 replacement shares. The investor needs to model the disallowed loss and calculate their new adjusted cost basis for IRS Form 8949.
Step-by-Step Mathematical Reconciliation
Wash Sale Impact Across Replacement Purchase Scenarios (2026)
Directly audited against published 2026 Merchant Agreements & Terms
| Initial Loss Realized | Replacement Timing | Disallowed Loss Amount | Cost Basis Adjustment | Current Tax Year Deductibility |
|---|---|---|---|---|
| $1,500.00 Stock Loss | Repurchased 10 Days Later | $1,500.00 Disallowed | Added to replacement share basis | 0% Deductible (Deferred to future) |
| $3,000.00 Stock Loss | Repurchased 28 Days Later | $3,000.00 Disallowed | Added to replacement share basis | 0% Deductible (Deferred to future) |
| $5,000.00 Stock Loss | Waited 31 Calendar Days | $0.00 Disallowed (Clean) | None (Basis matches purchase price) | 100% Deductible in Current Year |
| $2,000.00 Stock Loss | Purchased in Roth IRA | $2,000.00 Disallowed | Permanently Lost (Cannot adjust IRA) | 0% Deductible (Tax Trap Warning) |
| $4,000.00 Stock Loss | Bought Uncorrelated ETF | $0.00 Disallowed (Clean) | None (Different non-identical asset) | 100% Deductible in Current Year |
Actionable Levers to Expand Net Margins
Tactical interventions designed by our financial modeling desk to defend cash flows.
Substitute Non-Identical Sector ETFs During the 30-Day Window
To harvest a tax loss without losing market exposure, sell an individual stock (e.g., Nvidia) and immediately invest the proceeds into a diversified semiconductor ETF (e.g., SMH or SOXX). The IRS does not consider a diversified ETF substantially identical to a single company stock, locking in 100% of the tax deduction.
Never Trigger a Wash Sale Inside a Traditional or Roth IRA
Under IRS Revenue Ruling 2008-5, if you sell stock at a loss in a taxable brokerage account and repurchase replacement shares in a Roth or Traditional IRA within 30 days, the loss is disallowed AND cannot be added to the IRA basis. The tax loss is permanently lost forever.
Wait Full 31 Calendar Days Before Re-Entering Core Equity Positions
Count calendar days carefully: Day 0 is the sale date. You must wait through Day 30 and execute the repurchase on Day 31 or later. Setting automated calendar alerts prevents premature repurchases that accidentally disallow valuable five-figure capital loss deductions.
Frequently Asked Questions
Detailed technical answers addressing 2026 fee policy adjustments.
Q: Does the IRS wash sale rule apply to cryptocurrency trading in 2026?
As of 2026 federal tax regulations, cryptocurrency is classified as property rather than stock or securities under IRC Section 1091. Consequently, traditional wash sale rules do not currently apply to Bitcoin and digital assets, allowing crypto investors to sell at a loss and immediately repurchase, though proposed Congressional legislation seeks to close this loophole.
Q: What constitutes "substantially identical" securities under IRS guidelines?
Common stock and preferred stock of the same corporation with voting rights are considered substantially identical by the IRS. Similarly, call options contracts and forward agreements on the same underlying stock trigger wash sales. However, stock of two different competing companies in the same industry (e.g., Apple vs. Microsoft) is not substantially identical under tax law.
Q: Can I sell shares at a loss in one brokerage and buy in another without triggering a wash sale?
No. The IRS wash sale rule applies across all accounts owned by the same taxpayer (and their spouse if filing jointly), including taxable accounts at multiple brokerage custodians (Schwab, Fidelity, Robinhood) and retirement accounts. Brokerages only track wash sales within their own accounts, making manual reconciliation on Form 8949 mandatory.
Q: How much net capital loss can an individual deduct against ordinary income each year?
Under federal tax law, taxpayers can use realized capital losses to offset unlimited realized capital gains. If net capital losses exceed total capital gains, individuals can deduct up to $3,000.00 ($1,500.00 if married filing separately) against ordinary income per year. Unused net losses roll forward indefinitely to future tax years.
Q: How does the holding period tacking rule work on wash-sale replacement shares?
When a wash sale occurs, the holding period of the original loss-making stock is added to the holding period of the replacement shares. If you held the original stock for 7 months before selling at a loss, your replacement shares start with 7 months of accrued holding time, reaching the 12-month long-term capital gains threshold after just 5 additional months.