Stock Profit Calculator

Work out your profit or loss on a stock trade from shares, buy and sell prices, commissions, dividends and tax, with the return and the break-even price.

$
$
$
$
$
%
Use your capital gains rate. Dividends are taxed at the same rate in this calculator.
Enter the number of days to see an annualized return. Leave 0 to skip.

Result

Total cost (with buying fee)—
Proceeds (after selling fee)—
Capital gain or loss—
Profit before tax (with dividends)—
Tax—
Profit after tax—
Return before tax—
Return after tax—
Break-even sell price (before tax)—
Annualized return (before tax)—

The headline price of a stock trade is only part of the story. The profit you keep depends on what you paid including commissions, what you received after selling fees, any dividends along the way, and the tax you owe on the gain. This stock profit calculator puts them all together. Enter your shares, buy and sell prices, commissions, dividends and tax rate, and it shows your gain, tax, profit after tax, percent return, the break-even sell price and, if you enter the days held, an annualized return.

How to use the stock profit calculator

  1. Enter the number of shares and the buy and sell price per share.
  2. Enter commissions for buying and selling, and any dividends received while you held the stock.
  3. Enter your tax rate on gains, or zero to see the result before tax.
  4. Enter the days held to see the annualized return.

Stock profit formulas

100 shares: $50 → $65Cost, proceeds, profit, profit after 15% tax$5,000Cost$6,500Proceeds$1,500Profit$1,275After taxcalcmaple.com
Profit = proceeds − cost (plus dividends, minus fees); the tax rate then reduces what you keep.
Cost = shares × buy price + buying fee
Proceeds = shares × sell price − selling fee
Capital gain = proceeds − cost · Profit = gain + dividends
Tax = profit × tax rate (if the profit is positive) · Profit after tax = profit − tax
Return = profit ÷ cost · Break-even price = (shares × buy price + both fees) ÷ shares
Annualized return = (1 + return)^(365 ÷ days) − 1

The break-even price includes both commissions, so the stock must rise by slightly more than the fees to put you ahead. The tax shown is a simple flat percentage of the positive profit. Real tax systems have brackets, holding-period rules and loss offsets that this does not model.

Worked example: 100 shares bought at $50 and sold at $65

  1. Cost: 100 × $50 = $5,000.00. Proceeds: 100 × $65 = $6,500.00.
  2. Gain: $1,500.00, a return of 30.0%.
  3. Tax at 15%: $225.00. Profit after tax: $1,275.00 (25.5%).
  4. With a $10 commission each way, the gain falls to $1,480.00 and the profit after tax to $1,258.00; the break-even price is $50.20.
  5. If the stock instead fell from $40 to $32 on 200 shares, the loss is -$1,600.00, or -20%.

Result of the same trade at different sell prices

100 shares bought at $50, with $10 commission each way and a 15% tax rate.

Sell priceCapital gainTaxProfit after taxReturn after tax
$40.00-$1,020.00$0.00-$1,020.00-20.36%
$45.00-$520.00$0.00-$520.00-10.38%
$50.00-$20.00$0.00-$20.00-0.40%
$50.20$0.00$0.00$0.000.00%
$55.00$480.00$72.00$408.008.14%
$60.00$980.00$147.00$833.0016.63%
$70.00$1,980.00$297.00$1,683.0033.59%

Keeping more of your profit

Related tools

If you bought in several lots, find your average cost with the Stock Average Calculator. The ROI Calculator covers any investment, the CAGR Calculator converts a start and end value into an annual growth rate, and the Commission Calculator helps you work out fees on a percentage basis.

Frequently asked questions

How do I calculate profit on a stock?

Profit = (sell price − buy price) × shares − commissions. Add any dividends received, then subtract tax. Return is the profit divided by the amount you paid, including the buying commission.

What is the break-even price?

It is the sell price at which your profit is exactly zero after fees: (shares × buy price + buying and selling fees) ÷ shares. With $10 fees each way on 100 shares bought at $50, the stock must reach $50.20 before you make anything.

How are capital gains taxed?

In the US, gains on stock held for a year or less are taxed as ordinary income, and gains on stock held longer get lower long-term rates (0%, 15% or 20% depending on income). Other countries have their own rules, so enter the rate that applies to you.

Can I deduct a loss?

Often yes, within limits: in many tax systems capital losses offset capital gains and some ordinary income. This calculator shows a loss with no tax, and does not model the tax saving from it.

What is an annualized return?

It converts the return over your holding period into an equivalent yearly rate: (1 + return)^(365 ÷ days) − 1. A 30% gain over 730 days is 14.02% a year. For short holding periods, the annualized figure can look dramatic and should be treated with care.

Related calculators

Last updated November 17, 2026. Found a problem with this calculator? Tell us.