Margin Calculator

Use this margin calculator to find profit margin, markup, profit, selling price, or maximum cost from revenue, cost, and target margin.

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%

Calculation Breakdown

How the result is derived from your inputs

Formula

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

With Your Values

(($50,000 − $30,000) / $50,000) × 100 = 40.00%

Margin vs Markup: Your margin is 40.00% (profit ÷ revenue) and your markup is 66.67% (profit ÷ cost). Markup is higher than margin whenever profit is positive — at 0% they are equal. A 40.00% margin equals a 66.67% markup.

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×

How to Use This Margin Calculator

Three calculation modes to solve any margin problem

1

Choose your calculation mode

Select Find Margin to calculate margin from revenue and cost, Find Selling Price to determine the price you need for a target margin, or Find Max Cost to see the most you can spend at a given margin.

2

Enter your values

In margin mode, enter your revenue (selling price) and cost. In selling-price mode, enter your cost and target margin percentage. In max-cost mode, enter your revenue and target margin percentage.

3

Review your results

The calculator instantly shows your margin percentage, markup percentage, profit amount, cost ratio, and revenue multiplier. A revenue breakdown donut chart visualizes how revenue splits between cost and profit.

4

Check the formula breakdown

The Calculation Breakdown card shows the exact formula with your numbers substituted in, so you can verify the math step by step.

5

Compare with related concepts

Use the Margin vs Markup Reference table to see how margin and markup convert, and check industry benchmarks to see how your margin stacks up.

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.

Key Insight

A 40% margin means you keep $0.40 of every $1.00 earned — the other $0.60 covers your costs.

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
Range<0% (loss) to 100%<0% (loss) 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)

These ranges are general references compiled from public financial data (SEC filings, industry reports, and NYU Stern/Damodaran margin datasets). Your actual margin may differ depending on your specific industry sub-category, business model, geography, and scale. Always compare against benchmarks for your exact sector rather than broad industry categories.

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

Embed Margin Calculator

Add this calculator to your website or blog for free.