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
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
Enter the Purchase Price
Input the price per share at which you bought the stock. This is the cost basis before commissions.
- 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
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
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.