Gross Margin, Markup Percentage & Cost of Goods Sold (COGS) Pricing Calculator
Free quad-directional margin calculator. Calculate gross profit margin, markup on cost, selling price, e-commerce Amazon/Shopify net fees, and F&O trading SPAN leverage.
All formulas and computation matrices for this calculator execute directly in your browser with zero latency. Enter your parameters to see instant results.
Who Uses This Calculation & Why Accuracy Matters
Retailers, e-commerce brand founders, wholesalers, pricing analysts, and restaurant managers use this calculator to compute gross profit margin, markup percentage, revenue targets, and cost of goods sold (COGS) to safeguard cash flow and prevent underpricing inventory.
An online apparel brand sourcing a custom hoodie for $22.00 per unit (manufacturing + freight + packaging) targeting a healthy 65% gross margin.
A distributor who purchases industrial supplies at $80.00 and quotes customers using a 40% markup.
A chef pricing a specialty entrée with an ingredient cost of $4.25 aiming for an industry-standard 28% food cost percentage (72% gross margin).
Markup vs. Margin Conversion Matrix Across Target Profitability Tiers
Side-by-side comparison of markup percentages and their true resulting gross margin percentage.
| Markup on Cost (%) | Resulting Gross Margin (%) | Selling Price on $100 Cost | Gross Profit Earned | Typical Industry Sector |
|---|---|---|---|---|
| 15.0% | 13.04% | $115.00 | $15.00 | Supermarkets & High-Volume Grocery |
| 25.0% | 20.00% | $125.00 | $25.00 | Automotive Wholesale & Building Materials |
| 50.0% | 33.33% | $150.00 | $50.00 | Consumer Electronics & Hardware |
| 100.0% ("Keystone") | 50.00% | $200.00 | $100.00 | Traditional Department Store Retail |
| 150.0% | 60.00% | $250.00 | $150.00 | Specialty Consumer Goods & Footwear |
| 300.0% | 75.00% | $400.00 | $300.00 | Cosmetics, Luxury Brands & Cocktails |
| 900.0% | 90.00% | $1,000.00 | $900.00 | SaaS Software & Digital Info Products |
* Gross margin can never mathematically exceed 100%, whereas markup percentage can reach infinity.
Gross Margin, Markup Percentage and Target Revenue Equations
Gross Margin expresses gross profit as a percentage of selling price (revenue). Markup expresses gross profit as a percentage of cost of goods sold (COGS).
Direct cost to produce or acquire the item (materials + direct labor + freight).
Price charged to the end customer before taxes.
Selling Price minus Cost.
Step-by-Step Worked Examples with Real Numbers
Calculating Gross Margin & Markup on a $40 Cost Item Sold for $70
Pricing for a 60% Gross Margin on a $16 Unit Cost
Assumptions, Edge Cases & Common Calculation Mistakes
ℹ Underlying Algorithm Assumptions
- COGS includes all direct unit costs: manufacturing, inbound freight, duties, and primary packaging.
- Gross profit does not account for operating overhead expenses (rent, marketing/advertising, corporate salaries).
- Assumes all units are sold at full retail price without promotional markdown allowances.
⚠ 3 Common Mistakes to Avoid
- Confusing Margin and Markup: adding 30% markup to a $100 cost gives $130 price, but gross margin is only 23.08% (not 30%).
- Forgetting fulfillment and transaction fees (e.g., Shopify 2.9% + $0.30, 3PL pick-pack fees) when computing net unit profitability.
- Pricing based solely on competitor price matching rather than unit economics, leading to growing sales with negative net cash flow.
Frequently Asked Questions
What is the key difference between Profit Margin and Markup?
The key difference is the denominator: Profit Margin is profit divided by the selling price (revenue), while Markup is profit divided by the cost. Margin shows what percentage of every dollar of sales you keep as profit, while markup shows how much you increase the cost price to arrive at the selling price.
What is "Keystone Pricing" in retail?
Keystone pricing is a classic retail pricing rule of thumb where merchandise is priced at exactly double the wholesale cost—representing a 100% markup on cost, which yields exactly a 50% gross profit margin.
Why can profit margin never exceed 100%?
Because profit margin is profit divided by total revenue. Even if an item cost $0 to produce and you sold it for $100, your profit would be $100, and your margin would be $100 / $100 = 100%. Markup, on the other hand, can be 200%, 500%, or 1,000%+.
What is considered a healthy gross margin for small businesses?
A healthy gross margin depends on industry: grocery stores operate on thin 10%–20% margins, restaurants target 65%–75% food/beverage gross margins, retail apparel targets 55%–65%, and software/SaaS companies often exceed 80%–85% gross margins.
How does discounting affect gross profit margin?
Discounting has a disproportionate negative impact on profit. If an item has a 30% margin and you offer a 15% discount, you do not lose 15% of your profit—you lose 50% of your dollar gross profit, requiring you to double your sales volume just to break even.