Gross Margin & Markup Calculator
Inputs
| Solve For | Find Margin & Markup |
|---|---|
| Cost (COGS per Unit) | 60 $ |
| Selling Price | 100 $ |
| Target Gross Margin | 40 % |
Visualization
Gross Margin & Markup Calculator
Calculate gross margin, markup, selling price, or cost — and understand the difference between margin (% of revenue) and markup (% of cost).
Inputs
Results
Enter a value to see results.
Details
Gross margin defined
Gross margin and markup are two percentage measures of the profit earned on a sale. Both compare gross profit — selling price minus cost — to a base, but they use different bases: gross margin expresses profit as a percentage of the selling price, while markup expresses it as a percentage of the cost. Because the two use different denominators, the same sale produces two different percentages.
Gross margin and markup
Gross profit is the amount left from a sale after the direct cost of the item is subtracted: selling price minus cost. Gross margin and markup both report that profit as a percentage, differing only in the denominator.
Gross margin divides gross profit by selling price:
Gross Margin=Selling PriceSelling Price−CostMarkup divides gross profit by cost:
Markup=CostSelling Price−CostFor a product that costs $60 and sells for $100, gross profit is $40. Gross margin = $40 / $100 = 40%. Markup = $40 / $60 = 66.7%.
The same product and the same profit yield two different percentages. Gross margin is always lower than the equivalent markup, because the selling price (the denominator for margin) is larger than the cost (the denominator for markup).
Worked example: a retail clothing brand
A clothing brand sources a jacket for $47.50 (all-in landed cost) and targets a 55% gross margin. The selling price required to reach that margin is the cost divided by one minus the target margin:
Selling Price=1−Target MarginCost=1−0.55$47.50=$105.56At that price the markup is ($105.56 − $47.50) / $47.50 = $58.06 / $47.50 = 122.2%.
If market research suggests $99.99 is the price ceiling, the resulting margin is ($99.99 − $47.50) / $99.99 = 52.5% — below target. At that point the options are to accept the lower margin, negotiate the cost below $45, or reposition the product at a higher price point.
Converting between margin and markup
Because margin and markup share the same gross profit but divide by different bases, a given margin corresponds to a fixed markup and vice versa. A 40% margin equals a 67% markup; a 50% markup equals a 33.3% margin.
Treating the two as interchangeable changes the resulting price. Suppose the goal is a 40% gross margin on a $60 product. Applying a 40% markup instead gives:
- $60 × 1.40 = $84 selling price
- Gross profit: $84 − $60 = $24
- Gross margin: $24 / $84 = 28.6%, not 40%
The correct selling price for a 40% gross margin uses the margin formula:
Selling Price=1−Target MarginCost=1−0.40$60=$100The markup-based price of $84 falls about 11 margin points short of the 40% target. On low-volume, high-cost goods this gap is large enough to erode overall profitability.
Gross margin benchmarks by industry
A reasonable gross margin depends on the business model:
| Industry | Typical gross margin |
|---|---|
| Software / SaaS | 70–85% |
| Consumer electronics | 25–40% |
| Apparel retail | 40–60% |
| Restaurants (food & beverage) | 60–70% |
| Grocery retail | 20–30% |
| Manufacturing | 30–50% |
High margins reflect low marginal cost (software), strong brand pricing power (luxury goods), or a highly differentiated product. Low margins are typical in commodity markets where buyers compare prices easily. A gross margin is best compared to sector peers rather than to a universal standard.
Gross margin and operating profit
Gross margin measures how much revenue remains after the direct cost of making or buying what is sold — before rent, salaries, marketing, interest, and taxes. A business with a 60% gross margin can still lose money if operating expenses consume more than 60 cents of every revenue dollar.
The hierarchy runs from gross margin to operating margin (after operating expenses) to net margin (after interest and taxes). Gross margin is the ceiling; operating and net margins are what remains.
Choosing a calculation mode
This calculator solves in three directions, depending on which values are known:
Find Margin & Markup takes a known cost and selling price and reports the resulting margin and markup side by side. This mode suits auditing existing prices or comparing products in a catalog.
Find Selling Price takes a known cost and a target margin and returns the selling price required to reach it. This is the common pricing question when setting prices from a cost sheet.
Find Cost (Max COGS) takes a known market price and a required margin and returns the maximum affordable cost. This mode applies when negotiating with suppliers or assessing whether a product is viable at a given retail price.
To set or audit pricing across a product line, pair this calculator with the Break-Even Calculator to find how many units must sell at a given margin before fixed costs are covered.
Frequently Asked Questions (FAQ)
What is the difference between gross margin and markup?
Gross margin is gross profit divided by selling price. Markup is gross profit divided by cost. For a $60 cost and $100 selling price: gross margin = $40 / $100 = 40%; markup = $40 / $60 = 66.7%. Applying a "40% markup" when a "40% margin" is intended produces only a 28.6% margin — a lower price than the margin target requires.
How do I calculate selling price from cost and target margin?
Use the formula: Selling price = Cost ÷ (1 − Target margin). Example: if your cost is $75 and you want a 40% gross margin, selling price = $75 ÷ 0.60 = $125. Do not simply add 40% to cost ($75 × 1.40 = $105) — that gives a 40% markup, which is only a 28.6% margin.
Is a 50% markup the same as a 50% margin?
No. A 50% markup means the selling price is 50% above cost: if cost is $100, selling price is $150. Gross margin = $50 / $150 = 33.3%, not 50%. A 50% gross margin means gross profit equals half the selling price: if cost is $100, selling price = $200. In short: 50% markup = 33.3% margin; 50% margin = 100% markup.
What is a good gross margin?
"Good" varies enormously by industry. Software and SaaS companies often achieve 70–80%+ because marginal delivery cost is near zero. Grocery retailers operate at 20–30% because food is a commodity. Restaurants target 60–70% on food and beverage, but net margins are thin after labour and rent. Manufacturing typically runs 30–50%. A gross margin is best compared to industry benchmarks rather than a universal standard.
Disclaimer
Gross margin calculations assume a fixed unit cost. Multi-product businesses should use a weighted average contribution margin. Returns, discounts, and shipping costs are not included. Results are for guidance only; for business decisions, consult an accountant or financial adviser.
Recommended Next
Break-Even Calculator
Find the sales volume where revenue covers all costs. Enter fixed costs, selling price, and variable cost per unit to compute break-even units and revenue.
ROI & CAGR Calculator
Calculate ROI and CAGR side by side for any investment. The same total gain corresponds to very different annual rates across different holding periods.