Fidamen

Wash Sale Calculator

This calculator estimates the portion of a loss on the sale of a security that is disallowed under the wash-sale rule and computes the adjusted tax basis for replacement shares when repurchases occur within the 30-day window.

Use the multi-lot method to model up to three replacement purchases and a FIFO-style allocation of disallowed loss. Results are illustrative and intended to help with record-keeping and preparation; they are not a substitute for professional tax advice.

Updated Nov 20, 2025QA PASS — golden 25 / edge 120Run golden-edge-2026-01-23

Governance

Record c78753a9b41c • Reviewed by Fidamen Standards Committee

Allocates disallowed loss to replacement shares purchased within the 30-day window across up to three replacement lots and computes adjusted replacement basis using a weighted-average replacement cost.

Inputs

Results

Updates as you type

Per-share realized loss

$10.00

Replacement shares absorbing loss

0

Disallowed loss (total)

$0.00

Adjusted basis per replacement share

$0.00

OutputValueUnit
Per-share realized loss$10.00USD
Replacement shares absorbing loss0shares
Disallowed loss (total)$0.00USD
Adjusted basis per replacement share$0.00USD
Primary result$10.00

Visualization

Methodology

The tool follows the IRS wash-sale principle: when substantially identical securities are repurchased within 30 days before or after a loss sale, the loss attributable to the replacement shares is disallowed and is added to the basis of those replacement shares.

Computation: calculate per-share realized loss (original cost per share minus sell price, floored at zero), determine how many replacement shares fall within the 30-day window, multiply per-share loss by the number of replacement shares that can absorb the loss, and allocate that disallowed loss to the replacement shares by adding the disallowed amount per share to their purchase cost.

Security and quality statements: this tool follows secure development and data-handling recommendations and quality management guidance; see NIST and ISO references in citations. Outputs depend on user input accuracy and rounding rules.

Key takeaways

Enter the sold-share cost, sell price, quantity, replacement lot quantities and costs, and days between sale and repurchase. Use the multi-lot FIFO method for typical brokerage-like allocation.

This calculator gives an estimate of disallowed loss and adjusted basis. Confirm figures with brokerage statements and consult a tax professional before filing.

Worked examples

Example 1: Sell 100 shares at a $10 loss per share and buy 50 replacement shares within 30 days. Disallowed loss = $10 × 50 = $500. If the 50 replacement shares cost $95 each, the adjusted basis per replacement share = 95 + (500 / 50) = $105.

Example 2: Sell 100 shares at a $2 loss per share and buy 120 replacement shares within 30 days across multiple lots. Applicable replacement shares = min(100, 120) = 100, disallowed loss = $2 × 100 = $200. The $200 is allocated across the replacement shares' basis calculation as specified.

F.A.Q.

Does this tool replace official IRS guidance?

No. This tool provides estimates based on standard wash-sale principles. Refer to the IRS for authoritative rules and consult a tax professional for decisions.

What if I sold multiple lots at different cost bases?

This calculator uses a simplified single-cost-basis input for the sold shares. For multiple sold lots or detailed lot-level matching, use brokerage-provided lot reports or tax software that supports per-lot matching and record-level adjustments.

How precise are results and how should I handle rounding?

Results are subject to rounding based on currency precision. For tax reporting, follow the rounding and basis conventions recommended by your tax advisor or brokerage records.

What if replacement shares are purchased more than 30 days before the sale?

Purchases more than 30 days before the sale are not in the standard 30-day wash-sale window (unless also repurchased within 30 days after the sale). This calculator requires you to enter the days between sale and replacement; if greater than 30, disallowed loss is reported as zero.

Sources & citations

Further resources

Versioning & Change Control

Audit record (versions, QA runs, reviewer sign-off, and evidence).

Record ID: c78753a9b41c

What changed (latest)

v1.0.02025-11-20MINOR

Initial publication and governance baseline.

Why: Published with reviewed formulas, unit definitions, and UX controls.

Public QA status

PASS — golden 25 + edge 120

Last run: 2026-01-23 • Run: golden-edge-2026-01-23

Engine

v1.0.0

Data

Baseline (no external datasets)

Content

v1.0.0

UI

v1.0.0

Governance

Last updated: Nov 20, 2025

Reviewed by: Fidamen Standards Committee (Review board)

Credentials: Internal QA

Risk level: low

Reviewer profile (entity)

Fidamen Standards Committee

Review board

Internal QA

Entity ID: https://fidamen.com/reviewers/fidamen-standards-committee#person

Semantic versioning

  • MAJOR: Calculation outputs can change for the same inputs (formula, rounding policy, assumptions).
  • MINOR: New features or fields that do not change existing outputs for the same inputs.
  • PATCH: Bug fixes, copy edits, or accessibility changes that do not change intended outputs except for previously incorrect cases.

Review protocol

  • Verify formulas and unit definitions against primary standards or datasets.
  • Run golden-case regression suite and edge-case suite.
  • Record reviewer sign-off with credentials and scope.
  • Document assumptions, limitations, and jurisdiction applicability.

Assumptions & limitations

  • Uses exact unit definitions from the Fidamen conversion library.
  • Internal calculations use double precision; display rounding follows the unit's configured decimal places.
  • Not a substitute for calibrated instruments in regulated contexts.
  • Jurisdiction-specific rules may require official guidance.

Change log

v1.0.02025-11-20MINOR

Initial publication and governance baseline.

Why: Published with reviewed formulas, unit definitions, and UX controls.

Areas: engine, content, ui • Reviewer: Fidamen Standards Committee • Entry ID: 8c024150adfa