What This Calculator Does
Markup and margin both describe profit as a percentage, but they use different bases. That single difference trips up owners, sales teams, and finance staff constantly. This calculator takes your cost and selling price and shows both numbers side by side, so you can see exactly how the same profit turns into two different percentages. Enter $60 cost and $100 selling price and you get a 66.67% markup but only a 40% margin. Same $40 profit. Two answers.
The confusion matters because the two terms get used interchangeably in casual conversation, and that sloppiness leaks into pricing decisions. A sales rep told to "price at a 40% margin" who actually applies a 40% markup will undercharge. A buyer negotiating "margin" when the supplier is quoting "markup" will misread the deal. The gap widens as the percentage climbs. A 50% markup equals a 33.3% margin. A 100% markup equals a 50% margin. At 200% markup the margin is only 66.7%. The numbers never match, and assuming they do is how pricing errors happen.
Once you have both figures, check whether your pricing hits the margin your business needs using our Margin Calculator, or build out a full cost-plus price with our Markup Calculator. For the bigger picture of whether your pricing covers all costs, our Break-Even Calculator shows the volume you need to sell.
Inputs Required
- Cost: What you pay for the product, or your total cost to produce one unit (materials, labor, overhead allocated per unit)
- Selling Price: The price you charge the customer for that unit
Outputs Provided
- Markup Percentage: Profit divided by cost, expressed as a percentage. Tells you how much you added on top of cost
- Gross Margin Percentage: Profit divided by selling price, expressed as a percentage. Tells you what share of revenue is profit
- Profit per Unit: Selling price minus cost, in dollars
- Side by Side Breakdown: Both percentages shown together with the underlying dollar values
How the Calculation Works
Both formulas start from the same profit figure. Profit is selling price minus cost. The difference is what you divide that profit by.
Profit = Selling Price - Cost
Markup % = (Profit / Cost) x 100
Margin % = (Profit / Selling Price) x 100
Markup divides profit by cost. It answers "how much did I add to my cost?" Margin divides profit by selling price. It answers "what share of my revenue is profit?" Because selling price is always larger than cost (assuming you are profitable), the margin percentage is always smaller than the markup percentage for the same transaction.
You can convert directly between the two. To get margin from markup: Margin = Markup / (1 + Markup). To get markup from margin: Markup = Margin / (1 - Margin). So a 50% markup converts to a margin of 0.50 / 1.50 = 33.3%. A 40% margin converts to a markup of 0.40 / 0.60 = 66.7%. The calculator does this instantly as you type.
How to Use the Calculator
- Enter your unit cost. Include all direct costs tied to producing or acquiring one unit
- Enter your selling price. Use the actual price you charge, not a target
- Read the markup percentage (profit relative to cost) and margin percentage (profit relative to revenue)
- Use the side by side breakdown to confirm which figure your team or supplier is referencing
- Copy the result if you need to paste it into a quote, proposal, or spreadsheet
Example Calculations
Example 1: Retailer Pricing a Jacket
A boutique owner buys jackets from a wholesaler for $45 each and sells them for $120. Profit is $75. Markup is $75 / $45 = 166.7%. Margin is $75 / $120 = 62.5%. When her accountant asks for the gross margin on jackets, the answer is 62.5%. When her wholesaler asks what markup she applies, the answer is 166.7%. Both describe the same $75 profit. Giving the accountant the 166.7% figure would overstate margin by over 100 percentage points.
Example 2: Distributor Negotiating with a Supplier
A distributor buys widgets for $200 and sells them for $260. Profit is $60. Markup is 30%. Margin is 23.1%. The supplier offers a "20% margin" deal, meaning they want to keep 20% of the selling price as their profit. The distributor, used to thinking in markup, might assume 20% margin means a 20% markup. It does not. A 20% margin equals a 25% markup. Misreading that single number changes the cost basis by 5 percentage points, which across a $500,000 annual purchase order is $25,000.
Real World Scenarios
Hitting a Target Margin
A coffee roaster wants a 60% gross margin on every bag sold. Her cost per bag is $8. Many owners in her position apply a 60% markup, pricing the bag at $8 x 1.60 = $12.80. But a 60% markup is only a 37.5% margin ($4.80 profit / $12.80 price). To actually hit a 60% margin, she needs to solve for price: Price = Cost / (1 - Margin) = $8 / 0.40 = $20. The correct price is $20, not $12.80. The gap is $7.20 per bag. Over 10,000 bags per year, pricing at markup instead of margin costs her $72,000 in lost profit. The calculator makes this obvious the moment you enter both numbers.
Comparing Quotes from Two Suppliers
A manufacturer gets two quotes for the same component. Supplier A quotes a "25% margin" at $40 per unit. Supplier B quotes a "25% markup" at $37.50 per unit (cost $30 x 1.25). The buyer assumes both are equivalent and picks Supplier B for the lower price. But Supplier A's 25% margin means their cost is $30 and their profit is $10, same as Supplier B. The quotes are identical in profit terms. The only difference is the language. If Supplier A had actually meant 25% markup, the price would be $37.50, matching B exactly. The buyer's confusion about terminology almost led to a wrong decision based on a number that meant the same thing.
Discounting Without Eroding Margin Floor
A software reseller has a product that costs $500 and normally sells for $800, a 60% markup and 37.5% margin. A large customer asks for a 15% discount. The new price is $680. Profit drops from $300 to $180. The new margin is 26.5%, down from 37.5%. The reseller's finance team has a rule: never sell below 25% margin. The discount is acceptable, but barely. If the customer pushes for 20% off (price $640), profit falls to $140 and margin to 21.9%, below the floor. The calculator lets the sales team test discount scenarios in seconds and see the margin impact before agreeing to a price.
Common Mistakes to Avoid
- Using the terms interchangeably: They are not the same number. A 30% markup is a 23.1% margin. Always confirm which one someone means before acting on a percentage they give you
- Pricing to a markup when you need a margin: If your business plan requires a 40% gross margin, applying a 40% markup gives you only 28.6% margin. Use the conversion formula or this calculator to hit the right target
- Forgetting that markup is always larger: For any profitable transaction, markup exceeds margin. If someone quotes a "margin" that seems high, check whether they actually computed markup. The two diverge sharply as percentages rise
- Mixing the bases in a single analysis: If you track product margins in a spreadsheet but one supplier quotes markup, you are comparing apples to oranges. Standardize on one basis, usually margin, across your reporting
Limitations of This Calculator
This calculator computes gross markup and gross margin from a single cost and selling price. It does not account for volume discounts, tiered pricing, bundled products, or variable costs that change with quantity. It uses gross profit (price minus cost), not net profit, so it excludes operating expenses, taxes, and overhead. For multi-product businesses, you need to calculate margin per product or use a weighted average. The tool is a quick check for single-unit pricing, not a substitute for a full product profitability analysis or a CPA-reviewed pricing strategy.
Authoritative Research & Resources
- Investopedia - Profit Margin vs. Gross Margin - A clear reference distinguishing margin from markup, with worked examples showing why the two percentages differ for the same transaction.
- SBA - Pricing Your Products and Services - The US Small Business Administration guide to cost-based pricing, explaining how markup and margin fit into a small business pricing strategy.
- Corporate Finance Institute - Margin vs. Markup - A finance-focused breakdown of the two metrics, including the conversion formulas and common errors in financial reporting.