Skip to content
QueenNexa

Free tool

Stock Profit Calculator with Fees & Annualized Return

Calculate stock profit after flat and percentage fees, with return, annualized return, break-even price, an optional tax rate and the sell price for a target.

Fractional shares are allowed.

Charged on the buy and again on the sell.

Commission or regulatory fees as a share of the trade value, also on both sides.

Your own flat rate. Taxes depend on your situation; no rate is assumed.

Shows the sell price you would need to reach it.

Profit after fees (and dividends)
–
Return on total cost
–
Annualized return
–
Total cost, including buy fees
–
Net sale proceeds, after sell fees
–
Fees paid, buy and sell
–
Profit after the tax rate you entered
–
Break-even sell price
–
Sell price needed for your target return
–

Assumptions

These are estimates from your own inputs, not a forecast or a promise of results. No vendor prices or industry averages are built in: every number comes from you.

  • Fees on each side = flat fee + percentage fee × trade value. Cost = buy price × shares + buy fees. Net proceeds = sell price × shares − sell fees.
  • Profit = net proceeds − cost + dividends. Return = profit ÷ cost. This uses the same stock profit math as the Dividend Calculator, so the two pages agree.
  • Annualized return = (1 + return) ^ (365 ÷ days held) − 1. It shows what a steady yearly rate would have to be to produce the same result.
  • Tax = your rate × profit, applied only when the profit is positive. Loss carry-overs, holding-period rules, wash sales and currency effects are not modeled.

Educational illustration only. This is not investment or tax advice, and past results do not predict future ones.

Runs entirely in your browser. Nothing you type or upload is sent to our servers.

How the stock profit calculator works

Enter what you paid, what you sold for, the number of shares and the fees on each trade. The calculator returns your profit, the percentage return, the annualized rate for the time you held, and the sell price needed to break even or reach a target. Dividends and a flat tax rate are optional. For dividend income projections and reinvestment, use the Dividend Calculator, which shares this page's profit formula.

Worked example 1: a trade with fees

You buy 50 shares at $120 and sell at $150. Each trade costs $4.95 plus 0.1% of its value. Buy fees = 4.95 + 0.001 × 6,000 = $10.95, so cost = 6,000 + 10.95 = $6,010.95. Sell fees = 4.95 + 0.001 × 7,500 = $12.45, so net proceeds = 7,500 − 12.45 = $7,487.55. Profit = 7,487.55 − 6,010.95 = $1,476.60. Return = 1,476.60 ÷ 6,010.95 = 24.57%.

Worked example 2: annualized return, tax and targets

You held the shares 400 days. Annualized = (1.2457)^(365 ÷ 400) − 1 = 22.19%. With a 15% tax rate, tax = 0.15 × 1,476.60 = $221.49 and profit after tax = $1,255.11. Break-even sell price = (6,010.95 + 4.95) ÷ (50 × 0.999) = $120.44, slightly above the $120 you paid. For a 30% return, you need (6,010.95 × 1.30 + 4.95) ÷ 49.95 = $156.54.

Reading the results

  • An annualized figure over a few days or weeks can look extreme. It is a rate comparison, not a promise that the gain would repeat.
  • Selling at a loss gives a negative return and no tax in this tool. Real tax rules for losses vary by place.
  • Prices, fees and tax rates are yours. The tool never looks up a quote or a broker's fee schedule.

Related tools

To project dividend income and growth, use the Dividend Calculator. For regular contributions, see the Investment & Compound Interest Calculator, and for growth between two numbers try the Percent Change Calculator.

Frequently asked questions

How do I calculate profit on a stock sale?

Subtract your total cost from the money you receive. Total cost is the buy price times shares plus buy fees. Proceeds are the sell price times shares minus sell fees. Add any dividends you collected. Buying 50 shares at $120 and selling at $150 with small fees leaves a profit of about $1,476.60.

What is the difference between total return and annualized return?

Total return is the whole gain as a percentage of what you paid, no matter how long it took. Annualized return converts it into the steady yearly rate that would produce the same result over the time held. A 24.57% gain over 400 days is an annualized return of about 22.19%, because it took slightly more than a year.

How do fees change the result?

Fees raise your cost and reduce your proceeds, so the sell price must rise further before you make money. The break-even sell price shows the exact point at which profit is zero after both trades. Percentage fees grow with trade size, while flat fees matter most on small trades.

What does the tax rate field do?

It multiplies a positive profit by the flat percentage you enter and shows what is left. It does not know your country, your bracket, how long you held the shares or whether you have losses to offset. Treat it as a rough illustration and ask a qualified tax professional about your actual liability.

What is the sell price needed for a target return?

It is the price at which the sale delivers the percentage return you ask for after all fees and dividends. For a 30% target in the example, the sell price is about $156.54. It lets you set a limit order or a goal before you trade, though the market may never reach it.

How is this different from the Dividend Calculator?

The Dividend Calculator has a simple stock profit mode with flat fees and covers dividend income and reinvestment projections. This page focuses on the trade itself: percentage and flat fees, tax, annualized return, break-even and a target sell price. Both use the same profit formula, so equal inputs give equal answers.

Is my trade information saved or sent anywhere?

No. Everything is calculated in your browser, nothing is stored, and nothing you enter is sent to our servers. Analytics record only that the tool was used, never your numbers, and no account is needed.

Link to this tool

Found it useful? Copy a link for your page, newsletter or documentation.

Get new tools and guides by email

Optional. The tool above works without signing up.

One email every Tuesday. Free, and you can unsubscribe in one click.

More free tools

Browse all financial calculators or the full list of free tools.