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.
Formula: return % = (net profit / cost basis) × 100. Annualized = ((1 + return)^(365/days) − 1) × 100.
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
- Enter the buy price, sell price and number of shares.
- Add commission if your broker charges one.
- Toggle Short selling if this was a short trade.
- Optionally enter a holding period in days for an annualised return.
- 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?
What is annualized return?
How does short selling change the math?
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
Calculate Systematic Investment Plan returns. See invested amount, estimated returns and total maturity value with a yearly growth view.
Calculate gross profit margin and markup percentage. Reverse mode: set a target margin and find the selling price.
Find the break-even point: how many units you must sell to cover fixed and variable costs. Shows units, revenue and contribution margin.
See what a past US dollar amount is worth today. Uses historical CPI to calculate purchasing power between any two years.
Calculate fixed deposit maturity. Compound interest with monthly, quarterly, half-yearly or yearly compounding.