Stock Loss Calculator

Calculate your stock losses, tax deduction potential, and capital loss carryforward. Understand how losses offset gains for tax planning.

MB
Operated by Mustafa Bilgic
Independent individual operator
|Profit & LossEducational only

Input Values

$

Price per share at purchase.

$

Current price or sale price.

Number of shares.

$

Total capital gains from other sales this tax year.

%

Your federal marginal tax bracket.

Results

Total Loss
$0.00
Percentage Loss
0.00%
Gains Offset$0.00
Ordinary Income Deduction$0.00
Estimated Tax Savings$0.00
Results update automatically as you change input values.

Related Strategy Guides

Understanding Stock Losses

Stock losses, while never desirable, can serve a valuable tax purpose. In the US, capital losses can offset capital gains dollar for dollar, and up to $3,000 in net capital losses can be deducted against ordinary income each year. Any remaining losses carry forward indefinitely to future tax years.

Tax-loss harvesting, the strategy of intentionally realizing losses to offset gains, is a powerful tax planning tool. This calculator helps you quantify your losses and understand their tax impact.

Stock Loss Calculation
Loss = (Purchase Price - Sale Price) × Shares
Where:
Purchase Price = Original price per share
Sale Price = Price at which shares were sold
Shares = Number of shares sold
Tax Savings from Loss
Tax Savings = Deductible Loss × Tax Rate
Where:
Deductible Loss = Amount of loss that offsets gains or income
Tax Rate = Your marginal tax rate
Stock Loss and Tax Impact Example
Given
Purchase Price
$85
Sale Price
$52
Shares
100
Other Gains
$5,000
Tax Bracket
24%
Calculation Steps
  1. 1Total Loss = ($85 - $52) × 100 = $3,300
  2. 2Percentage Loss = $3,300 / $8,500 = 38.8%
  3. 3Gains Offset = min($3,300, $5,000) = $3,300
  4. 4Remaining gains = $5,000 - $3,300 = $1,700 (still taxable)
  5. 5No excess loss for ordinary income deduction
  6. 6Tax Savings = $3,300 × 24% = $792
Result
The $3,300 stock loss offsets $3,300 of the $5,000 in other capital gains, saving approximately $792 in federal taxes. The remaining $1,700 in gains is still taxable.

Tax-Loss Harvesting Rules

Capital Loss Tax Rules (US)
RuleDetailLimitCarryforward
Offset capital gainsLosses offset gains dollar for dollarUnlimitedN/A
Offset ordinary incomeNet losses deduct from ordinary income$3,000/year ($1,500 married filing separately)Indefinite
Wash sale ruleCannot rebuy same security within 30 daysN/ALoss is disallowed, added to new cost basis
Long vs. short matchingShort losses offset short gains first, then longN/AUnused losses carry character

Tax-Loss Harvesting Strategy

1
Identify Losing Positions
Review your portfolio for positions with unrealized losses. These are candidates for tax-loss harvesting.
2
Calculate Tax Benefit
Multiply the potential loss by your tax rate to estimate savings. A $5,000 loss at 24% bracket saves $1,200.
3
Sell and Replace
Sell the losing position and replace it with a similar (but not substantially identical) investment to maintain market exposure while realizing the loss.
4
Avoid Wash Sales
Do not repurchase the same security within 30 days before or after the sale. Buy a different ETF or stock in the same sector instead.
!
The Wash Sale Rule

If you sell a stock at a loss and buy the same or substantially identical security within 30 days before or after the sale, the loss is disallowed. The disallowed loss is added to the cost basis of the new shares. This applies across all your accounts, including IRAs.

  • Capital losses have no expiration date; unused losses carry forward indefinitely
  • Married couples filing jointly share the $3,000 ordinary income deduction limit
  • Short-term losses are more valuable tax-wise because they offset short-term gains taxed at higher rates
  • Consider tax-loss harvesting in December to offset current-year gains
  • Unrealized losses are not deductible; you must sell to realize the loss for tax purposes

The Math of Stock Losses: Why Recovering Takes Longer Than You Think

One of the most important mathematical concepts in investing is the asymmetry of gains and losses. A 50% loss does not require a 50% gain to recover — it requires a 100% gain to break even. This asymmetry becomes more severe as losses grow: a 10% loss requires an 11.1% gain to recover; a 25% loss requires 33.3%; a 50% loss requires 100%; a 75% loss requires 300%. This is why risk management — limiting the size of any single loss — is the cornerstone of long-term investing success. Understanding the math of stock losses explains why Warren Buffett's first rule of investing is 'Never lose money' (and rule two: 'Never forget rule one').

