Profit Margin Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free profit margin calculator. Enter cost and price to get profit, gross margin and markup, or enter a target margin to find the right price.
- Profit
- 0
- Gross margin
- 0
- Markup
- 0
- Price for target margin
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the profit margin calculator
Enter what an item costs you and what you sell it for. The profit margin calculator instantly shows:
- Profit per item (price minus cost),
- Gross margin, the share of the selling price that's profit,
- Markup, the profit as a share of the cost.
To work backwards, enter the cost and a target margin: the calculator shows the price you need to charge to hit it. For example, with a cost of 4.20 and a target margin of 60%, you need to charge 10.50.
It works with any currency, since it only does the maths. Nothing you enter is sent or stored; the profit margin calculator runs in your browser.
The formulas
Profit = Price − Cost
Gross margin (%) = (Price − Cost) ÷ Price × 100
Markup (%) = (Price − Cost) ÷ Cost × 100
Price for a target margin = Cost ÷ (1 − Margin ÷ 100)
Example: a loaf costs 4.20 to make and sells for 9.00.
- Profit = 9.00 − 4.20 = 4.80
- Margin = 4.80 ÷ 9.00 = 53.33%
- Markup = 4.80 ÷ 4.20 = 114.29%
Same sale, two very different percentages. That difference is the most common source of pricing mistakes.
Margin versus markup
Margin and markup both describe profit, but against different bases:
- Margin compares profit with the selling price. It answers: "Of every sale, how much do I keep?"
- Markup compares profit with the cost. It answers: "How much did I add on top of what it cost me?"
Markup is always the bigger number (for a profitable item), and the gap widens as prices rise:
| Markup | Equivalent margin |
|---|---|
| 25% | 20% |
| 33.33% | 25% |
| 50% | 33.33% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.67% |
| 300% | 75% |
The classic mistake
A shop owner wants a 50% margin and adds 50% to the cost. An item costing 10 is priced at 15. But the margin on that sale is 5 ÷ 15 = 33.33%, not 50%. To get a 50% margin, the price must be 20 (a 100% markup). Use the target margin field to avoid this: enter the cost and the margin you want, and the profit margin calculator gives the correct price.
A margin of 100% is impossible
A margin is a share of the price, so it can never reach 100% unless the cost is zero. As the target margin gets close to 100%, the required price shoots up towards infinity. The calculator tells you when a target isn't possible. Markup has no such ceiling: a 300% or 500% markup is perfectly possible.
What "cost" should include
The numbers are only as good as the cost you enter. For gross margin, include the direct costs of making or buying what you sell:
- Products you resell: the purchase price, plus shipping to you, import duties and payment fees on the purchase.
- Products you make: ingredients or materials, packaging, and the direct labour to make each unit.
- Services: the direct time and materials for the job, such as a contractor's hours.
Leave out overheads such as rent, insurance, marketing and software for gross margin. Those are covered by your margin, which is why it needs to be healthy. If you include every cost, you're calculating something closer to net margin, which is also useful but answers a different question.
Don't forget costs that come off each sale: card processing fees (often around 1.5% to 3% plus a fixed fee), marketplace commissions, delivery and sales-tax handling. A 60% margin can shrink quickly once platform fees are taken out.
What's a good profit margin?
It depends heavily on the industry. These are rough, typical gross margin ranges, for orientation only:
| Business type | Typical gross margin |
|---|---|
| Grocery and supermarkets | 20% to 30% |
| Restaurants (food cost basis) | 60% to 70% |
| Bakeries | 50% to 70% |
| Clothing retail | 50% to 60% |
| Handmade goods | 50% to 75% |
| Software and digital products | 70% to 90% |
| Services and consulting | 50% to 70% |
Restaurants often talk about food cost percentage instead: the cost of ingredients as a share of the menu price. A 30% food cost is the same as a 70% gross margin on food.
A "good" margin is one that covers all your overheads and still leaves a profit at the volume you can realistically sell. A low-margin business can work with high volume; a small business with low volume usually needs higher margins.
Using margins to price
- Work out your true unit cost. Include everything in the "cost" section above.
- Decide the margin you need. Look at your overheads and how many units you expect to sell each month, and work out what margin covers them with profit to spare.
- Calculate the price. Enter cost and target margin; the profit margin calculator shows the price.
- Check the market. Compare with competitors. If the price is far above the market, look at reducing costs or adding value that justifies it.
- Round sensibly. 10.47 might become 10.50 or 10.95. Re-check the margin at the rounded price.
A worked example: pricing a new loaf
A bakery is launching a seeded rye. Per loaf, ingredients cost 2.60, the bag and label 0.35, and the baker's time works out at 0.55. The unit cost is 3.50.
The owner wants a 65% gross margin, in line with the rest of the range. In the profit margin calculator, cost 3.50 and target margin 65% give a price of exactly 10.00.
Rounding to a friendlier 9.95, the calculator shows a margin of 64.82% and a profit of 6.45 per loaf: close enough to the target.
Most customers pay by card. At a processing fee of 2.9% plus 0.30 per transaction (a common rate; yours may differ), each 9.95 sale costs about 0.59 in fees. Adding that to the cost, the margin falls to 58.91%, with 5.86 profit per loaf. Still healthy, but it shows why fees belong in the cost when you price.
Discounts eat margin fast
A 20% discount doesn't reduce your profit by 20%; it reduces the price by 20%, and the cost stays the same. On an item with a 40% margin, a 20% discount halves the profit per sale. To keep the same total profit, you'd need to sell twice as many. Use the discount calculator to see the sale price, then put that price into the profit margin calculator with your cost to see what's left.
Margin, markup and your listings
Pricing is half of selling; the other half is explaining why the product is worth it. If you mostly think in markup, the markup calculator works from cost and markup percentage directly.
Accuracy notes
- The profit margin calculator shows results to two decimal places but calculates with full precision, so rounding doesn't build up.
- It doesn't add or remove sales tax or VAT. Enter prices consistently, either both without tax (recommended for margins) or both with it.
- Negative profit is shown when the price is below the cost, along with a note that each sale loses money.
A quick check before you act on the number: make sure cost includes everything it takes to deliver one sale, such as shipping, payment fees and packaging, not just the purchase price. Margin built on an incomplete cost always looks better than it is.
Know your margins? Then you know your max CPC
Once you know what a sale is worth, you know what a click is worth, and that is the number a Google Ads account should be built around. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.
Frequently asked questions
How do I calculate profit margin?
Subtract the cost from the selling price, divide by the selling price, and multiply by 100. A product that costs 6 and sells for 10 has a margin of (10 − 6) ÷ 10 × 100 = 40%.
What's the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A 50% markup equals a 33.33% margin, and a 100% markup equals a 50% margin.
How do I find the price for a target margin?
Divide the cost by (1 minus the margin as a decimal). For a 60% margin on a cost of 4, the price is 4 ÷ 0.4 = 10. The profit margin calculator does this when you enter a target margin.
Can a profit margin be more than 100%?
No. A margin is a share of the price, so it's always below 100% when there's any cost. Markup, however, can be well over 100%.
Should I include VAT or sales tax?
For margins, use prices without sales tax or VAT, because that tax isn't your income. Whatever you choose, use the same basis for cost and price.
Is my data stored?
No. The profit margin calculator runs in your browser and doesn't send or save your numbers, so it's safe to use with real supplier prices and costs.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.