Margin vs. Markup Calculator
Convert between margin and markup, set the right price from your cost, and see the difference in plain numbers.
Margin is profit as a percentage of revenue (what the customer pays). Markup is profit as a percentage of cost (what you pay). They are not interchangeable: a 50% markup equals a 33.33% margin. Confusing the two leads to undercharging or misreading financials. This calculator keeps cost, selling price, margin, and markup in sync so you can price correctly and compare offers fairly.
Inputs
Enter any two fields (e.g., cost and selling price, or cost and target margin). When you enter cost plus margin or cost plus markup, we use those to compute the selling price and update results; when you enter cost and selling price, we derive margin and markup.
Your all-in cost for one unit (including materials, labor, and overhead).
What you charge the customer for one unit.
Profit as a percentage of the selling price.
Profit as a percentage of your cost.
Results
Once you enter enough information, we convert between margin and markup and surface the key numbers you actually care about.
- Cost per unit
- $0.00
- Selling price per unit
- $0.00
- Profit per unit
- $0.00
- Margin
- 0.00%
- Markup
- 0.00%
Calculated as profit ÷ selling price.
Calculated as profit ÷ cost.
Note: Margin and markup move together but are not the same number. A 50% markup on cost works out to a 33.33% margin on the final price.
Quick formulas: margin vs. markup
In plain language, margin tells you how much of the final selling price you keep as profit. Markup tells you how much you've added on top of your cost.
The core relationships:
The calculator applies these same formulas behind the scenes and keeps cost, price, margin, and markup in sync so you can avoid confusing the two.
Why the Distinction Matters
In retail, contracting, and services, people often say "I need a 30% margin" when they actually mean a 30% markup. If you build your price from cost using a 30% margin formula, you will charge more than if you use a 30% markup—and the opposite mistake (using markup when your target is margin) will leave money on the table. Financial statements and industry benchmarks usually report margin (profit as % of revenue). Internal pricing and vendor negotiations often use markup (% on cost). This calculator lets you speak both languages and convert between them instantly.
The "30% Margin vs. 30% Markup" Trap
A 30% margin and a 30% markup are not the same. On a $100 cost:
- 30% markup → selling price = $130. Profit = $30. Margin = 30/130 ≈ 23.1%.
- 30% margin → you need price such that profit is 30% of price. That gives price ≈ $142.86 and profit ≈ $42.86. Markup = 42.86/100 = 42.86%.
So: 30% markup yields a 23.1% margin. To get a true 30% margin, you must apply a ~43% markup on cost. Mixing these up is one of the most common pricing errors in small business and freelancing.
Real-World Scenarios
Retail / E‑commerce
You buy at $40 and want a 40% margin. Enter cost = 40 and margin = 40. The calculator gives you the correct selling price (~$66.67) and shows the equivalent markup (66.67%). Use it to check supplier quotes ("we need 50% margin" vs "we add 50% markup") so you don't agree to the wrong number.
Contracting / Services
You know your job cost and want to hit a target margin after overhead. Enter your all-in cost and desired margin; get the price to quote. Or reverse it: you have a quoted price and cost—see your actual margin and markup to compare jobs and spot underbid work.
Converting Between Margin and Markup (No Cost/Price)
If you only have a margin or markup percentage and want the other, the relationship is:
With cost = 1 (unit cost), the calculator can derive one from the other. For example: 25% margin corresponds to a 33.33% markup; 50% markup corresponds to a 33.33% margin.
Margin vs. Markup: FAQs
Q: Why is my margin always lower than my markup for the same price?
A: Margin uses the selling price as the denominator; markup uses cost. Since price > cost, the same profit dollar amount is a smaller percentage of price (margin) than of cost (markup). So for any given deal, margin % will be less than markup %.
Q: Which number do investors and banks look at—margin or markup?
A: Typically margin (profit as % of revenue). Income statements show revenue and profit; margin is profit ÷ revenue. Markup is more of an internal or vendor-side concept. When someone says "we run at 40% margin," they mean 40% of revenue is profit.
Q: Can I enter just margin or just markup to get a selling price?
A: You need at least cost plus either margin or markup. With cost and target margin, we solve for price. With cost and target markup, we solve for price. Without cost, we can only convert between margin and markup (assuming unit cost = 1).
Q: What if my "cost" includes overhead and labor?
A: For margin and markup to be meaningful, cost should be your all-in cost per unit—materials, labor, allocated overhead, and any other direct costs. Then the resulting margin is your true profit margin on that product or job. If you use only variable cost, your margin will be higher than reality once overhead is included.
Q: Is gross margin the same as margin here?
A: In this calculator, "margin" is gross profit margin: (price − cost) ÷ price. It does not subtract operating expenses, interest, or taxes. For net margin you'd need to use profit after those items; this tool is for pricing and gross profit only.
Explore Related Calculators
Math Insights & Resources
Explore the formulas, algorithms, and mathematical concepts behind everyday calculations.
When Percentages Mislead: How to Read the Math Behind Big Claims
Percentages are powerful storytelling tools—and that's why they're dangerous when misused. Learn how small baselines, peer comparisons, and stacked rates can distort reality, and how to read percentage claims so the math actually matches what's happening.
Gross Margin vs. Markup: What Investors and Lenders Look At
Lenders and investors care about margin, not markup. Learn the difference, why margin appears on the P&L, and how to speak both languages when you run the numbers.
A/B Testing Results: Which Percentage Formula Should You Use?
A/B test conversion 2% vs 2.4%—is that 20% lift or 18.18% difference? The formula you use changes the number. Learn when to use percent change vs. percentage difference and how to get it right.
Everyday Math Calculators That Matter
Learn when everyday math actually matters. See how the right calculator and the right formula prevent bad calls in DIY projects, shopping decisions, and data analysis.
The Mathematics of Compound Interest: Geometric Growth & Variance Analysis
Deconstructing the compound interest formula to isolate the variables that engineer wealth, moving beyond basic definitions into the structural mechanics of accumulation.
Percent Change vs. Percentage Difference: Which Formula Should You Use?
Stop guessing which formula to use. Learn the critical difference between "Percent Change" (directional) and "Percentage Difference" (relational) to ensure accurate data analysis.
More Than Just Math: A Real-World Guide to Calculating Percent Change
Don't just track the difference; understand the relative impact. Learn how to apply the Percent Change Calculator to business growth, shopping discounts, and personal finance goals.
Why You Need a Mixed Fraction Calculator: 3 Real-World Use Cases
Stop struggling with common denominators. From DIY home projects to scaling recipes, discover how a mixed fraction calculator saves you time and prevents costly mistakes.
The Mathematics of Financial Independence: A Step-by-Step Blueprint
Is financial freedom possible for you? Learn the exact math behind early retirement, including savings rate targets, compound growth formulas, and why starting today matters more than high returns.
The High Cost of Waiting: Why You Should Start Investing Yesterday
See the mathematical breakdown of why starting to invest 10 years earlier can double your wealth, even if you invest less money.
This calculator/tool is designed for educational and general calculation purposes. While we strive for precision, results should be verified independently for any scientific, engineering, personal, professional, or academic applications.