The simple cost of goods sold formula is beginning inventory plus purchases minus ending inventory,.
Inventory is the goods that you have on hand at the beginning and end of the year.