Stock Profit Calculator — Shares Gain & Loss
Stock profit compares sale proceeds with acquisition cost and transaction charges. A holding-period return is different from an annualized return, and neither automatically includes taxes or dividends. The stock calculator does not automatically process taxes, dividends, splits, short borrowing or multiple tax lots. Adjust quantity and prices consistently for a split before calculating. Tax treatment and broker execution quality need jurisdiction-specific and dated evidence rather than a universal assumption.
Updated · Reviewed by Foysal Mostafa
Leave 0 for zero-commission brokers
✓ Profitable Trade
Net Profit
+$1,500.00
ROI
+30.00%
Total Invested
$5,000.00
Total Commission
$0.00
Why Use the Stock Profit Calculator?
Stock profit compares sale proceeds with acquisition cost and transaction charges. A holding-period return is different from an annualized return, and neither automatically includes taxes or dividends. Compare the displayed result with the worked example and confirm the assumptions before using it.
Formula Used
Net stock P&L = (sell − buy) × shares − buy commission − sell commissionWorked Example
Buy 100 shares at $50 and sell at $65 with $5 commission on each side. Gross profit is $1,500, net profit $1,490 and cash invested $5,005. ROI is about 29.7702%. A 21% total return over two years annualizes to 10%, not 10.5%.
How to Use the Stock Profit Calculator — Step by Step
- 1
Enter the stated inputs
Use the units shown next to each field. Replace sample rates and rules with values applicable to your instrument and account.
- 2
Check a worked example
Buy 100 shares at $50 and sell at $65 with $5 commission on each side. Gross profit is $1,500, net profit $1,490 and cash invested $5,005. ROI is about 29.7702%. A 21% total return over two years annualizes to 10%, not 10.5%.
- 3
Interpret the result
The stock calculator does not automatically process taxes, dividends, splits, short borrowing or multiple tax lots. Adjust quantity and prices consistently for a split before calculating. Tax treatment and broker execution quality need jurisdiction-specific and dated evidence rather than a universal assumption.
What Your Stock Profit Calculator Results Mean
Calculation basis
Net stock P&L = (sell − buy) × shares − buy commission − sell commission
Interpretation and limits
The stock calculator does not automatically process taxes, dividends, splits, short borrowing or multiple tax lots. Adjust quantity and prices consistently for a split before calculating. Tax treatment and broker execution quality need jurisdiction-specific and dated evidence rather than a universal assumption.
Stock Profit Calculator — Frequently Asked Questions
Q.How is this calculated?
Net stock P&L = (sell − buy) × shares − buy commission − sell commission
Q.What example can I use to check the arithmetic?
Buy 100 shares at $50 and sell at $65 with $5 commission on each side. Gross profit is $1,500, net profit $1,490 and cash invested $5,005. ROI is about 29.7702%. A 21% total return over two years annualizes to 10%, not 10.5%.
Q.What assumptions or limitations matter?
The stock calculator does not automatically process taxes, dividends, splits, short borrowing or multiple tax lots. Adjust quantity and prices consistently for a split before calculating. Tax treatment and broker execution quality need jurisdiction-specific and dated evidence rather than a universal assumption.
About the Author

Forex Trader & Software Developer · Founder, TradeCalc
Active forex trader since 2019, specializing in risk management and systematic position sizing. Built TradeCalc to replace manual spreadsheets used in live trading. Calculator formulas are checked with worked examples and automated regression tests. Broker-specific rules and execution outcomes still need independent confirmation.
More Stocks Calculators
Profit / Loss Calculator
Trading profit or loss comes from the signed price movement multiplied by quantity, with costs then deducted. Use the instrument’s contract units and…
Compounding Calculator
Compounding applies each period’s return to the balance remaining from the previous period. A calculator can explore assumptions, but it cannot…
Break-Even Calculator
Two break-even tools in one: find the win rate you need to break even at any R:R ratio, and calculate the exact break-even price after spread, commission and swap.
Gain & Loss % Calculator
Calculate your trading account gain or loss percentage. Also shows the exact gain needed to recover any loss — a 20% loss requires a 25% gain to get back to flat.