📉 Margin Calculator
Calculate gross margin percentage from your selling price and cost. Essential for pricing and profitability.
Enter Your Values
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%.