The Definitive Guide to Cost of Goods Sold (COGS)
Every product company ultimately lives and dies by one financial truth: how much does it actually cost to make or buy what you're selling?
Whether you're running an e-commerce business out of your garage, you're a busy boutique operator or you're in charge of a fairly complex manufacturing operation, you have to have a firm grip on your production costs. That's the fundamental metric in accounting and it's the Cost of Goods Sold (COGS).
COGS is a long way from being a dry accounting term. It's a major lever on business health. It determines your profit margins, it dictates your pricing and it will have a direct bearing on your tax position at the end of the year.
1. What exactly is the cost of goods sold?
At its most basic level, Cost of Goods Sold is the total of the direct costs associated with the production or acquisition of the goods that your company sold over a particular period of time.
The key word is direct. COGS is purely the cost of the goods that go up as you produce or buy them in bulk. If you sell one more unit, those are the costs that go up with it.
COGS is all about the cost of goods that have actually left your possession and been delivered to the customer. It doesn't include the value of inventory that's sitting on your shelves, gathering dust in a warehouse or just waiting to be sold. The unsold inventory remains an asset on your balance sheet. It's only when an item has been sold that the cost of that item moves to the income statement as COGS.
2. Breaking down the component parts
To pull the numbers together, you must dissect the core variables that form the equation:
Beginning Inventory
This is the total dollar value of all your sellable products and/or raw materials on hand at the very beginning of an accounting period (i.e. at the start of the month, quarter or fiscal year). Your beginning inventory for the current period must be exactly equal to the ending inventory from the previous period (to the last cent).
Purchases (and Additional Production Costs)
For a traditional retailer this line item would cover the cost of all the fresh goods purchased from suppliers or wholesalers during the period. For a manufacturer it would be a much bigger pool and would include the cost of raw materials, freight-in, direct manufacturing labour and factory utilities.
Ending Inventory
This is the dollar value of the goods, components and materials that are still unsold at the end of your current accounting period. An accurate ending inventory figure is generally arrived at via physical counts, inventory cycles or via real time digital tracking systems.
3. The maths behind the metrics
To understand how these parts work you need to look at the two different ways in which businesses deal with their goods: product reselling and manufacturing.
The Standard Reseller/Retailer Approach
If you're buying finished goods from your suppliers and selling those directly to the customer with no modification whatsoever then your accounting is simple. You're using the classic inventory bridge equation.
The Reseller Formula:
Beginning Inventory+Purchases-Ending Inventory=COGS
Practical Retail Example
Look at a specialist footwear boutique. Starting Q1 they have $50k of premium boots in stock (beginning inventory). They then make purchases of an additional $120k of inventory from their manufacturers over the course of the quarter to meet the seasonal demand (purchases). Their physical inventory count at the end of Q1 reveals they have $40k of boots left (ending inventory).
$50,00 (Beginning)}+$120,000(Purchases)}-130,000 (COGS)
The shop spent precisely $130k in direct costs to acquire the goods that they did in fact sell in Q1.
The Manufacturer Approach
If your business is one that takes raw materials in the form of timber, steel, plastic or fabric and turns them into a finished product then you can't just go on wholesale purchase receipts. Your inputs are highly variable.
The Manufacturer Cost Accumulation Formula:
Raw Materials+Direct Labor+Factory Utilities+Direct Production Overhead=COGS
Practical Manufacturing Example
Imagine an artisanal furniture shop making bespoke oak dining tables. To work out their COGS for a production run they'd need to pull together a number of different operational layers:
Raw materials: $15k for the raw oak logs, the specialist hardware, the wood glue and the industrial varnish.
Direct Labour: $22,000 paid out in wages and benefits to the specialist woodworkers who built the tables.
Utilities: $3,000 to cover electricity, power tools, ventilation and water for the workshop floor.
Direct production overhead: $5k to cover the cost of specialised facility rent, tool insurance and the depreciation of the heavy plant.
3,000+45,000(COGS)
The actual economic cost to build those particular completed pieces of furniture was $45k.
4. Inclusions v Exclusions: Drawing a hard line
A very common mistake made by growing businesses is confusing the cost of goods sold with general operating overhead. That leads to a distortion of your actual margins and can potentially get you into trouble with the IRS from a compliance point of view.
| Costs Included in COGS (Direct) | Costs Excluded from COGS (Operating Expenses / SG&A) |
| Raw materials and core components | Corporate office rent and downtown headquarters utilities |
| Wholesale inventory purchased for direct resale | Marketing, digital advertising campaigns, and SEO services |
| Freight-in costs, shipping fees to acquire inventory, and customs duties | Wages for administrative staff, HR, legal teams, and sales reps |
| Wages for production line workers and assembly staff | Software subscriptions for office suites, project management, or payroll |
| Product packaging, boxes, and immediate wrap items | Shipping out costs from your warehouse to the final end-consumer |
A good rule of thumb in this respect is this: if your factory doors closed and your production lines stopped overnight then any costs that would drop to zero would be in COGS. Any costs that would still be running regardless of whether you were producing or not (your office rent, your liability insurance, your marketing retainers etc) are all operating expenses.
5. Valuation methods shape your bottom line
When prices change as a result of supply chain pressures, inflation or bulk purchase discounts the tracking of your item costs becomes more difficult. If you buy 100 widgets in January at $10 each and 100 of the same widgets in February at $12, which cost do you use when a customer purchases one in March?
Under US GAAP accounting principles, companies lean on one of three classic inventory valuation methods to navigate this scenario:
FIFO (First-In, First-Out)
This method presumes that the oldest items in your inventory are the first ones to be sold to the customer. In an environment of rising wholesale prices (i.e. inflation), FIFO will assign your older, lower costs to COGS. This results in a lower COGS figure which in turn results in a higher gross profit and a much more attractive net income figure for the investor.
LIFO (Last-In, First-Out)
On the other hand LIFO assumes that the most recent inventory you've brought in is the first to go out the door. In a period of rising costs that's going to have the most recent, most expensive purchases go directly into your COGS. That will of course reduce your reported profit but will also reduce your taxable income which is a very effective way of deferring the cash outflow to the tax man. LIFO is allowed under US GAAP, it is absolutely prohibited under IFRS worldwide.
Weighted Average Cost
If you're dealing with thousands of very similar items (screws, plastic bits, bulk grains etc) then it's simply not practical to track individual lot numbers. You'd end up with the weighted average method where you take the total cost of all the items available for sale and divide that by the total number of units on hand. That gives you a cost of goods sold (COGS) that's pretty much a levelled average and it smoothes out the effect of market volatility and price spikes.
6. Real-World Business Impacts
Understanding your COGS is more than just about keeping clean books. It's an active management tool that you use to make the day to day running of the business decisions.
Driving Strategic Pricing
You can't properly price a product without knowing exactly what it costs to make or source it. If your retail price is $20 and your COGS comes in at $15 your gross margin is a very thin 25%. If for some reason your freight costs spike due to a supply chain issue and your COGS goes up to $18 you're now operating on a mere 10% margin. That's a real time indicator of when you need to adjust your consumer pricing in order to protect your bottom line.
Calculating Your Gross Margin Profile
COGS is the basic deduction you use to work out your company's overall gross profit. From there it's straightforward to work out your gross profit margin percentage:
Gross Profit=Total Revenue-COGS
A high gross profit margin means that your business is keeping a large proportion of the capital from each dollar of sales. That capital is then available to cover your operating expenses, to fund growth and to provide for R&D.
Inventory Efficiency and Turnover Metrics
When you look at COGS alongside your average inventory balances over a given period, you can find your Inventory Turnover Ratio:
Inventory Turnover=COGSAverage Inventory Assets
This is the ratio which tells you precisely how many times over the course of a year your business went through its entire inventory. A low turnover figure is indicative of overstocking, cash being tied up and potential obsolescence. A high turnover figure is a good indicator of efficient use of assets and strong demand in the market.
7. Operational Strategies to Optimize COGS
With global supply chains seeing costs rise up to 7% above standard inflation rates, protecting your margins requires proactive management. If you want to lower your COGS without cutting corners on product quality, focus on these clear strategies:
- Renegotiate Supplier Contracts: Don't accept price hikes passively. Build long-term partnerships with suppliers to secure preferred volume discounts, early payment incentives, or stable fixed pricing agreements.
- Audit Scrap and Material Waste: On the production floor, track your raw material yield rates closely. Even small drops in manufacturing waste can add up to thousands of dollars saved across a year of production.
- Optimize Transport and Landed Costs: Consolidate your shipping schedules, redesign packaging to maximize freight density, and work with local customs brokers to minimize import duties and storage overhead.
- Embrace Automation: Moving away from manual error-prone spreadsheets and adopting automated inventory tracking software lets you spot margin leaks instantly. This ensures your inventory data stays clear, accurate, and ready for tax season.
1. Do service businesses have COGS?
Ans: No. Pure-service businesses track Cost of Services (COS) instead, focusing on direct labor and project delivery costs rather than physical inventory assets.
2. How are lost or stolen items handled in COGS?
Ans: They raise your COGS. Minor inventory shrinkage automatically lowers your ending inventory value, which increases your calculated cost of goods sold.
3. Is shipping to customers included in COGS?
Ans: No. Shipping costs to get raw materials to you are included, but outbound shipping to the customer is an operating expense.
4. Why does the IRS scrutinize COGS?
Ans: It lowers your taxes. Because a higher COGS reduces your reported gross profit, it directly decreases your taxable business income.
5. Does LIFO mean changing how items are physically shipped?
Ans: No. LIFO is strictly an accounting formula for your paperwork; your warehouse can still physically rotate and ship the oldest stock first.
Ready to Scale Your Business?
Connect with our experts to learn how our outsourcing solutions can drive growth.
BOOK A DISCOVERY CALL