Percentage Margin Calculator — Gross Margin, Net Margin & Markup

Gross margin is the percentage of revenue that remains after subtracting the cost of goods sold. This Percentage Margin Calculator works in three modes: enter revenue and cost to find the margin; enter revenue and target margin to find the required cost; or enter cost and target margin to find the s...

MARGIN CALCULATOR

$
$
$

Rent, salaries, marketing — costs not included in COGS

GROSS MARGIN

30%

GROSS PROFIT

$30.00

REVENUE

$100.00

MARKUP

42.8571%

NET MARGIN

QUICK EXAMPLES

LIVE DIAGRAM

GROSS MARGIN

30%

GROSS PROFIT

$30.00

MARKUP

42.8571%

REVENUE COMPOSITION

COST
PROFIT
Cost: $70.00 (70.0%)
Profit: $30.00 (30.0%)

MARGIN vs MARKUP — ALWAYS DIFFERENT

Gross Margin (on revenue)30%
Markup (on cost)42.8571%

Margin 30% on revenue · Markup 42.8571% on cost · Markup is always higher.

REVENUE

$100.00

COST

$70.00

GROSS PROFIT

$30.00

NET PROFIT

Enter opex →

Live diagram · updates as you type

Created with❤️byeaglecalculator.com

MARGIN ↔ MARKUP CONVERSION TABLE

REVENUE: $100.00 · YOUR MARGIN: 30% · YOUR MARKUP: 42.8571%
MARGIN %MARKUP %COST (at $100.00 rev)GROSS PROFIT
5%5.26%$95.00$5.00
10%11.11%$90.00$10.00
15%17.65%$85.00$15.00
20%25%$80.00$20.00
25%33.33%$75.00$25.00
30%42.86%$70.00$30.00
40%66.67%$60.00$40.00
50%100%$50.00$50.00
60%150%$40.00$60.00
70%233.33%$30.00$70.00

Margin % = profit ÷ revenue. Markup % = profit ÷ cost. Markup is always higher than margin for the same transaction.

HOW TO USE

  1. 1

    Select your mode: Revenue + Cost (most common), Revenue + Margin % (to find the required cost), or Cost + Margin % (to find the selling price for a target margin).

  2. 2

    Enter your two known values. Revenue is total sales. Cost is the direct cost of goods sold (COGS) — materials, direct labour, and manufacturing costs only.

  3. 3

    Optionally enter operating expenses (rent, salaries, marketing) to see the net margin alongside gross margin.

  4. 4

    The result box shows gross margin, gross profit, the equivalent markup percentage, and net margin if operating expenses are entered.

  5. 5

    Review the Margin to Markup conversion table to see the correct markup for every common margin target. Your current margin is highlighted.

WORKED EXAMPLE

Example 1 (Revenue + Cost): Revenue $100, Cost $70. Gross profit = $30. Gross margin = $30/$100 = 30%. Markup = $30/$70 = 42.86%. With operating expenses $15: Net profit = $15, Net margin = 15%. Example 2 (Revenue + Margin): Revenue $200, target margin 40%. Cost = $200 x (1-0.40) = $120. Gross profit = $80. Example 3 (Cost + Margin): Cost $70, margin 30%. Revenue = $70 / (1-0.30) = $100. Gross profit = $30.

REFERENCE FORMULAS

FORMULA REFERENCE TABLE
NAMEFORMULADESCRIPTION
Gross Margin %Margin% = (Revenue - Cost) / Revenue x 100Profit as % of revenue — the universal profitability metric
Gross ProfitGross Profit = Revenue - CostAbsolute profit after deducting COGS only
Net Margin %Net Margin% = (Gross Profit - OpEx) / Revenue x 100Profit after COGS and operating expenses as % of revenue
Revenue (from cost+margin)Revenue = Cost / (1 - Margin% / 100)Find the selling price that achieves a target margin
Margin to MarkupMarkup% = Margin% / (100 - Margin%) x 100Convert target margin to the required markup
Markup to MarginMargin% = Markup% / (100 + Markup%) x 100Convert markup percentage to the equivalent margin

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE PERCENTAGE CALCULATORS

Was this calculator helpful?

Last updated: April 25, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.