Skip to content
ENExplore Calculators

Margin Calculator

Convert between cost, revenue, gross margin and markup.

About Margin Calculator

Margin and markup measure the same gross profit from different angles. Margin divides profit by revenue — it's the portion of each sales dollar kept as profit, and it's what income statements report. Markup divides profit by cost — it tells you how much you've added on top of what you paid. Because the denominators differ, a given dollar of profit produces a higher markup percentage than margin percentage. For example, buying at $60 and selling at $100 gives a 40% margin but a 66.7% markup. Confusing the two when setting prices leads to under-pricing.

Formulas

Gross Margin

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

R
Revenue (selling price)
C
Cost

Markup

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

R
Revenue (selling price)
C
Cost

Revenue from cost and margin

Revenue = Cost / (1 − Margin)

m
Margin as a decimal (e.g. 0.40 for 40%)

Worked example

With the default values below, Margin Calculator returns Gross Profit of $40.00. Change any input above and every figure here is recalculated in your browser.

Inputs used

Solve Forone of Gross Margin %, Markup %, Revenue (Selling Price), Cost
Gross Margin %
Costminimum 0 $
60 $
Revenue (Selling Price)minimum 0 $
100 $
Gross Margin %accepts 0–99.99 %
40 %
Markup %minimum 0 %
66.67 %

Results

Gross Profit
$40.00
Gross MarginProfit as a share of revenue. Use this for income statement analysis.
40.00%
MarkupProfit as a share of cost. Use this for pricing from a cost base.
66.67%
Cost
$60.00
Revenue
$100.00

Step by step

  1. 1Gross Profit= $40.00
  2. 2Gross Margin (% of revenue)= 40.00%Margin = gross profit / revenue. A 40% margin means 40 cents of every dollar sold is profit.
  3. 3Markup (% of cost)= 66.67%Markup = gross profit / cost. The same 40% margin corresponds to a 66.7% markup.

Assumptions and limits

  • The result is derived only from the 5 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax or compounding frequency into account.
  • Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
  • This is an estimate for general information and not professional financial, tax or legal advice. See the full disclaimer for the limits that apply to this kind of calculator.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

Why is my markup always higher than my margin?

Markup uses cost as the denominator; margin uses revenue. Since revenue is always greater than cost (assuming a profit), dividing the same gross profit by a smaller number (cost) gives a bigger percentage. A 50% markup on a $100 cost gives $150 revenue, but that's a 33.3% margin — not 50%.

Which should I use to set prices — margin or markup?

It depends on how your industry works. Retailers typically target a margin (because they think in terms of revenue). Manufacturers and contractors often use markup (because they start from a known cost). Whatever you choose, be consistent — mixing the two in calculations is a common and costly mistake.

Can gross margin exceed 100%?

No. Gross margin is always between −∞ and 100%. A margin at or above 100% would imply zero or negative cost, which isn't meaningful for most products. Markup, however, can exceed 100% — luxury goods, software, and high-end services often carry markup of several hundred percent.

Does this include operating expenses?

No — this calculates gross margin, which deducts only the direct cost of goods sold (COGS). Operating expenses like rent, salaries, and marketing are subtracted further down the income statement to reach operating margin and net profit margin.

Margin Calculator – Calculate Gross Profit & Gross Margin