COGS Calculator
Beginning inventory plus purchases minus ending inventory gives your cost of goods sold — the figure every margin and tax calculation starts from. Instant, your own inventory numbers.
Cost of goods sold for the period
COGS = Beginning Inventory + Purchases - Ending Inventory. Beginning Inventory is the value of all sellable inventory held at the start of the accounting period (typically a month, quarter, or year). Purchases are the total cost of additional inventory acquired during the period, including freight, import duties, and direct handling costs, but excluding any non-inventory expenses like marketing or administrative fees. Ending Inventory is the value of unsold inventory at the period's close, physically counted or estimated using a consistent method (FIFO, LIFO, or weighted average). This formula derives COGS by tracking the flow of inventory: the goods available for sale (beginning + purchases) minus what remains unsold equals what was actually sold. It aligns with the matching principle in accounting, ensuring that the cost of generating revenue is recognized in the same period as the revenue itself. COGS excludes indirect costs (e.g., rent, salaries) and is critical for calculating gross profit (Revenue - COGS) and gross margin. Accurate COGS requires precise inventory valuation; errors in any variable distort margins and tax liabilities.
Retail Clothing Boutique
A boutique starts the quarter with $20,000 in inventory. During the quarter, it purchases $15,000 worth of new clothing, including shipping. At quarter end, a physical count shows $8,000 in unsold inventory. COGS = $20,000 + $15,000 - $8,000 = $27,000. This means $27,000 worth of clothing was sold during the quarter, which will be used to calculate gross profit from $50,000 in sales.
Woodworking Manufacturer
A custom furniture maker begins the year with $12,000 in raw lumber and works-in-progress. Over the year, it purchases $45,000 in additional lumber and hardware. A year-end inventory valuation totals $9,000. COGS = $12,000 + $45,000 - $9,000 = $48,000. This $48,000 represents the direct cost of materials for the furniture sold, excluding labor and overhead, which are separate operating expenses.
Coffee Shop Café
A café starts the month with $3,500 in coffee beans, milk, and pastries. It buys $6,000 in supplies during the month (including delivery fees). At month end, inventory is $2,200. COGS = $3,500 + $6,000 - $2,200 = $7,300. This $7,300 is the cost of the drinks and food sold, critical for setting menu prices and evaluating profitability.
A 'good' COGS number is relative to your revenue and industry. Typically, COGS as a percentage of revenue (cost of goods sold ratio) ranges from 40-80% for product-based businesses, but this varies widely: service businesses may have near-zero COGS, while grocery stores might run 70-85%. Lower COGS relative to revenue means higher gross margins, which is generally favorable but not always—extremely low COGS could indicate understocking or undervaluing inventory. Interpret COGS by tracking trends over time: a rising COGS percentage may signal supplier price increases, theft, waste, or inventory write-offs. Compare your COGS ratio to your own historical data rather than unverified industry averages. For accurate interpretation, ensure consistent inventory valuation methods (FIFO, LIFO, or average cost) across periods. Remember, COGS only includes direct costs; a low COGS doesn't guarantee net profit if operating expenses are high.
Common mistakes include: (1) Including indirect costs like marketing, rent, or salaries in COGS, which inflates the figure and misrepresents gross profit. (2) Using inconsistent inventory valuation methods between periods (e.g., switching from FIFO to LIFO without adjustment), causing non-comparable numbers. (3) Forgetting to include freight-in, import duties, or handling costs in purchases, understating COGS. (4) Failing to adjust for inventory shrinkage (theft, damage, spoilage) by not doing regular physical counts, leading to inaccurate ending inventory. (5) Misclassifying consignment inventory (goods held but not owned) as owned inventory. Edge cases: Businesses with large returns may need to adjust COGS for returned goods; subscription or digital products with zero physical inventory require different tracking. Always reconcile COGS with actual cash flow to catch errors.
- Beginning Inventory
- The value of all sellable inventory owned at the start of an accounting period.
- Ending Inventory
- The value of unsold inventory at the end of an accounting period, determined by physical count or estimation.
- Purchases
- The total cost of inventory acquired during a period, including freight, duties, and direct handling fees.
- Gross Profit
- Revenue minus cost of goods sold, representing the profit from core operations before operating expenses.
- FIFO (First-In, First-Out)
- An inventory valuation method assuming the oldest items are sold first, affecting COGS and ending inventory values.
Does COGS include labor costs?
Only direct labor that is clearly tied to production (e.g., assembly line workers) is included; indirect labor like management or sales staff is not.
How often should I calculate COGS?
Typically monthly or quarterly for accurate financial reporting, but at least annually for tax purposes.
What if I don't have a beginning inventory?
If you're just starting, beginning inventory is zero; your COGS for the first period equals purchases minus ending inventory.
Can COGS be negative?
No, COGS should never be negative—a negative value indicates an error, such as ending inventory exceeding goods available for sale.
Does COGS include shipping costs to customers?
No, customer shipping is a selling expense, not part of COGS. Only inbound freight to acquire inventory is included.
How do returns affect COGS?
Customer returns reduce COGS because the returned goods are added back to inventory, lowering the cost of goods sold.
What's the difference between COGS and cost of sales?
COGS is used for tangible products; cost of sales may include labor and overhead for service businesses, but the terms are often used interchangeably.
Do I need to include spoilage in COGS?
Yes, if spoilage is normal and expected, it should be factored into COGS via adjustments to ending inventory or separate write-offs.
The bundle's bookkeeping templates keep inventory and COGS straight so your margins are real, not guessed.
Startup Cost Calculator
Add up what it really takes to launch — and what a bundle replaces.
Service Pricing Calculator
Price every job for profit, not guesswork.
Break-Even Calculator
The exact number of jobs that turns the lights green.
Revenue Goal Calculator
Reverse-engineer the leads behind your number.
Catalog ROI Calculator
The time and money the catalog hands back every year.