Free Stock Loss Calculator
Calculate the profit or loss on any stock investment using real historical prices. Enter your stock ticker, purchase date, and sale date to instantly see your gain or loss.
What Is a Stock Loss Calculator?
A stock loss calculator is a financial tool that helps investors determine the profit or loss on a stock investment. By entering the stock ticker, purchase date, and sale date, the calculator fetches real historical closing prices and computes the exact dollar amount and percentage change of your investment. Whether you made money or lost money on a trade, this tool gives you a clear, data-driven answer.
Unlike basic calculators that require you to manually enter prices, our stock loss calculator automatically retrieves actual market data from FinancialModelingPrep. This means you get accurate results based on real closing prices — no guesswork needed. It supports both realized losses (stocks you have sold) and unrealized losses (stocks you still hold) by fetching the current live quote.
How to Use This Stock Loss Calculator
- Search for Your Stock: Enter the company ticker symbol (e.g., AAPL for Apple, TSLA for Tesla, AMZN for Amazon) in the search box. Select the correct stock from the dropdown results.
- Choose Calculation Type: Select "Realized" if you have already sold the stock, or "Unrealized" if you are still holding it and want to see your current paper gain or loss.
- Enter Dates: Provide the purchase date and, for realized calculations, the sale date. The calculator will fetch the historical closing price for each date.
- Enter Number of Shares: Input how many shares you bought. This is used to calculate the total dollar amount of your gain or loss.
- Calculate: Click the button to fetch real prices and see a complete breakdown of your investment performance, including total cost, total proceeds, net profit or loss, and percentage return.
Understanding Realized vs. Unrealized Losses
A realized loss occurs when you sell a stock for less than you paid. This loss is "locked in" and can potentially be used for tax-loss harvesting — offsetting capital gains on your tax return. A realized gain is the opposite: selling for more than you paid, which triggers a taxable capital gains event.
An unrealized loss (also called a paper loss) exists when the current market price of a stock you own is below your purchase price, but you haven't sold yet. Unrealized losses have no tax implications until the position is closed. This calculator supports both scenarios — for unrealized calculations, it fetches the real-time quote to show your current standing.
Why Use Real Historical Prices?
Many stock calculators ask you to manually enter buy and sell prices. This introduces errors and makes it tedious to check multiple investments. Our calculator automatically fetches the actual historical closing price for any date, ensuring accuracy. If your date falls on a weekend or market holiday, it automatically uses the nearest prior trading day's closing price — the same method brokerages use.
For unrealized calculations, the tool fetches the current real-time stock quote, giving you an up-to-the-minute view of your paper gain or loss. This is especially useful for tracking positions you're considering selling.
Stock Loss and Tax Implications
Stock losses can have significant tax benefits. In the United States, you can use capital losses to offset capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 of net capital losses against ordinary income per year, with any remaining losses carried forward to future years.
This strategy, known as tax-loss harvesting, is a common technique used by investors to reduce their tax liability. However, be aware of the IRS wash-sale rule, which disallows the loss deduction if you buy a substantially identical security within 30 days before or after the sale.
For detailed tax calculations on your stock gains and losses, use our Capital Gains Tax Calculator.
Frequently Asked Questions
How is stock loss calculated?
Stock loss is calculated by subtracting your total purchase cost (purchase price × number of shares) from your total sale proceeds (sale price × number of shares). If the result is negative, you have a loss. The formula is: Profit/Loss = (Sale Price × Shares) - (Purchase Price × Shares).
What is the difference between realized and unrealized loss?
A realized loss occurs when you actually sell the stock at a lower price than you paid. An unrealized loss (also called a paper loss) occurs when the current market price is below your purchase price, but you have not yet sold the stock. This calculator supports both scenarios.
What stock prices does this calculator use?
This calculator fetches actual historical closing prices for the purchase and sale dates using real market data. If a date falls on a weekend or holiday, it uses the closing price from the nearest prior trading day. For unrealized calculations, it fetches the current real-time quote.
Can I use this calculator for gains too?
Yes. Despite the name, this calculator shows both gains and losses. If your stock increased in value, it will display a positive profit. It works as a complete stock profit and loss calculator.
Does this calculator account for dividends or commissions?
This calculator focuses on capital gains and losses based on stock price changes. It does not include dividends received or trading commissions. For a more comprehensive return analysis including dividends, use our Stock Return Calculator.
Related Tools
Stock Profit Calculator
Calculate your stock trading profit or loss instantly. Enter buy price, sell price, and shares to see your net profit, ROI, and break-even price.
Stock Return Calculator
Free stock return calculator with DRIP analysis. Calculate total return, annualized return (CAGR), capital gains, and dividend income for any stock over any period.
Capital Gains Tax Calculator
Estimate the tax liability on your investment profits.
Holding Period Return Calculator
Calculate total holding period return (HPR) and annualized return on any investment. Includes capital gain, income return breakdown, and 5 calculation modes.
Measured Your Stock Loss? Turn Setbacks Into Strategy
Every loss is a learning opportunity. Use Pineify to build custom Pine Script indicators and stop-loss strategies to protect your portfolio — or let our AI Stock Picker find stronger opportunities.