Hi! I'm your CalcDigi AI assistant. Ask me anything about calculations, finance, health metrics, or math concepts. Please don't share personal or sensitive information.
Loadingโฆ
COGS Calculator
Calculate Cost of Goods Sold (COGS) using the standard accounting formula with beginning inventory, purchases, and ending inventory. Find gross profit and gross margin percentage from your COGS results.
COGS (Cost of Goods Sold) is the direct cost of producing the goods a company sells. It is the most important line item on the income statement after revenue โ the difference between revenue and COGS is gross profit, which must cover all operating expenses and generate net profit.
COGS includes only direct costs tied to producing goods or services sold. It does not include indirect overhead, selling expenses, or administrative costs. Understanding what belongs in COGS vs operating expenses is critical for accurate financial reporting and meaningful margin analysis.
Cost Item
Category
Notes
Raw materials
COGS
Direct material cost per unit
Direct labor
COGS
Factory workers, production staff
Manufacturing overhead
COGS
Equipment depreciation, factory utilities
Freight-in
COGS
Cost to receive goods into inventory
Sales commissions
Operating Expense
NOT in COGS
Marketing/advertising
Operating Expense
NOT in COGS
Office rent
Operating Expense
NOT in COGS
Packaging (for sale)
COGS or OPEX
Depends on accounting policy
COGS Accounting Methods
When inventory costs change over time, different accounting methods give different COGS: FIFO (First In, First Out) โ oldest inventory cost is recognized first. LIFO (Last In, First Out) โ most recent inventory cost first (allowed in US, not IFRS). Weighted Average โ average cost of all inventory. In periods of rising prices: FIFO gives higher profits (lower COGS), LIFO gives lower profits (higher COGS, lower taxes). Most companies use FIFO for GAAP reporting.
Frequently Asked Questions
COGS is the direct cost of producing the goods or services a business sells during a period. Formula: COGS = Beginning Inventory + Purchases During Period - Ending Inventory. Example: Started with $10,000 inventory, purchased $40,000, ended with $12,000: COGS = $10,000 + $40,000 - $12,000 = $38,000.
COGS: direct costs tied to producing/delivering what you sell (materials, direct labor, production overhead). Operating expenses (OPEX): indirect costs of running the business (marketing, salaries for non-production staff, office rent, legal, accounting). Gross Profit = Revenue - COGS. Operating Income = Gross Profit - OPEX.
Gross Profit = Revenue - COGS. Higher COGS = Lower gross profit. Reducing COGS (through better supplier pricing, production efficiency, or reduced waste) directly increases gross profit dollar-for-dollar. A 10% reduction in COGS has a larger impact on profit than a 10% increase in revenue for businesses with tight margins.
COGS as a percentage of revenue (inverse of gross margin) varies by industry. Manufacturing: 50-70%. Retail: 60-80%. Software/SaaS: 10-25%. Services: 20-40%. Restaurant: 28-35% food cost. Your COGS % should be compared to industry peers, not across industries. A declining COGS % over time indicates improving production efficiency.
Overstated ending inventory โ understated COGS โ overstated gross profit (error flatters financial results). Understated ending inventory โ overstated COGS โ understated gross profit. Errors carry forward: current period ending inventory becomes next period beginning inventory. Two-period errors can partially cancel or compound. Accurate inventory counting is essential for reliable financial statements.
Gross Profit is a dollar amount: Revenue - COGS = Gross Profit ($). Gross Margin is a percentage: Gross Profit / Revenue ร 100 = Gross Margin (%). Both measure the same thing in different units. $40,000 gross profit on $100,000 revenue = 40% gross margin. Gross margin % allows comparison across companies of different sizes.