Question: what is the formula to calculate cost of goods sold?
Answer: Or, to put it another way, the formula for calculating COGS is: Starting inventory + purchases - ending inventory = cost of goods sold.