($ per share A) x (# of A shares) + ($ per share B) x (# of B shares) + ($ per share C) x (# of C shares) = Total Spent

Total Spent / Total number of shares = Average Price per Share

**For Example: **

You buy 50 shares of XYZ at $20, then later you buy 75 shares of XYZ at $18, finally you buy 25 shares of XYZ for $15. To find the average price per share of your XYZ positions you multiply each set cost per share by the number of shares purchased.

50 x $20 = $1000

75 x $18 = $1350

25 x $15 = $375

now add the totals together

1000 + 1350 + 375 = $27,525

divide this number by the total number of XYZ shares you have.

50 + 75 + 25 = 150 shares

$27,525 / 150 shares = $18.1666666 = average price per share