Do Quick Calculation!

Perform fast calculations with our user-friendly online calculator! Conveniently crunch numbers and solve equations instantly. Ideal for quick math tasks, our tool simplifies your daily computations effortlessly. Try our intuitive calculator for accurate results on the go!

Wash Sale Rule Calculator

Calculate stock loss easily with our Wash Sale Rule Calculator. Find disallowed loss, allowed loss, and adjusted cost basis in seconds. Perfect for investors.

$
$
#
#
$

Investing in stocks can sometimes lead to losses. Many investors try to sell a stock at a loss to reduce their taxable income. However, tax rules prevent investors from claiming a loss if they quickly buy the same stock again. This rule is called the wash sale rule.

Our Wash Sale Rule Calculator helps you easily determine whether a wash sale occurs and how much loss is disallowed. The calculator also shows the allowed loss and the adjusted cost basis of replacement shares. This makes it simple for investors, traders, and tax planners to understand how their stock transactions affect taxes.

The tool is designed to provide fast and accurate results. You only need to enter a few values such as purchase price, selling price, number of shares sold, and replacement shares. The calculator then performs the wash sale calculation instantly.

What Is the Wash Sale Rule?

The wash sale rule is a tax regulation that applies when an investor sells a security at a loss and buys the same or a substantially identical security within a short period.

If this happens, the loss from the sale cannot be claimed as a tax deduction immediately. Instead, the loss is added to the cost basis of the newly purchased shares.

This rule was created to prevent investors from selling securities only to claim a tax benefit and then immediately buying them back.

The wash sale rule commonly applies to stocks, exchange-traded funds, mutual funds, and other securities.

Is the Wash Sale Rule 30 Days or 31 Days?

Many investors get confused about this rule. The wash sale rule actually covers a 61-day window.

This period includes the day of the sale, the 30 days before the sale, and the 30 days after the sale.

If you purchase substantially identical shares during this period, the transaction becomes a wash sale. This means the loss from the original sale is not immediately deductible.

For example, if you sell a stock at a loss on March 1 and buy the same stock again on March 20, the wash sale rule will apply because the repurchase happened within 30 days after the sale.

Wash Sale Rule Formula

The wash sale rule calculation determines how much loss is disallowed and how much loss can still be claimed.

First, calculate the loss per share.

Loss per share = Purchase price − Selling price

Next, calculate the total realized loss.

Total loss = Loss per share × Number of shares sold

Then determine how many shares are matched with the replacement shares.

Matched shares = Minimum of replacement shares and original shares sold

Now calculate the disallowed loss.

Disallowed loss = Total loss × (Matched shares ÷ Original shares sold)

The remaining portion becomes the allowed loss.

Allowed loss = Total loss − Disallowed loss

If replacement shares were purchased, the disallowed loss must be added to the cost basis.

Adjusted cost basis = Replacement purchase cost + Disallowed loss

Replacement purchase cost = Replacement price × Replacement shares

How Do I Calculate a Wash Sale?

You can calculate a wash sale manually, but it often requires several steps and careful calculations. This is why an online wash sale rule calculator is very useful.

To calculate a wash sale, you must determine the original loss from selling shares and check whether replacement shares were purchased within the wash sale period. If replacement shares exist, the loss must be proportionally deferred based on how many shares were repurchased.

Our calculator automates this entire process and shows accurate results instantly.

How to Use the Online Wash Sale Rule Calculator

Using the online wash sale rule calculator is simple and only takes a few seconds.

  1. First, enter the purchase price per share of the stock you originally bought.
  2. Next, enter the selling price per share at which the stock was sold.
  3. After that, input the number of original shares sold at a loss.
  4. Then enter the number of replacement shares that were purchased within the wash sale window.
  5. Finally, enter the price per share of the replacement stock purchase.

Once all values are entered, the calculator automatically computes the loss per share, total loss, disallowed loss, allowed loss, and the adjusted cost basis of the replacement shares.

Example Wash Sale Rule Calculation

Imagine an investor buys 100 shares of a stock for $50 per share. Later, the investor sells the shares at $40 per share.

The loss per share would be calculated as follows.

Loss per share = 50 − 40

Loss per share = 10

Now calculate the total loss.

Total loss = 10 × 100

Total loss = 1000

Within the wash sale window, the investor buys 50 replacement shares at $42 per share.

Next calculate matched shares.

Matched shares = minimum of 50 and 100

Matched shares = 50

Now calculate the disallowed loss.

Disallowed loss = 1000 × (50 ÷ 100)

Disallowed loss = 500

The allowed loss becomes:

Allowed loss = 1000 − 500

Allowed loss = 500

Now calculate the replacement purchase cost.

Replacement purchase cost = 42 × 50

Replacement purchase cost = 2100

Finally calculate the adjusted cost basis.

Adjusted cost basis = 2100 + 500

Adjusted cost basis = 2600

The new cost basis per share becomes:

Adjusted cost basis per share = 2600 ÷ 50

Adjusted cost basis per share = 52

This means the deferred loss increases the cost basis of the replacement shares.

Final Verdict

Understanding the wash sale rule is essential for investors who want to manage taxes effectively. The rule prevents investors from claiming artificial losses while still holding the same investment.

Our Wash Sale Rule Calculator makes this process simple. By entering a few values, you can instantly see how much loss is disallowed, how much is deductible, and how your replacement shares’ cost basis changes.

This tool helps investors make smarter trading decisions and stay compliant with tax regulations.

FAQs

What is a wash sale in stock trading?

A wash sale occurs when an investor sells a security at a loss and buys the same or substantially identical security within the wash sale period. The loss cannot be claimed immediately.

How do I calculate a wash sale?

To calculate a wash sale, determine the total loss from the original sale and then apply the proportion of replacement shares purchased within the wash sale window. The matched portion of the loss becomes disallowed and is added to the cost basis of replacement shares.

Is the wash sale rule 30 days or 31 days?

The wash sale rule includes a 61-day window. This includes the day of the sale, 30 days before the sale, and 30 days after the sale.

What happens to the disallowed loss?

The disallowed loss is added to the cost basis of the replacement shares. This increases the purchase cost and may reduce future taxable gains.

Does the wash sale rule apply to all investments?

The rule mainly applies to stocks, ETFs, mutual funds, and similar securities when they are sold at a loss and repurchased within the wash sale period.