Example: Cost = $60, Selling price = $100, Profit = $40
Margin = $40 ÷ $100 × 100 = 40%
Markup = $40 ÷ $60 × 100 = 66.67%
Tool 11 of 22
Find gross margin %, markup, and gross profit. Switch modes to solve for revenue, cost, or margin.
Gross profit
—
Margin
—
Markup
—
Profit margin (also called gross margin) is the percentage of revenue that remains after subtracting the cost of goods sold. It tells you how efficiently a business converts sales into profit. A 40% gross margin means that for every $1 of revenue, $0.40 is profit and $0.60 covers costs.
The core formula is: Gross Margin % = (Revenue − Cost) ÷ Revenue × 100. This calculator solves all three directions — give it any two of Revenue, Cost, and Margin % and it calculates the third instantly.
Margin and markup both measure profitability on the same product, but they use a different denominator. Margin divides profit by revenue; markup divides profit by cost. Because cost is always less than revenue (for a profitable product), markup is always a higher percentage than margin.
Example: Cost = $60, Selling price = $100, Profit = $40
Margin = $40 ÷ $100 × 100 = 40%
Markup = $40 ÷ $60 × 100 = 66.67%
A common pricing question is: "My cost is $X and I want a Y% margin — what should I charge?" The formula is:
For a $50 cost with a 40% target margin: $50 ÷ (1 − 0.40) = $50 ÷ 0.60 = $83.33. Switch to the "Cost + Margin %" tab above to calculate this in one step.
| Industry | Typical gross margin |
|---|---|
| Software / SaaS | 60–80% |
| Pharmaceuticals | 55–75% |
| Professional services | 25–40% |
| Food & beverage manufacturing | 20–35% |
| Retail (general) | 20–35% |
| Grocery / supermarkets | 25–30% |
| Restaurants | 60–70% (food cost ~30–40%) |
| Construction | 15–25% |
| eCommerce | 10–30% |
Profit margin measures how much of every dollar in revenue a business keeps as profit. It's one of the most fundamental metrics in business and finance — used by entrepreneurs to set prices, investors to evaluate companies, and managers to benchmark performance against competitors.
Both formulas measure the same profit — but from different angles. Margin expresses profit as a fraction of the selling price. Markup expresses it as a fraction of the cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.67% markup.
If you know your cost and want to achieve a specific margin, use this formula:
Example: your product costs $30 and you want a 40% margin. Price = $30 ÷ 0.60 = $50. At $50, your profit is $20, which is 40% of revenue.
A common pricing mistake is confusing margin and markup. If you want a 50% margin and add a 50% markup to your $100 cost, you'd price at $150 — but your actual margin is only 33.3% ($50 ÷ $150). To achieve a true 50% margin, you need a 100% markup: $100 × 2 = $200, giving $100 profit on $200 revenue = 50% margin.
Profit margin (also called gross margin) is the percentage of revenue that remains as profit after subtracting the cost of goods sold. Formula: Margin % = (Revenue − Cost) ÷ Revenue × 100. A 40% margin means 40 cents of every dollar earned is profit.
Gross margin only subtracts the direct cost of goods sold (COGS) from revenue. Net margin subtracts all expenses — including operating costs, interest, and taxes — and is therefore always lower. This calculator computes gross margin.
Margin is profit as a percentage of revenue (selling price). Markup is profit as a percentage of cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.67% markup. They measure the same profit from different reference points — margin is how much you keep; markup is how much you add.
It depends on your industry. Typical gross margins: SaaS/software 60–80%, pharmaceuticals 55–75%, professional services 25–40%, retail (general) 20–35%, eCommerce 10–30%, construction 15–25%. Note that gross margin is not the same as net profit margin — after subtracting operating costs, salaries, and taxes, net margins are much lower.
Use the formula: Selling Price = Cost ÷ (1 − Margin% ÷ 100). For a $50 cost with a 40% target margin: $50 ÷ (1 − 0.40) = $50 ÷ 0.60 = $83.33. Use the "Cost + Margin %" tab in this calculator to do this instantly.
Yes. A negative margin means you are selling below cost — spending more than you earn. This is common during early-stage growth phases but is unsustainable long-term.
A 50% gross margin is excellent in most industries. It means half of every dollar of revenue is profit before operating expenses. Industries like software and pharmaceuticals routinely achieve this; physical retail rarely does.
Discount Calculator
Find the sale price after any % off.
Sales Tax Calculator
Add or remove tax from any price.
Percentage Calculator
What is X% of Y?
Reverse Percentage
Find the original value before a % was applied.
Percentage Change
How much did a value change?
What Percent of X is Y
Find what percentage one number is of another.