Stock Trading Tool

Free Stock Calculator

Calculate your stock trade profit or loss in seconds. Enter the number of shares, purchase price, sell price, and commissions to see your total cost, proceeds, and net profit.

Commission Included
Instant Calculation
100% Free

Stock Information

$
$
$
$

Your Results

$0.00

Purchased For

$0.00

Profit

$0.00

Sold For

What Is a Stock Calculator?

A stock calculator is a straightforward financial tool that tells you how much money you made or lost on a stock trade. You enter the number of shares, the price you paid, the price you sold at, and any trading commissions. The calculator then shows your total purchase cost, total sale proceeds, and net profit or loss.

Whether you are reviewing a completed trade or planning a future one, a stock calculator removes the mental math and gives you a clear, accurate number. It is especially useful when commissions are involved, because fees can turn a seemingly profitable trade into a break-even or losing one.

How to Use This Stock Calculator

  1. 1

    Enter the Number of Shares

    Type how many shares you bought and sold. This is the quantity that multiplies with the price to determine your total cost and proceeds.

  2. 2

    Enter the Purchase Price

    Input the price per share at which you bought the stock. This is the cost basis before commissions.

  3. 3

    Enter the Sell Price

    Input the price per share at which you sold or plan to sell the stock. The difference between sell price and purchase price drives your gain or loss.

  4. 4

    Add Commissions (Optional)

    If your broker charges trading fees, enter the buy commission and sell commission separately. Leave them at zero if your broker offers commission-free trading.

  5. 5

    Click Calculate

    Press the Calculate button to see your total purchase cost, total sale proceeds, and net profit or loss.

Understanding Your Results

The calculator displays three key numbers. The Purchased For value is the total amount you spent to acquire the shares, including any buy commission. The Sold For value is the total amount you received after deducting the sell commission. The Profit is simply the difference between what you sold for and what you purchased for. A positive number means you made money; a negative number means you lost money.

Purchased For = Shares × Purchase Price + Buy Commission
Sold For = Shares × Sell Price - Sell Commission
Profit = Sold For - Purchased For

Why Use a Stock Calculator?

Accurate Profit Tracking

See your exact gain or loss after commissions instead of relying on rough estimates.

Instant Results

Get your answer immediately. Adjust inputs and recalculate to compare different scenarios.

Commission Awareness

Understand how trading fees eat into your returns, especially on smaller trades.

Private & Secure

All calculations happen in your browser. No financial data is sent to any server or stored anywhere.

Tips for Better Stock Trading Results

Minimize trading costs by choosing a broker with low or zero commissions. Even small fees add up over many trades and can significantly reduce your overall returns. Before entering a trade, use this calculator to check whether the expected profit justifies the commission cost.

Keep a trading journal that records every trade along with the calculated profit or loss. Over time, this data reveals patterns in your trading behavior, helping you identify what works and what does not. Consider holding stocks for longer than one year to qualify for lower long-term capital gains tax rates in many jurisdictions.

Frequently Asked Questions

How does the stock calculator work?

The stock calculator computes your total purchase cost (shares times purchase price plus buy commission), total sale proceeds (shares times sell price minus sell commission), and the difference between them as your net profit or loss.

Should I include commissions in my calculation?

Yes. Including buy and sell commissions gives a more accurate picture of your actual profit or loss. Many brokers now offer zero-commission trading, but if your broker charges fees, entering them here ensures the result reflects your real return.

Does this calculator account for taxes?

No. This calculator shows pre-tax profit. Capital gains taxes depend on your country, holding period, and tax bracket. Consult a tax professional for accurate after-tax calculations.

Can I use this for options or other securities?

This calculator is designed for simple stock buy-and-sell trades. For options, futures, or more complex instruments, use a dedicated options profit calculator that accounts for premiums, strike prices, and expiration dates.

Is this stock calculator free?

Yes. This calculator is completely free with no registration required. All calculations run in your browser and no personal data is stored or sent to any server.

Know Your Numbers? Now Automate Your Trading Strategy

You've calculated your stock trade results. Take the next step and use Pineify's AI-powered Pine Script generator to build custom indicators that spot profitable entry and exit points automatically.