Stock Profit Calculator

The Stock Profit Calculator works out the profit or loss on a stock trade before you decide to sell, so you can see the real result after costs. You enter the buy price, the sell price and the number of shares, plus optional commissions, dividends and a tax rate. It returns your profit or loss, your ROI and the break-even price the stock has to clear.

Advanced options
Profit / Loss
+$500.00
+50.0% ROI · 10.00 shares · Long
Gross P/L
+$500.00
Dividends
Tax
ROI
+50.0%
Break-even
$100.00
Annualized return

Trade in profit: +$500.00 (+50.0%) selling 10.00 shares at $150.00.

Show the math
+$500.00 = ($150.00 − $100.00) × 10.00 shares
eToro
Rated 78/100 by InvestinGoal
  • Minimum deposit: $50
Visit eToro
Reviewed by Filippo Ucchino Founder, InvestinGoal

These results are estimates for educational purposes only and are not financial, investment or tax advice.

What is a stock profit calculator?

A stock profit calculator is a tool that computes your profit or loss on a stock trade, the money you make or lose when you sell shares for a different price than you paid for them. The profit itself, also called your stock gain or P/L, starts as (sell price − buy price) × number of shares: buy 10 shares at $100 and sell them at $150 and the gross figure is +$500.00. From there the calculator layers on the parts that decide what you actually keep, subtracting the buy and sell commissions, adding any dividends you collected while holding, and taking capital gains tax off a positive result, so the net figure is the cash that lands in your account.

Because a share position can move either way, the same tool measures a loss just as precisely and shows it in red, and it handles both a long trade, where you buy first and sell higher, and a short trade, where you sell first and buy back lower. Working out that single number by hand for every closed position is exactly the repetitive step this calculator removes, which is why it is one of the most-used tools in stock investing: every trade you close comes down to it.

Why is the stock profit calculator important for investors?

The stock profit calculator is important for investors because it converts a trade you are weighing into the one figure that actually decides it: the profit or loss you would keep after commissions, dividends and tax, not the tidy gross gain the price move suggests. A +$500.00 price gain can shrink to a +$400.00 net once a 20% tax is due, so judging a position on the gross number alone overstates what you walk away with. Putting the real net figure in front of you before you act is the difference between a decision and a guess.

Investors reach for the calculator at the point of decision, while there is still a choice to make. You use it before closing a position, to check the profit or loss a given sell price would lock in, and to compare scenarios: what a sale at $145 returns versus one at $155, or how much a rebound has to deliver to clear your break-even. Sizing that call on the after-cost result, rather than a hopeful round number, is a core discipline of investing, because the only return that matters is the one left after the costs are paid.

How do you use the stock profit calculator?

To use the stock profit calculator, choose your trade direction, enter the buy price, the sell price and the number of shares, and the tool returns your profit or loss, ROI and break-even; add commissions, dividends or a tax rate for the net result.

The steps to use the stock profit calculator are listed below:

  1. Select your trade direction. Choose Long (buy→sell) for a normal position you buy and later sell, or Short (sell→buy) for a short you open by selling and close by buying back; Long is the default.
  2. Enter the buy price per share. Type what you paid, or plan to pay, for one share. On a short this is the price at which you cover.
  3. Enter the sell price per share. Type the price you sold at, or the price you are testing. On a short this is the price at which you opened.
  4. Enter the number of shares. Add the size of the position; fractional shares are accepted, so a partial-share holding is handled to the cent.
  5. Enter your buy commission. Add the fee your broker charged to open the trade, which is subtracted from the profit and raises the break-even.
  6. Enter your sell commission. Add the fee to close the trade; leave both at 0 for a zero-commission broker.

The profit, ROI and break-even update when you press Calculate. In the advanced fields you can add the dividends received, a capital gains tax rate and a holding period in years to see the annualized return, and switch the currency. Changing the direction between Long and Short flips the sign of the P/L, not the fields you fill in.

What formula does the stock profit calculator use?

The formula the stock profit calculator uses is the price move times the number of shares, adjusted for direction, then netted for commissions, dividends and tax.

P/L=sign×((sellbuy)×shares)fees+dividendstax

In this formula, sell and buy are the per-share prices, shares is the position size, fees is the buy commission plus the sell commission, dividends is the total you received while holding, and tax is the capital gains tax, charged only when the result is positive. The sign is +1 for a long trade and −1 for a short, which is how the same equation turns a lower cover price into a profit on a short.

Plugging in the price move alone, ($150 − $100) × 10 = +$500.00.

