The cost of items purchased are averaged to determine the cost of items sold. The weighted average cost flow method is computed as follows:
Average cost per unit = Total cost of the inventory available for sale/ total number of units available
For example if you are selling 2 items and one cost $50 to purchase and the other one cost $60. Your average cost will be $55.