Free Online Stock Profit Calculator

A stock-profit tool returns total return = (sell − buy) / buy and annualised return = (1 + return)^(365/days) − 1, with optional commission and short-sale handling.

Your data is processed entirely in your browser and never sent to any server.

Instant results 100% private No signup needed

Formula: return % = (net profit / cost basis) × 100. Annualized = ((1 + return)^(365/days) − 1) × 100.

Net profit
$1,000.00
+20.00% return
Gross profit
$1,000.00
Total commission
$0.00
Cost basis
$5,000.00

For general info only. Pre-tax figures. Short-term and long-term capital gains have different tax treatment — consult a qualified tax professional.

How to Use This Tool

  1. Enter the buy price, sell price and number of shares.
  2. Add commission if your broker charges one.
  3. Toggle Short selling if this was a short trade.
  4. Optionally enter a holding period in days for an annualised return.
  5. Review dollar profit, return percentage and net-after-commission profit.

What Is a Stock Profit Calculator?

Stock return on a single trade is the percentage change between buy and sell price: (Sell − Buy) / Buy × 100. Multiply by share count for dollar profit, then subtract commissions for net profit. For holding periods other than exactly one year, annualised return scales the result to a one-year equivalent using (1 + return)^(365 / days) − 1, which puts a 3-month trade and a 5-year hold on the same footing.

Active traders log realised trades to track which positions outperformed their hold time. Long-term investors use the annualised view to compare a stock against an index benchmark. The tool accepts buy price, sell price, share count and an optional commission, returning dollar profit, return percentage, net profit after commission and — when a holding period in days is supplied — annualised return. The short-sell toggle flips the math: profit comes from a falling price, so the formula becomes (Buy − Sell) × Shares − Commissions.

Results are pre-tax. Short-term gains in the US are taxed at ordinary income rates; long-term gains get preferential rates. Tax rules change — general information only, consult a qualified tax professional before acting on these numbers.

Frequently Asked Questions

How is stock return calculated?
Return % = (Sell Price − Buy Price) / Buy Price × 100. Multiply by shares for total dollar profit, then subtract commissions to get the net figure.
What is annualized return?
Annualized return scales the actual return to a one-year equivalent using (1 + return)^(365/days) − 1, so trades of different lengths can be compared.
How does short selling change the math?
Short sellers profit when the price falls. The formula flips: Profit = (Buy Price − Sell Price) × Shares − Commissions, where Sell Price is the entry and Buy Price is the cover.

Published by the WeGotEveryTool team. We build and test every tool in-house and update pages when the underlying spec, formula, or recommendation changes.

Reviewed: May 2026. Disclaimer: this tool is provided as-is for general informational use. For decisions with material consequences (medical, legal, financial, security) verify results against a qualified professional source.

Related Finance Tools