nutilz

Profit Margin Calculator

Calculate gross profit margin, markup %, and profit — or find the price you need to charge for any target margin.

Calculate from

Gross Profit

$40.00

$100.00 revenue − $60.00 cost

Margin

40.00%

profit ÷ revenue

Markup

66.67%

profit ÷ cost

Cost Ratio

60.00%

cost ÷ revenue

Every $100.00 in revenue → $60.00 cost + $40.00 profit

How to Use This Calculator

This calculator has four modes — choose the one that matches what you already know:

  • Revenue + Cost — Enter your selling price and what the product costs you. The calculator returns gross profit, margin %, and markup %.
  • Cost + Margin % — Enter your cost and the margin percentage you want to achieve. The calculator returns the minimum price you must charge.
  • Cost + Markup % — Enter your cost and your markup percentage. The calculator converts to the equivalent margin and shows the resulting price.
  • Revenue + Margin % — Enter your selling price and your margin. The calculator works backwards to find the implied cost, useful for checking whether a supplier quote fits your target economics.

All four modes display the same three key outputs: Gross Profit in dollars, Margin % (profit ÷ revenue), and Markup % (profit ÷ cost). Results update instantly — no submit button needed.

Profit Margin vs. Markup — The Critical Difference

Margin and markup are the two most commonly confused financial terms in business. Both express profitability as a percentage, but they use different denominators — and this seemingly small difference leads to significant pricing errors.

Formula
Definition
Example ($60 cost, $100 revenue)
Gross Margin
Profit ÷ Revenue
$40 ÷ $100 = 40%
Markup
Profit ÷ Cost
$40 ÷ $60 = 66.67%

The key rule: margin is always lower than markup for any profitable product, because margin divides by the larger number (revenue) while markup divides by the smaller number (cost).

The Most Expensive Mistake in Retail

Many business owners set prices by applying their target margin as a markup. If you want a 40% margin but apply a 40% markup, here is what happens:

  • Product cost: $60
  • 40% markup applied: $60 × 1.40 = $84 selling price
  • Actual gross margin: ($84 − $60) ÷ $84 = 28.6% — not 40%
  • Revenue lost per $100 of target revenue: $16.67

For a business doing $500,000/year in revenue, this confusion costs roughly $83,000 in missed profit annually.

Margin–Markup Conversion Table

Use this table to convert between margin and markup at a glance. To derive the formula: Markup = Margin ÷ (1 − Margin). Margin = Markup ÷ (1 + Markup).

Gross Margin %
Equivalent Markup %
10%
11.1%
15%
17.6%
20%
25.0%
25%
33.3%
30%
42.9%
33.3%
50.0%
40%
66.7%
50%
100.0%
60%
150.0%
66.7%
200.0%

The Three Types of Profit Margin

When reviewing financial statements or benchmarking your business, you will encounter three distinct margin types. Each measures profitability at a different level of the income statement.

1. Gross Profit Margin

= (Revenue − COGS) ÷ Revenue × 100

Measures how efficiently you produce and sell your product. COGS (Cost of Goods Sold) includes raw materials, direct labor, and manufacturing overhead — but not rent, marketing, or administrative salaries. This is the margin this calculator computes. A high gross margin means your core product is profitable; a low gross margin means you have limited room to cover operating costs.

2. Operating Profit Margin (EBIT Margin)

= (Revenue − COGS − Operating Expenses) ÷ Revenue × 100

Operating expenses include rent, utilities, salaries of non-production staff, depreciation, and marketing. This margin shows how efficiently the business is run as a going concern, independent of how it is financed (debt vs. equity) or how taxes are structured. Analysts use EBIT margin to compare companies across different tax jurisdictions and capital structures.

3. Net Profit Margin (Bottom Line)

= Net Income ÷ Revenue × 100

Net income is what remains after subtracting every expense: COGS, operating expenses, interest on loans, and income taxes. This is the true "take-home" percentage. A business with a 45% gross margin might have only a 5% net margin after paying rent on premium retail space, a large sales team, and debt service on equipment financing.

Illustrative Income Statement

Revenue
$500,000
Cost of Goods Sold (COGS)
($200,000)
Gross Profit
60% margin$300,000
Operating Expenses (rent, salaries, marketing)
($175,000)
Operating Profit (EBIT)
25% margin$125,000
Interest + Taxes
($50,000)
Net Profit
15% margin$75,000

What Is a Good Profit Margin? Industry Benchmarks

"Good" is always relative to your industry. A 5% net margin is exceptional for a grocery chain and catastrophic for a software company. Use the table below to compare your margins against typical ranges for your sector.

