For most retailers, cost of goods sold (COGS) is the single largest line on the P&L. It usually runs 60 to 70 cents of every sales dollar, which means it dwarfs rent, payroll, and marketing combined. That scale is exactly why it is the highest-leverage number you can work on. Trim your COGS by two points and the savings fall straight to gross margin. Cut marketing by the same two points and you barely move profit, but you probably lose sales.
COGS optimization is about paying less for the goods you actually sell: sourcing smarter, marking up with discipline, buying the right quantities, and protecting the margin you planned instead of giving it away at the end of the season. This guide covers what retail COGS includes, how to calculate it, and the specific levers that move it.
What is COGS in retail?
Cost of goods sold is what you paid for the merchandise you sold in a given period. It is a direct cost, tied to units that actually left the building, not to the running of the business. If a jacket cost you $40 landed and you sold it, that $40 is COGS. The store lease, the buyer's salary, and the paid social budget are not.
COGS sits at the top of your P&L, right under revenue. Sales minus COGS is your gross margin, and gross margin is the pool every other cost gets paid from. That position is why a small percentage change in COGS has an outsized effect on profit.
The COGS formula
Retail COGS is calculated from what you started with, what you bought, and what you had left:
COGS = Beginning Inventory + Purchases − Ending Inventory
All three values are at cost, not retail. A worked example for a quarter:
- Beginning inventory (at cost): $250,000
- Purchases during the quarter (at cost, including inbound freight and duties): $600,000
- Ending inventory (at cost): $200,000
That is the cost of everything you sold in the quarter. Subtract it from net sales and you have gross margin dollars. For the full set of retail formulas that sit around this one, see our guide to retail math.
What is included in retail COGS, and what is not
Getting the classification right matters, because misplacing costs quietly distorts your margin and sends you optimizing the wrong line.
Included in COGS:
- The cost you pay your supplier for the product itself
- Inbound freight to get goods to your warehouse or store
- Import duties, tariffs, and customs fees
- Any prep needed before sale, such as labeling or ticketing
- The written-down value of obsolete or damaged goods
Not COGS (these are operating expenses):
- Warehousing and storage
- Merchant and payment processing fees
- Shipping to the customer
- Marketing, rent, and salaries
- Software and overhead
The distinction between what you paid for the product landed and everything else you spend running the business is the line between COGS and operating expenses. Keep it clean, because the levers below only work on the COGS side.
How your inventory costing method changes COGS
The same purchases can produce a different COGS depending on how you value inventory. The three common methods:
- FIFO (first in, first out) assumes the oldest stock sells first. When costs are rising, FIFO leaves newer, pricier goods in ending inventory and reports a lower COGS.
- LIFO (last in, first out) assumes the newest stock sells first. In a rising-cost environment it reports a higher COGS and a lower taxable profit.
- Weighted average blends all units to a single average cost, which smooths out price swings.
None is more correct. What matters is that you pick one, apply it consistently, and know which one you are using, because it changes the COGS number you are trying to optimize.
Why COGS optimization matters
Because COGS is so large, it is the fastest route to margin. A two-point reduction on a 65 percent COGS ratio is a two-point gain in gross margin, with no new customers required. It also compounds: lower cost of goods lifts your GMROI, the measure of how much margin each inventory dollar returns, and it widens the room you have to price competitively without going below your floor. Every pricing and promotion decision you make sits on top of your cost, so lowering the cost improves all of them at once.
Seven levers to optimize retail COGS
COGS optimization is not one move. It is a set of levers across sourcing, buying, and selling. Here are the ones that move the number for retailers.
1. Source smarter and manage landed cost
The sticker price from a vendor is rarely the real cost. Freight, duties, and terms can swing landed cost by double digits, and that landed number is your true COGS input. Consolidate vendors to earn volume pricing, negotiate terms, and understand exactly what you are paying once goods arrive. Start with the difference between FOB, ex-factory, and landed cost, because a buyer comparing quotes on FOB alone can pick the more expensive option by mistake. In a period of shifting tariffs, run your cost in both retail and cost terms so a duty change does not quietly erase your margin before you have reacted.
2. Set a disciplined initial markup
Initial markup (IMU) is the margin you build in at the moment you buy. Set it too low and no amount of clean selling recovers the profit; set it with the end in mind and you leave room for the markdowns every retailer eventually takes. IMU is where cost optimization and pricing meet, so treat the target markup as a buying decision, not an afterthought. The IMU formula and how to set it is a good starting point.
3. Rationalize the assortment
Every SKU you carry has a cost to buy, hold, and eventually clear. A bloated assortment spreads your buying across too many styles, weakens your volume leverage with vendors, and fills your stockrooms with slow sellers that end up marked down. Cutting the tail concentrates your dollars into fewer, better bets that you can buy deeper and cheaper. See SKU rationalization for how to decide what to drop without losing sales.
4. Protect margin with markdown discipline
A markdown does not change what you paid for a unit, but it changes the margin you actually realize, which is the number that matters. Poorly timed or across-the-board markdowns are one of the biggest silent drains on retail profit. Marking down the right products at the right time, and only as much as you need to, protects the margin you built in at buy. Our guide to markdowns versus discounts covers how to time them to protect margin.
5. Cut overstock, shrink, and obsolescence
Goods you bought but cannot sell at full price are pure cost. Overstock ties up cash and forces clearance, shrink is inventory you paid for and lost, and obsolete stock gets written down into COGS at the worst possible value. Tighter stock levels and accurate inventory keep more of what you bought selling at full price. Setting the right weeks of supply targets is one of the cleanest ways to stop overbuying before it happens.
6. Forecast demand so you stop over-buying
Most excess inventory starts as an optimistic buy. Better demand forecasting means you commit to the quantities you will actually sell, which reduces the overstock that later forces margin-killing markdowns. Forecasting is a COGS lever precisely because the cheapest markdown is the one you never had to take.
7. Optimize inbound freight and logistics
Freight is part of landed cost, so how goods move is part of COGS. Fuller containers, smarter mode choices, and consolidated shipments lower the per-unit cost of getting product to your door. In a volatile freight and tariff environment, revisiting these decisions each season protects the cost assumptions your plan was built on.
Where COGS optimization lives: your plan
These levers are not separate projects. They all run through the same plan. Your merchandise financial plan sets the margin and inventory targets, your open-to-buy keeps purchasing tied to those targets, and your markup, markdown, and stock decisions either protect the plan or erode it week by week.
The hard part is keeping all of it connected as actuals roll in. When landed costs shift, your margin needs to reflect it immediately. When a category runs hot, your buy needs to move before you are forced into a markdown. Doing that across every category in spreadsheets is where most of the leakage happens. A merchandise planning platform keeps cost, margin, and inventory in one place so you can see the effect of a cost change or a markdown before you commit to it, not after.
Common COGS mistakes to avoid
- Optimizing the wrong line. Cutting an operating expense will not fix a COGS problem. Classify costs correctly first.
- Chasing unit cost at the expense of margin. A cheaper unit that sells through at a deep markdown can be worse than a pricier one that sells at full price. Judge the realized margin, not the buy cost alone.
- Ignoring landed cost. Comparing vendor quotes on sticker price instead of landed cost leads to buys that cost more once freight and duties land.
- Treating COGS as a finance report, not a lever. COGS is periodic and backward-looking by nature, so it is easy to file it under accounting. The retailers who optimize it treat it as a set of live buying and selling decisions.
Summary
Cost of goods sold is the largest and most workable number on a retailer's P&L. You lower it by sourcing on landed cost, setting a disciplined initial markup, carrying a tighter and better assortment, protecting margin through markdown discipline, and buying the quantities your forecast actually supports. None of these is a one-time fix. They are ongoing decisions that either hold your margin or give it away, and the retailers who win at COGS keep every one of them connected to the same plan.
Looking to take real cost out of your COGS? Speak to an expert and we'll show you how retailers use Toolio to keep sourcing, markup, and markdowns working off one plan.



