Margin Calculator: Find Profit Margin, Gross Profit and Markup
Enter your cost and target gross margin to see the selling price, gross profit and markup in one click. Free, instant and no signup.
See Your Profit Margin in Seconds
Pricing by gut feel is how small shops lose money without noticing. This profit margin calculator shows exactly what to charge to keep the share of each sale you want. Enter a $60 cost and a 40% gross margin, and it returns a $100 selling price, $40 gross profit and a 66.67% markup.
Read moreThe Margin Formula
The margin calculator formula is simple: gross margin = (revenue − cost) ÷ revenue × 100. Gross profit is revenue minus cost. Margin is always a share of the selling price, so it can never reach 100%.
Margin vs Markup
Markup uses cost as the base; margin uses price. The same $60 item sold for $100 has a 40% margin but a 66.7% markup. Mixing them up is the most common pricing mistake, so this works as a margin and markup calculator in one.
| Gross margin | Equivalent markup |
|---|---|
| 20% | 25% |
| 25% | 33.3% |
| 33.3% | 50% |
| 40% | 66.7% |
| 50% | 100% |
To convert margin to markup, use markup = margin ÷ (1 − margin). For markup to margin, use margin = markup ÷ (1 + markup).
Set a Price From a Target Margin
Know the margin you want? Divide cost by (1 − target margin). An item that costs $30 needs a price of $50 for a 40% margin. Enter the cost and the margin, and the calculator does this for you, so you can price a product without trial and error.
Gross, Net and Contribution Margin
A gross margin calculator only subtracts the cost of goods. A net profit margin calculator subtracts every expense, including rent, wages and tax, so it is always lower. A contribution margin calculator subtracts variable costs only, which shows how much each sale adds toward fixed costs.
Margins for Shopify and Retail Stores
Using it as a Shopify profit margin calculator or retail margin calculator? Include everything it costs to land each sale: product cost, shipping in and payment fees. A product selling at $40 with $14 in cost and $1.46 in fees keeps $24.54, a 61.4% margin. Enter the combined cost for a realistic price.
How to Calculate Margin
Select the margin type
Enter your cost
Enter your gross margin
Click Calculate
Margin Calculator FAQs
Common questions about margins.
How do you calculate profit margin?
What is a good profit margin?
What is the difference between margin and markup?
How do I convert markup to margin?
What is gross margin vs gross profit?
How do I calculate net profit margin?
What is contribution margin?
Is this margin calculator free?
Margin set? Check fees and tax.
See what payment fees take with the PayPal Fee Calculator, or price your total with the Sales Tax Calculator.
PayPal Fee CalculatorRaheel Jakhura
CEO / Co-Founder
Our goal is to provide online free tools so you don't have to install any software for basic usages. We are trying to add more tools and make these tools free forever.