Calculating the average price of an asset, such as shares in a stock portfolio, involves determining the total cost basis divided by the total number of units owned. To find this, multiply each purchase price by the number of shares bought at that price, sum those total costs together, and then divide the aggregate monetary sum by the overall cumulative quantity of shares. This weighted average calculation provides an accurate representation of your mean entry cost per unit, which is particularly useful when executing dollar-cost averaging or scaling into positions over time.