The wash-sale rule is critical to understand when realizing stock losses. If you sell a stock at a loss and repurchase the same or substantially identical stock within 30 days before or after the sale, the IRS disallows the loss for tax purposes. The disallowed loss is added to the cost basis of the repurchased shares. This rule exists to prevent investors from manufacturing tax losses while maintaining their investment position. To harvest a tax loss while staying invested, you can immediately purchase a similar (but not substantially identical) ETF or stock in the same sector.

Stop-Loss Strategies to Limit Stock Losses

Professional traders and risk managers use predefined stop-loss levels to cap losses before they become unrecoverable. Common approaches include: percentage-based stops (exit if the stock falls 8-15% from purchase price), volatility-adjusted stops (exit if the stock moves more than 2-3 standard deviations below your entry), and mental stops (predetermined exit conditions based on fundamental changes in the business). Trailing stops automatically move up with stock price gains but trigger if the stock falls a set percentage from its peak. Research on retail investor behavior shows that reluctance to take losses early (the 'disposition effect') is one of the most costly behavioral biases in investing.

~
Tax-Loss Harvesting: Turning Losses into Tax Savings

Every losing position in a taxable account represents a potential tax asset. Selling a stock at a $5,000 loss generates a $5,000 capital loss deduction that can offset capital gains (saving 15-23.8% in federal taxes) or up to $3,000 of ordinary income (saving up to 37%). In high-tax states, the combined federal and state tax savings from harvesting losses can be 30-50% of the loss amount. This turns a painful situation into a meaningful tax benefit.

Recommended Reading

Affiliate

As an Amazon Associate, we earn from qualifying purchases.

Frequently Asked Questions

Capital losses offset capital gains dollar for dollar. If losses exceed gains, up to $3,000 per year can offset ordinary income. Remaining losses carry forward indefinitely. A $3,300 loss with $5,000 in gains reduces taxable gains to $1,700.

Sources & References

Embed This Calculator on Your Website

Free to use with attribution

Copy the code below to add this calculator to your website, blog, or article. A link back to CoveredCallCalculator.net is included automatically.

<iframe src="https://coveredcallcalculator.net/embed/stock-loss-calculator" width="100%" height="500" frameborder="0" title="Stock Loss Calculator" style="border:1px solid #e2e8f0;border-radius:12px;max-width:600px;"></iframe>
<p style="font-size:12px;color:#64748b;margin-top:8px;">Calculator by <a href="https://coveredcallcalculator.net" target="_blank" rel="noopener">CoveredCallCalculator.net</a></p>

Related Calculators

Profit & Loss

Stock Gain Calculator

Calculate stock gains from purchase and sale prices. Free stock gain calculator with capital gains analysis, tax impact, and annualized return calculations.

Trading Tools

Stock Profit Calculator

Calculate your stock profit, loss, and return on investment instantly. Free stock profit calculator with dividend income, fees, and tax estimation included.

Profit & Loss

Margin Calculator

Calculate profit margin, gross margin, and markup instantly. Free margin calculator with formulas, examples, and step-by-step breakdowns for US and Canadian businesses.

Profit & Loss

Capital Gains Calculator

Calculate capital gains tax on stocks, real estate, and investments. Free calculator with short-term and long-term capital gains rates for US federal and state.

Profit & Loss

Stock Profit & Loss Calculator

Calculate your stock profit or loss instantly. Free stock calculator with buy/sell price, shares, commissions, dividends, and after-tax return analysis.

Profit & Loss

Cost Basis Calculator

Calculate cost basis for stocks, options, and investments. Free cost basis calculator with FIFO, average cost, and specific lot identification methods for tax reporting.

Options Basics

Options Investing Guide

Learn how to use options as an investing tool for income, protection, and growth. Discover how options complement a long-term portfolio.

Covered Calls

Covered Call Calculator

Calculate your covered call returns, breakeven price, maximum profit, and downside protection. Free online covered call options calculator with real-time results for US and Canadian investors in 2026.

More Picks You Might Like

Affiliate

As an Amazon Associate, we earn from qualifying purchases.