The cost of goods sold is a business expense determined by subtracting the value of inventory at the end of a tax year from the value at the beginning plus any expenses incurred related to production like labor and raw materials. Operating expenses are expenses incurred for the running of the business, which can include expenses like marketing that the cost of goods does not include.