About the Margin Calculator
Margin and markup both describe profit, but they use different bases, which is a frequent cause of pricing mistakes. Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A 50% markup is only a 33.3% margin.
Choose what you already know and the calculator fills in the rest. It works forwards (cost and price to margin) and backwards (cost and target margin to price), which is how most pricing decisions are made.
How to Use the Margin Calculator
- Select what you know: cost and price, cost and margin, cost and markup, or price and margin.
- Enter the two values.
- Read the margin, markup, profit, cost and selling price.
Formula and Method
Gross margin
margin % = (price − cost) ÷ price × 100
Profit as a percentage of revenue.
Markup
markup % = (price − cost) ÷ cost × 100
Profit as a percentage of cost.
Price from margin
price = cost ÷ (1 − margin)
Use this to hit a target margin.
Worked Example
Pricing for a 40% margin
Input: Cost $60, target margin 40%
- price = 60 ÷ (1 − 0.40) = 60 ÷ 0.60 = $100
- profit = 100 − 60 = $40
- markup = 40 ÷ 60 = 66.67%
Result: Sell at $100 for a 40% margin, which equals a 66.67% markup.
Frequently Asked Questions
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides profit by the cost. For the same profit, markup is always the larger percentage.
How do I price an item for a 30% margin?
Divide the cost by 0.70. A $70 item priced at $100 gives a 30% margin. Multiplying the cost by 1.30 would give only a 23.1% margin.
Is gross margin the same as net margin?
No. Gross margin considers only the direct cost of goods. Net margin also subtracts overheads, interest and taxes.
Can margin exceed 100%?
Margin cannot exceed 100% because profit cannot exceed revenue. Markup can exceed 100% when the price is more than double the cost.
Related Calculators
Sources and Further Reading
Accuracy and Scope
These calculators provide estimates for planning only and are not financial, tax or investment advice. Actual loan terms, taxes and fees vary by lender and jurisdiction. See our full disclaimer.