
Lenny D. answered 04/09/19
Financial Professional with many years of Wall Street Experience
Average Price is a weighted average of the different prices and quantieties paid by different consumers. Suppose you have 3 customers, Adams Brown and Cook. Adams buys 10 at $5. Brown buys 20 at $4.50 and Cook buys 30 at $5.00 at total of 60 units are sold 1/6 are sold at 5 1/3 at 4.50 and 1/2 at 4. the average price = (1/6)*5 + (1/3)*4.5 +(1/2)*4 = = $13/3.
I think you are getting confused with "cost of goods sold". In that case, you need to know the accounting method, FIFO (first in first out) or LIFO (Last in First out). That is another whole ball of wax.