SaaS CalcSuite
Shopify

Shopify Cost of Goods Sold (COGS): How to

SaaSCalculatorz Team12 min read

The Critical Role of COGS in E-Commerce Profitability

In direct-to-consumer (DTC) e-commerce, the single largest operational expense for physical product brands is Cost of Goods Sold (COGS). Yet, a surprisingly high number of Shopify merchants simplify COGS to the invoice price paid to overseas suppliers. When a brand purchases a physical item from a manufacturer for $12.00 and sells it on Shopify for $45.00, founders often believe they enjoy a 73.3% gross profit margin ($33.00 gross profit per unit).

In reality, failing to account for international ocean freight forwarding, harbor drayage, customs tariffs, import duties, warehouse receiving charges, pick-and-pack fulfillment fees, packaging inserts, and inventory holding costs leads to phantom profits. When tax time or working capital crunches arrive, bank balances are far lower than projected. To model your true unit margins, every store owner must master Fully Landed COGS using our interactive Shopify Profit Calculator.

Deconstructing the Components of Landed COGS

Calculating true landed COGS requires aggregating five distinct direct cost elements before evaluating customer acquisition spend:

  • Unit Manufacturing Cost (FOB Price): The baseline price paid to the factory per manufactured unit under Free On Board (FOB) terms.
  • Inbound Freight & Customs Duties: International air or ocean freight, port container offloading, customs brokerage clearing fees, and tariff taxes assessed upon port entry. Read more about tariff modeling in our Shopify Cross-Border Duties Guide.
  • 3PL Receiving & Inbound Pallet Charges: Third-party logistics (3PL) warehouse fees for container unloading, pallet breakdown, SKU barcode scanning, and bin placement.
  • Outbound Pick, Pack & Packaging Costs: The per-unit fee charged by your warehouse to pick an item from inventory, pack it into a branded mailer, and include custom marketing inserts.
  • Inventory Holding (Carrying) Cost: The hidden cost of capital tied up in unsold inventory, warehouse pallet storage rents, commercial insurance, stock obsolescence, and shrinkage (damage/theft).

The Mathematical Landed COGS Formulas

The unit economics of physical inventory rest upon four foundational equations:

Total Inbound Freight & Duty per Unit = Total Shipment Freight & Customs Fees / Total Units in Shipment

Fully Landed COGS per Unit = FOB Unit Price + Inbound Freight & Duty per Unit + 3PL Unloading & Barcode Fee per Unit

Inventory Carrying Cost Rate (%) = (Storage Rent + Capital Cost + Insurance + Shrinkage) / Total Annual Inventory Value

True Contribution Margin per Order = Retail Sale Price - Fully Landed COGS - Outbound 3PL Pick/Pack - Shipping Charged Deficit - Merchant Processing Fees

Worked Example: Apparel Brand Sourcing 5,000 Units Overseas

Let us analyze a real-world scenario of a Shopify apparel brand ordering 5,000 custom jackets from an overseas factory, selling each jacket on Shopify for $95.00:

Cost CategoryTotal Batch ExpensePer Unit Cost Allocation
FOB Factory Invoice (5,000 units @ $18.50)$92,500.00$18.50 / unit
Ocean Freight Forwarding & Port Drayage$14,500.00$2.90 / unit ($14,500 / 5,000)
US Customs Import Duties (7.5% tariff)$6,937.50$1.39 / unit ($6,937.50 / 5,000)
3PL Pallet Unloading & SKU Inspection$2,250.00$0.45 / unit ($2,250 / 5,000)
Fully Landed Unit COGS$116,187.50 Total Batch$23.24 / unit (vs $18.50 FOB baseline!)
Outbound 3PL Pick, Pack & Mailer Box-$4.80 / unit
Shopify Payments Fee (2.9% + $0.30 on $95)-$3.06 / unit
Total Variable Cost Before Paid Ads-$31.10 per completed sale
Gross Net Contribution Profit ($95 price)-$63.90 / unit (67.26% Contribution Margin)

The Impact of Inventory Carrying Costs on Working Capital

Holding unsold inventory in a 3PL warehouse incurs continuous carrying costs (typically 15% to 25% of total inventory value annually). If 1,000 jackets sit unsold in a 3PL warehouse for 12 months, pallet storage charges and tied-up capital cost roughly $4,600—effectively adding $4.60 to the landed COGS of each remaining unit. Understanding inventory velocity prevents margin erosion.

To evaluate how customer acquisition ad spend impacts net profit after landed COGS, read our analysis in the Shopify Blended ROAS & Contribution Margin Guide and model your return impact in Shopify Return Rates and Refunds Impact.

Step-by-Step Guide to Optimizing Shopify COGS

  1. Build a Landed Cost Matrix: Include freight forwarding, tariffs, drayage, and 3PL receiving fees into your inventory ledger before calculating gross margins.
  2. Renegotiate Packaging & Outbound Pick Fees: Consolidate packaging orders and negotiate volume discounts on 3PL pick-and-pack rates once monthly order volume exceeds 500 shipments.
  3. Audit Payment Processing & Gateway Fees: Review gateway fees, credit card processing surcharges, and Buy Now Pay Later (BNPL) costs as detailed in our Shopify Payment Gateway Fees Guide.
  4. Calculate Max Allowable Customer Acquisition Cost (CAC): Subtract fully landed COGS and fulfillment costs from your average order value (AOV) to establish your maximum allowable CAC before launching paid ad campaigns using our Ad Spend, ROAS & POAS Calculator.
  5. Simulate Scenarios in the Calculator: Run landed cost simulations in our free interactive Shopify Profit Calculator to verify gross profit floors.

Conclusion

Sustainable e-commerce profitability starts with accurate cost accounting. By calculating fully landed COGS, factoring in 3PL fulfillment costs, and auditing inventory carrying expenses, Shopify merchants protect cash flow and scale paid ad spend with confidence. Benchmark your store margins today using our free Shopify Profit Calculator.

You might also like

Related Shopify Guides

Get smarter about your margins.

Get weekly insights on pricing psychology, profit margins, and online business economics.

No spam. Unsubscribe at any time. Read our Privacy Policy.