COGS & Gross Margin: A Complete Guide

Gross margin is the single number that most decisively shapes whether a business model works. A high gross margin gives you room to invest in growth, weather downturns, and reinvest in product. A low gross margin makes everything harder — every marketing dollar has to work harder, every operational mistake hurts more, and the path to profitability requires extreme operating leverage. This guide unpacks what actually goes into COGS, how gross margin behaves across industries, and the practical levers that move it.

The Formulas

COGS = Beginning Inventory + Purchases - Ending Inventory
Gross Profit = Revenue - COGS
Gross Margin (%) = (Revenue - COGS) / Revenue × 100

For service businesses without inventory, COGS is simpler: direct labor + direct third-party costs spent delivering the service that was billed in the period.

What Counts as COGS — and What Doesn't

This is where most small businesses go wrong. COGS should only include costs that scale with units sold. If you sold zero units this month, that cost would be zero or near-zero.

CostProduct businessService business
Raw materialsCOGSn/a
Direct labor (hourly workers on production)COGSCOGS (billable team time)
PackagingCOGSn/a
Freight-in (cost of getting inventory to you)COGSn/a
Freight-out (shipping to customer)Usually COGSn/a
Payment processing (when % of revenue)Often COGSOften COGS
Third-party subcontractors on client workn/aCOGS
RentOpExOpEx
MarketingOpExOpEx
Software (general)OpExOpEx
Software (delivery-only)COGSCOGS
Salaried staff (admin, sales)OpExOpEx

Gross Margin Benchmarks by Industry

These are typical small-business ranges — useful as a sanity check but the trend in your own numbers matters more than industry averages.

IndustryTypical gross marginWhat drives the spread
SaaS / Software70–85%Hosting, support staff, payment processing
Professional services (consulting, agencies)40–60%Utilisation rate of billable team
Specialty / DTC retail50–70%Supplier negotiation, freight, returns
Restaurants60–70% food / 70–85% beverageMenu engineering, waste, food cost
Grocery20–30%Volume vs perishable waste
Manufacturing25–40%Raw materials, labor efficiency, capacity utilisation
E-commerce (marketplace seller)20–40%Marketplace fees, ads, returns
Construction / contractors15–30%Material costs, subcontractor management

Margin vs Markup

Pricing conversations get muddled because retailers and trades typically think in markup while accountants think in margin. The conversion:

MarkupMargin
25%20%
50%33%
100%50%
150%60%
200%67%
300%75%

Margin = Markup / (1 + Markup). A vendor offering "50% off MSRP" is offering you 50% margin on retail price, which is 100% markup on cost. The same physical discount described two different ways.

The Levers That Move Gross Margin

  1. Raise prices. Underrated. A 5% price increase with no volume loss adds 5 percentage points of margin directly. Most small businesses underprice and assume customers will revolt — most often, they don't.
  2. Cut input costs. Negotiate with suppliers. Consolidate vendors for volume discounts. Re-bid annually. Re-engineer the product spec for slightly cheaper inputs without affecting quality.
  3. Improve mix. Sell more of your high-margin products, less of your low-margin ones. Often a packaging or merchandising change rather than a portfolio change.
  4. Reduce waste. Inventory shrinkage, food waste in restaurants, defects in manufacturing, scope creep in services. Often 3–10% of revenue hides here.
  5. Right-size labor. For services, raise billable utilisation. For products, reduce overtime and idle time.
  6. Reduce returns / refunds. Returns hit COGS twice — the cost of the returned unit plus the cost of processing the return. Better sizing charts, better photography, better expectation-setting can move returns by 30%+.

Common Mistakes That Misstate Gross Margin

  • Owner labor not in COGS for services. If you're the one billable, your time has to be in COGS at a market rate. Otherwise your margin looks fake.
  • Rent in COGS. Tempting for retail and restaurants but incorrect — rent doesn't scale with units. Keep it in OpEx.
  • Inventory accounting wrong. Without proper beginning/ending inventory tracking, COGS is whatever cash you spent on supplies — which can be wildly different from what you actually consumed.
  • Counting freight-in as OpEx. Should be capitalised into inventory cost.
  • Ignoring shrinkage. Stolen, broken, or expired inventory is real COGS. Pretending it isn't makes margin look better and pricing decisions worse.

Try It Yourself

Calculate gross margin, markup, and profit on any sale with the BizKit profit-margin calculator.

Profit Margin Calculator →

Frequently Asked Questions

Cost of Goods Sold (COGS) is the direct cost of producing the goods or services your business sold during a period — raw materials, direct labor, packaging, freight-in for products; direct labor and third-party costs for services. COGS does NOT include rent, marketing, software, or admin salaries.
COGS is direct — costs that scale with units sold. Operating expenses (OpEx) are indirect overhead that exists regardless of volume. COGS sits above the gross-margin line on the P&L; OpEx sits below.
Gross margin = (Revenue - COGS) ÷ Revenue, expressed as a percentage. It measures how much of each dollar of sales is left after directly producing the thing you sold.
Margin = profit ÷ price. Markup = profit ÷ cost. A $40-cost item sold at $100 has 60% margin and 150% markup. Margin can never exceed 100%; markup can be any positive number.
It depends on industry. SaaS 70-85%, services 40-60%, retail/DTC 50-70%, restaurants 60-70% on food, grocery 20-30%, manufacturing 25-40%. The right comparison is your own trend and peers at similar scale.