Economics Researcher · Reviewed by Commercial Pricing Advisory Board
Updated: October 19, 2026
1. The Pricing Trap
A small reseller buys a product for $70, adds 30%, and sells it at $91. She feels comfortable. Thirty percent is a healthy number, and the arithmetic looks right: $70 × 1.30 = $91. Then the month ends and the account is empty.
The problem is not the markup. It is the word she used for it. A 30% markup produces a 23.1% gross margin, because the $21 of profit is measured against the $91 she charged, not the $70 she paid: $21 ÷ $91 = 23.08%. Her operating costs (payment fees, software, storage, ads, her own time) run at about 25% of revenue. A 23.1% margin cannot cover a 25% cost base, so she loses roughly 1.9 cents on every dollar she sells, and the more she sells, the faster she loses it.
This is the pricing trap, and it is the quietest way to run out of cash. Markup and margin both measure profit, but they measure it against different bases. People who think in markup quote prices that look generous, and people who read financial statements in margin discover that the generosity was never there. The two numbers are always different, they are only equal at zero, and the gap widens as the percentage grows.
The profit margin calculator above exists to close that gap before it costs you money. You enter what a product or project costs and what you plan to charge, and it shows your gross profit, your gross margin, and your markup side by side. Or you enter the margin you need and it tells you the price that delivers it. Use it before you send an invoice, list a product, or accept a fixed-price quote, because the right time to find out a price is too low is before you have committed to it. The rest of this guide explains every number the tool shows, how to calculate costs correctly for different kinds of business, and what discounting really does to your profit.
2. Margin vs. Markup: The Fatal Mistake
The two formulas
Both measures start with the same quantity, gross profit, which is revenue minus the direct cost of what you sold. They differ only in what they divide by.
Gross profit = Revenue − Cost
Margin = (Revenue − Cost) ÷ Revenue
Markup = (Revenue − Cost) ÷ Cost
Margin answers the question "what share of every dollar I collect is profit?" Markup answers "by what percentage did I increase my cost?" Margin is the number that appears on financial statements, in investor conversations, and in benchmarks. Markup is the number that is easiest to apply at the till, which is exactly why it causes trouble.
The worked example
A product costs $100 and sells for $150.
Gross profit = $150 − $100 = $50
Markup = $50 ÷ $100 = 50.0%
Margin = $50 ÷ $150 = 33.3%
The same $50 of profit is a 50% markup and a 33.3% margin. Neither figure is wrong, and they describe the same transaction. The danger is in mixing them up. If you plan for a 50% margin and apply a 50% markup, you have priced for a 33.3% margin, and you are short by a third of your target.
The markup that does not give you the margin you want
The gap between the two grows quickly. Here is a $100 cost at increasing markups:
| Markup | Price | Gross profit | Margin |
|---|---|---|---|
| 25% | $125.00 | $25.00 | 20.0% |
| 50% | $150.00 | $50.00 | 33.3% |
| 100% | $200.00 | $100.00 | 50.0% |
| 200% | $300.00 | $200.00 | 66.7% |
A markup can exceed 100% (you can mark a product up by 200%), but a margin can never reach 100%, because that would mean the product cost nothing. That asymmetry is a useful warning: if your margin is above about 80%, check that you have counted every cost.
Converting between the two
The conversion is exact, and it is worth keeping in front of you.
Markup = Margin ÷ (1 − Margin)
Margin = Markup ÷ (1 + Markup)
Price = Cost ÷ (1 − Margin) = Cost × (1 + Markup)
| If you want this margin | You need this markup |
|---|---|
| 10% | 11.1% |
| 20% | 25.0% |
| 30% | 42.9% |
| 40% | 66.7% |
| 50% | 100.0% |
| 60% | 150.0% |
| 75% | 300.0% |
Notice how steeply the required markup rises. A business that wants a 50% margin must double its cost, not add 50% to it. A business that wants 75% must multiply cost by four.
Why this matters for discounting
Margin is the measure that tells you how much room you have to discount. On the $150 product, a 10% discount takes the price to $135. The cost has not changed, so the profit falls from $50 to $35, a 30% drop in profit from a 10% drop in price. A markup view hides this, because the markup only slips from 50% to 35%, which sounds like a modest haircut. The margin view shows the truth: the margin falls from 33.3% to 25.9%, and the profit on every unit is down by almost a third.
3. How to Use the Gross Profit Margin Calculator
The gross profit margin calculator on this page takes a small number of inputs and returns the figures a pricing decision needs. Here is what each variable means, and how to use it.
The four variables
- Cost (COGS). What it costs you to deliver one unit of what you sell: a product, a project, a month of a subscription. This must include every direct cost.
- Revenue (price). What the customer pays, excluding sales tax or VAT. Tax collected for a tax authority is not your revenue.
- Gross profit. Revenue minus cost, in dollars. It shows how much each sale contributes toward your overhead and your own income.
- Gross margin. Gross profit as a percentage of revenue. This is the figure to compare against benchmarks and against your overhead.
Forward calculation: "what am I earning?"
Enter the cost and the price. The calculator returns gross profit, gross margin, and markup. Take a $50 cost sold at $80:
Gross profit = $80 − $50 = $30
Margin = $30 ÷ $80 = 37.5%
Markup = $30 ÷ $50 = 60.0%
Reverse calculation: "what should I charge?"
The reverse calculation is the feature that most often changes a price. Instead of starting with the price, you start with the margin you need and let the calculator return the price. The formula is:
Price = Cost ÷ (1 − Target margin)
Example: "I want a 40% margin on a $50 cost. What should my price be?"
Price = $50 ÷ (1 − 0.40) = $50 ÷ 0.60 = $83.33
Check = ($83.33 − $50) ÷ $83.33 = 40.0% ✔
The shortcut most people take is to add 40% to the cost, which gives $50 × 1.40 = $70.00. At $70, the margin is only $20 ÷ $70 = 28.6%. The error is $13.33 per unit, which is exactly the gap between markup and margin in practice.
| Target margin | Price on a $50 cost | Wrong price (cost × (1 + margin)) | Actual margin at wrong price |
|---|---|---|---|
| 20% | $62.50 | $60.00 | 16.7% |
| 30% | $71.43 | $65.00 | 23.1% |
| 40% | $83.33 | $70.00 | 28.6% |
| 50% | $100.00 | $75.00 | 33.3% |
| 60% | $125.00 | $80.00 | 37.5% |
4. Massive, Exhaustive FAQ
What is an omni margin calculator?
People use the phrase for a margin calculator that blends several sales channels (an omnichannel view). The correct method is to add the gross profit dollars from every channel and divide by total revenue, not to average the channel percentages.
What is a good profit margin?
It depends on the industry. As rough ranges, SaaS gross margins are often 70% to 85%, e-commerce 40% to 60%, retail 25% to 50%, and agencies 45% to 60%. Restaurants run low net margins, often in the low single digits to high single digits.
How do I calculate net profit margin from gross profit margin?
Subtract operating expenses, interest, and taxes, expressed as a percentage of revenue, from the gross margin. Net margin = (revenue - COGS - operating expenses - interest - taxes) / revenue.
Does a margin calculator work for VAT-inclusive prices?
Use VAT-exclusive figures. Divide a VAT-inclusive price by 1 plus the VAT rate before calculating margin, because VAT is collected for the tax authority and is not your revenue.
What is the difference between margin and markup?
Margin is profit divided by revenue. Markup is profit divided by cost. A product that costs $100 and sells for $150 has a 50% markup but only a 33.3% margin.
5. About the Author & Methodology
Santanu Sarma is an economics researcher and the creator of GetInvoicePDF.com. His background is in the economics of public finance and econometrics, and he builds free financial tools for independent professionals to help protect B2B margins against inflation, mispricing, and invisible payment processing fees.