Wash-Sale Rule Calculator

Isolate the mathematical truth of the IRS 30-day tax trap. Calculate exact disallowed losses, partial wash ratios, and the adjusted cost basis for your repurchased shares.

1. Original Trade (The Loss)

2. Replacement Trade (The Wash)

IRS rule flags trades within 30 days (before or after).

Awaiting Parameters

Input original loss details and replacement trade to map the structural tax erosion.

Wash Sale Adjustment Matrix

Decoding The Matrix: Wash Sale Rules & Cost Basis

A catastrophic mathematical mistake active traders make is attempting to harvest capital losses without respecting the IRS 30-day window. The Wash-Sale Rule states that if you sell a stock or crypto asset at a loss and buy a "substantially identical" asset within 30 days before or after the sale, the IRS will disallow the loss. Your tax shield is temporarily vaporized. Our Wash-Sale Rule Analyst automatically detects if you have triggered this penalty, calculates exactly how much loss is disallowed (crucial for partial wash sales), and reveals your new, adjusted cost basis.

Foundational Tax Trap Truths

To accurately map your true net liquidity and avoid IRS audits, you must understand the mechanical execution of a wash sale:

  • The 61-Day Danger Window

    The "30-Day Rule" is actually a 61-day window. It includes the 30 days *before* the sale, the day of the sale itself, and the 30 days *after* the sale. If you buy the exact same asset within this continuous 61-day period, the loss on the sale is completely disallowed for current-year tax purposes.

  • The Cost Basis Adjustment (Deferral)

    A disallowed loss is not permanently lost. The IRS requires you to mathematically add the disallowed amount to the cost basis of the *newly purchased* replacement shares. This raises your cost basis higher than the actual cash you paid. When you eventually sell those replacement shares, the deferred loss will finally be recognized, structurally lowering your future tax burden.

  • Partial Wash Sale Ratios

    If you sell 100 shares at a loss, but only buy back 50 shares within the 30-day window, you do not lose the entire tax shield. This triggers a "Partial Wash Sale." The IRS disallows exactly 50% of your loss (which is added to the 50 new shares), but permits you to immediately claim and harvest the remaining 50% loss on the un-replaced shares.

Expand Your Wealth Stack Modeling

Once you identify your exact allowed tax losses, pivot your focus to capital reallocation. If you are generating a high net cash flow by legally harvesting losses, determine whether you should use those yields to purchase physical assets using our Universal EMI Calculator. Alternatively, if you are carrying existing leverage, utilize our Stock Capital Gains Analyst to run a side-by-side efficiency matrix to track your adjusted basis against future long-term capital gains brackets.

Explore Next: Strategic Analytics

Frequently Asked Questions

What is the Wash-Sale Rule?

The Wash-Sale Rule prevents taxpayers from claiming an artificial capital loss for tax purposes. If you sell a security at a loss and buy a 'substantially identical' security within 30 days before or after the sale, the IRS disallows the loss deduction on your current year's taxes.

What happens to the disallowed loss?

A disallowed wash sale loss does not disappear permanently. Instead, the disallowed amount is mathematically added to the cost basis of the replacement shares you purchased. You will eventually claim the loss when you sell the replacement shares (assuming you don't trigger another wash sale).

What is a Partial Wash Sale?

If you buy back fewer shares than you originally sold at a loss, it triggers a partial wash sale. For example, if you sell 100 shares at a loss but only buy back 50 shares within 30 days, exactly 50% of your loss is disallowed and added to the new basis, while the remaining 50% is an allowed loss you can claim immediately.

Does the wash-sale rule apply to Cryptocurrency?

Historically, the IRS considered crypto as property, meaning wash sale rules did not strictly apply. However, recent and upcoming regulatory changes are actively closing this loophole. It is highly recommended to model your crypto trades as if the wash sale rule applies to avoid unexpected audit liabilities.