Skip to content
CalcPilot Find a calculator

CalcPilot guide

Margin vs. Markup: Formulas, Differences, and Pricing Examples

Understand the difference between profit margin and markup, convert between them, and avoid common pricing mistakes.

Reviewed 2026-06-18 · 6 minute read · CalcPilot Editorial Team

Short answer

Margin measures profit as a percentage of selling price. Markup measures that same profit as a percentage of cost. They use different denominators, so the percentages are never interchangeable except at zero profit.

Key takeaways

  • Margin divides profit by revenue.
  • Markup divides profit by cost.
  • A 50% markup produces a 33.33% margin.
  • Price from cost only after checking the resulting margin.

The two formulas

Profit margin equals selling price minus cost, divided by selling price. Markup equals selling price minus cost, divided by cost. Both begin with the same profit dollars, but changing the denominator changes the percentage.

If an item costs $40 and sells for $60, profit is $20. Margin is $20 divided by $60, or 33.33%. Markup is $20 divided by $40, or 50%. Calling both figures ‘margin’ can create a material pricing error.

When to use margin

Margin is usually better for financial reporting, product profitability, and comparing how much revenue remains after costs. Because revenue is the denominator, margin answers: how much of each sales dollar is left?

Define the cost layer before comparing results. Gross margin, contribution margin, operating margin, and net margin subtract different expenses. A percentage without its cost definition is incomplete.

When to use markup

Markup is convenient when building a selling price from a known unit cost. Retailers and distributors often apply category-specific markups, but the resulting margin still needs to cover overhead, discounts, returns, and required profit.

To convert a target margin to markup, divide margin by one minus margin. A 40% target margin requires a 66.67% markup. To convert markup to margin, divide markup by one plus markup.

A safer pricing workflow

Start with a fully loaded unit cost, set a target contribution or gross margin, calculate the required selling price, and then test that price against demand and competitors. Finally, model discounts and channel fees before publishing the price.

Price is a market decision as well as a formula. The calculation sets an economic boundary; customer value and positioning determine whether the market accepts it.

Editorial note: This guide explains general formulas and is not financial, tax, legal, or accounting advice. See our calculation methodology.

Keep exploring

Business

Profit Margin Calculator

Find the percentage of revenue left after costs and understand how efficiently a sale creates profit.

Calculate now
Ecommerce

Markup Calculator

Calculate how much a selling price exceeds cost, expressed as a percentage of that cost.

Calculate now
Business

Contribution Margin Calculator

Calculate the share of revenue remaining after variable costs.

Calculate now
Ecommerce

Discount Calculator

Calculate the sale price after applying a percentage discount.

Calculate now
Business

Break-Even Calculator

Estimate how many units you must sell for contribution profit to cover fixed costs.

Calculate now