Profit Margin Calculator

Calculate profit margin, markup, and selling price. For business pricing decisions and reverse calculations.

Result

–
Cost
–
Selling
–
Profit
–
Markup
–

What is profit margin?

Profit margin measures profitability as a percentage of revenue or cost. It tells you how much of every dollar of sales becomes profit. Two key metrics: profit margin = profit / selling price (what % of revenue is profit), and markup = profit / cost (how much you added on top of cost). They describe the same profit but from different reference points - and people often confuse them. A 50% markup is NOT a 50% margin: if cost is $100 and you add 50% markup, selling price is $150, profit is $50, but margin is $50/$150 = 33.3% (not 50%). For business owners, knowing your true margin is essential for pricing, profitability analysis, and break-even calculations.

How to use this tool

  1. Choose calculation mode — Three modes: Find margin (know cost+selling), Find markup (same inputs, different output), Find selling price (know cost + target margin).
  2. Enter cost and/or selling price — Based on mode. Be sure 'cost' includes all variable costs (materials, labor, packaging, shipping) but not fixed costs.
  3. For 'Find selling price' mode — Enter your desired profit margin %. Calculator gives the exact selling price to achieve that margin.
  4. Read all metrics — Margin, markup, profit amount - all shown together so you see both reference frames.

Margin vs Markup formulas

Profit margin (% of selling price):

Margin % = (Selling Price - Cost) / Selling Price × 100

Markup (% of cost):

Markup % = (Selling Price - Cost) / Cost × 100

Selling price from desired margin:

Selling Price = Cost / (1 - Desired Margin% / 100)

Margin to Markup conversion:

Markup = Margin / (1 - Margin)

Quick reference:

  • 20% margin = 25% markup
  • 33% margin = 50% markup
  • 50% margin = 100% markup
  • 60% margin = 150% markup

Examples

  • SaaS subscription $50/month, costs $5/month: Margin = 90%, Markup = 900%. Common for software (low marginal cost).
  • Restaurant meal $25, food cost $7.50: Margin = 70%, Markup = 233%. Restaurants need high margin because of high fixed costs (rent, staff).
  • Retail shirt sold $40, wholesale cost $20: Margin = 50%, Markup = 100%. Standard clothing retail markup.
  • Grocery store milk $4, cost $3.80: Margin = 5%, Markup = 5.26%. Low-margin high-volume model.
  • Custom software project $50,000, time/cost $30,000: Margin = 40%, Markup = 67%. Service businesses.

Tips & best practices

  • Margin is more meaningful for comparing across industries - 'margin %' is standard in financial reports
  • Markup is more useful for pricing - 'add X% to cost to get selling price' is intuitive for shopkeepers
  • Cost should include ALL variable costs - materials, labor, packaging, shipping, payment processing fees
  • Don't include fixed costs (rent, salary of office staff, software subscriptions) in product cost - those are separate operating expenses
  • Industry benchmark margins (general): SaaS 70-85%, Restaurants 60-70%, Retail clothing 50-60%, Auto 5-15%, Grocery 1-5%, Manufacturing 20-30%
  • Gross margin (just COGS) vs net margin (after all expenses) - gross is for product pricing, net for overall business health
  • Higher margin is better but only if sales volume is sustainable - high-margin niche products may not scale

Limitations & notes

This calculator handles unit-level pricing. For business-wide profitability, you need to add fixed costs (rent, salaries, software) and divide by total revenue - that's net profit margin which is different from gross margin shown here. Doesn't include taxes - subtract tax rate from your net margin to get after-tax margin. For complex pricing with bundled discounts or tiered pricing, apply this calculator per-tier.

Frequently Asked Questions

What's the difference between margin and markup?

Both measure profit but use different denominators. Margin = profit/selling_price. Markup = profit/cost. Markup is ALWAYS higher than margin because cost < selling price. 50% markup means margin is 33%, not 50%. Knowing both is critical for accurate pricing.

What's a good profit margin?

Varies wildly by industry. SaaS: 70-85% gross margin. Restaurants: 60-70%. Retail: 30-50%. Manufacturing: 20-30%. Grocery: 1-5%. Within your industry, beating the average by 5-10 points is excellent. Below average, examine why and improve costs or pricing.

How do I calculate selling price for a desired margin?

Selling Price = Cost / (1 - Margin%/100). For 30% margin on $100 cost: $100 / (1 - 0.30) = $100 / 0.70 = $142.86. Common mistake: adding 30% (= $130) gives only 23% margin, not 30%.

Is gross profit the same as profit margin?

Gross profit (in dollars) vs gross margin (as percentage). $100 sale - $60 cost = $40 gross profit. Margin = $40/$100 = 40%. Use absolute numbers for total profit, percentages for comparison across sizes.

How do I improve my margin?

Two levers: increase price or reduce cost. Increase price: improve product quality/value, premium positioning, reduce discounting. Reduce cost: negotiate suppliers, increase batch size for volume discounts, automate labor, find cheaper alternatives without quality loss. Be careful raising prices - test for elasticity first.

Should I price based on cost or value?

Always start with value (what customers will pay) and check cost (what it takes to deliver). Cost-plus pricing (cost + markup) is simple but leaves money on table for high-value products. Value-based pricing (charge what market will bear) maximizes profit but requires market research.

What is contribution margin?

Contribution margin = price - variable costs. It tells you how much each unit 'contributes' to covering fixed costs. Helpful for break-even analysis. Different from gross margin only when you're distinguishing fixed vs variable costs more precisely. Contribution margin is gross margin when COGS is purely variable.

Related tools

Discount Calculator · Break-Even Calculator · GST Calculator

Copied to clipboard