Stock Profit Calculator

Calculate the profit or loss on a stock trade after commissions and fees, your ROI, the break-even and target exit prices, and an optional tax estimate, for long or short positions.

Trade Details

Trade Direction

Actual or planned.

Fractional shares are allowed.

Transaction costs ($0.00)

$ per order

$ per order

% of each side's trade value.

Fixed total, e.g. platform or borrow fees.

Advanced settings

Total cash dividends while you held the shares.

Used for the target exit price below.

Net Profit or Loss

+$1,000.00

Profit after transaction costs · ROI +20.00%

Gross P/L (before costs)
+$1,000.00
Buy value
$5,000.00
Sell value
$6,000.00
Buy-side costs
$0.00
Sell-side costs
$0.00
Total Costs
$0.00
P/L per Share
+$10.00
Break-even sell price
$50.00
Annualized Return
—

ROI = net P/L ÷ capital, where capital is the buy value plus buy-side costs ($5,000.00). Enter both dates to calculate an annualized return.

Estimates from the prices and costs you enter, not investment advice or a tax calculation. Fees vary by broker and market; short positions can also involve borrowing fees and margin interest, which you can add as other costs. Amounts are in US dollars.

Break-Even Selling Price

Break-Even Price
$50.00
Your Sell Price
$60.00
Difference
+$10.00 per share
P/L at Your Price
+$1,000.00

You need to sell above $50.00 to cover the purchase; that is 0.00% from your buy price.

Excludes the optional tax estimate and any costs you have not entered.

Target Selling Price for a 10% Return

Required Exit Price
$55.00
Gross P/L
+$500.00
Net P/L
+$500.00
ROI
+10.00%

The price at which net profit, after the costs you entered, equals 10% of capital. Change the target under Advanced settings. This is arithmetic, not a price prediction.

Profit and Loss Breakdown

  • Gross P/L+$1,000.00
  • Net P/L+$1,000.00
Profit and loss breakdown
MetricValue
Buy value$5,000.00
Sell value$6,000.00
Gross P/L+$1,000.00
Buy-side costs−$0.00
Sell-side costs−$0.00
Other costs−$0.00
Dividends$0.00
Net P/L+$1,000.00
ROI+20.00%
Break-even sell price$50.00

How This Result Was Calculated

  1. Gross P/L = ($60.00 − $50.00) × 100 = +$1,000.00
  2. Costs = $0.00 + $0.00 + $0.00 = $0.00
  3. Net P/L = +$1,000.00 − $0.00 + $0.00 = +$1,000.00
  4. ROI = +$1,000.00 ÷ $5,000.00 × 100 = +20.00%
  5. Break-even: the sell price where net P/L = 0 → $50.00

Compare Exit Prices

  • Your exit $60.00+$1,000.00
  • Exit B $55.00+$500.00
  • Exit C $70.00+$2,000.00
Net profit at different exit prices
ScenarioExit PriceNet P/LROIvs. Break-Evenvs. Your Exit
Your exit$60.00+$1,000.00 profit+20.00%+$10.00/sh$0.00
Exit B$55.00+$500.00 profit+10.00%+$5.00/sh−$500.00
Exit C$70.00+$2,000.00 profit+40.00%+$20.00/sh+$1,000.00

All other inputs stay the same; exit costs are recalculated for each price.

This stock profit calculator shows the profit or loss on a stock trade after commissions and fees. Enter your buy price, sell price and number of shares to see gross and net profit, ROI, profit per share and the break-even selling price, for a long trade or a short sale.

Add transaction costs as a fixed fee, a percentage or a per-share charge, include dividends and an optional tax estimate, calculate the exit price needed for a target return, annualize the return from your dates, and compare several exit prices. Results are estimates from the figures you enter.

Use it as a quick stock calculator or stock gain calculator before you place an order, to check what a price move would mean in dollars after costs.

What Is a Stock Profit Calculator?

A stock profit calculator works out how much you made or lost on a trade: the difference between what you paid and what you received, multiplied by the number of shares, less the costs of trading. Those costs matter more than they look. Commissions, percentage-based brokerage and exchange fees are charged on both the purchase and the sale, so a small price gain can turn into a loss, and the price you need to break even sits above your purchase price. This calculator handles long and short trades, three commission methods, dividends and an optional tax estimate.

Entering a Trade in the Stock Profit Calculator

  • Buy and sell price: for a long trade, the price you paid and the price you sold (or plan to sell) at. For a short trade, the price you sold at first and the price you bought back at.
  • Number of shares: fractional shares are accepted.
  • Transaction costs: a fixed fee per order, a percentage of the trade value or a fee per share for each side, plus percentage exchange or regulatory fees and any other fixed costs. If your broker gives one total, use the all-in option instead so nothing is counted twice; choose No costs for commission-free trades.
  • Advanced settings: dividends received (or owed on a short), a target return for the target exit price, and an optional tax rate applied only to a net gain.

How to Calculate Stock Profit

Gross profit = (sell price − buy price) × number of shares

Net profit = gross profit − buy-side costs − sell-side costs − other costs + dividends

Hypothetical example: you buy 100 shares at $50.00 and sell them at $65.00, paying $4.95 commission on each order. Gross profit is ($65.00 − $50.00) × 100 = $1,500.00. Subtracting $9.90 of commissions leaves a net profit of $1,490.10.

Gross Profit vs. Net Profit

Gross profit measures only the price movement. Net profit is what is left after the costs of buying and selling (and after dividends, if any). Tax is a separate step: the calculator shows an optional after-tax estimate but keeps it apart from net profit.

