Skip to content

Stock Profit Calculator

Calculate profit or loss from buying and selling shares, including commissions, fees, dividends and taxes — plus your return percentage and the break-even sell price.

Written by the CalcBundle Research & Editorial Team · Reviewed by the Quality Review Team · Transparent formulas · results are estimates, not advice. · Updated

Trade
$
$
Costs & adjustments
$
$
$
$
$

Net profit

Enter a number of shares and a buy price greater than zero.

What a stock profit calculator does

A stock profit calculator tells you what a trade actually earned once every cost is accounted for. It is easy to eyeball the difference between your buy and sell prices, but that gross figure hides the commissions on both sides, any other fees, the dividends you collected while holding, and the tax on the gain. This calculator brings all of them together into a net profit and a return percentage, and it also works out your break-even sell price — the number that tells you, before you sell, exactly what you need to clear just to get your money back.

How stock profit is calculated

  • Gross profit = (sell price − buy price) × shares
  • Net profit = gross profit + dividends − commissions − fees − taxes
  • Return % = net profit ÷ total purchase cost × 100

Why fees and commissions matter more than they look

Every buy and every sell can carry a commission, and there may be regulatory or platform fees on top. Because they apply on both sides of the trade, their drag is easy to underestimate. On a large position a few dollars of commission is a rounding error; on a small, frequently traded position it can quietly erase the gain entirely. Costs are also the reason your break-even is above your purchase price, not equal to it — you have to earn back the friction before you earn a profit.

Break-even sell price

The break-even sell price is what you must sell at simply to recover everything you have spent: (total purchase cost + sell commission + other fees) ÷ shares. Knowing it before you sell is genuinely useful — it turns a vague hope into a concrete threshold. Sell above it and you have a real profit; sell below it and you are locking in a loss, which the calculator shows plainly as a negative result rather than dressing it up.

Profit vs return percentage

A $1,000 profit means something very different on a $5,000 position than on a $50,000 one — 20% versus 2%. That is why the return percentage, not the cash figure, is the number to compare across trades of different sizes. And to compare across trades of different lengths, you need to annualize: a 20% return earned in six months is far better than the same 20% over five years.

Worked example

Buy 100 shares at $50 and sell at $60 with no fees and the gross profit is (60 − 50) × 100 = $1,000, a 20% return on the $5,000 you invested. Add $10 of commission on each side and the net profit falls to $980, nudging the return just under 19.6% and lifting your break-even sell price slightly above $50 — a small illustration of how costs quietly reshape every trade.

Related calculators

To turn a multi-year gain into an annual rate, use the CAGR calculator; to add the income side of ownership, the dividend calculator; and to see profit, dividends and contributions combined into one figure, the investment return calculator.

Frequently asked questions

How is stock profit calculated?

Gross profit is sale value minus purchase cost. Net profit adds any dividends and subtracts commissions, other fees and taxes. Return % is net profit divided by total purchase cost.

How do fees and commissions affect profit?

Commissions and fees are paid on both the buy and the sell, so they raise your effective cost and lower your net profit. Small percentage moves can be wiped out by fees on small trades.

What is the break-even sell price?

It is the price per share at which you neither gain nor lose after buying costs and selling costs: (total purchase cost + sell commission + other fees) ÷ number of shares.

What is the difference between profit and return percentage?

Profit is a cash amount; return percentage expresses that profit relative to what you invested, which makes trades of different sizes comparable.

Are dividends included in stock profit?

They can be. Pure capital gain is just the difference between your sell and buy prices, but your total return also includes any dividends received while you held the shares. This calculator lets you add dividends so the net profit reflects both the price change and the income — a fuller picture than price alone, especially for shares held over several years.

How is capital gains tax handled here?

You can enter an estimated tax amount, which is subtracted from your net profit. Actual capital gains tax depends on your jurisdiction, your holding period (many countries tax long-term gains more lightly than short-term ones) and your income, so the figure you enter is your own estimate rather than a calculated liability. Treat the pre-tax profit and after-tax profit as two useful views of the same trade.

Does a higher sell price always mean a good trade?

Not on its own. A gain has to be judged against how long you held the position and against what you could have earned elsewhere. A 20% gain over three months is excellent; the same 20% over ten years barely keeps pace with inflation. To compare trades of different lengths fairly, convert the result to an annualized rate with a CAGR calculator.

Sources & methodology

Formula
Profit = (Sale Price − Buy Price) × Shares − Fees; ROI = Profit ÷ Total Cost Basis × 100; Annualized Return = (1 + ROI)^(1 ÷ Years) − 1
Reviewed
September 2026

Primary sources

Calculation methodology is documented on our methodology page. Reviewed by the CalcBundle Quality Review Team.

Disclaimer. This calculator provides estimates for informational purposes only. Results are based on the information you enter and the assumptions used by the calculator. Actual financial, tax, business valuation, lending, marketplace or investment outcomes may differ. Consider consulting a qualified professional for decisions involving significant amounts of money. This calculator estimates profit or loss from the prices and costs entered. It is not investment advice, and no live prices are used.