Question: how are cogs and ending inventory related?
Answer: Inventory that is sold appears in the income statement under the COGS account. ... At the end of the year, the products that were not sold are subtracted from the sum of beginning inventory and additional purchases. The final number derived from the calculation is the cost of goods sold for the year.