Glossary

COGS

Written by The StoreChart team3 min read

In short

Cost of goods sold (COGS) is the direct cost of the products a business actually sold in a period: the purchase price plus the costs of getting stock ready for sale, such as inbound freight, customs duty and brokerage fees. It excludes marketing, rent and salaries, and subtracting it from revenue gives gross profit.

COGS, short for cost of goods sold, is the number that separates revenue from profit. It adds up what the products that actually shipped to customers cost you, not everything you bought this month and not what is sitting in the warehouse. A store that calculates COGS from the supplier's price alone reports a higher gross margin than it really earns, and prices accordingly. For importers the gap is especially large, because freight, duty and clearance fees can add a big share to the unit price. Below: what COGS is, what goes into it, how to calculate it, a worked example using landed cost, and the common mistakes.

What is COGS

COGS (cost of goods sold) is the cost of the products sold in a period. It excludes stock still in the warehouse and purchases not yet sold.

  • Full name: cost of goods sold.
  • What it sets: gross profit, meaning revenue minus COGS.
  • Why importers care: freight and duty push unit cost well above the supplier price.

What goes into COGS

In:

  • The supplier's purchase price.
  • International and domestic freight to your warehouse, and cargo insurance.
  • Customs duty, broker and clearance fees.
  • For your own manufacturing: raw materials and direct labor.
  • Packaging that is part of the product.

Out:

  • Shipping to the customer and payment processing fees: these are selling expenses.
  • Marketing, advertising, warehouse rent and staff salaries.
  • Reclaimable import taxes: recoverable import VAT, for example, is not a cost.

How to calculate COGS

  • Periodic method: COGS = opening inventory + purchases during the period − closing inventory.
  • Perpetual method: add up the cost of every unit sold.

Either way, you need to decide which unit cost applies when the same product was bought at different prices: FIFO, where the first units in are the first out, or a weighted average across all units in stock.

Example: an imported shipment

  1. A store imports 500 units at $12 each, $6,000 in total.
  2. Freight costs $900, duty $450 and clearance fees $150.
  3. Total landed cost: $7,500, or $15 per unit.
  4. The store sells 300 units at $36: revenue $10,800, COGS $4,500.
  5. Gross profit is $6,300, a gross margin of 58.3%.
  6. Had it used $12 as the unit cost, margin would appear to be 66.7%, more than eight points above reality.

The figures in this article's examples are illustrative only and do not reflect actual customer data.

COGS for an online store

COGS sets gross profit, and several decisions follow from it:

  • Marketing budget: how much you can spend per sale.
  • Discounts: how deep a discount you can offer.
  • Price floor: the lowest price that still pays.
  • Accounts and tax: inventory value and taxable profit.

A small error in unit cost repeats on every single sale.

Common mistakes

  • Supplier price only. Without freight and duty, every imported product looks more profitable than it is.
  • Counting reclaimable taxes as cost. Adding recoverable import VAT to the unit cost inflates COGS.
  • Customer shipping in, then out. Pick one place for it and keep it there.
  • A cost that never updates. A new shipment at a different price that keeps the old cost distorts profit for months.
  • Zero-cost products. A product created without a cost shows up as 100% margin.
  • Gross profit and gross margin: come straight from COGS.
  • Landed cost: the full cost of an imported unit.
  • Inventory value, FIFO and weighted average: decide the cost each unit carries.
  • Contribution margin per order: what is left of each order after variable costs.

COGS in StoreChart

  • Imports module: you add a shipment's extra costs, such as freight and duty, and they are allocated across its items into a landed cost per unit.
  • Stock intake: when you receive the shipment into inventory, that cost is recorded on the intake.
  • Cost method per product: fixed, weighted average or FIFO. A product with no manual cost switches to weighted average automatically when stock is received.
  • Profit per order: every order line stores its cost, and the profits dashboard calculates gross profit as net revenue minus product cost, shipping and payment fees.

Frequently asked questions

Is shipping to the customer part of COGS?

Outbound shipping to the customer is usually treated as a selling expense, not COGS, COGS typically covers only the cost of acquiring or producing the goods, including inbound freight and customs to get inventory into the warehouse, not the cost of shipping it out to a buyer.

How does COGS affect gross margin?

Directly: gross margin is revenue minus COGS, divided by revenue. Any cost incorrectly excluded from COGS (like landed cost) makes gross margin look artificially higher than the true profitability of each sale.

Does COGS change when a supplier raises prices?

Yes for units purchased at the new price: COGS should reflect the actual cost of the specific inventory sold, so a business using accurate per-batch costing will see COGS rise as older, cheaper stock sells through and newer, pricier stock takes its place.

See StoreChart with your own store data

Open an account, connect your store and see your own numbers.