Gross Margin vs Markup: Formulas and Pricing Examples

Gross margin and markup measure the same gross profit from different starting points. Gross margin divides gross profit by selling price, while markup divides it by cost. That distinction matters: a 40% markup does not produce a 40% gross margin. Using the correct formula helps you set target prices, evaluate discounts, and avoid overstating a product’s profitability.

Gross margin vs markup: the essential difference

Gross profit is the amount left after subtracting cost of goods sold, often abbreviated as COGS, from net sales revenue. Gross margin expresses that profit as a percentage of revenue. Markup expresses it as a percentage of cost.

The formulas are:

  • Gross profit = Selling price − Cost
  • Gross margin = Gross profit ÷ Selling price × 100
  • Markup = Gross profit ÷ Cost × 100

Because the two percentages use different denominators, they are not interchangeable. Selling price is higher than cost when a product is profitable, so the margin percentage will be lower than the markup percentage for the same transaction.

Measure Calculation basis Question it answers
Gross profit Selling price minus cost How many currency units remain before operating expenses?
Gross margin Gross profit divided by selling price What percentage of sales remains after product cost?
Markup Gross profit divided by cost How much was added to cost to establish the price?

Businesses often use markup to build prices because cost is the natural starting point. Managers and analysts generally use gross margin to assess profitability because it relates gross profit directly to sales revenue.

A worked example using the same hypothetical product

Assume a hypothetical retailer sells a desk lamp for USD 100. Its unit cost is USD 60, consisting of USD 45 paid to the supplier, USD 10 of inbound freight, and USD 5 of direct product packaging. The example assumes these amounts qualify as COGS under the company’s accounting policy.

The calculation begins with gross profit:

Gross profit = USD 100 − USD 60 = USD 40

Gross margin uses the USD 100 selling price as its denominator:

Gross margin = USD 40 ÷ USD 100 × 100 = 40%

Markup uses the USD 60 cost as its denominator:

Markup = USD 40 ÷ USD 60 × 100 = 66.67%

The lamp therefore has a 40% gross margin and a 66.67% markup. Both results describe the same USD 40 gross profit. Neither calculation is wrong; they answer different questions.

A common mistake is to say that the lamp has a 40% markup because USD 40 of gross profit remains. That divides profit by the price, making 40% the gross margin instead. Mislabeling the percentage can lead to a price below the intended target.

See also  What is Sponsor Finance

How to calculate a target selling price

You can work backward from either a target gross margin or a target markup. The formulas differ, so first establish which target the business actually uses.

Price based on a target gross margin

The selling-price formula is:

Selling price = Cost ÷ (1 − Target gross margin)

For the hypothetical lamp, assume a USD 60 cost and a 40% target gross margin:

Selling price = USD 60 ÷ (1 − 0.40) = USD 60 ÷ 0.60 = USD 100

The percentage must be entered as a decimal. The resulting USD 100 price generates USD 40 of gross profit, equal to 40% of sales.

Price based on a target markup

The corresponding markup formula is:

Selling price = Cost × (1 + Target markup)

If the same USD 60 lamp receives a 40% markup:

Selling price = USD 60 × (1 + 0.40) = USD 84

Gross profit would be USD 24. The resulting gross margin would be USD 24 ÷ USD 84 × 100, or approximately 28.57%. This shows why applying a 40% markup when management intended a 40% margin creates a substantial pricing shortfall.

Hypothetical pricing target Selling price Gross profit Gross margin Markup
40% gross margin USD 100 USD 40 40% 66.67%
40% markup USD 84 USD 24 28.57% 40%

How discounts change gross margin and markup

Discounts reduce revenue without automatically reducing product cost. As a result, gross profit, gross margin, and markup can fall faster than the headline discount might suggest.

Suppose the hypothetical USD 100 lamp receives a 20% discount. Assume there are no returns, sales taxes, payment fees, or other adjustments:

  1. Discount amount = USD 100 × 20% = USD 20.
  2. Discounted selling price = USD 100 − USD 20 = USD 80.
  3. Gross profit = USD 80 − USD 60 = USD 20.
  4. Gross margin = USD 20 ÷ USD 80 × 100 = 25%.
  5. Markup = USD 20 ÷ USD 60 × 100 = 33.33%.

A 20% price discount cuts gross profit from USD 40 to USD 20, a 50% decline. The gross margin falls by 15 percentage points, from 40% to 25%. Saying it fell by 15% would be inaccurate because that confuses a percentage-point change with a relative percentage change.

At a USD 60 selling price, gross profit would be zero because the price would equal the assumed unit cost. Any lower price would create a negative gross profit before considering operating expenses. This break-even price is product-level gross profit break-even, not company-wide break-even.

Which costs belong in the calculation?

A gross margin calculation is only useful when the cost definition is consistent. For a retailer, COGS commonly begins with merchandise purchase costs and may include costs needed to bring inventory to its saleable condition, depending on the applicable accounting framework and company policy.

See also  What Is Project Finance? How It Works, Who Uses It, and Why It Matters

The hypothetical USD 60 cost includes supplier price, inbound freight, and direct product packaging. It excludes outbound delivery, card-processing fees, advertising, office salaries, rent, interest, and income taxes. Some businesses classify certain fulfillment or transaction costs differently, so internal comparisons should use the same policy across products and periods.

Sales taxes collected on behalf of a government generally should not be treated as revenue for this type of pricing calculation. Returns, rebates, and customer discounts reduce the net sales figure when applicable.

If payment terms delay cash collection, profitability and cash flow can also diverge. Tracking days sales outstanding and customer collection speed helps explain why reported sales do not always produce immediate cash.

Gross margin is not net margin

Gross margin stops after COGS. Net margin goes further by accounting for the other expenses recognized in arriving at net income. Depending on the business and reporting context, these may include payroll, rent, marketing, depreciation, interest, and taxes.

A product can have a positive gross margin while the company still reports a net loss. For example, the lamp’s USD 40 gross profit contributes toward operating expenses, but the product-level calculation does not establish whether the whole business is profitable.

Gross margin is most useful for evaluating product economics, pricing, supplier costs, and sales mix. Net margin provides a broader view of company profitability. Both can support budgeting, and an annual operating plan can connect sales and margin assumptions with staffing and operating expenses.

Before acting on a margin target, check:

  • whether the target means gross margin or markup;
  • which costs are included in COGS;
  • whether the price is before sales tax;
  • how discounts, returns, and rebates affect net sales;
  • whether the remaining gross profit can support operating expenses; and
  • whether market demand and competitor pricing make the target price realistic.

Frequently asked questions

Is gross margin the same as markup?

No. Gross margin divides gross profit by selling price, while markup divides gross profit by cost. They produce different percentages even when gross profit is identical.

What markup produces a 40% gross margin?

A 40% gross margin requires a 66.67% markup on cost. The conversion is 0.40 ÷ (1 − 0.40) = 0.6667, subject to rounding.

How do I convert markup into gross margin?

Use: gross margin = markup ÷ (1 + markup). For example, a 40% markup produces a gross margin of 0.40 ÷ 1.40 = 28.57%.

Should shipping be included in gross margin?

Inbound freight associated with acquiring inventory may be included in inventory cost under the applicable accounting policy. Outbound customer delivery may be classified differently, so use the company’s accounting framework consistently.

See also  How Does Trading in a Financed car Work

Can a discount eliminate gross profit?

Yes. If the discounted selling price equals unit cost, gross profit is zero. A selling price below unit cost creates a negative gross profit unless another source of revenue or cost adjustment changes the transaction economics.