Margin Calculator
Calculate gross profit margin, markup percentage, and selling price. Understand the difference between margin and markup to price products correctly.
Margin Calculator
Price per unit or total revenue
Cost per unit or total cost (COGS)
Reverse Calculator
Your cost per unit
Target gross margin percentage
Enter revenue and cost to calculate margins
See gross margin, markup percentage, and detailed analysis
Pro Tip
When setting prices, always work with margin (not markup) to ensure your target profitability. A common shortcut: to achieve a 30% margin, divide your cost by 0.70. For 40% margin, divide by 0.60. This ensures you hit your profit target every time.
Try the Break-Even Calculator →Understanding Margin vs Markup
Margin and markup are two different ways of expressing the same relationship between cost and price, but confusing them is one of the most common and costly mistakes in business. Both measure profitability, but they use different bases for calculation, leading to very different percentages for the same transaction.
Gross margin (or profit margin) expresses profit as a percentage of the selling price (revenue). If you sell a product for $100 and it costs $60, your gross margin is 40% because $40 is 40% of $100. Margin is always the view from the customer-facing side: how much of the revenue is profit.
Markup expresses profit as a percentage of the cost. Using the same example, the markup is 66.7% because $40 is 66.7% of $60. Markup is always the view from the supply side: how much you added on top of cost.
This distinction matters enormously. If a business targets a 40% margin but mistakenly applies a 40% markup, the actual margin achieved is only 28.6%. On $1 million in revenue, this mistake would mean $114,000 less profit than expected. Always clarify whether a target is margin or markup.
Margin can never exceed 100% (that would mean zero or negative cost), while markup has no upper limit. A margin of 50% equals a markup of 100% (you doubled the cost). As margin approaches 100%, markup approaches infinity.
Margin and Markup Formulas
Margin & Markup Formulas
Where:
Gross Profit = Revenue - Cost
Gross Margin % = (Gross Profit / Revenue) x 100
Markup % = (Gross Profit / Cost) x 100
Selling Price from Margin = Cost / (1 - Desired Margin %)
Example
A product costs $60 and sells for $100:
- • Gross Profit = $100 - $60 = $40
- • Gross Margin = $40 / $100 x 100 = 40%
- • Markup = $40 / $60 x 100 = 66.67%
- • Reverse: For 40% margin on $60 cost: $60 / (1 - 0.40) = $100