Cost of Goods Sold (COGS): Formula and Examples
Learn what cost of goods sold means, the COGS formula, what to include and leave out, and how to calculate COGS for a product brand with a simple example.
By FIDON
Published · Updated
What is cost of goods sold?
Cost of goods sold (COGS) is the direct cost of the products a business sold during a period, including materials, manufacturing, and inbound freight. It does not include overhead like marketing or office rent. COGS is subtracted from revenue to find gross profit.
COGS formula
COGS = beginning inventory + purchases during the period − ending inventory
For a single product, you can also estimate it as COGS = landed cost per unit × units sold.
What is included in COGS?
Included in COGS | Not included in COGS |
|---|---|
Raw materials and ingredients | Marketing and advertising |
Packaging such as cans, bottles, labels, and boxes | Office rent and utilities |
Co-packer or manufacturing fees | Software subscriptions |
Direct production labor | Salaries for sales and admin staff |
Inbound freight, duties, and import fees | Shipping orders to customers (often tracked as fulfillment) |
Inbound costs are part of landed cost, which flows into COGS when units sell.
COGS example
Line item | Amount |
|---|---|
Beginning inventory (January 1) | $10,000 |
Purchases during the quarter | $25,000 |
Ending inventory (March 31) | $8,000 |
COGS for the quarter | $27,000 |
If revenue for the quarter was $60,000, gross profit is $60,000 − $27,000 = $33,000, and gross margin is 55%.
How to calculate COGS step by step
Count the value of inventory at the start of the period.
Add everything you bought or produced during the period, including inbound freight.
Count the value of inventory left at the end.
Subtract ending inventory from the total.
COGS for a beverage brand
For a canned drink, COGS per unit usually adds up these pieces:
Ingredients and flavors for the batch
Cans, ends, labels or sleeves, and cases
Co-packer fees for production and packaging
Inbound freight from the co-packer to your warehouse
If a run of 10,000 cans costs $3,000 in ingredients, $3,500 in packaging, $2,500 in co-packing, and $1,000 in freight, your cost per can is $1.00. Every can you sell adds $1.00 to COGS. Learn how production runs work in what is a co-packer.
COGS vs. operating expenses
COGS rises and falls with the number of units you sell. Operating expenses, like salaries, software, and advertising, stay roughly the same whether you sell 100 or 1,000 units. Keeping the two separate shows whether a product is profitable on its own before overhead.
Why COGS matters
Gross profit: revenue minus COGS shows how much each sale really earns.
Pricing: knowing your cost per unit helps you set wholesale and retail prices. See wholesale vs. retail pricing.
Taxes: COGS lowers taxable income for businesses that sell products.
Margins: COGS is the base for your profit margin math.
How to lower COGS
Order larger runs to lower per unit pricing, while watching your minimum order quantity.
Compare co-packers and suppliers with real quotes.
Reduce inbound freight by consolidating shipments.
Simplify packaging where buyers will not notice.
Compare manufacturers on Fidon
Fidon lists screened manufacturers and co-packers, so you can request quotes and compare true cost per unit before you commit.
Frequently asked questions
What does COGS stand for?
COGS stands for cost of goods sold, the direct cost of products sold in a period.
Is shipping included in COGS?
Inbound shipping to get inventory to you usually is. Shipping orders to customers is often tracked separately.
Is COGS an expense?
Yes. It appears on the income statement right below revenue and is used to calculate gross profit.
Do service businesses have COGS?
Some track cost of services instead, such as direct labor on client work.
What is a good COGS percentage?
It depends on the industry. Many consumer product brands aim to keep COGS well under half of revenue to leave room for distribution and marketing.
What is the difference between COGS and landed cost?
Landed cost is what it costs to get inventory to you. COGS counts those costs only for the units actually sold.