How to use the Profit Margin Calculator
- Choose your currency. It only changes how amounts are displayed; the maths is the same.
- Enter the cost per unit (cost of goods sold) and the selling price per unit.
- Optionally add operating cost per unit, such as shipping, payment fees, or your share of overhead, to see net margin as well as gross margin.
- Enter how many units you sell to see totals for revenue and profit.
- Use the target margin box to work backwards from the margin you want to the price you need.
How it works
Margin and markup use the same profit figure but divide it by different bases. Margin divides profit by the selling price, so it reaches 100% only when cost is zero. Markup divides profit by cost, so it has no upper limit.
Net margin subtracts the operating cost per unit as well as the product cost. If net profit is negative, the calculator shows the loss per unit instead of hiding it.
To find the price for a target margin, the formula is rearranged: price equals cost divided by one minus the margin.
Gross profit = Price − Cost
Gross margin % = Gross profit ÷ Price × 100
Markup % = Gross profit ÷ Cost × 100
Net margin % = (Price − Cost − Operating cost) ÷ Price × 100
Target price = Cost ÷ (1 − Target margin ÷ 100)Worked example: a product that costs 45 and sells for 100
Gross profit is 100 − 45 = 55. Gross margin is 55 ÷ 100 = 55%. Markup is 55 ÷ 45 = 122.22%. The same 55 of profit is a 55% margin and a 122% markup, which is why the two terms are often confused.
Adding 15 of operating cost per unit leaves 40 of net profit, a 40% net margin. At 250 units, revenue is 25,000 and net profit is 10,000.
To reach a 60% gross margin on a cost of 45, the price must be 45 ÷ (1 − 0.60) = 112.50.
| Measure | Value |
|---|---|
| Gross margin | 55% |
| Markup on cost | 122.22% |
| Net margin (15 operating cost) | 40% |
| Price for 60% margin | 112.50 |
Limitations
- Costs are entered per unit. If your overhead is a fixed monthly amount, divide it by the units you expect to sell, or use the break-even calculator instead.
- The calculator does not include sales tax or VAT. Enter prices without tax so margins reflect what you keep.
- Discounts, returns, and refunds reduce real margin. Use your average selling price after discounts for a realistic figure.
Frequently asked questions
What is the difference between margin and markup?
Both use the same profit. Margin is profit as a share of the selling price; markup is profit as a share of cost. A product bought for 50 and sold for 100 has a 50% margin and a 100% markup.
How do I convert markup to margin?
Margin = Markup ÷ (100 + Markup) × 100. A 50% markup is a 33.33% margin. In the other direction, Markup = Margin ÷ (100 − Margin) × 100.
What is a good profit margin?
It depends on the industry, operating costs, and accounting period. Compare businesses with a similar cost structure, and distinguish gross margin from net margin. There is no universal target.
Can gross margin reach 100%?
With a positive selling price and nonnegative cost, gross margin can reach 100% when cost is zero, but cannot exceed it. Markup is undefined at zero cost and has no upper limit when cost is positive.
Should shipping be included in cost of goods sold?
Inbound shipping to get stock to you is usually part of COGS. Outbound shipping to customers is often treated as an operating cost. Enter it in whichever field matches how you account for it, and be consistent.