Cost of Goods Sold (COGS)
ecommerceThe direct costs attributable to producing or acquiring the goods sold by a company. COGS includes materials, direct labor, and manufacturing overhead, but excludes indirect costs like marketing and administration.
Definition
Cost of goods sold is the foundation of profitability analysis. It represents the direct costs of creating or acquiring the products you sell. For a manufacturer, COGS includes raw materials, factory labor, and production overhead. For a retailer, it is the wholesale cost of inventory. For a SaaS company, it includes server costs, third-party APIs, and direct support costs.
Accurately calculating COGS is essential because it determines gross profit and gross margin, the metrics that reveal whether your core business is viable before operating expenses. Understating COGS inflates apparent profitability and leads to poor pricing decisions. Common mistakes include excluding freight-in costs, overlooking shrinkage and spoilage, and failing to account for all direct labor.
COGS is a key input for tax calculations because it reduces taxable income. Businesses can use different accounting methods (FIFO, LIFO, weighted average) to value inventory and calculate COGS, each with different impacts on reported profits and taxes. Choosing the right method depends on industry norms, inventory turnover patterns, and tax planning strategies.
Formula
COGS = Beginning Inventory + Purchases During Period - Ending Inventory Example
A retailer starts the quarter with $50,000 in inventory, purchases $120,000 in new products, and ends with $45,000 in inventory. COGS = $50,000 + $120,000 - $45,000 = $125,000.
Related Terms
Gross Profit
profitabilityThe absolute dollar amount remaining after subtracting the cost of goods sold (COGS) from total revenue. It is the money available to cover operating expenses and generate net profit.
Gross Margin
profitabilityThe percentage of revenue remaining after subtracting the direct costs of producing goods or services (COGS). It measures production efficiency before operating expenses.
Contribution Margin
profitabilityThe amount each unit sold contributes toward covering fixed costs and generating profit. Calculated as selling price minus variable costs per unit.
Fulfillment Cost
ecommerceThe total cost of receiving, processing, picking, packing, and shipping an order to the customer. It includes warehouse operations, packaging materials, and carrier fees.
Put It Into Practice
Use these calculators to apply cost of goods sold (cogs) to your own numbers.
Profit Margin Calculator
Calculate gross, operating, and net profit margins.
Open calculator →Markup vs Margin Calculator
Convert between markup and margin instantly.
Open calculator →Cost Per Unit Calculator
Calculate the true cost to produce one unit and find the right selling price.
Open calculator →