Profit Margin Calculator - Margin, Markup & Selling Price
Calculate gross margin and markup from cost and revenue, or find the selling price you need for a target margin. Free and instant.
Results
Gross Margin
40.00%
Profit
$40.00
Markup
66.67%
Estimates for information only, not financial advice.
Margin vs Markup
Margin is profit as a percentage of the selling price: (price - cost) / price. Markup is profit as a percentage of the cost: (price - cost) / cost. Selling at 100 what cost 60 gives a 40% margin but a 66.7% markup. Mixing them up is one of the most common pricing mistakes: applying a 40% markup when you intended a 40% margin underprices the product.
| Markup | Equivalent Margin |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 100% | 50% |
| 200% | 66.7% |
Profit Margin and Markup Calculator
Calculate gross profit margin, markup, and profit from your cost and selling price, or flip the problem around and find the exact price you must charge to hit a target margin. Both modes update instantly as you type, format results with thousands separators, and run entirely in your browser with no data sent anywhere.
Retailers, e-commerce sellers, freelancers, restaurants, and SaaS founders all live and die by margin. Wholesale buyers use the markup view when negotiating with suppliers, while CFOs and accountants report gross margin because it expresses profit relative to revenue, the way income statements are structured.
Margin and markup describe the same profit from different angles. Margin divides profit by the selling price; markup divides the same profit by the cost. A product bought for 60 and sold for 100 carries a 40% margin but a 66.7% markup. The reverse-price mode uses price = cost / (1 - margin), which is the correct formula; multiplying cost by (1 + margin) is the classic error that silently erodes profitability.
Typical gross margins vary widely by industry: grocery retail runs 20-30%, restaurants 60-70% on food, software often 80% or more, while electronics retail can be under 15%. Knowing your sector's benchmark helps you judge whether your calculated margin is healthy or leaves no room for overhead and returns.
When your price includes sales tax or VAT, strip it first with our Sales Tax Calculator so the margin math uses net figures, and if you pay sales commissions, the Commission Calculator shows how they eat into the same profit pool.
How the Profit Margin Calculator Works
- 01Choose the mode: cost plus revenue to analyze an existing price, or cost plus desired margin to find a new price.
- 02Enter your cost per unit, including materials, labor, and direct expenses.
- 03Enter the selling price, or the gross margin percentage you want to achieve.
- 04Read the margin, markup, profit, or required selling price, and use the margin-versus-markup table to avoid mixing the two up.
Pricing With Margin and Markup
Margin and markup describe the same profit from two directions, and confusing them is one of the most expensive small-business mistakes. Margin divides profit by the selling price; markup divides it by the cost. Buy at 60, sell at 100: that is a 40% margin but a 66.7% markup. If you want a 40% margin and mistakenly apply a 40% markup, you end up selling at 84 instead of 100, silently giving away 16% of your intended revenue per unit. The reverse-price mode uses the correct formula, price equals cost divided by (1 minus margin), so a 40% target on a 60 cost correctly yields 100. When setting margins, work from your fully loaded cost: include shipping, payment processing fees, packaging, returns, and marketplace commissions, not just the wholesale price. Then check the result against your sector: grocery runs 20-30% gross margin, restaurants 60-70% on food, apparel 50-60%, software often above 80%, electronics retail sometimes under 15%. Your gross margin must also fund overhead and profit, so a price that only covers a thin gross margin leaves nothing for rent, salaries, and growth.
When to Use the Profit Margin Calculator
Use the analysis mode when reviewing the profitability of an existing product, checking a marketplace listing after fees, or auditing a quote. Use the pricing mode when launching a product, responding to a cost increase from a supplier, or standardizing prices across a catalog to a target margin. It is also the fastest way to translate between margin and markup when a supplier talks markup and your accountant talks margin.
Common Use Cases
- Pricing a new product to hit a target gross margin from its fully loaded cost.
- Auditing marketplace listings after commissions and payment fees to find unprofitable SKUs.
- Repricing a catalog after a supplier cost increase while protecting the margin.
- Translating a supplier's markup language into the margin language of your P&L.
- Checking how sales commissions eat into the same profit pool. Commission Calculator - Flat & Tiered
- Stripping VAT or sales tax from gross prices before margin math. Sales Tax Calculator - Add or Extract Tax
Expert Tips
- Never apply a markup percentage when you mean a margin; the correct target-margin price is cost divided by (1 minus margin).
- Compute margins on fully loaded costs including fees, shipping, and returns, or marketplace products will look profitable while losing money.
- Keep a floor margin per category and check every discount against it; a 20% discount on a 30% margin product removes two thirds of the profit.
Frequently Asked Questions
- Margin is profit divided by selling price; markup is profit divided by cost. Selling at 100 what cost 60 gives a 40% margin and a 66.7% markup. They describe the same profit relative to different bases.
- Divide the cost by (1 minus the margin as a decimal). For a 40% margin on a 60 cost: 60 / 0.6 = 100. Multiplying cost by (1 + margin) is wrong and underprices the product.
- It varies by industry: grocery 20-30%, restaurants 60-70% on food, apparel 50-60%, software 80% or more, electronics retail often under 15%. Compare against your sector, and remember gross margin still has to cover overhead.
- Yes. Use the fully loaded cost per unit: product cost plus inbound shipping, packaging, payment processing, marketplace commissions, and expected returns. Otherwise the calculated margin overstates reality.
What is the difference between margin and markup?→
How do I price for a target margin?→
What is a good gross margin?→
Should cost include shipping and fees?→
Related tools
12 suggested- 01Volume Converter - Liters, Gallons & CupsFree browser-based volume converter between liters, gallons, quarts, pints, cups, fluid ounces, tablespoons, and more, all shown at once instantly.
- 02Area Converter - m², ft², Acres & HectaresFree browser-based area converter between square meters, feet, yards, inches, miles, kilometers, hectares, and acres, all shown at once as you type.
- 03TDEE Calculator - Daily Calorie Needs, FreeFree browser-based TDEE calculator using the Mifflin-St Jeor equation, with metric and imperial units plus calorie targets for cutting and bulking.
- 04Running Pace Calculator - Pace, Time, DistanceFree browser-based running pace calculator: enter two of distance, time, and pace to get the third, with km/mile splits and race finish predictions.
- 05Roman Numeral Converter - 1 to 3999, FreeFree browser-based Roman numeral converter for numbers 1-3999, with strict validation, a step-by-step breakdown, and a full symbol reference table.
- 06Numbers to Words Converter - Free & InstantFree browser-based numbers to words converter up to quadrillions, with decimals, British style, and a currency mode for writing check amounts.
- 07Percentage to CGPA Calculator - 10 & 4 PointFree browser-based converter between percentage and CGPA using the CBSE 9.5 formula, with 4-point GPA conversion and a handy reference table included.
- 08Grade Calculator - Weighted Average & FinalsFree browser-based grade calculator for weighted course averages, plus a final exam mode that shows the score you need to reach your target grade.
- 09Fraction Calculator - Add, Simplify & ConvertFree browser-based fraction calculator: add, subtract, multiply, and divide fractions, simplify to lowest terms, and convert decimals to fractions.
- 10Currency Converter - Live ECB Rates, FreeFree browser-based currency converter with live ECB exchange rates for 30+ currencies. Swap pairs, see the rate date, and convert amounts instantly.
- 11Retirement Calculator - Nest Egg & 4% RuleProject retirement savings in future money and today's purchasing power, plus 4% rule monthly income. Free browser-based planner with yearly table.
- 12Inflation Calculator - Fixed Rate & US CPIProject future costs at a fixed inflation rate or convert dollars between any two years 1913-2025 with US CPI data. Free browser-based calculator.