Calculate profit margin, markup, and selling price from cost and revenue. Find the selling price for a target margin or maximum cost.
Business
global
Margin Calculator, Business, Calculate profit margin, markup, and selling price from cost and revenue. Find the selling price for a target margin or maximum cost., profit margin percentage, markup vs margin, revenue to profit, calc, compute
Margin Calculator
Calculate profit margin, markup, and selling price from cost and revenue. Find the selling price for a target margin or maximum cost.
profit margin percentage, markup vs margin, revenue to profit
Business global
Margin Calculator, Business, Calculate profit margin, markup, and selling price from cost and revenue. Find the selling price for a target margin or maximum cost., profit margin percentage, markup vs margin, revenue to profit, calc, compute
Margin Calculator
Calculate profit margin, markup, and selling price from cost and revenue. Find the selling price for a target margin or maximum cost.
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
Aspect
Margin
Markup
Base
Revenue (selling price)
Cost
Formula
Profit / Revenue
Profit / Cost
Range
0% to <100%
0% to ∞
50% means
Cost = half of revenue
Profit = half of cost
Used by
Financial analysts, investors
Retailers, 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
70–85%
Pharmaceuticals
60–80%
Financial Services
50–75%
Consulting / Services
45–70%
Consumer Electronics
25–50%
Retail (General)
25–50%
Manufacturing
20–40%
E-commerce
20–45%
Food & Beverage
10–40%
Grocery / Supermarket
5–25%
Automotive
10–20%
Construction
10–25%
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
Profit margin is calculated by subtracting cost from revenue, dividing that result by revenue, and multiplying by 100. The formula is: Margin (%) = ((Revenue - Cost) / Revenue) × 100. For example, if you sell a product for $100 and it costs $60 to produce, margin = (($100 - $60) / $100) × 100 = 40%.
Margin is profit expressed as a percentage of the selling price (revenue), while markup is profit expressed as a percentage of the cost. For example, if cost is $60 and selling price is $100: margin = 40% ($40/$100), but markup = 66.67% ($40/$60). A 50% markup equals a 33.33% margin, not 50%. Margin is always lower than markup for the same transaction.
Use the formula: Selling Price = Cost / (1 - Target Margin as decimal). For a 40% margin on a $60 product: Selling Price = $60 / (1 - 0.40) = $60 / 0.60 = $100. This calculator's 'Find Selling Price' mode does this automatically.
A 'good' profit margin varies significantly by industry. Software and SaaS companies typically achieve 70-85% gross margins, while grocery stores operate at 5-25%. In general, a margin above 50% is considered strong, 20-50% is healthy for most industries, and below 20% indicates tight margins. Always benchmark against your specific industry rather than using a universal standard.
No. Profit margin is calculated as profit divided by revenue, and since profit can never exceed revenue (the most profit you could make is if costs were zero), margin is always less than 100%. In contrast, markup can exceed 100% — a 200% markup means you charge 3× your cost.
If revenue is in cell A1 and cost is in cell B1, use the formula: =((A1-B1)/A1)*100 for margin as a percentage. For the markup formula, use: =((A1-B1)/B1)*100. To find selling price from cost (C1) and target margin (D1 as decimal): =C1/(1-D1).
Gross margin only deducts direct production costs (COGS) from revenue, while net margin deducts all expenses including operating costs, taxes, interest, and depreciation. A company can have a high gross margin but low net margin if operating expenses are significant. Gross margin measures production efficiency; net margin measures overall profitability.
Margin is more intuitive for financial analysis because it represents how much of every revenue dollar is profit. It caps at 100%, making comparisons easy, and aligns with how financial statements present profitability. Markup, while useful for pricing, can be misleading at high values (e.g., a 300% markup sounds extreme but is only a 75% margin).
Use the formula: Markup (%) = Margin / (1 - Margin as decimal) × 100. For a 40% margin: Markup = 0.40 / (1 - 0.40) × 100 = 0.40 / 0.60 × 100 = 66.67%. Conversely, to convert markup to margin: Margin (%) = Markup / (1 + Markup as decimal) × 100.
Key factors include: pricing strategy, cost of goods or services, labor costs, production efficiency, economies of scale, competition, product mix, supplier negotiations, waste and defect rates, and market demand. External factors like inflation, supply chain disruptions, and currency fluctuations also impact margins.
Embed Margin Calculator
Add this calculator to your website or blog for free.