Industry
Typical Gross Margin
Typical Net Margin
Software / SaaS
70–85%
15–30%
Professional Services
50–70%
15–25%
Healthcare Services
40–55%
5–15%
eCommerce / Online Retail
20–45%
2–5%
Manufacturing
20–40%
5–10%
General Retail
25–50%
2–6%
Restaurant / Food Service
60–72% (food cost basis)
3–9%
Grocery / Supermarket
20–30%
1–3%
Construction
15–25%
2–5%
Auto Dealership
10–20%
2–4%
Financial Services
50–70%
15–30%

Restaurant gross margin is calculated as (Revenue − Food Cost) ÷ Revenue. Net margin after labor, rent, and overhead is dramatically lower. Source: Damodaran Online industry data, 2024 estimates.

What Drives Margin Differences Between Industries?

Industries with high gross margins tend to have: (1) Low variable cost per unit — software is replicated at near-zero cost per user. (2) Strong pricing power — professional services command premium rates because expertise is scarce. (3) Intellectual property or brand moats — pharmaceutical companies earn high margins because patents protect them from generic competition.

Industries with thin margins operate on volume and efficiency — grocery stores profit from turning over inventory rapidly, not from large per-item margins. If you are in a thin-margin industry, small improvements in cost structure can have a disproportionate impact on net profit.

How to Price a Product for a Target Margin

If you know your cost and need to set a price that achieves a specific gross margin, use the Cost + Margin % mode above, or apply this formula:

Selling Price = Cost ÷ (1 − Target Margin)

The (1 − Margin) denominator is often called the cost complement. It converts your target margin into the correct price multiplier.

Worked Examples

Retail Product — 40% Target Margin

  • Product cost (COGS): $60.00
  • Target gross margin: 40%
  • Required price: $60.00 ÷ (1 − 0.40) = $60.00 ÷ 0.60 = $100.00
  • Profit per unit: $100.00 − $60.00 = $40.00
  • Markup applied: $40.00 ÷ $60.00 = 66.7% (NOT 40%)

Restaurant Dish — 72% Food Cost Margin Target

  • Food cost (ingredients): $4.00
  • Target food cost percentage: 28% (i.e., 72% margin)
  • Required menu price: $4.00 ÷ (1 − 0.72) = $4.00 ÷ 0.28 = $14.29
  • Round up to: $14.99 or $15.00
  • Actual food margin: ($14.99 − $4.00) ÷ $14.99 = 73.3%

Freelance Service — 60% Target Margin

  • Direct labor cost (your time at $50/hr × 4 hours): $200.00
  • Target gross margin: 60%
  • Required project quote: $200.00 ÷ (1 − 0.60) = $200.00 ÷ 0.40 = $500.00
  • Gross profit: $500.00 − $200.00 = $300.00
  • This $300 covers overhead and business profit before taxes.

Common Pricing Mistakes to Avoid

  • Applying target margin as a markup. A 40% margin target applied as a 40% markup produces only 28.6% margin. Use the Cost ÷ (1 − Margin) formula instead.
  • Ignoring operating expenses in the margin target. If your operating expenses are 30% of revenue (rent, salaries, marketing), your gross margin must exceed 30% just to break even. Many businesses target 50–70% gross margins to leave room for overhead.
  • Setting price based on competitors without knowing your costs. Your competitor may have better volume discounts, a different cost structure, or may be intentionally underpriced to gain market share. Match their price only if you know you can do so profitably.
  • Forgetting to include all COGS. Freight, packaging, import duties, credit card processing fees (typically 2–3%), and returns should all be included in your cost before applying a margin formula.

How to Improve Profit Margins

Profit margin improvement comes from either increasing revenue without proportionally increasing costs, or decreasing costs without losing revenue. Here are the highest-leverage levers:

📦 Reduce COGS

Negotiate supplier contracts, source alternative materials, consolidate orders to earn volume discounts, or redesign the product to use fewer inputs.

💸 Raise Prices Strategically

Test small price increases (5–10%) on your highest-margin SKUs. Many businesses underestimate their pricing power — if demand is inelastic, revenue rises while costs stay flat.

🔀 Shift the Product Mix

Promote higher-margin products more aggressively. If product A earns 60% margin and product B earns 20%, tilting sales toward A improves blended margins without changing any individual price.

🏭 Reduce Waste and Rework

In manufacturing and food service, material waste and production errors directly inflate COGS. A 2% reduction in spoilage can meaningfully move gross margin.

Automate Low-Value Tasks

Labor is often the largest component of COGS in service businesses. Automating repetitive steps reduces direct labor cost per unit of output.

📊 Track Margin by SKU / Client

Many businesses find that 20% of their products generate 80% of their gross profit — and some products are actively margin-dilutive. Regular per-SKU or per-client margin reporting reveals where to focus.

Frequently Asked Questions

