COGS calculator formula
Add beginning inventory, net purchases, direct labor, materials and supplies, and other included production costs to find goods available for sale. Subtract ending inventory to calculate cost of goods sold.
Calculate cost of goods sold from a transparent period inventory schedule without confusing inventory cost with order-level profit.
Cost of goods sold
$85,000.00$15,000.00 remains in ending inventory from $100,000.00 available for sale.THE COST THAT LEFT THE SHELF
Beginning inventory and period production costs create the goods available for sale. Subtracting ending inventory isolates the cost assigned to goods sold in the period.

THE FIELD NOTES
Use the result now, then read the practical notes for assumptions, examples, limitations, and the choices behind it.
$20,000 beginning + $80,000 purchases − $15,000 ending
Add beginning inventory, net purchases, direct labor, materials and supplies, and other included production costs to find goods available for sale. Subtract ending inventory to calculate cost of goods sold.
Merchants commonly begin with opening inventory and net merchandise purchases. Manufacturers may also include direct labor, materials, and properly allocated production overhead.
Ending inventory cannot exceed goods available for sale within this simplified schedule. If it does, recheck the period, valuation basis, purchases, transfers, returns, and physical count.
Inventory valuation methods, capitalization rules, tax elections, write-downs, returns, freight treatment, and manufacturing overhead can change the accounting result.
THE INVENTORY COST IS SET
Add beginning inventory, net purchases, direct labor, materials and supplies, and other included production costs to find goods available for sale. Subtract ending inventory to calculate cost of goods sold.
Keep the beginning and ending inventory values on the same cost basis. Currency is rounded only for display after the full-precision schedule is calculated.
Merchants commonly begin with opening inventory and net merchandise purchases. Manufacturers may also include direct labor, materials, and properly allocated production overhead.
Freight-in and purchase discounts may affect net purchases. Selling, advertising, and general administrative costs usually belong outside this inventory schedule.
Ending inventory cannot exceed goods available for sale within this simplified schedule. If it does, recheck the period, valuation basis, purchases, transfers, returns, and physical count.
The tool blocks a negative result instead of presenting it as a valid cost of goods sold.
Inventory valuation methods, capitalization rules, tax elections, write-downs, returns, freight treatment, and manufacturing overhead can change the accounting result.
Use the output to check a period schedule. Confirm the final classification and tax treatment with current records and a qualified accountant.
Add beginning inventory and the costs included in goods available for sale, then subtract ending inventory from that total for the same reporting period.
Use merchandise purchases adjusted for relevant returns, allowances, discounts, and freight-in according to the accounting method used for the period.
In this simplified schedule, ending inventory is part of the goods available total. A larger ending balance would produce negative COGS and signals mismatched periods, values, or missing costs.
BUILT BY LOOK ATLAS
Turn a simple product photo into polished, campaign-ready creative for your store, ads, and social channels. No studio. No reshoots.
Create your first shoot free, then keep going when you’re ready.