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
Enter your unit cost stack. Results show COGS, landed cost, and gross margin.
Formulas
COGS, gross margin, target price, and the cost headroom.
| Component | Per 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 |
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.
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.