Get the app
[CALCULATOR] · FREE

Stock profit calculator

Enter what you paid, what you sold for and your commissions. You get the profit or loss, the return on the money you put in, and the price you needed to break even.

Profit or loss—
Return
—
Annualized return
—
Total cost
—
Proceeds after commission
—
Break-even sell price
—

For education. Not financial advice.

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

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.

Trade AI app icon

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.

Get Trade AI for iPhoneOr try the web analyzer