How stock profit is calculated
profit = shares × sell price − sell commission − (shares × buy price + buy commission)
return = profit ÷ (shares × buy price + buy commission)
The example above: 100 shares bought at $50 with a $5 commission cost $5,005. Sold at $60 with another $5 commission, they bring in $5,995. The profit is $990, a return of 19.78% on the $5,005 you put in.
Annualized return
A 19.78% gain in 180 days and the same gain in three years are different results. Annualizing puts both on one scale: the yearly rate that would produce your return if it compounded.
annualized return = (1 + return)^(365 ÷ days held) − 1
For 19.78% in 180 days that is 1.1978^(2.028) − 1 = 44.2%. Treat the figure with care for short trades: a 3% gain in two days annualizes to a number no account sustains.
What the calculator leaves out
- Taxes. In the US, a gain on shares held one year or less is taxed as ordinary income; longer holdings use the long-term rates.
- Dividends received while you held the shares. Add them to the sell side if you want total return.
- Regulatory fees on sales, which are cents on most retail orders.
Questions
How do I calculate percentage gain on a stock?
Subtract what you paid from what you received, then divide by what you paid. Bought for $5,005 and sold for $5,995: $990 ÷ $5,005 = 19.78%.
What is the break-even price?
The sell price at which commissions are covered and profit is zero. With 100 shares bought at $50 and $5 commission each way, it is ($5,005 + $5) ÷ 100 = $50.10.
Does it work for a loss?
Yes. Enter a sell price below the buy price. The result turns negative and shows the loss in dollars and percent.
Get an AI forecast in the app. Planning the next trade? Get an AI forecast for any stock or coin: the most likely path, a best case and a worst case, with the levels to watch. The first forecast is free.
