Shopify COGS Calculator

This calculator builds your COGS per unit from the real components that shape ecommerce gross margin: product cost, inbound freight, duties, packaging, variable fulfillment costs, and provisions like shrink.

Use it to price correctly, compare suppliers, and validate whether a SKU can scale without hiding costs inside “misc” or confusing payouts with profit.

Built for decision-making: guardrails, planning targets, and sensitivity checks.

Calculator

COGS focus: direct per-unit cost stack PRO: target margin price and max COGS
Inputs

Enter your unit cost stack. Results show COGS, landed cost, and gross margin.

Formulas
Direct COGS per unit = product + inbound + duties + packaging + qc + receiving + storage + (pickpack / unitsPerOrder) + insurance
Shrink uplift = direct COGS x (shrinkPct / 100)
Final COGS per unit = direct COGS + shrink uplift
Gross profit per unit = price – COGS
Gross margin percent = (price – COGS) / price x 100
Target margin price = COGS / (1 – targetGM / 100)
Max COGS at target margin = price x (1 – targetGM / 100)
Results

COGS, gross margin, target price, and the cost headroom.

Not calculated
COGS per unit
$0.00
COGS percent of price
0.00%
Gross profit per unit
$0.00
Gross margin
0.00%
ComponentPer unit
Product cost$0.00
Inbound freight$0.00
Duties (incl duty percent)$0.00
Packaging$0.00
Quality control$0.00
Receiving$0.00
Storage allocation$0.00
Pick and pack per unit$0.00
Insurance and brokerage$0.00
Shrink uplift$0.00
Guardrails
Target margin price
$0.00
Price needed to hit target gross margin.
Max COGS at target margin
$0.00
If COGS is above this, target margin is impossible.
Cost headroom
$0.00
How much cost you can absorb before target margin breaks.
Headroom percent of price
0.00%
Buffer in percentage terms.
Tip: keep COGS stable and explicit. Hidden landed costs are the fastest way to misprice a SKU.

Notice something off? Tell us — we fix fast.

EcommerceProfitTools calculators are built to be practical and decision-ready, but real ecommerce data can vary by marketplace, category rules, fee schedules, and tax setup. If you spot a mistake, a broken input, an incorrect formula, or a link that doesn’t work, please email us — we’ll review and correct it.

Include: page URL + screenshots (if possible) + the numbers you entered + what result you expected.
Best case: a Seller Central reference or fee schedule note (marketplace/region) so we can align logic correctly.
Email support
support@ecommerceprofittools.com We use reports to improve accuracy and UX across all tools.
Note: results are estimates for planning and comparison. Always validate final numbers against your marketplace statements and professional accounting where applicable.

COGS Analytics

Interpretation

COGS is your direct cost stack. If it is incomplete, your margin is inflated and pricing decisions become fragile.

Decision rules

Treat landed cost as the baseline, then keep a buffer for duty changes, freight spikes, shrink, and supplier variance.

Planning logic

Use target margin price to set a realistic price floor. If market price is below that floor, fix costs before scaling spend.

Common mistakes

Excluding inbound freight, underestimating pick and pack, ignoring storage allocation, and skipping shrink provisions.

Units per order effect

If customers buy multiple units per order, pick and pack per unit falls. Model units per order to avoid overstating COGS.

Sensitivity mindset

If a small cost increase breaks target margin, the SKU is fragile. Strengthen the cost stack before promotions or ads.

FAQ

COGS is the direct cost of the products you sell. For ecommerce it often includes product cost and landed costs like inbound freight and duties.

It depends on your accounting policy. This calculator keeps fulfillment variable costs explicit so you can model conservative unit economics.

Real inventory is never perfect. A small shrink provision prevents pricing based on best-case assumptions.

Target margin price is a price floor for your margin goal. If your market price is below it, reduce landed costs or change the offer.

Gross margin is the share of revenue left after COGS. Strong gross margin creates room for ads, discounts, and returns.

COGS and Landed Cost Structure

Definition: COGS vs gross margin

COGS is the direct cost to acquire or produce the goods you sold. Gross profit is revenue minus COGS, and gross margin is gross profit divided by revenue.

Landed cost logic

For ecommerce, landed cost often includes product cost plus inbound freight, duties, and other direct logistics costs that get inventory to your warehouse or 3PL.

Ecommerce edge cases

  • Batch shipments: allocate freight and brokerage across units to avoid underpricing new orders.
  • Storage: slow movers increase true per unit cost; use an allocation to stay honest.
  • Shrink: damage and mispicks are real; a small uplift prevents best-case pricing.
  • Units per order: variable fulfillment per order becomes cheaper per unit when AOV increases.

How to use this in decisions

Use target margin price to set a pricing floor and max COGS at target margin to drive supplier negotiation. If the market price is fixed, cost must move.

Expert Positioning

This tool is designed for decision-grade product economics. It forces cost clarity: landed costs, fulfillment variable costs, and conservative provisions that prevent pricing on optimism.

The philosophy is constraints versus strategy. Strategy is branding, CRO, and media. Constraints are unit costs and margin. If COGS is wrong, every strategy decision is built on sand.

Clarity first. Then scale.