The cost of goods sold is the total amount your business paid as a cost directly related to the sale of products. Depending on what you sell, that may include raw materials and packaging for resale or direct labor in producing them. Starting inventory + purchases − ending inventory = cost of goods sold.