Margin Calculator

Calculate profit margin, markup, and selling price from cost and revenue. Find the required selling price for a target margin or the maximum cost to maintain profitability. Compare margin vs markup and benchmark against industry averages.

Currency
50K
$
30K
$
Profit Margin
40.00%
$20,000 profit
Margin
40.00%
Profit ÷ Revenue
Markup
66.67%
Profit ÷ Cost
Profit
$20,000
Revenue minus Cost
Cost Ratio
60.00%
Multiplier
1.67×

Revenue Breakdown

How revenue splits between cost and profit

Cost
$30,000
60%
Profit
$20,000
40%

Margin vs Markup Reference

Quick conversion between margin and markup percentages

Margin %Markup %Multiplier
10%11.11%1.11×
15%17.65%1.18×
20%25.00%1.25×
25%33.33%1.33×
30%42.86%1.43×
33.33%50.00%1.50×
40%66.67%1.67×
50%100.00%2.00×
60%150.00%2.50×
70%233.33%3.33×
75%300.00%4.00×
80%400.00%5.00×

What is Profit Margin?

Understanding margin calculation and why it matters for your business

Profit margin is a profitability metric that measures the percentage of revenue retained as profit after deducting costs. It tells you how many cents of profit a business earns for every dollar of revenue. A 40% margin means you keep $0.40 of every $1 earned.

Unlike markup (which is calculated relative to cost), margin is calculated relative to the selling price (revenue). This distinction is critical for pricing decisions, financial reporting, and comparing profitability across businesses of different sizes.

How to Calculate Margin

Step-by-step formulas for margin, markup, and reverse calculations

Profit Margin Formula

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

Markup Formula

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

Selling Price from Target Margin

Selling Price = Cost / (1 - Margin as decimal)

Maximum Cost from Target Margin

Max Cost = Revenue × (1 - Margin as decimal)

Example Calculation

A product costs $60 to make and sells for $100. Profit = $100 - $60 = $40. Margin = ($40 / $100) × 100 = 40%. Markup = ($40 / $60) × 100 = 66.67%. To find the selling price for a 40% margin: $60 / (1 - 0.40) = $100.

Margin vs Markup: Key Differences

Two metrics that measure the same profit but from different perspectives

AspectMarginMarkup
BaseRevenue (selling price)Cost
FormulaProfit / RevenueProfit / Cost
Range0% to <100%0% to ∞
50% meansCost = half of revenueProfit = half of cost
Used byFinancial analysts, investorsRetailers, wholesalers

A common mistake is confusing margin and markup. A 50% markup does not equal a 50% margin. A 50% markup on a $60 cost gives a $90 selling price and a 33.33% margin. Always clarify which metric is being discussed when setting prices.

Industry Margin Benchmarks

Typical gross profit margin ranges by industry (approximate, for general reference)

Software / SaaS
7085%
Pharmaceuticals
6080%
Financial Services
5075%
Consulting / Services
4570%
Consumer Electronics
2550%
Retail (General)
2550%
Manufacturing
2040%
E-commerce
2045%
Food & Beverage
1040%
Grocery / Supermarket
525%
Automotive
1020%
Construction
1025%

How to Improve Profit Margin

Actionable strategies to increase your profit margin percentage

Raise prices strategically

Test price increases on high-value products. Even a 1% price increase can boost margin significantly with stable demand.

Reduce cost of goods

Negotiate bulk discounts, find alternative suppliers, or switch to more cost-effective materials without sacrificing quality.

Optimize product mix

Promote and upsell higher-margin products. Analyze margin by SKU to identify which products deserve more focus.

Minimize waste and returns

Reduce defect rates, improve packaging, and tighten quality control to cut hidden costs that erode margin.

Leverage economies of scale

Higher volume lowers per-unit cost. Consolidate orders and streamline production to reduce average cost.

Automate and streamline

Invest in automation for repetitive tasks. Lower labor costs per unit directly improve margin without raising prices.

Frequently Asked Questions

Common questions about margin calculation and analysis