# Stock Profit Calculator: Gain, Return and Break-Even Price

Buying 100 shares at $50.00 and selling at $65.00, with $4.95 commission each way and $120.00 of dividends, gives a result of Profit of $1,610.10: a 32.17% return on the $5,004.95 you put in, or 9.73% a year over three years. The break-even sell price is $48.899, below the $50.00 you paid because the dividends cover the commissions and more. Change any number and the working below updates as you type. Capital-gains tax is not included.

Canonical page: https://ponderloop.com/tools/stock-profit-calculator/
Updated: 2026-11-14

## How to use

How to use the Stock Profit Calculator

1. **Choose a mode**: Pick “One buy and one sell” for a single trade, or “Average cost of several buys” to combine purchases made at different prices.
2. **Enter the shares and prices**: For a trade, type the number of shares (100), the buy price ($50.00) and the sell price ($65.00). For several buys, type one purchase per line, like 50 @ 40.
3. **Add commissions and dividends**: Enter each commission as a flat dollar amount or as a percent of the trade, and any dividends you received while you held the shares. Leave them empty if there are none.
4. **Add the dates for an annualized return**: Enter the buy and sell dates to see the return per year. Leave both empty to skip it.
5. **Read the result**: The headline shows the profit or loss (Profit of $1,610.10 for the example), with the return, the break-even sell price and the working underneath.

## Reference tables and worked examples

### Profit at different sell prices

100 shares bought at $50.00 with $4.95 commission on each side and no dividends. Each row is the calculator’s own answer.

| Sell price | Profit or loss | Return on cost basis | Net sale proceeds |
| --- | --- | --- | --- |
| $40 | −$1,009.90 | −20.18% | $3,995.05 |
| $50.099 (break-even) | $0.00 | 0.00% | $5,004.95 |
| $50 | −$9.90 | −0.20% | $4,995.05 |
| $55 | $490.10 | 9.79% | $5,495.05 |
| $65 | $1,490.10 | 29.77% | $6,495.05 |
| $80 | $2,990.10 | 59.74% | $7,995.05 |

### Average cost as you buy more on the way down

No commissions. Averaging down lowers the average cost, and with it the price the stock must reach for you to break even.

| Purchases | Total shares | Total cost basis | Average cost per share |
| --- | --- | --- | --- |
| 100 at $50 | 100 | $5,000.00 | $50.00 |
| 100 at $50, then 100 at $40 | 200 | $9,000.00 | $45.00 |
| … then 100 at $30 | 300 | $12,000.00 | $40.00 |
| … then 100 at $25 | 400 | $14,500.00 | $36.25 |

### The same return annualized over different holding periods

The example’s 32.17% total return (100 shares, $50.00 to $65.00, $4.95 commissions, $120.00 dividends), sold on 2026-03-01 after the holding period shown.

| Bought on | Holding period | Days | Annualized return |
| --- | --- | --- | --- |
| 2025-03-01 | 1 year | 365 | 32.17% |
| 2024-03-01 | 2 years | 730 | 14.97% |
| 2023-03-01 | 3 years | 1096 | 9.73% |
| 2021-03-01 | 5 years | 1826 | 5.73% |
| 2016-03-01 | 10 years | 3652 | 2.83% |

## How it works

Profit = shares × sell price − sell commission − (shares × buy price + buy commission) + dividends. Return = profit ÷ cost basis. Break-even sell price = (cost basis − dividends + flat sell commission) ÷ (shares × (1 − sell commission %)). Average cost = total cost basis ÷ total shares. Annualized return = (1 + return)^(365 ÷ days) − 1, using a 365-day year as spreadsheet XIRR does. Prices, shares, commissions and dividends are exact fractions; amounts are rounded once, to the cent with halves up, for display, and the annualized return (a fractional power) is computed in floating point and shown to two decimals. For the example this gives Profit of $1,610.10, 32.17% and 9.73% a year. The result is an estimate and ignores taxes, currency conversion, stock splits and any fee not entered.

## FAQ

