Profit margin calculator
Find your margin and markup, or the price you need to charge.
This free margin and markup calculator works in your browser. All inputs and calculations run locally on your device without server uploads; details on browser processing and storage are set out in the privacy policy.
Margin versus markup
Both compare profit with something else. Margin is profit as a share of the selling price; markup is profit as a share of the cost. Buying for ₹400 and selling for ₹600 is a 50% markup but a 33.3% margin. Mixing them up is a common pricing mistake: a 40% markup only gives a 28.6% margin.
| Markup | Margin |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 100% | 50% |
| 200% | 66.7% |
What counts as cost
For gross margin, cost is what the item itself cost you: purchase price, shipping in and packaging. Rent, salaries and advertising come out later, in net margin.
Worked example: Why a 50% markup equals a 33.33% profit margin
Suppose your wholesale landed cost for a jacket (including manufacturing and inbound freight) is $40.00, and you sell it to customers for $60.00:
- Gross profit in dollars: `Selling Price − Cost = $60.00 − $40.00 = $20.00`.
- Gross profit margin (% of selling price): Divide profit by revenue: `($20.00 ÷ $60.00) × 100 = 33.33%`. Out of every $1.00 of sales revenue, $0.333 is gross profit and $0.667 covers cost of goods sold.
- Markup (% added to cost): Divide profit by cost: `($20.00 ÷ $40.00) × 100 = 50.00%`. You marked the $40.00 cost up by 50% to reach $60.00.
- Setting a price for a target 40% margin on a $40.00 cost: Divide cost by `(1 − 0.40)`: `$40.00 ÷ 0.60 = $66.67` selling price (which requires a `66.67%` markup).
Limits and what this tool cannot do
- Gross margin only (excludes overhead, ad spend, and taxes): This calculator computes unit gross profit (`Revenue − COGS`). Payment gateway fees (e.g., 2.9% + $0.30), return rates, customer acquisition cost (CAC), rent, payroll, and income taxes must be deducted separately to find net profit margin.
- Margin cannot reach or exceed 100%: As LONG as unit cost is greater than zero, gross margin (`(Price − Cost) / Price`) is strictly less than 100%. (A 100% markup on cost equals a 50% gross margin; a 200% markup equals a 66.67% margin.)
- Sales tax / VAT / GST should be excluded from selling price: Always enter your net ex-tax selling price and net ex-tax cost so pass-through government taxes do not inflate your apparent revenue.
Questions
What is a good profit margin?
It depends on the trade. Grocery retail often runs under 5% net, while software and services can exceed 20%. Compare with your own industry.
How do I price for a 30% margin?
Divide the cost by 0.7. Choose “Cost and the margin I want” above.
What happens if I want a 30% margin on a $100 cost and accidentally multiply $100 × 1.30 = $130?
If you sell for $130 on a $100 cost, your $30 profit is a 30% *markup*, which gives only a `30 ÷ 130 = 23.08%` gross margin—costing you nearly 7 percentage points of margin. For a true 30% margin, divide `$100 ÷ (1 − 0.30) = $142.86`.
How do I convert markup % directly to margin %?
Use `Margin = Markup ÷ (1 + Markup)`. For example, a 25% markup (`0.25`) equals `0.25 ÷ 1.25 = 0.20` (20% margin).
How do I convert margin % directly to markup %?
Use `Markup = Margin ÷ (1 − Margin)`. For example, a 25% margin (`0.25`) requires a `0.25 ÷ 0.75 = 0.3333` (33.33% markup).
Related converters and guides
- Percentage calculatorPercent of a number, percentage change, and what percent one number is of another.
- Discount calculatorSale price, money saved, stacked discounts and tax.
- GST calculatorAdd or remove GST at 5%, 18%, 40% or any rate, with CGST and SGST.
- CAGR calculatorCompound annual growth rate between two values.