Profit Margin Calculator: Margin, Markup and Pricing Explained
Pricing a product incorrectly — even by a few percentage points — can quietly erode profitability across thousands of transactions. This guide explains profit margin and markup, shows the formulas behind both, and walks through how to use the free profit margin calculator to price products confidently.
What Is Profit Margin?
Profit margin is the percentage of revenue that remains as profit after deducting the cost of the product. It answers the question: of every dollar a customer pays, how many cents do you keep as gross profit?
The formula is:
Profit Margin (%) = ((Selling Price − Cost) / Selling Price) × 100
For example, if a product costs $40 to make and sells for $100:
- Gross profit = $100 − $40 = $60
- Margin = ($60 / $100) × 100 = 60%
This means 60 cents of every dollar in revenue is gross profit — available to cover operating expenses (rent, payroll, marketing, software) and ultimately generate net profit.
What Is Markup?
Markup is also a profit ratio, but the base is cost rather than selling price. It answers: how much above cost did I price this product?
Markup (%) = ((Selling Price − Cost) / Cost) × 100
Using the same example: profit of $60 on a cost of $40 gives a markup of:
- Markup = ($60 / $40) × 100 = 150%
The selling price is 150% above the cost price — or equivalently, the selling price is 2.5× the cost (cost × 2.5 = $100).
Margin vs Markup — Why the Distinction Matters
The two figures describe the same transaction but from different directions — margin looks backward from revenue, markup looks forward from cost. Confusing them is a common and costly pricing mistake that occurs daily in wholesale agreements, supplier negotiations, and accounting.
| Markup | Equivalent Margin | Common context |
|---|---|---|
| 10% | 9.1% | Low-margin commodity resellers |
| 20% | 16.7% | Grocery, food service |
| 25% | 20.0% | General manufacturing |
| 50% | 33.3% | General retail |
| 100% | 50.0% | Wholesale to retail (keystone pricing) |
| 200% | 66.7% | Luxury goods, specialty products |
| 400% | 80.0% | Software, SaaS products |
A critical real-world example: a buyer who tells a supplier “we need 40% margin” and a supplier who quotes “40% markup” are not agreeing on the same number. A 40% markup produces a margin of only 28.6%, not 40%. Ensuring both parties use the same definition prevents expensive misunderstandings in contracts and wholesale agreements.
How to Calculate Selling Price from a Target Margin
If you know your cost and need to hit a specific margin, use this formula:
Selling Price = Cost / (1 − Target Margin%)
For a product costing $60 with a target margin of 40%:
Selling Price = $60 / (1 - 0.40)
= $60 / 0.60
= $100This formula is different from markup pricing, where you would do: $60 × (1 + 0.40) = $84. That produces a margin of 28.6%, not 40%. The margin pricing formula correctly works backward from the revenue figure.
The profit margin calculator handles both directions automatically in its Cost + Target Margin mode.
How to Use the Profit Margin Calculator
- Open the Profit Margin Calculator
- Choose a mode: Cost + Price calculates margin and markup from known figures; Cost + Target Margin finds the selling price you need to hit a specific margin
- Enter your cost price and either the selling price or your target margin percentage
- Click Calculate to see gross profit, margin %, markup %, and a visual cost/profit breakdown
Industry-Specific Margin Benchmarks
Margin targets vary dramatically by industry based on cost structures, competitive intensity, and customer price sensitivity:
| Industry | Typical Gross Margin | Typical Net Margin | Key driver |
|---|---|---|---|
| Grocery retail | 20–30% | 1–4% | High volume; thin margins offset by scale |
| General retail (apparel) | 40–60% | 5–15% | Brand premium; seasonal inventory risk |
| Restaurant / food service | 60–70% (food cost 30–40%) | 3–9% | High labor and overhead costs post-gross |
| Manufacturing | 20–40% | 5–15% | Variable cost of goods; scale matters |
| Software (SaaS) | 70–85% | 10–30% | Near-zero marginal cost of additional users |
| Professional services | 30–50% | 15–25% | Labor is the primary cost |
| E-commerce | 30–50% | 5–15% | CAC (customer acquisition cost) is a major variable cost |
These benchmarks are guidelines, not rules. A business can profitably operate below industry average gross margins if it has lower-than-average operating costs, or above average if it commands a pricing premium through brand, quality, or network effects.
Advanced Pricing Workflows
Gross vs net margin
The profit margin calculator computes gross margin — the margin after subtracting the direct cost of producing the good or service (cost of goods sold, or COGS). Gross margin does not account for operating expenses (rent, payroll, marketing, software, depreciation, interest). Net margin subtracts all operating expenses from gross profit:
Net Margin (%) = Net Profit / Revenue × 100
where Net Profit = Gross Profit − Operating Expenses − Interest − Taxes.
Gross margin informs pricing — setting prices high enough to cover COGS and leave room for overhead. Net margin informs business viability — whether the overall business model is sustainable after all costs.
Blended margin across a product range
Not every product in a range needs the same margin. High-volume, low-differentiation products often run on thin margins to attract customers or beat competition. Premium or exclusive products can sustain 60–80% margins. A healthy product portfolio has a mix — calculate margin per SKU and use a weighted average to understand your portfolio-level gross margin. If your blended margin is too low, either the product mix needs adjusting (more high-margin products) or pricing needs to increase.
Accounting for discounts and returns
If you regularly offer discounts (seasonal sales, negotiated enterprise pricing, bulk order discounts) or accept returns (standard in e-commerce and retail), your effective margin is lower than the nominal margin at list price. Factor these into your margin target:
- Average discount rate: if you discount 15% on average across sales, your effective price is 85% of list
- Return rate: if 5% of items are returned, your effective revenue is 95% of gross sales
- A nominal 40% gross margin with a 15% average discount and 5% return rate becomes approximately 29%
Minimum viable margin for break-even
Before setting a price, calculate the gross margin needed to cover total fixed costs at expected sales volume:
Break-even Margin Floor = Fixed Costs / Projected Revenue
If your fixed monthly costs are $30,000 and you project $100,000 in revenue, you need at least 30% gross margin to break even. Any pricing below this means growing revenue actually increases losses — a dangerous trap for fast-growing businesses.
Contribution margin and SKU profitability
For businesses with many SKUs, contribution margin (selling price minus variable costs only) helps identify which products should be promoted, discontinued, or repriced. A product with a 15% gross margin but very low variable costs may contribute significantly to covering fixed costs. A product with 40% gross margin but high variable costs (packaging, shipping, returns) may contribute very little. Calculate contribution margin per SKU for a complete picture.
Frequently Asked Questions
What is a good profit margin by industry?
Grocery retail operates at 1–4% net margin; general retail 5–15%; manufacturing 5–15%; software and SaaS 10–30%; services 15–25%. The right target depends on your cost structure and competitive positioning. Industry benchmarks provide a reference, not a rule — businesses differentiated by quality, brand, or unique capability can sustain margins above industry average indefinitely.
What is the difference between gross margin and net margin?
Gross margin is revenue minus the direct cost of producing the good or service, expressed as a percentage of revenue. Net margin is revenue minus all costs (COGS, operating expenses, interest, taxes) expressed as a percentage of revenue. The calculator computes gross margin.
Is this tool for gross or net margin?
The calculator computes gross profit margin — profit after subtracting the direct cost of the product. It does not account for operating expenses, taxes, or interest. For net margin analysis, subtract those costs from the gross profit figure manually.
Does the currency matter?
No. The calculator works with any currency. As long as cost and selling price are in the same currency, the margin and markup percentages are accurate regardless of whether you input dollars, pounds, euros, rupees, or any other unit.
How do I calculate the selling price if I know my target margin?
Use the formula: Selling Price = Cost / (1 − Target Margin%). For a $60 cost and 40% target margin: $60 / (1 − 0.40) = $60 / 0.60 = $100. The calculator handles this automatically in Cost + Target Margin mode — enter your cost and the target margin percentage, and it calculates the required selling price.
Calculate Your Profit Margin Now
Enter cost and price — or work backward from a target margin to find the selling price you need.
Open Profit Margin Calculator