Wash Sale Rule Calculator

Calculate the financial impact of wash sale rules on your investments. This tool helps investors understand potential tax implications of their trades.

Wash Sale Calculator

Full original guide (expanded)

Wash Sale Rule Calculator

This calculator helps investors determine the tax implications of wash sales. It's designed for traders looking to optimize their tax strategy by understanding potential wash sale penalties.

Results

Data Source and Methodology

All calculations are based on IRS guidelines regarding wash sales. Please refer to the official IRS documentation for detailed information.

The Formula Explained

The calculation checks if a repurchase within 30 days of a sale results in a wash sale.

Glossary of Terms

  • Sale Date: The date on which the security was sold.
  • Repurchase Date: The date on which the security was repurchased.
  • Sale Price: The amount received from the sale of the security.
  • Repurchase Price: The cost of buying the security back.

How It Works: A Step-by-Step Example

Imagine you sold a stock for $1000 on January 1 and bought it back for $950 on January 15. This would trigger a wash sale as the repurchase happened within the 30-day window.

Frequently Asked Questions (FAQ)

What is a wash sale?

A wash sale occurs when an investor sells a security at a loss and repurchases the same or a substantially identical security within 30 days before or after the sale.

How does the wash sale rule affect my taxes?

The wash sale rule prevents investors from claiming a tax deduction for a security sold in a wash sale. The disallowed loss is added to the cost basis of the repurchased security.

Can I avoid a wash sale?

To avoid a wash sale, ensure that you do not repurchase the same or a substantially identical security within 30 days of the sale.

What is the 30-day rule?

The 30-day rule refers to the window in which a repurchase of a sold security can trigger a wash sale.

What happens to disallowed losses?

Disallowed losses from a wash sale are added to the cost basis of the repurchased stock.


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\]
','
Formula (extracted LaTeX)
\[{(salePrice - repurchasePrice).toFixed(2)} cannot be deducted and is added to the cost basis of the repurchased stock.</p>`; } else { resultContent.innerHTML = `<p class="result-label">No wash sale is triggered. You can deduct the loss of\]
{(salePrice - repurchasePrice).toFixed(2)} cannot be deducted and is added to the cost basis of the repurchased stock.</p>`; } else { resultContent.innerHTML = `<p class="result-label">No wash sale is triggered. You can deduct the loss of
Variables and units
  • T = property tax (annual or monthly depending on input) (currency)
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn

Wash Sale Rule Calculator

This calculator helps investors determine the tax implications of wash sales. It's designed for traders looking to optimize their tax strategy by understanding potential wash sale penalties.

Wash Sale Calculator

Results

Data Source and Methodology

All calculations are based on IRS guidelines regarding wash sales. Please refer to the official IRS documentation for detailed information.

The Formula Explained

The calculation checks if a repurchase within 30 days of a sale results in a wash sale.

Glossary of Terms

  • Sale Date: The date on which the security was sold.
  • Repurchase Date: The date on which the security was repurchased.
  • Sale Price: The amount received from the sale of the security.
  • Repurchase Price: The cost of buying the security back.

How It Works: A Step-by-Step Example

Imagine you sold a stock for $1000 on January 1 and bought it back for $950 on January 15. This would trigger a wash sale as the repurchase happened within the 30-day window.

Frequently Asked Questions (FAQ)

What is a wash sale?

A wash sale occurs when an investor sells a security at a loss and repurchases the same or a substantially identical security within 30 days before or after the sale.

How does the wash sale rule affect my taxes?

The wash sale rule prevents investors from claiming a tax deduction for a security sold in a wash sale. The disallowed loss is added to the cost basis of the repurchased security.

Can I avoid a wash sale?

To avoid a wash sale, ensure that you do not repurchase the same or a substantially identical security within 30 days of the sale.

What is the 30-day rule?

The 30-day rule refers to the window in which a repurchase of a sold security can trigger a wash sale.

What happens to disallowed losses?

Disallowed losses from a wash sale are added to the cost basis of the repurchased stock.


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\]
','
Formula (extracted LaTeX)
\[{(salePrice - repurchasePrice).toFixed(2)} cannot be deducted and is added to the cost basis of the repurchased stock.</p>`; } else { resultContent.innerHTML = `<p class="result-label">No wash sale is triggered. You can deduct the loss of\]
{(salePrice - repurchasePrice).toFixed(2)} cannot be deducted and is added to the cost basis of the repurchased stock.</p>`; } else { resultContent.innerHTML = `<p class="result-label">No wash sale is triggered. You can deduct the loss of
Variables and units
  • T = property tax (annual or monthly depending on input) (currency)
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn

Wash Sale Rule Calculator

This calculator helps investors determine the tax implications of wash sales. It's designed for traders looking to optimize their tax strategy by understanding potential wash sale penalties.

Wash Sale Calculator

Results

Data Source and Methodology

All calculations are based on IRS guidelines regarding wash sales. Please refer to the official IRS documentation for detailed information.

The Formula Explained

The calculation checks if a repurchase within 30 days of a sale results in a wash sale.

Glossary of Terms

  • Sale Date: The date on which the security was sold.
  • Repurchase Date: The date on which the security was repurchased.
  • Sale Price: The amount received from the sale of the security.
  • Repurchase Price: The cost of buying the security back.

How It Works: A Step-by-Step Example

Imagine you sold a stock for $1000 on January 1 and bought it back for $950 on January 15. This would trigger a wash sale as the repurchase happened within the 30-day window.

Frequently Asked Questions (FAQ)

What is a wash sale?

A wash sale occurs when an investor sells a security at a loss and repurchases the same or a substantially identical security within 30 days before or after the sale.

How does the wash sale rule affect my taxes?

The wash sale rule prevents investors from claiming a tax deduction for a security sold in a wash sale. The disallowed loss is added to the cost basis of the repurchased security.

Can I avoid a wash sale?

To avoid a wash sale, ensure that you do not repurchase the same or a substantially identical security within 30 days of the sale.

What is the 30-day rule?

The 30-day rule refers to the window in which a repurchase of a sold security can trigger a wash sale.

What happens to disallowed losses?

Disallowed losses from a wash sale are added to the cost basis of the repurchased stock.


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\]
','
Formula (extracted LaTeX)
\[{(salePrice - repurchasePrice).toFixed(2)} cannot be deducted and is added to the cost basis of the repurchased stock.</p>`; } else { resultContent.innerHTML = `<p class="result-label">No wash sale is triggered. You can deduct the loss of\]
{(salePrice - repurchasePrice).toFixed(2)} cannot be deducted and is added to the cost basis of the repurchased stock.</p>`; } else { resultContent.innerHTML = `<p class="result-label">No wash sale is triggered. You can deduct the loss of
Variables and units
  • T = property tax (annual or monthly depending on input) (currency)
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).