Some brands purchase and resell inventory items to customers, while others manufacture the goods they sell. Both types of businesses spend money on inventory, but there are more differences than similarities, especially in how they calculate their cost of goods sold (COGS).
COGS is a key factor in your profit margins, and it shapes your income statement too. So it's vital to use the right cost of goods sold formula for your business model. Consulting firm Kearney expects global supply chain costs to rise up to 7% above inflation by late 2025, so product sellers can't afford to ignore cost tracking.
Cost of goods sold, abbreviated COGS, is the direct cost of producing or purchasing the goods a company sells to generate revenue.
In other words, it's the expense tied directly to making or buying your products during a specific period. Indirect costs like administrative expenses and office supplies are excluded from the calculation.
It's a straightforward concept, but it looks different depending on whether you purchase or produce your inventory. Let's walk through both scenarios.
These terms get mixed up constantly, so let's clear them up. Getting them right keeps your margins accurate and your accountant happy.
Salaries are where people trip up. Only wages for direct production labor count toward COGS. The salaries of your office, sales, and admin teams sit in operating expenses instead.
A quick reference so you know what belongs in the calculation and what doesn't.
Included in COGS:
Excluded from COGS:
There isn't one universal cost of goods sold formula, because resellers and manufacturers track different costs. Here are both, side by side.
Reseller COGS = Beginning Inventory + Purchases During the Period − Ending Inventory
Resellers use this formula because they buy finished inventory rather than build it.
Manufacturer COGS = Raw Materials + Direct Labor Costs + Utilities + Direct Overhead Expenses
Manufacturers use this one because they're producing goods, so they carry extra variables like factory overhead, raw materials, and labor.
Whichever formula you use, you can calculate COGS by hand, in spreadsheets, or automatically with inventory management software like Cin7. Automating it is faster and more accurate, but understanding what goes into the calculation helps you spot ways to optimize COGS.
To calculate COGS, first pick the formula that applies to you: reseller or manufacturer. Then plug in your inventory values or production costs for the period. Your numbers may shift depending on your inventory valuation method, like LIFO or FIFO.
Here's a closer look and a worked example for each.
Resellers use the basic formula: COGS = Beginning Inventory + Purchases During the Period − Ending Inventory, where:
Let's put it in action with a shoe seller:
Plug those numbers into the reseller formula:
COGS = $10,000 (Beginning Inventory) + $30,000 (Purchases) − $5,000 (Ending Inventory)
COGS = $35,000
For this example year, the brand's COGS is $35,000. Cin7's accounting and inventory software can automate this for resellers by tracking COGS per unit at the time of sale. That means you track it on a perpetual basis, without waiting for the period to close.
Manufacturers use: Total COGS = Raw Materials Cost + Direct Labor Costs + Utilities + Overhead Expenses. Imagine a company that builds and sells wooden tables, where:
Now say this company sold 100 wooden tables over the quarter. The costs for those 100 tables were:
Enter those values into the manufacturer formula:
Total COGS = $5,000 (Raw Materials) + $3,000 (Direct Labor) + $500 (Utilities) + $2,000 (Overhead)
Total COGS = $10,500
So the total production cost for those 100 tables is $10,500. With Cin7, manufacturers can automate job costing to track COGS for each order, and our manufacturing inventory software keeps materials, labor, and overhead in one place.
Your COGS percentage, also called the COGS to sales ratio, shows how much of your revenue goes toward making or buying what you sell. The formula is simple:
COGS Percentage = (COGS ÷ Revenue) × 100
Say your COGS is $35,000 and your revenue is $70,000. Your COGS percentage is 50%, so half of every sales dollar covers the cost of goods, and the other half is gross profit before other expenses.
What's healthy? It varies by industry, but AgencyAnalytics notes that 30% to 40% of sales is a common benchmark, while a COGS above 50% can signal rising production costs or pricing that needs a look. Track it over time in real-time reporting to protect your gross margin.
The value you assign to inventory changes your COGS, especially when prices move. Here are the three most common methods:
There's no single right choice. Your method depends on your goals, your accounting rules, and how prices are trending. For a deeper look, see our guide to inventory valuation methods.
Understanding COGS matters for every business owner, whichever cost of goods sold formula you use. Here's what it unlocks.
COGS analysis helps you make smarter calls on product lines, suppliers, and production. You can spot your most profitable products and put resources behind them. Tracking COGS over time also guides pricing decisions, like trimming bloated costs or streamlining production.
Understanding COGS lets you analyze profitability accurately. With your direct costs in hand, you can calculate gross profit margin, a core measure of company health. Leaner production and better resource use can lower COGS, improve cash flow, and boost your bottom line.
Tracking COGS protects profitability by informing your pricing and surfacing ways to cut spending. That's especially relevant now, as 55% of businesses flag inflation as a growing supply chain risk, up from 31% in 2023.
An accurate view of COGS helps you set competitive prices while optimizing your spending. When you understand your cost structure, you can cover your expenses and still stay competitive.
COGS also gives you insight into your inventory. By tracking it over time, you can spot trends and optimize stock levels to minimize holding costs and avoid overstocking or stockouts.
Once you're tracking COGS accurately, the next question is how to bring it down without cutting corners. A few practical levers:
The goal isn't the cheapest inputs. It's the smartest ones, so you protect margins and keep customers happy.
Calculating COGS helps you improve profitability, pricing, and inventory strategy. Follow these best practices to get the most from your COGS data.
Calculating COGS once a year instead of continuously means missed chances to adjust your margins. Costs can eat into your profit long before you notice and can act.
For the sharpest insight, keep accurate inventory and expense records and calculate COGS consistently. Cin7 makes this easy by calculating COGS for each item sold and integrating with your accounting software so you can monitor margins over time.
Inventory management software streamlines valuation and COGS tracking, saving time and cutting the errors that come with manual entry. It's also how you keep pace with finance leaders. In Deloitte's Q1 2026 North American CFO Signals survey, 53% of CFOs named automation and technology upgrades as the most proven way to control costs.
Take GoNano, a manufacturer of roof-life extension products that ran on spreadsheets, email, and forms. After moving to Cin7, they doubled their contractor network to over 400 accounts in about 18 months without proportionally growing back-office staff.
You can go further, too. Pair automated COGS with AI demand forecasting to plan purchases before costs spike, and turn insights into lower expenses and healthier margins.
Automating COGS reduces manual work and frees up your team's time. Even so, remember to review the data and act on it.
Assess COGS regularly to find areas to improve. A manufacturer seeing higher COGS from rising material costs might negotiate with suppliers or explore more cost-effective materials.
Still have questions? Here are quick answers to the ones we hear most.
COGS is an expense, and it lands on your income statement where it's subtracted from revenue to give gross profit. Until inventory actually sells, its cost sits on your balance sheet as an asset. The moment a sale happens, that cost moves from inventory to COGS.
Cost of goods manufactured (COGM) is the total cost of everything you finished producing in a period, whether it sold or not. COGS is narrower: it's the cost of the goods you actually sold. Manufacturers often calculate COGM first, then use it to help work out COGS.
You can calculate COGS in Excel with one simple formula. Put your beginning inventory, purchases, and ending inventory in three cells, then use =beginning+purchases−ending (for example, =B1+B2−B3). It works, but a spreadsheet won't update on its own, so tools like Cin7 track COGS automatically as each item sells.
Yes. COGS is a deductible business expense, so a higher COGS lowers your taxable income for the period. That's also why your valuation method matters, since FIFO, LIFO, and weighted average can each report a different COGS and change what you owe.
COGS appears on your income statement, right below revenue and above gross profit. Subtract COGS from revenue and you get gross profit, one of the clearest signals of how efficiently you make or buy what you sell. It doesn't show up on your balance sheet, but unsold inventory does, until it sells.
Whether you purchase or manufacture your inventory, automating your COGS calculation reduces manual work, improves accuracy, and saves time. Best of all, it lets you monitor and adjust profit margins on the fly.
Cin7 automates COGS for resellers and manufacturers at the time of sale, so you can understand this key expense in real time and find opportunities to grow profit. See it for yourself with a free trial, or request a demo to see Cin7 in action.