### How do I calculate profit on a stock sale?

Profit is what you receive from the sale minus what you paid, with commissions on both sides and any dividends counted. For 100 shares bought at $50.00 and sold at $65.00 with $4.95 commissions, that is $6,495.05 − $5,004.95 = $1,490.10 from the trade, or $1,610.10 with the $120.00 of dividends.

### How is the return percentage worked out?

It is the profit divided by the cost basis, which is the shares times the buy price plus the buy commission. For the example that is $1,610.10 ÷ $5,004.95 = 32.17%. Sell commissions reduce the profit, so they are inside the return, not added to the denominator.

### What is the break-even sell price?

It is the sell price at which the profit is exactly zero after commissions and dividends: (cost basis − dividends + flat sell commission) ÷ (shares × share kept after a percentage sell commission). For the example that is $48.899. With no dividends and the same commissions it would be $50.099.

### How do percentage commissions work?

Choose “% of trade” for a commission, and it is charged on the trade value: 0.5% on 40 shares bought at $25.10 adds $1,009.02 of cost basis in total, and 0.5% off the sale of 40 shares at $31.40 leaves $1,249.72. That trade makes $240.70, a 23.85% return.

### How does averaging down work, and what is my average cost?

Your average cost per share is your total cost basis divided by your total shares. With no commissions, buying 50 shares at $40.00, 30 at $55.00 and 20 at $35.50 costs $4,360.00 for 100 shares, an average of $43.60. If the price is then $50.00, the position is worth a $640.00 gain (14.68%). Buying more at a lower price pulls the average down, but it also puts more money into the same stock.

### What is annualized return and when is it useful?

It restates a total return as a yearly rate so trades held for different lengths can be compared. The tool uses the compound annual growth rate formula, (1 + total return)^(365 ÷ days) − 1, so the example’s 32.17% over 1,096 days is 9.73% a year. A short trade can show a very large annualized number that cannot be repeated, so read it next to the total return.

### Are dividends included?

Yes, if you enter them. Dividends you received while holding the shares are added to the profit and lower the break-even price. In the example they are $120.00, which lifts the profit from $1,490.10 to $1,610.10. Reinvested dividends that bought extra shares belong in the average-cost mode as a purchase.

### What if I sell for less than I paid?

The headline shows a loss and the return is negative. Selling the example at $40.00, with no commissions or dividends, gives a loss of $1,000.00 (−$1,000.00, a −20.00% return). The sell price must be above zero. If commissions and losses use up the whole cost basis, the return is −100% or lower and no annualized return is shown. Holds under 30 days also get no annualized figure, because the yearly rate of a very short trade is not meaningful.

### Does it work with fractional shares and part-cent prices?

Yes. 2.5 shares bought at $120.00 and sold at $132.00 with no commissions make $30.00. Prices are kept exact and only the displayed amounts are rounded to the cent, with halves rounded up: 3 shares at $0.335 cost $1.005 and show as $1.01.

### Does the calculator include capital-gains tax?

No. Taxes on a stock sale depend on your holding period, your income and your country, so none are calculated here. In the United States, a sale is reported with the proceeds and cost basis, and the IRS explains the rates in Topic 409, linked in the sources. This is an estimate for planning, not financial or tax advice.

### Is anything I type sent to a server?

No. Your buy and sell prices, share count and fees are used in your browser to work out the profit and return, so your trades are not uploaded or stored.

## Sources

- [IRS Topic No. 409, Capital gains and losses](https://www.irs.gov/taxtopics/tc409)
- [IRS Publication 551, Basis of Assets (cost basis includes commissions)](https://www.irs.gov/publications/p551)
- [Compound annual growth rate, Wikipedia](https://en.wikipedia.org/wiki/Compound_annual_growth_rate)
- Microsoft Support: XIRR function (365-day year)

---

Cite as: Stock Profit Calculator: Gain, Return and Break-Even Price, ponderloop, https://ponderloop.com/tools/stock-profit-calculator/, updated 2026-11-14
