How to use this calculator
Enter beginning inventory, purchases, freight or direct costs, ending inventory, and sales revenue. The calculator applies the standard COGS formula and estimates gross profitability.
Use this cost of goods sold calculator to estimate COGS, gross profit, and gross margin from inventory and purchase data.
Enter beginning inventory, purchases, freight or direct costs, ending inventory, and sales revenue. The calculator applies the standard COGS formula and estimates gross profitability.
COGS measures the direct cost of products sold. Lower COGS relative to revenue usually improves gross margin, assuming pricing remains stable.
Include only costs directly tied to goods sold. Operating expenses such as general payroll, rent, and marketing are usually not COGS.
With $40,000 beginning inventory, $120,000 purchases, $8,000 direct costs, and $35,000 ending inventory, COGS is $133,000.
COGS equals beginning inventory plus purchases and direct costs, minus ending inventory.
COGS usually includes product cost, raw materials, direct labor, freight-in, packaging, and other direct costs needed to make or acquire the goods sold.
Inbound freight or freight-in is often included in COGS. Outbound customer shipping may be treated separately depending on accounting policy.
COGS is directly tied to producing or acquiring goods sold. Operating expenses support the business more broadly, such as marketing, admin, and rent.
Higher COGS lowers gross profit and gross margin unless revenue or pricing increases enough to offset it.
| Metric | Meaning |
|---|---|
| COGS | Direct cost of goods sold |
| Gross profit | Sales revenue minus COGS |
| Gross margin | Gross profit as percentage of revenue |