What is profit margin?+
Profit margin is a financial metric that shows how much of each dollar of revenue a business keeps as profit after paying its costs. It is expressed as a percentage: a 40% profit margin means the business keeps $0.40 in profit for every $1.00 in revenue. There are three types: gross profit margin (revenue minus cost of goods sold), operating profit margin (also subtracting operating expenses), and net profit margin (subtracting all expenses, interest, and taxes). When people say "profit margin" in everyday business without qualification, they usually mean gross profit margin.
What is the difference between profit margin and markup?+
Margin and markup both measure profitability but use different denominators. Gross profit margin = profit ÷ revenue × 100. Markup = profit ÷ cost × 100. For the same item: Cost $60, Revenue $100, Profit $40. Margin = 40/100 = 40%. Markup = 40/60 = 66.67%. Margin is always lower than markup for profitable items. Confusing the two is one of the most common pricing mistakes — a business aiming for a 40% margin that accidentally applies 40% markup will earn only 28.6% margin and undercharge by $16.67 per $100 in revenue.
What is a good profit margin?+
There is no universal "good" profit margin — it depends heavily on the industry. Grocery stores run on 1–3% net margins; software companies often exceed 20–30%. For gross margins, retail typically runs 20–50%, restaurants 60–70% gross but only 3–9% net after labor and rent, and SaaS products 70–85% gross. A more useful benchmark is to compare against direct competitors in the same industry. As a general rule, a gross margin below 10% leaves very little buffer for operating expenses, while above 50% is considered strong in most product-based businesses.
How do you calculate gross profit margin?+
Gross profit margin = ((Revenue − Cost of Goods Sold) ÷ Revenue) × 100. Step by step: (1) Subtract the cost of goods sold (COGS) from revenue to get gross profit. (2) Divide gross profit by revenue. (3) Multiply by 100 to express as a percentage. Example: Revenue $150, COGS $90 → Gross Profit = $60 → Gross Margin = (60 ÷ 150) × 100 = 40%. COGS includes direct costs of production — raw materials, direct labor, manufacturing overhead — but not operating expenses such as rent, marketing, or salaries of non-production staff.
What are the three types of profit margin?+
The three main profit margin types are: (1) Gross Profit Margin — revenue minus cost of goods sold (COGS), divided by revenue. Measures production efficiency. (2) Operating Profit Margin — also subtracts operating expenses such as rent, salaries, utilities, and depreciation. Measures how efficiently the core business is run. (3) Net Profit Margin — subtracts all remaining costs including interest on debt and income taxes. This is the "bottom line" percentage that shows how much of every revenue dollar the business ultimately keeps. Net margin is always the smallest of the three for profitable businesses.
Can profit margin be negative?+
Yes — a negative profit margin means the business is selling products or services for less than they cost to produce. If revenue is $80 and cost is $100, gross profit is −$20 and gross margin is −25%. Negative margins are common during startup phases, aggressive discounting campaigns, or when input costs spike unexpectedly. A persistently negative margin is unsustainable — the business is losing money on every sale. This calculator supports negative margin results: if your cost exceeds your revenue, the margin percentage displayed will be negative, signaling a loss.
How do I use profit margin to set prices?+
The most reliable pricing formula is: Selling Price = Cost ÷ (1 − Target Margin). Example: If your cost is $60 and you want a 40% gross margin, the selling price must be $60 ÷ (1 − 0.40) = $100. Common mistakes: (1) Using markup instead of margin in this formula, which gives a lower price than intended. (2) Ignoring operating costs — gross margin must be high enough to cover rent, salaries, marketing, and other overhead while still leaving a net profit. (3) Setting price based on competitors without knowing your own cost structure.
What is the formula to calculate selling price from cost and target margin?+
Selling Price = Cost ÷ (1 − Margin%). For example, to achieve a 30% margin on an item costing $70: Price = $70 ÷ (1 − 0.30) = $70 ÷ 0.70 = $100. This differs from the markup formula (Price = Cost × (1 + Markup%)). A common error is using the markup formula when trying to hit a margin target — a 30% markup on a $70 item gives $91, which is only a 23.1% margin, not 30%. Always use the margin formula (÷ by (1 − margin)) when you have a specific margin target in mind.
Why is my markup percentage higher than my margin percentage?+
Because they use different bases. Margin uses revenue as the denominator; markup uses cost. Since revenue is always greater than cost for a profitable business, the same dollar of profit is a smaller percentage of the larger base (revenue) than of the smaller base (cost). Concretely: $40 profit on $100 revenue = 40% margin. $40 profit on $60 cost = 66.67% markup. The relationship is: Markup = Margin ÷ (1 − Margin). Conversely, Margin = Markup ÷ (1 + Markup). A 50% markup equals a 33.3% margin; a 100% markup equals a 50% margin. Markups are always higher than the equivalent margin.