Stock Calculator
Calculate your stock investment profit or loss, total return percentage, and cost basis. Enter buy and sell prices along with the number of shares to see your gains including commission costs.
Frequently Asked Questions
Profit and return
Example: 50 shares bought at $42, sold at $51, with $10 total fees.
- Gross gain: (51 − 42) × 50 = $450
- Net profit: $440
- Return: 440 ÷ (42 × 50 + 10) = 20.9%
Include fees on both sides. Ignoring them overstates return, and on small positions the distortion is substantial.
Total return includes dividends
Price change alone understates the result for dividend-paying holdings. Total return adds dividends received, which over long periods can represent a large share of the overall gain.
Why annualising matters
A 20% return means very different things over six months and over five years. Comparing investments requires putting them on the same time basis:
A 50% gain over 4 years annualises to about 10.7% a year — respectable, but not the headline figure.
Percentage gains and losses are asymmetric
A 50% loss requires a 100% gain to recover. Down from $100 to $50, you need to double just to return to where you started.
| Loss | Gain needed to break even |
|---|---|
| 10% | 11% |
| 25% | 33% |
| 50% | 100% |
| 75% | 300% |
This asymmetry is the mathematical argument for limiting large drawdowns.
Figures here exclude tax, which varies by jurisdiction, holding period and account type. This is general information, not investment advice.