How to Calculate Stock ROI

ROI = net profit ÷ (buy value + buy-side costs) × 100

A dollar profit means more on a small investment than on a large one, so the return is measured against the capital you put in. In the example the capital is $5,000.00 + $4.95 = $5,004.95, giving an ROI of $1,490.10 ÷ $5,004.95 = 29.77%. For a short trade the calculator uses the opening position value plus opening costs as the base, since there is no purchase; your broker's margin requirement may differ.

How to Calculate the Break-Even Selling Price

Fixed sell fee: break-even = (buy value + buy costs + sell fee + other costs − dividends) ÷ shares

Percentage sell fee f: break-even = (buy value + buy costs + other costs − dividends) ÷ (shares × (1 − f))

The break-even price is the exit price at which net profit is exactly zero. In the example it is ($5,000.00 + $4.95 + $4.95) ÷ 100 = $50.10, about $0.10 above the purchase price. When the sell-side fee is a percentage, it grows with the sale price, so it has to be solved as part of the equation, which is what the calculator does for every fee method. The break-even price excludes tax.

How Do Trading Fees Affect Stock Profit?

Fee structures vary by broker and market: many US brokers charge no commission on stock trades, while others charge a flat fee per order, a percentage of the trade value, or a fee per share, and exchanges or regulators may add small percentage charges. Fixed fees hit small trades hardest. Buying 40 shares at $25.00 ($1,000.00) with $4.95 commission each way means the price must reach $25.25, a 0.99% rise, just to break even. On a trade ten times larger the same fees would need only about a tenth of that move.

What Is Annualized Stock Return?

Annualized return = ((ending value ÷ capital)^(365 ÷ days held) − 1) × 100

Annualizing converts a return over any holding period into an equivalent yearly rate so trades of different lengths can be compared. A 20% gain over two years is about 9.54% a year. Short periods can produce misleading numbers: a 5% gain in 30 days annualizes to about 81%, which assumes you could repeat that result all year. The calculator only annualizes when both dates are entered, the holding period is at least one day and the position has not lost all of its capital. For returns on longer-term investments, the ROI calculator and the investment calculator are a better fit, and the compound interest calculator shows how returns compound over time. Income from holding shares is covered by the dividend calculator, and the capital gains tax calculator looks at tax on a gain in more detail.

How to Use the Stock Profit Calculator

  1. Choose Long (buy, then sell) or Short (sell, then buy back) and enter the entry price, the exit price and the number of shares.
  2. Optionally add the purchase and sale dates to see the holding period and an annualized return.
  3. Open Transaction costs and choose No costs, Itemized (commission per order, percentage or per share, plus regulatory and other fees) or a single all-in total.
  4. Open Advanced settings to add dividends, a target return and an optional capital gains tax rate.
  5. Read the net profit or loss, ROI, break-even price and target exit price, then check the breakdown and the calculation steps.
  6. Use the example trades or compare up to three exit prices to see how the result changes.

Frequently Asked Questions

How do I calculate profit on a stock?

Subtract the buy price from the sell price and multiply by the number of shares for the gross profit, then subtract the commissions and fees on both trades. Buying 100 shares at $50 and selling at $65 with $4.95 commission each way gives $1,500 gross and $1,490.10 net.

How do I calculate stock profit percentage?

Divide the net profit by the money you invested, the purchase cost plus buy-side fees, and multiply by 100. In the example above, $1,490.10 ÷ $5,004.95 is a 29.77% return.

What is the difference between gross and net profit?

Gross profit is the price movement times the shares. Net profit subtracts the costs of buying and selling and adds any dividends received. Estimated tax, if you enable it, is shown separately again.

How do trading fees affect stock returns?

They are paid on both the purchase and the sale, so they raise the price you need to break even. Fixed fees matter most on small trades: with $4.95 each way, a $1,000 purchase needs a 0.99% price rise just to cover costs.

How do I calculate a break-even selling price?

Add the purchase cost, buy-side fees, other costs and a fixed sell fee, subtract dividends, and divide by the number of shares. With a percentage sell fee f, divide by shares × (1 − f) instead. The calculator solves it exactly for every fee method.

Can I calculate a stock loss?

Yes. Enter a sell price below the buy price, or a buyback price above the opening price for a short, and the result shows a negative net profit, labeled as a loss, with a negative ROI.

How do I calculate the return on a stock investment?

Use net profit divided by the capital invested. To compare holdings of different lengths, add the purchase and sale dates to see an annualized return as well.

What is annualized return?

The equivalent yearly rate for a return earned over any period, calculated as (ending value ÷ capital)^(365 ÷ days) − 1. A 20% gain over two years is about 9.54% a year. Very short holding periods can annualize to misleadingly large numbers.

Does this calculator include capital gains tax?

Only if you enable the optional estimate and enter your own rate. It applies that rate to a net gain and does not calculate tax benefits for losses. Real tax depends on your country, holding period, cost basis rules and other income.

Can I use this calculator before selling a stock?

Yes. Enter a planned sell price to see the expected result, use the break-even price to see how far the stock has to move, and compare up to three possible exit prices.

Does a higher selling price always mean a profitable trade?

No. If the price rises less than your trading costs, you still lose money. For example, buying 100 shares at $25 and selling at $25.04 with $4.95 commission each way gives a $4 gross gain but a $5.90 net loss.

How are dividends treated in stock profit calculations?

Dividends you received while holding a long position are added to net profit, which also lowers the break-even price. For a short position, dividends paid to the share lender are subtracted.

Last updated: October 25, 2026.