Margin Calculator

Calculate profit margin, markup, revenue, and cost

Calculator
Finance
Business
Pricing

Enter any two values to calculate the rest.

Calculation History

No calculations yet. Results will appear here after you calculate.

About This Tool

The Margin Calculator helps you compute profit margin, markup percentage, revenue, and cost for any product or service. Enter any two values and the calculator instantly computes all remaining figures with detailed formulas and step-by-step explanations.

Understanding the difference between margin and markup is essential for effective pricing. Margin (profit margin) expresses profit as a percentage of the selling price, while markup expresses profit as a percentage of cost. Many businesses confuse the two, leading to incorrect pricing — this calculator helps you get it right every time.

You can also use our Markup Calculator for markup-specific calculations, our Discount Calculator with Tax to compute final prices after discounts, or our Unit Price Calculator to compare costs and find the best value.

Browse more Finance tools for additional business calculators.

All processing happens in your browser — no data is sent to servers.

Frequently Asked Questions (FAQ)

What is the difference between margin and markup?
Margin (profit margin) is the percentage of revenue that is profit: Margin% = (Revenue − Cost) / Revenue × 100. Markup is the percentage added to cost: Markup% = (Revenue − Cost) / Cost × 100. For example, if cost is $100 and revenue is $150, margin is 33.3% and markup is 50%. Our Markup Calculator focuses on the markup side.
How do I calculate margin percentage?
Margin% = (Revenue − Cost) / Revenue × 100. For example, if a product costs $80 and sells for $120: margin% = ($120 − $80) / $120 × 100 = 33.33%. This means 33.33% of your revenue is profit.
How do I convert margin to markup and vice versa?
To convert markup to margin: Margin% = Markup% / (100% + Markup%) × 100. To convert margin to markup: Markup% = Margin% / (100% − Margin%) × 100. For example, a 50% markup equals a 33.3% margin, and a 33.3% margin equals a 50% markup.
What is a good profit margin?
Profit margins vary by industry. Retail typically sees 2-5% net margins, restaurants 3-15%, software companies 20-40%, and luxury goods 10-30%. Gross margins are typically higher — retail 30-50%, software 60-80%. Your target margin depends on your industry, business model, and operating costs.
How do I use this calculator?
Enter any two of the four fields (Cost, Revenue, Margin%, or Markup%). The calculator will automatically compute the remaining values. For example, enter Cost and Revenue to see your current margin and markup, or enter Cost and desired Margin% to find the ideal selling price.
Is my data processed securely?
All calculations happen entirely in your browser. No data is sent to any server. Your calculation history is stored locally on your device using localStorage.