Stock Calculator - Profit, ROI, and Break-Even

Use this stock calculator to estimate profit, ROI, break-even sell price, and annualized return from share count, buy and sell prices, and commissions.

Updated: June 12, 2026 • Free Tool

Stock Calculator

Number of shares bought and sold in the trade.

$

Price paid per share at purchase.

$

Buying commission paid in addition to the share cost.

$

Selling commission subtracted from the gross sale.

$

Price received per share at sale.

Years the shares are held, used for the annualized return.

Results

Profit
$0
Return on investment (ROI) 0%
Break-even sell price $0
Annualized return 0%
Cost basis $0
Net sale proceeds $0

What Is a Stock Calculator?

A stock calculator is a tool that turns a single share trade into a clear picture of profit, return, and break-even sell price. Enter the number of shares, the buy and sell price, and the commission on each side, and the calculator shows the dollar profit or loss, the return on investment (ROI) as a percentage, the lowest sell price that covers all costs, and the annualized return over the holding period. Use it to size a trade or test whether commissions wipe out a small gain.

  • Single trade profit review: Estimate the realized profit and ROI of a finished or planned share trade once you know the entry and exit price plus commissions.
  • Break-even price check: Find the minimum sell price per share that covers the cost basis and the selling commission.
  • Commission impact test: Compare two commission assumptions to see how flat broker fees change ROI and the break-even floor for a low-priced trade.
  • Annualized return comparison: Convert a multi-year holding period into a yearly compound rate so a long trade can be compared with a shorter one or with a benchmark.

Stock returns are quoted two ways: as a total return over the holding period and as an annualized return. The annualized return is the form that lets you compare trades held for different lengths of time.

A $10 commission on a 10-share trade raises the break-even by $1 per share, while the same $10 commission on a 1,000-share trade raises it by only $0.01 per share.

When the stock profit is only one piece of a longer contribution and compounding plan, the investment calculator extends the same numbers across a multi-year horizon.

How the Stock Calculator Works

The calculator runs three small formulas: a profit equation, a return-on-investment ratio, and a break-even equation. The annualized return uses the compound growth formula to convert the total return into a yearly rate.

Profit = (shares x sell price) - sell commission - [(shares x buy price) + buy commission]; ROI = profit / cost basis; Break-even sell price = (cost basis + sell commission) / shares; Annualized return = (1 + ROI)^(1 / holding years) - 1
  • Shares and prices: Number of shares and the entry and exit price per share. They set the gross gain or loss before commissions.
  • Commissions: Flat fees added to the buy side and subtracted from the sell side. They shift the break-even floor and reduce ROI.
  • Cost basis: Total amount paid to buy the shares including the buy commission.
  • Holding period (years): Length of the trade in years. Feeds the annualized return so multi-year trades can be compared.

Annualized return is most useful when the holding period is longer than a year, because it lets you compare a multi-year stock gain with a savings or bond rate. For trades held less than a year, the annualized return can overstate the realized experience.

Because the break-even price uses the cost basis plus the selling commission, raising either commission lifts the floor by the same dollar amount.

Profitable 100-share trade held 2 years

Shares = 100, buy price = $50, buy commission = $9.99, sell price = $75, sell commission = $9.99, holding period = 2 years.

Cost basis = $5,009.99. Net sale = $7,490.01. Profit = $2,480.02. ROI = 49.50%. Break-even sell price = $50.20. Annualized return = 21.88%.

Result: profit = $2,480.02, ROI = 49.50%, break-even sell price = $50.20, annualized return = 21.88%.

A 50% price gain in two years annualizes to about 21.88% per year because compounding rewards the holding period.

According to Omni Calculator, stock profit equals (shares x sell price) - selling commission - [(shares x buy price) + buying commission], and break-even sell price equals (cost basis) divided by shares x (1 - selling commission percent).

If the buy and sell prices come from a single buy-and-hold window, the holding period return calculator shows the same trade from the realized-return side so the percentage and dollar views line up.

Key Concepts Explained

Four small ideas explain almost every stock return result. Keeping them clear helps you read the output and decide whether the trade still fits your plan.

Cost basis

The total amount of money tied up in the trade, including the buying commission. ROI divides profit by this number.

Net sale proceeds

What you actually receive after the broker takes the selling commission. The difference between the gross sale and the net sale is the cost of exiting the trade.

Return on investment (ROI)

Profit divided by cost basis, expressed as a percentage. A useful way to compare trades of different sizes because it removes the dollar scale.

Break-even sell price

The lowest sell price per share that exactly covers the cost basis and the selling commission. Selling below this price locks in a loss on the trade.

ROI and annualized return are not the same number. A 20% gain held for two years is 20% total, but only about 9.54% per year on an annualized basis.

Break-even price is the cleanest test of commission sensitivity. If the buy and sell commissions together equal $20 on a 100-share trade, the floor moves up by $0.20 per share. The same $20 on a 10-share trade moves the floor by $2 per share.

For income-producing shares, the dividend calculator layers the dividend stream on top of the price gain so the total return and break-even number include cash payouts.

How to Use This Stock Calculator

Enter the trade details in order. Keep all prices in dollars per share and all commissions in dollars, then add the holding period in years so the annualized return makes sense.

  1. 1 Enter the share count: Type the number of shares you bought or plan to buy.
  2. 2 Add the buy price and buy commission: Use the actual entry price per share and the flat commission the broker charged for the buy leg of the trade.
  3. 3 Add the sell price and sell commission: Use the planned or actual sell price per share and the selling commission.
  4. 4 Set the holding period: Enter the years the trade will be held. Use 1 for a one-year trade, 0.5 for six months, and 2 for a two-year hold.
  5. 5 Read profit and ROI: Profit shows the dollar gain or loss after commissions. ROI shows the same result as a percentage of the cost basis.
  6. 6 Check the break-even floor: Use the break-even sell price as the minimum exit. If the current market price sits below that number, holding the trade means accepting a realized loss.