The formula assumes a single flat tax rate that you enter, applied only to a gain, rather than the tiered real-world brackets that depend on your holding period and income.

What is an example of a stock profit calculation?

An example of a stock profit calculation is a long trade that buys 10 shares at $100 and sells them at $150, which returns a profit of +$500.00, worked out as follows:

  1. Cost basis = $100 × 10 shares = $1,000.00, the capital you put in.
  2. Proceeds = $150 × 10 shares = $1,500.00, what the sale brings back.
  3. Gross P/L = $1,500.00 − $1,000.00 = +$500.00.
  4. ROI = +$500.00 ÷ $1,000.00 = +50.0%, the return on the capital employed.
  5. Break-even = $1,000.00 ÷ 10 shares = $100.00, the sell price that just covers the buy.

Now run the same trade through a broker that charges $5 to buy and $5 to sell. The cost basis rises to $1,005.00, the gross profit falls to +$490.00, the ROI slips to +48.76%, and the break-even climbs to $101.00. Ten dollars of commission does not sound like much, but it is the honest gap between the headline price gain and the profit you actually keep, and it is why the break-even sits above your buy price rather than on it.

How do you read the stock profit calculator's result?

You read the stock profit calculator's result by taking the headline Profit figure as your bottom line, green when the trade made money and red when it lost, then using the ROI, Gross P/L and Break-even cards to see how you got there and what the trade returned relative to what you put in. The primary figure shows your net profit when a tax rate or dividends are involved, and the gross profit when they are not, so on the canonical trade it reads +$500.00, while adding a 20% tax makes it read +$400.00.

Each supporting card answers a different question, as set out below.

Result cardWhat it tells you
ProfitYour bottom-line P/L, net of the costs entered; green for a gain, red for a loss
ROIThe gain as a percentage of your cost basis, so +$500.00 on $1,000.00 is +50.0%
Gross P/LThe price move alone, before dividends and tax, to show the cost of those items
Break-evenThe sell price that leaves you flat once commissions are counted, here $100.00
AnnualizedThe ROI expressed per year when you enter a holding period, for comparing trades

Read the sign first, then the size. A +$500.00 result at +50.0% ROI means the trade closed in profit; a −$1,000.00 result at −20.0% ROI on a $50 buy sold at $40 means the position lost a fifth of the capital, and the break-even card is the price the sale would have needed to reach to avoid it. Because commissions and tax only ever reduce the figure, as the U.S. Securities and Exchange Commission notes on Investor.gov that costs directly lower an investment's net return, the number on screen is always the after-cost truth, not the gross gain the price change alone implies.

What are the limits of the stock profit calculator?

The limits of the stock profit calculator are that it returns an estimate built from the numbers you type, and it leaves out much of what happens around a real trade. The tax it applies is a single flat rate you enter on the profit, so it does not model the tiered brackets or the short-term versus long-term distinction that the IRS sets out in Topic no. 409, where gains on assets held a year or less are taxed differently from long-term gains; for a full bracket-based estimate a dedicated capital gains tax calculator is the right tool. It also excludes custody and account fees, currency conversion, wash-sale adjustments and slippage, counting only the commissions you enter, so your real result will differ from the clean figure on screen.

The prices it uses are manual inputs, not a live quote, because it measures a trade you have already decided or closed rather than one moving in the market, so there is no real-time price and no timestamp. What the tool gives you is a profit estimate to inform a decision, not financial or tax advice, and it is only as accurate as the prices, fees and rate you enter.

How does the stock profit calculator account for commissions, dividends, and capital gains tax?

The stock profit calculator accounts for commissions, dividends and capital gains tax by applying them in order to turn the raw price gain into your net return: commissions come off both sides of the trade, dividends are added to the total, and tax is charged only on a positive result. Each lever moves the number a different way, and together they are the gap between a gross price gain and the cash you keep.

  • Commissions are subtracted on the buy and the sell. On the canonical trade, $5 each way cuts the +$500.00 gross to +$490.00 and lifts the break-even from $100.00 to $101.00, the price the stock must clear before the trade is profitable. As FINRA and the SEC both stress, fees and costs steadily reduce net returns, which is why zero-commission brokers change the arithmetic in your favour.
  • Dividends are added on top of the price change. A long trade from $100 to $110 on 10 shares is a +$100 price gain, and $30 of dividends received lifts the total return before tax to +$130.00, so counting only the price move understates what a dividend-paying holding actually returned.
  • Capital gains tax is taken only from a gain, at the flat rate you enter. A +$500.00 profit taxed at 20% costs $100.00 and leaves a +$400.00 net at +40.0% ROI, while a losing trade is taxed $0.00, because, as the IRS confirms in Topic no. 409, capital gains tax is not owed on a loss.

