Margin Calculator
Use this free margin calculator to find the profit margin percentage from revenue and cost. Enter your selling price and cost to instantly see the margin percentage, profit amount, and how margin compares to markup.
Enter Values
The total amount you receive from the sale
The total cost to produce or acquire the item
Result
Enter values above and click Calculate to see your result.
AI Assistant
Ask about this calculator
I can help you understand the margin calculator formula, interpret your results, and answer follow-up questions.
Try asking
Formula
How it works: Subtract cost from revenue to get profit. Divide profit by revenue (not cost) and multiply by 100 for the margin percentage. Margin always uses revenue as the base, unlike markup which uses cost.
Review and Methodology
This calculator runs locally in your browser. Inputs are converted into the units required by the formula, and the result is paired with supporting references so you can verify the method before using it for planning or estimates.
Worked Example
What Is Profit Margin and Why Does It Matter?
Profit margin is the percentage of revenue that remains as profit after costs are deducted. It is one of the most important metrics for any business because it shows how efficiently the company converts sales into profit. Higher margins mean more profit per dollar of revenue.
- Margin uses revenue as the denominator: Margin = Profit / Revenue
- Markup uses cost as the denominator: Markup = Profit / Cost
- A 50% margin means you keep half of every dollar earned. A 50% markup means you charge 1.5x your cost.
- Retail margins typically range from 20-50%, while software margins can exceed 80%
- Negative margin means you are selling below cost (operating at a loss)
Understanding the difference between margin and markup is critical for pricing decisions. Many businesses confuse the two, leading to underpricing or overpricing their products.
You can also calculate changes using our Profit Margin Calculator, Markup Calculator, Profit Calculator or Gross Profit Calculator.
Frequently Asked Questions
What is the difference between margin and markup?
Margin is profit divided by revenue (selling price). Markup is profit divided by cost. A 50% margin is NOT the same as 50% markup. 50% margin = 100% markup. This is one of the most common pricing mistakes in business.
What is a good profit margin?
It varies by industry. Grocery stores operate on 1-3% net margins. Restaurants target 3-9%. Retail clothing aims for 4-13%. Software companies can achieve 20-40%+ net margins.
Can margin be negative?
Yes. Negative margin means cost exceeds revenue. You are losing money on every sale. This happens during clearance sales, loss leaders, or when costs unexpectedly increase.
How do I convert margin to markup?
Markup = Margin / (1 - Margin). For example, 25% margin = 0.25 / 0.75 = 33.3% markup. Conversely, Margin = Markup / (1 + Markup).
Is this gross margin or net margin?
This calculator computes the margin between the two numbers you enter. If you enter revenue and COGS, it is gross margin. If you enter revenue and all expenses, it is net margin.
Is it possible to embed the Margin Calculator on another website?
Yes, embedding the Margin Calculator is free. Hit the "Embed" button on this page, adjust the width, height, and theme, then grab the iframe code. It works on WordPress, Wix, Squarespace, Shopify, and plain HTML pages. No registration needed. Full instructions at calculory.com/services/embed-calculators.
AI Assistant
Ask about this calculator
I can help you understand the margin calculator formula, interpret your results, and answer follow-up questions.
Try asking
More Business Calculators
View allProfit Maximizing Output Calculator
Find the output level that maximizes profit.
Website Value Calculator
Professional valuation for websites and online businesses.
Web Design Cost Calculator
Estimate website design costs with traditional and AI development options.
App Development Cost Calculator
Estimate mobile app development costs by scope and features.
Related Articles
All articles
How to Calculate Profit Margin: Step-by-Step Formulas with Worked Examples
Step-by-step profit margin formulas with real numbers. Covers gross, operating, and net margins with worked examples and the common mistakes that inflate results.
Read article
Markup vs Margin: The Difference Explained with Formulas and a Conversion Table
Understand the critical difference between markup and margin with clear formulas, conversion tables, and real examples. Learn why confusing the two costs businesses thousands of dollars in lost profit.
Read article
How to Calculate ROI: Formula, Examples, and Free Calculator
Learn how to calculate Return on Investment (ROI) with the standard formula, real-world examples for marketing, real estate, and stocks, and understand the limitations of basic ROI.
Read article
Compound Interest Explained: How Your Money Grows Over Time
Understand how compound interest works with clear examples and visual breakdowns. Learn the formula, see how frequency affects growth, and discover why Einstein called it the eighth wonder of the world.
Read articleModern Tools for Every Need
Secure and Private
All calculations run locally. Your business data never leaves your browser.
Verified Precision
Precise Business Calculations Powered by Calculory AI