The formula for the cost of goods manufactured is the costs of: direct materials used + direct labor used + manufacturing overhead assigned = the manufacturing costs incurred in the current accounting period + beginning work-in-process inventory - ending work-in-process inventory.