These are the real-world costs and credits that separate the "deep" calculation from a quick price-times-shares sum, and the tax mechanics behind them are covered in depth in the guide to taxes on stock, which sets out the brackets this tool deliberately simplifies.

What is the difference between a stock profit calculation's ROI and an annualized return calculation?

The difference between a stock profit calculation's ROI and an annualized return calculation is time: ROI is your total return on the trade regardless of how long you held it, while an annualized return spreads that same gain across the years held to give a comparable per-year rate. A +50.0% ROI is impressive over one year and ordinary over ten, and only the annualized figure tells the two apart.

AttributeStock profit ROIAnnualized return
What it measuresTotal return on capital, start to finishReturn per year, time-normalized
Time in the formulaIgnoredCentral: divides the gain across the holding period
Best useJudging a single closed tradeComparing trades of different lengths
Example+50.0% on the whole trade+22.47% a year over 2 years

The calculator shows the annualized rate only when you enter a holding period, and the gap is larger than most expect: a +50.0% total return earned over two years annualizes to just +22.47%, because growth compounds rather than adding in a straight line. When you need the pure per-year growth rate on its own, the CAGR calculator is built for it, whereas here it is a secondary output; the underlying measure of total gain against cost is the return on investment (ROI) that anchors the primary result.

Which calculators are related to the stock profit calculator?

The calculators related to the stock profit calculator cover the rest of a stock position, from building the cost basis to projecting the income and growth around it.

The calculators related to the stock profit calculator are listed below:

  • Stock calculator: the stock hub that bundles a quick profit, ROI and average in one view, and links here for the deep version with fees, dividends and tax.
  • Average down calculator: works out the weighted-average cost basis across several buys, the buy price this tool then measures the profit from.
  • Percentage gain calculator: turns the gap between two prices into a percentage return and the break-even gain, without the fee and tax layers.
  • Dividend calculator: projects the income a holding pays, the dividend side of the total return this calculator adds in.
  • DRIP calculator: shows how reinvesting those dividends compounds your shares and return over time, rather than taking them as cash.
  • Dividend yield calculator: measures the yield a stock pays relative to its price, the starting point for judging a dividend holding.
  • CAGR calculator: gives the compound annual growth rate, the per-year view of the annualized return this tool reports as a secondary output.

FAQ

How do I calculate profit on a stock?

Profit on a stock is (sell price − buy price) × number of shares, less any commissions. Buying 10 shares at $100 and selling at $150 with no fees is ($150 − $100) × 10 = +$500.00, a +50.0% ROI on your $1,000.00 cost basis. A negative result is a loss, shown in red.

How do I include commissions in my stock profit?

Subtract the commissions on both the buy and the sell. On the same 10-share trade with $5 each way, the cost basis becomes $1,005.00, gross profit falls to +$490.00 and ROI to +48.76%. The fees also lift your break-even to $101.00, the price the stock must clear before the trade turns a profit.

How is capital gains tax applied to my profit?

Capital gains tax is charged only on a positive gain, at the rate you enter. A +$500.00 profit taxed at 20% costs $100.00, leaving a +$400.00 net profit and a +40.0% ROI. On a losing trade the tax is $0.00, because capital gains tax is not owed on a loss. Rates vary by country, so treat this as an estimate, not tax advice.

What is my break-even share price?

Your break-even is the total buy cost plus both commissions, divided by the number of shares: (buy price × shares + buy fee + sell fee) ÷ shares. A $100 buy on 10 shares with $5 each way breaks even at $101.00, the sell price at which the proceeds exactly cover the purchase and the costs. Below it the trade is still a loss.

How do dividends affect my total return?

Dividends add to your return on top of the price change. A long trade from $100 to $110 on 10 shares is a +$100 price gain, and $30 of dividends received lifts the total return before tax to +$130.00. Price gain alone understates what a dividend-paying stock actually returned, which is why the calculator has a dividends field.

How do I calculate profit on a short position?

On a short you sell (open) first and buy back (cover) later, so profit is (opening sell price − covering buy price) × shares. Opening a short at $50 and covering at $40 on 100 shares is a +$1,000.00 profit. Set the direction to Short and the calculator flips the sign, so a lower cover price than your open price shows as a gain.

This tool is for education, not financial or tax advice. Your net profit depends on the prices, fees and tax rate you enter and excludes costs such as slippage and currency conversion, so your real result will differ. Investing carries the risk of losing money.

Select your language

English (Nigeria) country flag English (Nigeria)