Stock Profit Calculator

Enter your buy and sell prices, share count, and fees. See the real profit after costs, your return percentage, and the price you needed just to break even.

Buy + sell commissions combined. $0 at most modern brokers.
For the annualized return
Net profit after fees
Total return
Annualized return
Cost basis (buy + fees)
Proceeds (sale − fees + dividends)
Break-even sell price

Quick answer: Subtract your buy price from your sell price, multiply by the number of shares, subtract fees, and add any dividends. 100 shares bought at $50 and sold at $72 with no fees is a $2,200 profit, a +44% return.

How stock profit is calculated

Profit = (Sell − Buy) × Shares − Fees + Dividends

Buying 100 shares at $50 and selling at $72 is a $2,200 gross gain. After any commissions and adding dividends collected while you held, you get the net profit — and dividing by your cost basis gives the return that actually matters. In the example, that's a +44% total return.

The two numbers beginners skip

  • Break-even price: the sell price where you neither gain nor lose, after fees. Below it, a "sale" is a loss even if the stock rose from a low. Knowing it stops panic-selling at the wrong point.
  • Annualized return: a 44% gain over 18 months is not the same as 44% in a year. Annualizing (≈27%/year here) lets you compare the trade against index funds (~10%/yr) or any other investment on equal footing.

What this calculator does not include (on purpose)

Capital gains tax — because it depends on your income, your country, and how long you held (short-term vs long-term rates differ a lot in the US). The profit shown is pre-tax. For the tax layer, hold periods over a year usually qualify for lower long-term rates in the US; a dedicated capital-gains tool handles that separately. Reinvested dividends compound differently again — see the DRIP calculator.

Frequently asked questions

How do I calculate profit on a stock?

Subtract your buy price from your sell price, multiply by the number of shares, subtract fees, and add any dividends. 100 shares bought at $50 and sold at $72 with no fees is a $2,200 profit, a +44% return.

What is break-even price on a stock?

The sell price at which you neither gain nor lose after fees: (total cost − dividends) ÷ shares. Selling above it is a profit, below it is a loss.

Does this include capital gains tax?

No — the profit shown is before tax. US capital gains are taxed at short-term (ordinary) rates under one year and lower long-term rates over one year; the exact bill depends on your income and state.

How is annualized return different from total return?

Total return is the raw percentage gain. Annualized return converts it to a yearly rate so you can compare trades of different lengths — a 44% gain over 18 months annualizes to about 27% per year.

All Savings & Investing calculators

Embed this calculator on your site

Free for any website or blog — copy this snippet. Please keep the credit link.

<iframe src="https://example.com/embed/stock-profit/" width="100%" height="620" style="border:1px solid #ddd;border-radius:8px" title="Stock Profit Calculator" loading="lazy"></iframe>
<p><a href="https://example.com/savings-investing/stock-profit/">Stock Profit Calculator</a> by MoneyMath</p>

Last updated: 2026-07-11