If you bought 100 shares at $50 with a $9.99 commission and the current price is $52 with the same selling commission, the cost basis is $5,009.99 and the break-even sell price is $50.20, so any sell price above $50.20 produces a positive profit. The same trade held for 2 years with a $75 exit produces a $2,480.02 profit, a 49.50% total return, and a 21.88% annualized return.

Once the trade is logged, the average return calculator can compare the realized return with a longer series of yearly returns to put the result in context.

Benefits of Using This Stock Calculator

The biggest gains come from using the output before you place the trade, not after. The calculator turns a planned exit price into a dollar profit, a percentage ROI, and a clear break-even floor.

  • Estimates profit before you sell: You can test several sell prices against the same entry cost to see how the profit and ROI shift, without needing a live broker screen.
  • Keeps commissions in the math: Both commissions are added to the cost basis and subtracted from the sale, so flat broker fees are not hidden inside the percentage.
  • Highlights the break-even floor: A single break-even number tells you whether a current market price will lock in a loss.
  • Annualizes long holds: The annualized return converts multi-year trades into a yearly rate so a 2-year hold can be compared with a 1-year hold or a savings account.
  • Documents trade assumptions: All inputs stay on the page, so the trade review or memo can quote the same share count, prices, and commissions that produced the result.

Use the calculator to set a written exit plan. Pick the sell price that produces the ROI you want, write it down next to the break-even price, and adjust when the trade thesis changes.

Treat the output as a planning tool, not a forecast. The trade is only as good as the entry price, the exit price, the time horizon, and the assumptions about commissions and taxes.

To test whether the realized ROI clears a required hurdle rate, the CAPM calculator takes a beta, a risk-free rate, and an expected market return and produces the matching required return.

Factors That Affect Your Results

Several choices can shift the profit, ROI, and break-even number even when the trade idea has not changed. The biggest movers are commission structure, trade size, holding period, and price path.

Commission structure

Flat dollar commissions move the break-even price by the commission amount divided by share count. A $10 commission lifts the break-even by $1 per share on a 10-share trade and by only $0.01 per share on a 1,000-share trade.

Trade size

Larger share counts spread fixed commissions over more shares, which lowers the per-share break-even shift and usually improves ROI on small percentage gains.

Holding period

Longer holding periods make the annualized return smaller than the total return, so a 50% gain held for 5 years is roughly 8.45% per year on an annualized basis.

Price path and dividends

A flat buy and sell price ignores dividends paid during the holding period and any additional buys or partial sells.

Taxes and fees

Broker fees, exchange fees, and short-term capital gains tax are not in the cost basis or net sale.

  • The calculator uses a single buy price and a single sell price, so dollar-cost averaging, partial sells, and dividend reinvestments are not captured.
  • Commissions are entered as a fixed dollar amount. Brokers that charge a percentage of trade value or a per-share fee will need a small adjustment.
  • The annualized return assumes the entire ROI compounds once per year. Short trades often look stronger on an annualized basis than they really are.

The break-even floor is the easiest number to monitor while the trade is open.

According to U.S. Securities and Exchange Commission investor.gov, the U.S. stock market has produced an annualized total return of roughly 10% per year over long periods, which is a common reference point for good stock returns.

As published by Investopedia, return on investment equals net profit divided by the cost of the investment, and it is usually expressed as a percentage to compare investments of different sizes.

If the trade idea depends on a stock's market sensitivity, the beta stock calculator turns paired return data into a beta and an R-squared so the price gain can be read against benchmark risk.

stock calculator showing share count, buy and sell price, profit, ROI, break-even sell price, and annualized return inputs and outputs
stock calculator showing share count, buy and sell price, profit, ROI, break-even sell price, and annualized return inputs and outputs

Frequently Asked Questions

Q: How do you calculate stock profit with commissions?

A: Subtract the cost of buying and the cost of selling from the gross sale. The stock profit formula is (shares x sell price) - selling commission - [(shares x buy price) + buying commission]. The result is the dollar gain or loss after commissions, which the stock calculator also turns into an ROI percentage.

Q: What is a good stock return percentage?

A: A long-run benchmark is the U.S. equity market historical average of about 10% per year, so any multi-year total return comfortably above that can be considered a good stock return. Short trades should be compared against their own time horizon rather than that long-run number.

Q: What is the break-even price for a stock trade?

A: The break-even sell price is the lowest price per share that exactly covers the cost basis and the selling commission. It is the cost basis plus the selling commission, divided by the number of shares. Selling below that floor locks in a loss on the trade.

Q: How do you calculate ROI on a stock investment?

A: ROI equals the stock profit divided by the cost basis, expressed as a percentage. The cost basis is shares x buy price plus the buy commission, so commissions reduce the ROI even when the price gain looks attractive on its own.

Q: How do commissions change the break-even price?

A: A flat dollar commission lifts the break-even price by the commission amount divided by the number of shares. A $10 selling commission on a 10-share trade raises the break-even by $1 per share, while the same $10 on a 1,000-share trade raises it by only $0.01 per share.

Q: How do you annualize a stock return?

A: Use the compound growth formula: annualized return = (1 + total return)^(1 / years) - 1. A 50% total return over 2 years annualizes to about 21.88% per year, while the same return over 5 years annualizes to about 8.45% per year.