Profit Margin Calculator
Calculate gross profit margin %, markup %, gross profit dollars, and optimal selling price from unit cost and revenue or target margin.
Gross Profit Margin & Markup Calculator
Solve for gross margin %, markup %, or target selling price
How to Use This Profit Margin Calculator
- Choose What You Want to Solve: Switch between Cost & Revenue (to find gross margin % and markup %), Cost & Target Margin (to price a SKU properly), or Cost & Markup.
- Enter Total Landed Unit Cost: Input full unit cost including wholesale manufacturing, inbound freight, packaging, fulfillment fees, and payment processing charges.
- Enter Selling Price, Target Margin %, or Markup %: Type your second known pricing metric and optionally add total batch unit count for aggregate revenue and gross profit dollars.
- Compare Gross Margin vs Markup: Review per-unit gross profit, equivalent markup percentage, and total batch gross profit so pricing teams never confuse markup with margin.
Gross Margin vs. Markup Formulas & Worked Scenarios
Scenario 1 (Margin vs Markup Check): An item costing $45 landed and retailing for $75 yields $30 gross profit per unit, equal to a 40.00% gross margin ($30 / $75) and a 66.67% markup ($30 / $45). Over a 100-unit order, revenue is $7,500 and gross profit is $3,000.
Scenario 2 (Avoiding Underpricing): Multiplying a $45 wholesale cost by 1.40 in an attempt to achieve a 40% margin sets the retail price at $63.00, which actually yields only a 28.57% gross margin ($18 / $63). Always divide cost by (1 - 0.40) = $45 / 0.60 = $75.00 to lock in a true 40% gross margin.
Markup to Gross Margin Conversion Table
| Markup on Cost | Equivalent Gross Margin | $100 Cost Sells For |
|---|---|---|
| 25% | 20.00% | $125.00 |
| 33.33% | 25.00% | $133.33 |
| 50% | 33.33% | $150.00 |
| 66.67% | 40.00% | $166.67 |
| 100% (keystone) | 50.00% | $200.00 |
Pricing Accuracy, Edge Cases & Common Mistakes
- Confusing Margin With Markup on Purchase Orders: Instructing sales teams to add a 40% markup delivers only a 28.57% gross margin, losing over 11 margin points per unit compared to true 40% margin pricing.
- Leaving Out Returns, Shrinkage & Customs Duty: True landed COGS must include import tariffs, drayage, defect write-offs, and outbound shipping subsidies if offering free delivery.
- Gross Margin vs. Net Profit Margin: Gross profit margin deducts only direct COGS; operating payroll, office lease, customer acquisition ad spend (CAC), and corporate taxes still come out of gross profit dollars.
- Sales Tax Pass-Through: Never include US state sales tax collected from customers inside revenue when computing gross margin, as collected sales tax is a liability remitted to the state.
Follows standard US retail & GAAP gross margin definitions. See Editorial Policy and Math Review Team.
Related Retail & Business Calculators
Frequently Asked Questions
What is the difference between profit margin and markup?
Profit margin divides gross profit by selling price (Revenue), whereas markup divides gross profit by Cost. For an item costing $45 and selling at $75 ($30 profit), the gross margin is 40% ($30 / $75) while the markup is 66.67% ($30 / $45).
How do I set a selling price from cost and target profit margin?
Divide Cost by (1 - Target Margin / 100). Never multiply cost by (1 + Margin), which sets a markup instead of a margin. For example, to earn a 40% margin on a $45 cost, compute $45 / (1 - 0.40) = $75.00.
Can gross profit margin ever be 100% or higher?
Only if your product cost is $0. Whenever unit cost is positive, margin stays strictly below 100%, because cost always consumes part of revenue. Markup, by contrast, has no upper cap and can exceed 100%.
What is a good gross profit margin for retail, ecommerce, and SaaS?
Brick-and-mortar grocery and consumer retail typically target 25% to 45% gross margins, ecommerce and apparel brands aim for 50% to 65%, and software or digital products commonly run 75% to 85%.
Should shipping or payment fees be included in unit cost?
Yes. Including landed product cost (manufacturing, inbound freight, packaging, fulfillment fees, and payment gateway fees) gives your true contribution margin rather than an inflated invoice-only margin.