Ecommerce Profit Margin & Markup Calculator
Instantly convert between gross margin and markup, and test how promotional discounts affect your unit and order profitability.
Gross profit margin measures profit as a percentage of selling price: (Price - Cost) ÷ Price × 100. Markup measures profit as a percentage of cost: (Price - Cost) ÷ Cost × 100. A 50% markup equals a 33.33% gross margin, while a 100% markup equals a 50% gross margin.
Gross Margin vs. Markup Formulas
Gross Margin % = ((Effective Price - Unit Cost) ÷ Effective Price) × 100; Markup % = ((Effective Price - Unit Cost) ÷ Unit Cost) × 100
2026 Fee & Rate Benchmarks
| Markup % on Cost | Gross Margin % | After 10% Discount Margin | After 20% Discount Margin |
|---|---|---|---|
| 50% Markup (1.5x) | 33.33% | 25.93% | 16.67% |
| 100% Markup (2.0x Keystone) | 50.00% | 44.44% | 37.50% |
| 150% Markup (2.5x) | 60.00% | 55.56% | 50.00% |
| 200% Markup (3.0x) | 66.67% | 62.96% | 58.33% |
Worked Numerical Example
You sell a leather tote for $60.00 with $20.00 COGS and $5.00 fulfillment ($25.00 total unit cost), and run a 10% sitewide promo.
- Discounted selling price: $60.00 × (1 - 0.10) = $54.00
- Total unit cost: $20.00 + $5.00 = $25.00
- Gross profit per unit: $54.00 - $25.00 = $29.00
- Gross margin %: ($29.00 ÷ $54.00) × 100 = 53.70% (down 4.63 pts from 58.33%)
- Markup %: ($29.00 ÷ $25.00) × 100 = 116.00%
Standard GAAP retail gross margin and cost-plus markup accounting formulas (2026).
Frequently Asked Questions
What is the difference between gross margin and markup?
Gross margin divides profit by the selling price, whereas markup divides profit by the product cost. Margin can never exceed 100%, while markup can be 100%, 200%, or higher.
What is a healthy gross margin for D2C e-commerce in 2026?
Most profitable D2C brands target a 60%–75% gross margin before ad spend so they have enough contribution margin to cover Meta/Google acquisition costs and returns.
Why does a 20% discount cut profit by more than 20%?
Because your COGS and shipping costs stay fixed while revenue drops 20%. Every dollar of discount comes 100% out of your profit margin.
Should shipping cost be included in unit cost?
Yes, if you offer free shipping to customers, include your outbound shipping label and pick-and-pack cost in unit cost to see true contribution margin.