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

Buy 100 shares at $50.00 and sell at $62.00 with no fees and you make $1,200.00, a 24% return, or 21.69% a year over 400 days; put in your own prices, fees and dividends below.

Everyone remembers the trade that doubled. Nobody remembers the two commissions, the spread and the tax bill that came with it, which is exactly why this calculator asks for them.

It works for any share or fund you held, from one share to thousands. It does not know prices and does not look anything up: you type what you paid and what you sold for. That keeps the maths honest and the opinions out.

More options

For the yearly return and the more-than-one-year line.

Profit on this trade

$1,200.00

24% return on $5,000.00

Total cost incl. fees
$5,000.00
Sale proceeds after fees
$6,200.00
Return
24%
Return per year
21.69%
Break-even sell price
$50.00
Held more than one year
Yes
Profit
$1,200.00
  • More than one year: the IRS treats the gain or loss as long-term.
Money in and outCost: $5,000; Sale + dividends: $6,200Cost$5,000Sale + dividends$6,200

Money in and out

Show the working
  1. Cost = 100 x $50.00 + $0.00 fee = $5,000.00.
  2. Sale = 100 x $62.00 - $0.00 fee = $6,200.00.
  3. Profit = $6,200.00 - $5,000.00 = $1,200.00; return = $1,200.00 / $5,000.00 = 24%.
  4. Per year: (1 + 24%)^(365 / 400) - 1 = 21.69%.
  5. Break-even sell price = ($5,000.00 + $0.00 - $0.00) / 100 = $50.00.

An estimate from the numbers you entered and the rules listed below, not tax, legal or financial advice.

How we calculate it

Cost = shares x buy price + the fee for buying. Sale proceeds = shares x sell price - the fee for selling. Profit = proceeds + any dividends you received - cost. Return = profit / cost.

Return per year turns that into an annual figure so a three-month trade and a three-year holding can be compared: (1 + return) raised to (365 / days held), minus 1. Short holdings can show huge yearly numbers; that is the maths, not a promise it repeats.

Break-even price = (cost + selling fee - dividends) / shares: the lowest sell price that gets every dollar back. The IRS treats a gain on something held more than one year as long-term and one year or less as short-term, counted from the day after you bought; the calculator flags which side your days fall on.

Worked example: same trade, with and without fees

Example numbers: 40 shares bought at $125.00 and sold at $140.00 after 300 days, $30.00 of dividends on the way, and a $9.99 fee each side. Cost $5,009.99, proceeds $5,590.01, profit $610.02: a 12.18% return, 15% a year.

Same trade with no fees: profit $630.00 and 12.6%. The two fees cost $19.98. Break-even with fees is $124.75 a share; at 300 days the holding is one year or less, so any gain is short-term for the IRS.

Money in and outCost: $5,010; Sale + dividends: $5,620Cost$5,010Sale + dividends$5,620

Money in and out

FAQ

How do I calculate profit on a stock?

Take what you got from selling, after the selling fee, add any dividends, and subtract what you paid including the buying fee. In our default example that is $6,200.00 minus $5,000.00, so $1,200.00. Divide the profit by the cost for the percentage return.

Do I pay tax on stock profits?

In the US, generally yes when you sell at a gain. The IRS splits gains into short-term (held one year or less) and long-term (more than one year), which are taxed differently. Taxable dividends count as ordinary income, and qualified dividends get the lower capital gain rates. Other countries have their own rules, so check where you live.

What is a break-even price?

The sell price at which you get back exactly what you put in, after both fees and any dividends. Sell above it and you made money; sell below it and you lost some. Fees push it up, dividends pull it down, which is why it is rarely the price you paid.

Why is the return per year so high on a short trade?

Because it assumes the same result repeats all year. Ten percent in a month compounds to far more than 120% a year on paper. It is useful for comparing trades of different lengths, not as a forecast. One lucky month is still one lucky month.

Should I include broker fees?

Yes, if you paid any. Investor.gov notes that brokers charge a commission to buy and sell for you and that some plans charge their own fees. Even when a broker advertises no commission, check your trade confirmation for any other charges and type the total into the fee boxes.

Sources

More on investing and retirement