📉 Margin Calculator

Calculate gross margin percentage from your selling price and cost. Essential for pricing and profitability.

Enter Your Values

What you charge or earn
What it costs to produce or buy

Gross Margin vs Markup — Why the Difference Matters

Margin and markup both express the relationship between cost and selling price, but they use different denominators and produce different percentages from the same numbers. Margin = (Revenue − Cost) ÷ Revenue × 100. Markup = (Revenue − Cost) ÷ Cost × 100. On a product that costs $60 and sells for $100: margin = 40%, markup = 66.7%. The margin is always lower than the markup when both are positive.

This difference creates real problems when business owners confuse the two. If you want to achieve a 40% margin and mistakenly apply a 40% markup instead, your actual margin will be 28.6% — significantly below your target. Over thousands of transactions, that gap between intended and actual margin erodes profitability substantially. Always confirm which calculation your pricing models and financial systems are using.

Retail businesses typically think in margin terms, since this aligns with how income statements are structured. A retailer targeting a 45% gross margin knows that for every $100 of revenue, $55 goes to cost of goods. Wholesalers and manufacturers often think in markup terms — "we mark up our cost by 50%" — because they're adding value to materials they've purchased and want to express that premium over their own cost base.

Pricing strategy uses both concepts. Competitive pricing requires knowing your margin, because you need to understand how low you can go on price before you're selling at a loss. Value-based pricing requires understanding your markup — you're pricing based on the value delivered to the customer, which may support a markup of 200–500% over direct cost in high-value service or software markets.

Target margin pricing: if you have a target gross margin and you know your cost, work backwards to find the required selling price. Selling Price = Cost ÷ (1 − Target Margin). For a 40% margin on a $60 cost item: $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100. Use the Markup Calculator on CalForge to work in the opposite direction.

How to Calculate Profit Margin

Gross profit margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100. Net profit margin = Net Profit ÷ Revenue × 100. Margin measures how much of each dollar of revenue is kept as profit after costs.

Margin and markup are related but different: margin is profit as a percentage of selling price; markup is profit as a percentage of cost. A 50% markup on a $10 item gives a selling price of $15 but a margin of only 33.3%, not 50%.

Frequently Asked Questions

What is a good profit margin? +
It depends heavily on industry. Grocery retail: 1-3%. Restaurant: 3-9%. Software (SaaS): 60-80%. Consulting: 20-40%. Manufacturing: 5-20%. Compare your margin to industry benchmarks rather than an absolute target. Improving margin by 1-2 percentage points can significantly increase profitability.
What is the difference between margin and markup? +
Margin is profit divided by selling price. Markup is profit divided by cost. On a product costing $60 and selling for $100: profit = $40. Margin = $40 ÷ $100 = 40%. Markup = $40 ÷ $60 = 66.7%. Always clarify which metric is being discussed in pricing conversations.
How do I improve my profit margin? +
Either increase revenue (raise prices, sell more volume) or reduce costs (lower COGS, cut overheads). Raising prices on existing customers is often the fastest lever if the market allows it. Even a 5% price increase with no volume loss goes directly to margin.