Profit Calculator

Stock Gains Calculator

Calculate realized share gains from purchase price, sale price, quantity and fees. Compare the net gain with the amount you invested.

Example figures

Gain including distributions$18After fees and cash distributions
Total cost basis$81
Net sale proceeds$99
Return on invested cash22.22%

Calculation breakdown

Stock Gains Calculator results
Total cost basis1 × 80 + 1$81
Net sale proceeds1 × 100 − 1$99
Gain including distributions99 + 0 − 81$18
Return on invested cash100 × 18 ÷ 8122.22%
Break-even exit price(81 + 1 − 0) ÷ 1$82

Use one closed position in one currency. Value any fees paid in assets at the time of payment. Include only distributions received during this holding period.

What changes the result?

Gain including distributions by quantity sold
$140.8 quantity$181 quantity$221.2 quantity

Realized vs. unrealized gains

A closed trade uses actual disposal proceeds after fees. An open position uses a hypothetical exit quote and estimated fees. Match the quantity and both prices to the same share-split basis before comparing them.

Worked example

Buy one share at $80 plus $1 commission, then sell at $100 less $1 commission. Gain is $18 on $81 invested, a 22.22% holding-period return.

How do dividends affect the return?

Add distributions actually received during the holding period to net sale proceeds before subtracting cost basis. Reinvested dividends can change share quantity and basis and require separate lot records.