How to calculate the average price of stock

How do investors average stock prices when buying in multiple lots?

Average price is calculated by dividing the total amount spent on shares by the total number of shares bought. Formula: Average Price = Total Cost / Total Shares. This helps investors know their average cost per share.