- Home
- All Calculators
- Math Calculators
- Margin Calculator
Free Margin Calculator Online
This free online margin calculator handles the three margin problems that come up in real business every day: computing gross margin from cost and revenue, finding a selling price from markup percentage, and reverse-engineering the price you need to hit a target margin.
Gross Margin
Profit of $30.00 on $80.00 revenue
Cost vs Profit Split
Margin Calculator Formulas
The Core Relationship
Margin% = Markup% / (1 + Markup%)
Margin and markup are two sides of the same coin. A 100% markup is a 50% margin. A 50% markup is a 33.3% margin. This margin calculator converts between them instantly so you never confuse the two.
| Formula | Example | Use Case |
|---|---|---|
| (Revenue − Cost) / Revenue × 100 | ($80 − $50) / $80 = 37.5% | Gross margin percentage |
| (Revenue − Cost) / Cost × 100 | ($80 − $50) / $50 = 60% | Markup percentage |
| Cost / (1 − Margin/100) | $50 / (1 − 0.40) = $83.33 | Selling price from target margin |
| Cost × (1 + Markup/100) | $50 × 1.60 = $80 | Selling price from markup |
| Revenue − Cost | $80 − $50 = $30 | Gross profit (dollars) |
Practical Examples
Related Math Tools
Why Use This Free Margin Calculator?
- Three calculation modes
- Margin and markup side by side
- Visual cost-profit bar
- Works on mobile
- Always free, no ads
What People Use a Margin Calculator For
E-Commerce Pricing
Sellers on Amazon and Shopify use a margin calculator to price products after factoring in shipping, platform fees, and advertising costs. A 30% markup on cost might only yield a 15% net margin once fees are deducted. Knowing the difference keeps your business profitable.
Wholesale Negotiations
When a supplier quotes a 40% discount off retail, use the margin calculator to verify whether that leaves you with enough margin to cover overhead. A seemingly generous wholesale discount can still result in thin margins if your operating costs are high.
Financial Analysis
Investors and analysts compare gross margins across companies to evaluate competitive advantages. A company with 80% gross margins has stronger pricing power than one at 25%. Use this free margin calculator to quickly benchmark any business.
Common Margin Calculator Mistakes
Even with a free online margin calculator, it helps to know where people typically go wrong.
Confusing Margin and Markup
A 50% markup is not a 50% margin. If you buy for $100 and add 50% markup, you sell for $150. But the margin is only $50/$150 = 33.3%. Many businesses lose money by treating markup as margin.
Adding Margin to Cost Directly
To achieve a 40% margin, you cannot simply add 40% to your cost. Cost $50 + 40% = $70 gives you only a 28.6% margin. The correct price is $50 / 0.60 = $83.33. Always divide by (1 - margin/100).
Ignoring All Costs in Gross Margin
Gross margin only accounts for direct costs (COGS). It does not include marketing, rent, or salaries. A healthy 60% gross margin can still result in a net loss if operating expenses are 65% of revenue.
Frequently Asked Questions
Disclaimer: This margin calculator is for informational purposes only. It does not constitute financial or business advice. Always verify calculations before making pricing decisions.
More Math Calculators
Percentage Calculator
Calculate percentages, percent change, and percent of a number.
Percent Change Calculator
Calculate the percentage change between two values — increase or decrease.
Percentage Increase Calculator
Calculate the percentage increase from one value to another.
Fraction Calculator
Add, subtract, multiply, and divide fractions instantly.