Stock Profit Calculator · Calculation guide

Calculate share-trading profit or loss after entered charges.

Calculation guide

For investors reviewing holdings, income and trading assumptions.

Include only the costs you enter. Purchase averages use quantity weights; portfolio-return weights use beginning values over the same period. Reinvestment retains residual cash and states whether fractional shares are allowed. Rebalancing conserves cash after entered fees. Position size is an illustrative risk budget with no leverage or execution guarantee. Taxes and broker rules are not inferred.

G=q(P_sell−P_buy)−F_buy−F_sell

Inputs

Quantity

Number of shares or amount in the selected package unit. Unit prices use a common base unit.

Buy price

Price per share for the indicated purchase or sale, before its separate charges.

Sell price

Price per share for the indicated purchase or sale, before its separate charges.

Buy costs

Total charge for this purchase or sale, not a charge per share.

Sell costs

Total charge for this purchase or sale, not a charge per share.

Worked example

InputValue
Quantity10
Buy price100
Sell price125
Buy costs0
Sell costs0

Formula:

10 × (125 − 100) − 0 − 0

Gain loss = 250.000000000000

ResultValue
Gain250
Cost basis1,000
Net proceeds1,250
Return on investment25%

Interpreting the result

Ending value or receipts minus the relevant contributed money or costs. A negative value is a loss.

Money originally contributed or spent, before investment gains or losses.

How each input affects this example

Each row starts from the worked example and changes one input.

InputOriginal inputNew inputAffected resultOriginal resultNew result
Quantity1011Gain250275
Buy price100110Gain250150
Sell price125138Gain250380
Buy costs01Gain250249
Sell costs01Gain250249
Stock Profit Calculator →