Margin and Markup Calculator

Margin and Markup Calculator

Growing AI Skill PRO

Enter Calculation

Formula

Profit=Price−Cost\text{Profit} = \text{Price} - \text{Cost}

Example

Profit=100−80=20\text{Profit} = 100 - 80 = 20
Show calculation steps (2)
  1. Markup (%)

    Markup=Price−CostCost×100%\text{Markup} = \frac{\text{Price} - \text{Cost}}{\text{Cost}} \times 100\%

    Markup measures profit relative to cost

  2. Margin (%)

    Margin=Price−CostPrice×100%\text{Margin} = \frac{\text{Price} - \text{Cost}}{\text{Price}} \times 100\%

    Margin measures profit relative to selling price

Usage stats

Advertisement

Results

Markup
25%
profit as a percentage of cost
Gross Margin 20%
Gross Profit $20

Report an error on this page

What Is Margin and Markup?

Margin and markup both describe profit, but they measure it against different bases. Markup is the profit divided by the cost of a product, while gross margin is the profit divided by the selling price. Confusing the two is one of the most common pricing mistakes in retail and business, because a given markup always produces a smaller margin percentage. This calculator computes both at once from a cost and a price you enter.

Diagram showing cost, profit and selling price as stacked bars, with margin and markup measured against different bases
Margin is profit as a share of price; markup is profit as a share of cost.

How to Use It

Enter the unit cost (what you pay) and the selling price (what the customer pays). The calculator returns the markup percentage, the gross margin percentage, and the gross profit in dollars. Use markup when you set prices by adding a percentage to cost; use margin when you analyze profitability against revenue.

The Formula Explained

Gross profit is simply Price − Cost. From there:

$$\text{Markup\%} = \frac{\text{Price} - \text{Cost}}{\text{Cost}} \times 100$$$$\text{Margin\%} = \frac{\text{Price} - \text{Cost}}{\text{Price}} \times 100$$

The denominator is the only difference — cost for markup, price for margin.

Advertisement
Two formula triangle diagrams contrasting markup over cost and margin over price
Markup divides profit by cost; margin divides profit by price.

Worked Example

Suppose an item costs $80 and sells for $100. Gross profit is \(\$100 - \$80 = \$20\). Markup = $$\frac{20}{80} \times 100 = \mathbf{25\%}.$$ Margin = $$\frac{20}{100} \times 100 = \mathbf{20\%}.$$ So a 25% markup yields a 20% margin.

FAQ

Is margin ever higher than markup? No. For the same cost and price, markup is always greater than or equal to margin.

Can margin exceed 100%? No — margin is capped at 100% because profit can never exceed the selling price. Markup, however, has no upper limit.

How do I convert markup to margin? Margin = \(\frac{\text{Markup}}{1 + \text{Markup}}\), with both expressed as decimals.

Last updated:

Most popular in Financial

View all Financial calculators