Skip to content
Conyso.
Free tools · Finance

Margin and markup calculator.

Enter a price and a cost to get the gross margin and the markup, and add operating costs, interest and tax for the operating and net margins, read against your industry. Or work backwards to the price that hits a target margin, or convert a margin to a markup.

Price and cost
Optional, for operating and net margin

Use totals for a period, or per-unit figures for a single product. Leave operating expenses empty to see the gross figures only.

—gross margin
—markup
    Enter values to calculate.
    What these numbers are not Margin and markup are not interchangeable. The same profit is a smaller share of the price than of the cost, so a 50% markup is only a 33% margin. Quoting one as the other is the most expensive mistake in pricing.
    See every margin, every quarter, against your sector.

    Ledger reads a full P&L, balance sheet and cash flow into 43 ratios with verdicts, sector bands and trends, all deterministic, no AI black box.

    Explore Ledger →

    How it works

    The method.

    Margin and markup both start from the same profit, price minus cost. Margin divides it by the price; markup divides it by the cost. Because the cost is always smaller than the price, the markup is always the larger number, and the gap widens as margins rise: a 20% margin is a 25% markup, an 80% margin is a 400% markup.

    Gross margin stops at the cost of the goods themselves. Operating margin also takes off the running costs of the business, such as salaries, rent and marketing. Net margin then takes off interest and tax, leaving what the business actually keeps from each unit of revenue. Tax here applies only to a positive profit before tax.

    Working backwards, the price that gives a target margin is cost / (1 − margin), and the price that gives a target markup is cost × (1 + markup). The industry bands are Ledger’s sector benchmarks, the same ones published in the industry ratio benchmarks dataset.

    margin = profit / pricemarkup = profit / costcostprofit
    One profit, two different denominators.

    The formulas

    The maths, in the open.

    gross margin = (price − cost) / price  ·  markup = (price − cost) / cost

    operating margin = (revenue − COGS − operating expenses) / revenue  ·  net margin = net profit / revenue

    price for margin m = cost / (1 − m)  ·  markup = m / (1 − m)  ·  margin = markup / (1 + markup)

    Worked example. Revenue of 250,000 against a cost of goods of 150,000 leaves a gross profit of 100,000: a gross margin of 100,000 / 250,000 = 40% and a markup of 100,000 / 150,000 = 66.7%. Operating expenses of 60,000 leave 40,000, an operating margin of 16%. Interest of 5,000 leaves 35,000 before tax; tax at 25% is 8,750, leaving a net profit of 26,250, a net margin of 10.5%.

    Working backwards: a product that costs 60 needs a price of 60 / (1 − 0.40) = 100 for a 40% margin, which is a 66.7% markup. A 50% markup on the same cost gives a price of 90 and a margin of only 33.3%.


    Watch out

    Common pitfalls.

    Pricing with a markup when the target was a margin under-prices every unit: a buyer told to hit a 40% margin who adds 40% to cost lands at 28.6%. Agree which one a target means before anyone sets a price, and write it down.

    Discounts eat margin faster than they look. On a 40% margin, a 10% discount takes the margin to 33%, and each unit now earns 30 instead of 40, so you need a third more volume just to earn the same gross profit. And a healthy gross margin can still hide a thin net one; read the operating and net margins before deciding a product line pays its way.


    FAQ

    Margin and markup, answered.

    How do you calculate gross margin?

    Gross margin = (revenue − cost of goods sold) / revenue. Revenue of 250,000 with a cost of goods of 150,000 gives a gross profit of 100,000 and a gross margin of 40%.

    What is the difference between margin and markup?

    Both use the same profit, price minus cost. Margin divides it by the price, markup divides it by the cost. A product bought for 60 and sold for 100 has a 40% margin and a 66.7% markup.

    How do I convert a margin to a markup?

    Markup = margin / (1 − margin), and margin = markup / (1 + markup). A 40% margin is a 66.7% markup; a 50% markup is a 33.3% margin.

    What price gives me a 40% margin?

    Divide the cost by one minus the margin: price = cost / (1 − 0.40). A cost of 60 needs a price of 100.

    What is a good net margin?

    It depends heavily on the industry. Ledger’s bands run from 2 to 6% for retail and 2 to 7% for construction up to 10 to 28% for software and 12 to 30% for real estate. Compare against your own sector, not a universal number.

    Is this calculator free?

    Yes, free and no signup. It runs entirely in your browser and nothing you type is sent anywhere.



    Embed this calculator

    Put it on your site, free.

    A clean, responsive widget that runs in your visitor's browser, no signup. Pick an accent to match your brand, then copy the snippet. The Conyso mark stays on the widget.

    Accent
    Powered by Conyso.