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.
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).
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
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.
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:
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?+
What is the difference between profit margin and markup?+
What is a good profit margin?+
How do you calculate gross profit margin?+
What are the three types of profit margin?+
Can profit margin be negative?+
How do I use profit margin to set prices?+
What is the formula to calculate selling price from cost and target margin?+
Why is my markup percentage higher than my margin percentage?+
Related Tools
ROI Calculator
Calculate return on investment — ROI %, net profit, annualized ROI and break-even.
Discount Calculator
Find sale price after discount, or work backwards to find discount % or original price.
Salary Calculator
Convert hourly wage to annual salary. See weekly, monthly and take-home pay.
Compound Interest
Calculate investment growth with compound interest and contributions.
Loan Calculator
Calculate monthly EMI, total interest and amortization schedule for any loan.