🌐 EN

πŸ“ Margin Calculator (Cost & Margin Calculator)

Enter any two of cost, margin rate, and sale price to calculate the remaining value and profit.

Sale Price
β€”
Cost β€” Sale Price β€” Profit β€”
Margin vs Markup
Margin Rate (of sale price) β€” Markup Rate (of cost) β€”

Margin rate is profit as a percentage of the sale price, while markup rate is profit as a percentage of the cost. For the same profit amount, these two percentages are always different β€” check both together.

Related Calculators Discount Calculator ROI Calculator
GUIDE

Learn more

01

Margin vs Markup: What Is the Difference?

Margin and markup are both related to "profit," but they use different denominators. Margin rate is profit divided by the sale price, while markup rate is profit divided by the cost. For the same dollar profit, these two rates are always different β€” markup rate is always higher than margin rate (when profit is positive). For example, with a cost of $80 and a sale price of $100, profit is $20; margin rate is 20/100 = 20%, while markup rate is 20/80 = 25%.

MetricFormulaExample (cost $80 / price $100)
Margin rateProfit Γ· Sale price20 Γ· 100 = 20%
Markup rateProfit Γ· Cost20 Γ· 80 = 25%

When setting pricing policy, "I want a 20% margin" and "I want a 20% markup" produce different sale prices, so it is essential to be explicit about which basis you mean.
02

Margin Calculation Formulas

Profit = Sale price βˆ’ Cost
Margin rate = Profit Γ· Sale price
Markup rate = Profit Γ· Cost

To find sale price from cost and margin rate: Sale price = Cost Γ· (1 βˆ’ Margin rate). For example, at a cost of $80 with a 20% margin rate, sale price = 80 Γ· 0.8 = $100, profit is $20, and markup rate is 25%.

To find cost from sale price and margin rate: Cost = Sale price Γ— (1 βˆ’ Margin rate). At a sale price of $100 with a 20% margin rate, cost = 100 Γ— 0.8 = $80.
03

Factors to Consider When Setting a Target Margin Rate

A reasonable margin rate varies widely by industry, competitive landscape, and cost structure. Retail commonly runs 20-50% margin, food service 60-70%, and manufacturing 10-30% β€” but these are not hard rules. When setting a margin rate, consider: (1) your break-even point including both fixed and variable costs, (2) competitor pricing and what the market will accept, (3) inventory turnover β€” faster turnover can make a lower margin rate still profitable in total, and (4) whether payment processing fees, shipping, and other overhead are already reflected in your cost basis. Raising margin rate alone increases the sale price and can reduce volume, so it is safer to simulate target total profit alongside expected sales volume.

Frequently asked questions

Why are margin rate and markup rate different?
Margin rate divides profit by the sale price, while markup rate divides profit by the cost. Since the denominators differ, the same profit amount produces two different percentages, with markup rate always being the larger of the two.
What is a good margin rate?
It depends on your industry β€” retail is commonly 20-50%, food service 60-70%, and manufacturing 10-30%. You should also weigh fixed costs, competitor pricing, and inventory turnover when deciding.
How do I set a sale price for a 20% margin?
Sale price = Cost Γ· (1 βˆ’ Margin rate). For example, at a cost of $80 with a target 20% margin, sale price is 80 Γ· 0.8 = $100. Simply adding 20% to the cost instead calculates a markup, not a margin, and gives a different result.
Does this calculator handle negative margins (losses)?
This calculator assumes cost and sale price are greater than 0 and margin rate is between 0% and 100% (exclusive). If your sale price is below cost (a loss), please verify that scenario separately.