Cost of goods manufactured refers to the total cost of work in process less the cost of the ending work in process inventory.
Manufacturers compute cost of goods sold by adding the beginning finished goods inventory to the cost-of goods manufactured and subtracting the ending finished goods inventory.
Total cost of Work in Process - Ending Work in Process Inventory = Cost of Goods Manufactured