Financial Calculators

Stock Profit Calculator

Calculate profit, return on investment, and per-share results from buy and sell prices, shares, and optional commissions locally in your browser.

Enter your buy and sell prices, number of shares, and optional commissions to calculate profit, return on investment, and per-share results. This calculator runs privately in your browser; your numbers are not uploaded or stored.

Your profit, ROI, and per-share results will appear here.

Estimate your stock trade profit before or after you sell.

Enter the buy price, sell price, and number of shares. Optionally include buy and sell commissions or fees. The calculator shows total cost, total proceeds, profit or loss, return on investment percentage, and profit per share. This private browser estimate does not include taxes, regulatory fees, or the impact of wash sales and is not financial, investment, or tax advice; your values are not uploaded or stored.

Frequently Asked Questions

Everything you need to know about this tool, how it works, and privacy.

What does the stock profit calculator show?

Enter your buy price per share, sell price per share, number of shares, and optional buy and sell commissions. The calculator returns total cost, total proceeds, profit or loss, return on investment percentage, and profit per share. For example, buying 100 shares at $50 and selling at $65 with $5 buy commission and $5 sell commission gives a $1,490 profit (29.7% ROI) and $14.90 profit per share.

Which formula does the stock profit calculator use?

Total cost = buy price × shares + buy commission. Total proceeds = sell price × shares - sell commission. Profit = total proceeds - total cost. ROI = (profit ÷ total cost) × 100. Profit per share = profit ÷ shares.

Which inputs are accepted?

Enter buy and sell prices of zero or more, shares as a positive whole number, and commissions of zero or more. Decimal values are accepted for prices and commissions. Missing required values, non-numeric text, and values outside these limits show a clear error instead of a result.

Do my values stay private, and is this financial advice?

Yes. The calculation and copy action run locally in your browser. CodeASystem does not upload or store the values you enter. This is a general estimate that does not include taxes, regulatory fees, or wash-sale rules, and is not financial, investment, or tax advice.