Stock Profit Calculator
Stock Profit is evaluated from Buy Price per Share, Sell Price per Share and Number of Shares. The calculation reports Total Invested, Total Proceeds and Profit / Loss.
Results
About the Stock Profit Calculator
The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.
Formula basis:
Profit = (sell x shares - sell commission) - (buy x shares + buy commission). Return% = profit / cost basis x 100. Annualized return normalizes to a yearly rate.
Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: Profit = (sell x shares - sell commission) - (buy x shares + buy commission). Return% = profit / cost basis x 100. Annualized return normalizes to a yearly rate. Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: Apple stock: buy 50 shares at $150, sell at $185
Inputs
With Buy Price per Share = 150, Sell Price per Share = 185, Number of Shares = 50 and Buy Commission = 0 as the stated inputs, the result is Total Invested = $7,500, Total Proceeds = $9,250 and Profit / Loss = $1,750. Each value corresponds to the declared output fields.
Example 2: Tesla stock loss: buy 20 shares at $350, sell at $200
Inputs
With Buy Price per Share = 350, Sell Price per Share = 200, Number of Shares = 20 and Buy Commission = 0 as the stated inputs, the result is Total Invested = $7,000, Total Proceeds = $4,000 and Profit / Loss = $3,000. Each value corresponds to the declared output fields.
Example 3: Index fund: buy 100 shares at $400 (VOO ETF), sell at $450
Inputs
With Buy Price per Share = 400, Sell Price per Share = 450, Number of Shares = 100 and Buy Commission = 0 as the stated inputs, the result is Total Invested = $40,000, Total Proceeds = $45,000 and Profit / Loss = $5,000. Each value corresponds to the declared output fields.
Example 4: Day trade: buy 200 shares at $50.10, sell same day at $50.45, $5 commission each way
Inputs
With Buy Price per Share = 50.1, Sell Price per Share = 50.45, Number of Shares = 200 and Buy Commission = 5 as the stated inputs, the result is Total Invested = $10,025, Total Proceeds = $10,085 and Profit / Loss = $60. Each value corresponds to the declared output fields.
Common Use Cases
- Calculate profit from selling stocks
- Find percentage return on a stock trade
- Compare returns across different stock investments