Margin Calculator

Free margin calculator to calculate gross margin, operating margin, and net profit margin. Includes P&L breakdown and industry comparisons.

$
$
40.00%

$40,000 profit

$40,000

Revenue Breakdown

Net
OpEx
COGS
Net ProfitCost of Revenue

Margin Formulas

Gross Margin: (Revenue - COGS) / Revenue × 100
Operating Margin: (Revenue - COGS - OpEx) / Revenue × 100
Net Margin: Net Profit / Revenue × 100
EBITDA Margin: EBITDA / Revenue × 100

Margin vs Markup

Margin is profit as a percentage of the selling price.
Markup is profit as a percentage of the cost.
A 50% margin equals a 100% markup. Margin is always less than markup.

🔒 Fast, free math calculators that run in your browser. No uploads, 100% private.