Skip to main content
ilovecalcs logoilovecalcs.

Financial · Live

Margin and markup, never confused again.

Calculate gross profit margin, markup, and selling price from any two of the three variables — cost, price, or margin target. Includes a full reference table showing how every margin percentage translates to a markup and a selling price for your specific cost.

How it worksReal-time

Inputs

Pricing details

Calculation mode

$
$

Formula

Margin = (Revenue − Cost) ÷ Revenue × 100

Markup = (Revenue − Cost) ÷ Cost × 100

Profit
$50.00
Margin
33.33%
Markup
50%

Gross margin

33.33%

Selling price

$150.00

Profit $50.00 per unit · Markup 50%

Cost vs gross profitRevenue $150.00
Cost $100.00Profit $50.00
Cost
$100.00
Profit
$50.00
Revenue
$150.00
Gross profit
$50.00
Revenue minus cost
Markup on cost
50%
Profit ÷ cost × 100
Cost of revenue
66.67%
Cost ÷ revenue × 100

Compare

Margin vs markup referenceat cost $100.00

Margin %Markup %Revenue
5%5.26%$105.26
10%11.11%$111.11
15%17.65%$117.65
20%25%$125.00
25%33.33%$133.33
30%42.86%$142.86
33.33%current49.99%$149.99
40%66.67%$166.67
50%100%$200.00
60%150%$250.00
70%233.33%$333.33
75%300%$400.00

Field guide

Margin vs markup: the most important distinction in pricing.

Gross profit margin and markup both measure the profitability of a sale. They use the same numbers, revenue, cost, and profit, but they divide by different denominators, producing different percentages that are easy to confuse:

Margin % = (Revenue − Cost) ÷ Revenue × 100

Markup % = (Revenue − Cost) ÷ Cost × 100

Profit = Revenue − Cost (same for both)

The difference is the denominator. Margin uses the selling price as the base; markup uses the cost as the base. Because the selling price is always larger than the cost for a profitable sale, margin% is always lower than markup% for the same transaction.

A concrete example: the same sale, two different percentages

You buy a product for $100 and sell it for $150. Your profit is $50.

MetricFormulaResult
Gross margin$50 ÷ $150 × 10033.33%
Markup$50 ÷ $100 × 10050.00%

If a buyer tells you they need a 50% profit on the deal and you interpret that as a 50% margin (charging $200 instead of $150), you've just left $50 on the table or priced yourself out of the deal. If you interpret it as a 50% markup (charging $150), you're actually making only a 33.33% margin. This confusion costs businesses real money every day.

The three calculation modes

This calculator supports three scenarios that cover every common pricing question:

  • Cost + Revenue → Margin & Markup. You already know both the cost and the selling price — perhaps a competitor's price or a market rate and want to know what margin and markup you're working with.
  • Cost + Target Margin % → Selling Price. You know your cost and have a target gross margin (e.g., the 40% minimum required by your finance team) and need to calculate the minimum acceptable price.
  • Cost + Markup % → Selling Price. You work in an industry that quotes pricing in terms of markup on cost — common in manufacturing, construction, and wholesale trade and need to convert to an actual selling price and see what margin that implies.

The mode selector carries your current values forward when you switch, so you can compare all three representations of the same transaction without re-entering numbers.

How to price for a target gross margin

If your target margin is 40%, the formula is:

Revenue = Cost ÷ (1 − Margin ÷ 100) = Cost ÷ 0.60

A $100 cost at a 40% target margin requires a selling price of $166.67. This is the “margin → price” mode in the calculator. It's used when you set prices based on a required return, common in retail, SaaS, and services businesses.

How to convert markup to margin (and vice versa)

The conversion formulas follow directly from the definitions:

Margin = Markup ÷ (1 + Markup ÷ 100) × 100

Markup = Margin ÷ (1 − Margin ÷ 100) × 100

Examples: a 50% markup converts to a 33.33% margin; a 25% margin converts to a 33.33% markup. The reference table in this calculator shows the complete mapping for any cost you enter.

Gross margin vs net margin vs operating margin

This calculator computes gross profit margin — revenue minus the direct cost of goods sold (COGS), divided by revenue. It does not include operating expenses (salaries, rent, marketing), interest, or taxes. Gross margin measures the profitability of the product or service itself, before overhead.

Operating margin subtracts operating expenses from gross profit before dividing by revenue. Net margin subtracts everything, including taxes and interest and represents the bottom-line profit as a fraction of revenue. For product pricing decisions, gross margin is the most directly actionable metric.

Typical gross margins by industry

Gross margins vary enormously by sector. Understanding the norm for your industry helps you benchmark your pricing:

IndustryTypical gross margin
Software / SaaS70 – 85%
Pharmaceuticals60 – 75%
Consumer brands / apparel45 – 65%
Retail (specialty)35 – 55%
Restaurants / food service25 – 40%
Wholesale / distribution15 – 30%
Manufacturing (industrial)20 – 35%
Grocery / supermarkets20 – 28%
Construction15 – 25%

These are indicative ranges. Margins within an industry vary by company scale, product mix, geographic market, and competitive dynamics. Use these as rough benchmarks rather than targets.