EXCEL · COMMERCIAL ANALYSIS

Margin vs. markup: formulas and Excel examples

Why a 25% markup means a 20% gross margin. Work through the formulas, a pricing example, and the checks that matter.

Gross margin divides gross profit by sales revenue. Markup divides the same profit by product cost. The denominators differ, so the percentages cannot be used interchangeably.

The same profit, two different percentages

Buy a product for 80 and sell it for 100. Gross profit is 20. Gross margin is 20 / 100 = 20%, while markup is 20 / 80 = 25%. These are fictional amounts excluding VAT, with positive cost and sales revenue.

A target of “25%” is ambiguous until you identify the denominator. Ask whether it means margin on revenue or markup on cost.

Margin = (Price − Cost) / Price
Markup = (Price − Cost) / Cost
Fictional example · generic currency units · excluding VAT
MetricValue
Cost80
Price100
Gross profit20
Gross margin20%
Markup25%

Calculate both in Excel

Put cost in A2 and price in B2. Gross profit is =B2-A2. Gross margin is =(B2-A2)/B2 and markup is =(B2-A2)/A2. Format the last two cells as percentages.

Flag zero cost or price for review. Automatically replacing an invalid division with 0% can hide a data problem.

Work backwards from a target margin

With cost of 80 and a target gross margin of 25%, the price is 80 / (1 − 25%) = 106.67, rounded. A price of 100 applies a 25% markup but does not achieve a 25% margin.

With the target in C2, the Excel formula is =A2/(1-C2). For this example the target must be below 100%. Check the achieved margin again after rounding the price.

Price for target margin = Cost / (1 − Target margin)

What gross margin does not tell you

The 20 in gross profit is not automatically net profit. Marketplace commission, shipping, returns, and other costs may reduce the result. Identify which costs are already in product cost and which must be deducted separately to avoid double counting.

Keep price and cost on a consistent basis. Do not mechanically apply an example excluding VAT to a different tax treatment. Align the treatment with the person responsible for accounting in a real analysis.

Can I compare my margin with a competitor’s markup?

Only after converting to the same basis and checking the definition of cost. A higher percentage alone does not establish better profitability.

Apply the reasoning in practice.

Start with the free lesson, or discuss a one-to-one session on this topic using fictional examples.

Need the report built for you?

If you need a deliverable, we can discuss a commercial analysis project separately from coaching.

Explore analysis services and examples →

Continue with another guide