Determining Cost of Goods Sold (COGS): The Stress-Free Guide
30 July 2026

Determining Cost of Goods Sold (COGS): The Stress-Free Guide
It’s past midnight. The house is completely quiet, save for the hum of the refrigerator, and you’re staring at a spreadsheet that refuses to balance. On your screen is a string of numbers representing inventory, raw materials, shipping fees, and packaging. You started this business because you loved making things—whether it’s handmade ceramic mugs, organic small-batch skincare, or custom software solutions packaged as hardware—not because you wanted a master's degree in ledger-keeping.
Yet here you are, wondering if you actually made any money this quarter, or if you just paid for the privilege of working eighty hours a week.
The term staring back at you from your tax software or business plan is determining cost of goods sold (COGS). It sounds dry, clinical, and vaguely threatening. But underneath the jargon, COGS is simply the answer to a very basic, human question: How much did it actually cost me to create the things I sold?
When you get this number right, the fog lifts. You stop guessing your pricing, you stop dreading tax season, and for the first time in months, you can look at your bank account and understand what it's trying to tell you. Let's walk through it together, step by step, so you can close the laptop tonight and finally get some sleep.
What COGS Actually Is (And What It Isn't)
Before we touch a single formula, let's clear up the most common trap business owners fall into. We tend to lump every business expense into one giant bucket. Your monthly internet bill, the software subscription for your email newsletter, the coffee you bought for a client meeting—it all feels like "running a business."
In accounting terms, it isn't.
Cost of Goods Sold is strictly limited to the direct costs tied to producing or purchasing the specific items you sold during a certain period. If you didn't sell it, or if it didn't directly touch the creation of that product, it generally doesn't belong in COGS.
Think of your expenses in two piles:
- Pile A (COGS): Raw materials, direct labor for assembly, wholesale costs of finished goods you bought to resell, and direct manufacturing supplies.
- Pile B (Operating Expenses / OpEx): Marketing, rent for your storefront, website hosting, office supplies, and administrative salaries.
Here is why this distinction matters: the tax authorities don't let you deduct your operating expenses the exact same way you deduct the direct costs of your inventory. More importantly, if you mix them up, you will miscalculate your gross profit margin. You might think a product is wildly profitable when, once true COGS is factored in, it’s barely keeping the lights on.
The Golden Formula: How to Calculate It
The core mechanics of determining cost of goods sold are built on a timeline. Because businesses buy inventory ahead of time, hold it, and sell it later, your calculation has to account for what you started with, what you added, and what is still sitting on your shelf.
Here is the classic formula:
$$\text{COGS} = (\text{Beginning Inventory} + \text{Purchases}) - \text{Ending Inventory}$$
Let’s translate that out of accountant-speak into plain English:
- Beginning Inventory: The financial value of all the raw materials and finished goods sitting in your storage room, warehouse, or garage on the very first day of the accounting period (usually January 1st).
- Purchases: The cost of any new inventory or raw materials you bought during that period, plus any freight or shipping charges you paid to get them to your door.
- Ending Inventory: The financial value of whatever is still left sitting unsold on your shelves on the last day of the period.
Notice the magic trick this formula performs: it ensures you only pay taxes on—and calculate profits for—the items you actually sold, not the inventory you're still hoping to sell next month.
A Walkthrough With Maya: From Raw Materials to Final Tally
To see how this works in real life, let’s follow Maya. Maya runs a growing business crafting artisanal scented candles. She started small in her kitchen, but this year she scaled up, rented a small studio space, and hired a part-time assistant to help with pouring and packing.
As year-end approaches, Maya is staring at her receipts and trying to figure out her numbers for the previous twelve months. Let’s look over her shoulder as she crunches the data.
Step 1: Pinning Down Beginning Inventory
On January 1st, Maya took stock of everything she already owned from the previous year. She had:
- Unmelted soy wax: £1,200
- Glass jars and wicks: £800
- Fragrance oils: £500
- Total Beginning Inventory: £2,500
Step 2: Adding the Year's Purchases
Over the course of the year, Maya bought more supplies to keep up with demand. She purchased:
- More wax and oils: £6,000
- Shipping containers and packaging materials directly tied to product delivery: £1,000
- Freight costs to ship those bulk supplies to her studio: £300
- Total Purchases: £7,300
Step 3: Valuing Ending Inventory
On December 31st, Maya walks the studio with a clipboard. She counts what’s left over before closing the books for the year:
- Unused wax and oils: £1,500
- Unused jars and wicks: £700
- Total Ending Inventory: £2,200
Step 4: Crunching the Final Numbers
Now, Maya plugs these figures into the formula:
$$\text{COGS} = (£2,500 + £7,300) - £2,200$$
$$\text{COGS} = £9,800 - £2,200 = £7,600$$
Maya’s total Cost of Goods Sold for the year is £7,600.
If she sold 2,000 candles over that same period, she can easily figure out her baseline product cost: £7,600 divided by 2,000 candles means each candle cost her roughly £3.80 to produce in direct materials and supplies. If she’s selling those candles for £16 retail, she now has a crystal-clear view of her gross margins before she even starts paying her studio rent or marketing expenses.
The Hidden Trap Doors: What Trips People Up
If the formula is that simple, why do so many business owners sweat bullets over this? Because real life is messy, and edge cases love to complicate a clean math problem.
Here are the three major traps that catch people off guard:
1. Mixing Up Labor Costs
Can you include labor in COGS? The answer is: It depends on who is doing the work. If you have employees whose sole job is assembling, manufacturing, or packing the physical product, their wages and payroll taxes can and should be included in COGS.
However, if you are the owner, or if you have an administrative assistant who spends their day answering emails, updating social media, and managing customer service, their time belongs in Operating Expenses, not COGS. Drawing that line cleanly is crucial for accurate bookkeeping.
2. Shrinkage, Damage, and Write-offs
What happens when 50 of Maya’s glass candle jars arrive shattered in a shipping box, or a batch of candles gets ruined in production? Those lost items represent money spent on inventory that will never be sold. Generally, damaged or lost goods that cannot be sold must be factored into your inventory accounting—either naturally by reducing your ending inventory value (meaning they count as a cost because they disappeared) or written off as business losses. Don't quietly sweep them under the rug; account for where your materials actually went.
3. Valuation Methods (FIFO vs. LIFO)
As your business grows, the price you pay for raw materials changes. Wax that cost £5 a block in January might cost £6.50 in December due to inflation. How do you value the items sitting in your ending inventory?
- FIFO (First-In, First-Out): Assumes the oldest inventory is sold first. This matches how most physical businesses operate (you want to sell older stock before it degrades).
- LIFO (Last-In, First-Out): Assumes the newest inventory is sold first.
Choosing a method changes your paper profits and your tax liability. While FIFO is more intuitive for most small businesses and universally accepted globally, tax laws (like IRS rules in the US or HMRC guidelines in the UK) have specific stipulations about consistency. Pick a method, stick with it year after year, and don't switch back and forth on a whim.
Why Getting This Right Changes Everything
It is easy to view bookkeeping as a compliance chore—something you do purely to keep tax regulators happy. But when you master determining cost of goods sold, it transforms from a defensive shield into an offensive strategy tool for your business.
Look at what happens when your COGS number is accurate:
- Pricing becomes fearless: You stop pricing your products based on a vague feeling of what "sounds right" or what your competitors are charging. You price them based on mathematical reality, ensuring every sale genuinely contributes to your livelihood.
- Cash flow stops giving you heart palpitations: When you know your inventory turnover rate, you stop buying six months' worth of raw materials that will just sit on a shelf tying up cash you desperately need for other things.
- You spot margin leaks early: If your raw material costs quietly creep up 15% over a quarter, accurate COGS tracking flags it immediately. You can adjust your supplier contracts or tweak your retail price before your profit margin evaporates entirely.
If you are currently trying to balance your business overhead against your production costs to see what kind of salary you can actually afford to pay yourself, it helps to run your broader numbers through a structured workflow. For a holistic view of your overall finances and take-home pay, you can check out resources like the Payroll & Salary calculator categories on Finlaa to model your total business cash flow.
Take a Deep Breath
If you opened up your ledger tonight feeling completely overwhelmed by inventory counts, asset depreciation, and supply chain receipts, take a moment to reset.
You don't need an accounting degree to get this right. You just need a system:
- Count what you started with.
- Add what you bought.
- Subtract what is left on the shelf.
Everything else is just details.
Take it one box, one receipt, and one calculation at a time. Once you have that final COGS number, the mist clears. You’ll know exactly where your money went, what your products are truly worth, and how to price your next big idea with absolute confidence.
Disclaimer: The information provided here is for educational and informational purposes only and does not constitute formal financial, tax, or legal advice. Every business structure is unique—consider consulting a qualified accountant or tax professional regarding your specific situation.
To run quick, stress-free calculations on the go, try out the free tools on the Finlaa app whenever you need them.
Frequently Asked Questions
Can I include shipping costs in my Cost of Goods Sold?
Yes, but you have to distinguish between inbound and outbound shipping. The freight charges and shipping fees you pay to get raw materials or wholesale inventory delivered to your workshop or warehouse are a direct part of your inventory cost and belong in COGS. However, the shipping costs you pay to mail finished products out to your paying customers are treated as a selling or operating expense, not COGS.
What if I don't carry physical inventory—does COGS apply to service businesses?
Traditionally, COGS applies strictly to companies that sell physical goods. If you run a purely service-based business (like consulting, coaching, or freelance writing), you generally don't calculate COGS; instead, you track "Cost of Services" or operating expenses. However, if your service includes direct, billable deliverables—such as subcontractors you hire specifically to execute a client project—those direct contractor costs often function similarly to COGS on your profit and loss statement.
How often do I need to calculate my COGS?
Most businesses formally calculate COGS at the end of each financial quarter and year-end for tax reporting and financial statement purposes. However, if you want to run a tight ship, monitoring your inventory levels and estimated unit costs monthly will help you spot pricing problems or supply chain price spikes long before they turn into a year-end emergency.
Related calculators
Related articles

KFF Calculator Guide: Finding Your Way Through Healthcare Costs
Loans

Amortization Sheet: What It Is, How It Works, and How to Read Yours
Loans

Why Calculating Your Life Expectancy Is Actually the Secret to Better Financial Planning
Loans

Employee Pay Calculator: How to Actually Understand Your Payslip
Loans