Shipping Cost Calculator Ecommerce
by @leooooooow
Estimate ecommerce shipping cost per order across weight, zones, carrier rules, and free-shipping policies so teams can make better pricing, margin, and offe...
clawhub install shipping-cost-calculator-ecommerceπ About This Skill
Shipping Cost Calculator Ecommerce
Estimate shipping as a margin and offer-design decision, not just a carrier quote lookup.
This skill goes beyond quoting a rate. It models total delivery cost per order (carrier + fulfillment + packaging + return drag), compares zones and policies, and translates the numbers into pricing, threshold, and offer decisions.
Quick Reference
| Decision | Key Metric | Green | Yellow | Red | |---|---|---|---|---| | Free shipping viability | Shipping as % of CM | < 30% of CM | 30β50% of CM | > 50% of CM | | Threshold effectiveness | Orders above threshold | > 60% of orders | 40β60% of orders | < 40% of orders | | Zone profitability | Margin after shipping | > 15% net margin | 5β15% net margin | < 5% net margin | | Carrier competitiveness | Cost vs benchmark | < 90% of benchmark | 90β110% of benchmark | > 110% of benchmark | | Packaging efficiency | DIM weight vs actual | DIM οΏ½j$ actual | DIM up to 1.3Γ actual | DIM > 1.3Γ actual |
Solves
Ecommerce teams lose money on shipping not because rates are high, but because:
Goal: Give operators a complete, zone-aware shipping cost model that supports real pricing, threshold, and offer decisions β not just a rate card.
Use when
Do not use when
Inputs
Gather these inputs β mark any assumptions explicitly:
Package profile:
Carrier / rate inputs:
Fulfillment costs:
Policy inputs:
Loss / return inputs:
See references/carrier-rates-guide.md for carrier-specific rate structures and surcharges.
Workflow
1. Calculate true per-order delivery cost
Build the full cost stack, not just the carrier line item:
Carrier base rate (by zone/weight): $XX.XX
+ Residential surcharge: $XX.XX
+ Fuel surcharge (X.X%): $XX.XX
+ Peak surcharge (if applicable): $XX.XX
= Total carrier cost: $XX.XX
+ Pick-pack labor: $XX.XX
+ Packaging materials: $XX.XX
+ Label / handling: $XX.XX
+ Insurance (if applicable): $XX.XX
= Total delivery cost per order: $XX.XX
Critical: Check DIM weight
DIM weight = (L Γ W Γ H) / DIM factor
Billable weight = max(actual weight, DIM weight)
If DIM weight exceeds actual weight, you're paying for air. Flag this immediately.2. Segment by zone and order profile
Not all orders cost the same to ship. Break down by:
| Segment | % of Orders | Avg Shipping Cost | Margin After Shipping | Flag | |---|---|---|---|---| | Zone 1β2 (local) | XX% | $X.XX | XX% | β | | Zone 3β4 (regional) | XX% | $X.XX | XX% | β | | Zone 5β6 (cross-country) | XX% | $X.XX | XX% | β οΈ if margin thin | | Zone 7β8 (remote) | XX% | $X.XX | XX% | π΄ if unprofitable | | Oversized / heavy | XX% | $X.XX | XX% | Check DIM weight |
3. Model free-shipping and threshold scenarios
Test the margin impact of different shipping policies:
| Policy | Effective Shipping Revenue | Cost Absorbed | Impact on CM | AOV Change | |---|---|---|---|---| | Calculated (pass-through) | $X.XX/order | $0 | Baseline | Baseline | | Flat $X.XX | $X.XX/order | $X.XX/order | -X.X% | Minimal | | Free over $XX | $X.XX blended | $X.XX blended | -X.X% | +X.X% | | Free on everything | $0 | $X.XX/order | -X.X% | +X.X% |
Threshold analysis:
Optimal threshold = point where incremental AOV lift > shipping cost absorbedTest: $35 / $50 / $75 / $99 thresholds
For each: what % of orders qualify? What's the blended cost?
4. Calculate return and loss drag
Returns cost more than the refund β the shipping round-trip adds cost:
Return shipping drag per order = return rate Γ return label cost
Reship drag per order = reship rate Γ full delivery cost
Damage drag per order = damage rate Γ (replacement cost + shipping - claim recovery)
βββββββββββββββββββββββββββββββββββββββββ
Total loss drag per order: $XX.XX
Add this to the per-order delivery cost for true total cost.
5. Compare carriers and scenarios
Build a comparison table when evaluating options:
| Carrier / Option | Zone 2 | Zone 4 | Zone 6 | Zone 8 | Weighted Avg | |---|---|---|---|---|---| | Current (Carrier A) | $X.XX | $X.XX | $X.XX | $X.XX | $X.XX | | Option B | $X.XX | $X.XX | $X.XX | $X.XX | $X.XX | | Option C | $X.XX | $X.XX | $X.XX | $X.XX | $X.XX | | Savings vs current | β | β | β | β | $X.XX/order |
Weight the average by actual order distribution across zones, not just rate card comparison.
6. Translate to decisions
Don't just output costs. Frame results as decisions:
| Result | Decision framing | |---|---| | Shipping < 30% of CM | Absorb: Free shipping is viable, use as conversion lever | | Shipping 30β50% of CM | Threshold: Set free-shipping minimum to protect margin | | Shipping > 50% of CM | Pass through: Charge shipping or raise price to offset | | Far zones unprofitable | Zone-split: Different policy by region or restrict shipping | | DIM weight inflating cost | Repackage: Redesign packaging to reduce dimensional waste | | Returns destroying margin | Fix product/listing: Reduce return rate first | | Carrier overpriced vs benchmark | Renegotiate or switch: Get competitive quotes |
7. Quality-check the model
Before presenting results, verify with assets/shipping-checklist.md:
Output
Return a structured analysis package (see references/output-template.md):
1. Assumptions table - Every input listed with source and confidence flag (β / β οΈ / β)
2. Per-order delivery cost breakdown - Full cost stack: carrier + fulfillment + packaging + loss drag - Segmented by zone or order profile
3. Policy impact analysis - Current vs proposed shipping policy comparison - Threshold scenario modeling
4. Carrier / option comparison (if applicable) - Side-by-side with weighted averages
5. Decision recommendation - Absorb / Threshold / Pass-through / Repackage / Switch carrier - Specific actions based on the numbers - Risk flags
Quality bar
Strong output should:
What "better" looks like
Better output does not stop at "shipping costs $X." It helps answer:
Examples
Example 1: DTC apparel brand (Shopify + USPS)
Inputs:
Calculation:
Example 2: Amazon FBA electronics seller
Inputs:
Calculation:
Common mistakes
1. Ignoring DIM weight β A 2 lb product in an oversized box ships as 8 lbs by DIM weight 2. Using Zone 2 rates as average β Zone mix matters; national sellers pay more than rate cards suggest 3. Forgetting fuel surcharges β 12β15% surcharge on every shipment adds up fast 4. Modeling carrier cost only β Pick-pack, packaging, labels, and insurance add $2β5/order 5. Setting thresholds without data β A $50 threshold means nothing if 80% of orders are already above it 6. Ignoring seasonal surcharges β Q4 peak surcharges can add $1β4/package 7. Not factoring return shipping β A 15% return rate with $8 labels = $1.20/order drag
Resources
references/output-template.md β Structured output formatreferences/carrier-rates-guide.md β Carrier rate structures and surcharge referencereferences/free-shipping-playbook.md β Free-shipping threshold strategy frameworkassets/shipping-checklist.md β Pre-delivery quality checklistπ‘ Examples
Example 1: DTC apparel brand (Shopify + USPS)
Inputs:
Calculation:
Example 2: Amazon FBA electronics seller
Inputs:
Calculation: