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.
Updated By ponderloop editorial · How we checkRuns in your browser: nothing you enter is uploadedHow this tool worksEmbed this tool
Profit of $1,610.10
A return of 32.17% on a cost basis of $5,004.95. Break-even sell price: $48.899 per share.
- Profit or loss (with dividends)
- $1,610.10
- Return on cost basis
- 32.17%
- Annualized return
- 9.73%
- Net sale proceeds
- $6,495.05
- Total cost basis
- $5,004.95
- Average cost per share
- $50.0495
- Break-even sell price
- $48.899
- Dividends received
- $120.00
The working
- Cost basis = 100 × $50.00 + $4.95 commission = $5,004.95.
- Average cost per share = $5,004.95 ÷ 100 = $50.0495.
- Net sale proceeds = 100 × $65.00 minus $4.95 commission = $6,495.05.
- Profit = $6,495.05 − $5,004.95 + $120.00 dividends = $1,610.10.
- Return = $1,610.10 ÷ $5,004.95 = 32.17%.
- Annualized return = (1 + 32.17%)^(365 ÷ 1096 days) − 1 = 9.73%.
- Break-even sell price = ($5,004.95 − $120.00 dividends + flat sell commission) ÷ (shares × share kept after commission %) = $48.899.
- Capital-gains tax is not included.
Profit at different sell prices
| 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
| 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
| 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 to use the Stock Profit Calculator
- 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.
- 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.
- 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.
- 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.
- 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.
Frequently asked questions
- 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.
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.
Sources
- IRS Topic No. 409, Capital gains and losses
- IRS Publication 551, Basis of Assets (cost basis includes commissions)
- Compound annual growth rate, Wikipedia
- Microsoft Support: XIRR function (365-day year)
More free tools
- CAGR CalculatorCompound annual growth rate from a start value, an end value and the years or two dates. Also finds the end value or the years needed at a rate.
- Dividend CalculatorDividend income and reinvestment (DRIP) year by year: yield, dividend growth, payout frequency and yield on cost, plus a 2% to 5% yield comparison.
- Dollar-Cost Averaging CalculatorEnter your periodic prices to see average cost per share vs average price and vs a lump sum, or project monthly investing.
- Emergency Fund CalculatorWork out how much to keep in an emergency fund: months of essential expenses, the gap to your goal and how long it takes to save it.
- Compound Interest CalculatorFuture value with compound interest: initial deposit, rate, compounding frequency, optional monthly or yearly contributions, APY and a year-by-year table.
- ROI CalculatorReturn on investment from amount invested and returned: ROI %, dollar gain and annualized ROI (CAGR) from years or dates, with optional fees and income.
More: Saving and investingAll money & costsAll toolsHome & DIY calculators