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
- Stripping VAT or sales tax from gross prices before margin math. → Sales Tax Calculator
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
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- 01ROI Calculator - Return on InvestmentCalculate ROI percentage, net gain, and annualized ROI from amount invested and returned. Free browser-based tool, nothing uploaded.
- 02EMI Calculator - Loan Payment & ScheduleCalculate loan EMI, total interest, and total payment with a full amortization schedule. Free browser-based calculator for home, car, and personal loans.
- 03SIP Calculator - Mutual Fund ReturnsEstimate SIP maturity value from monthly investment, expected return, and years. Free browser-based calculator with invested vs returns breakdown.
- 04Investment Calculator - Lump Sum + MonthlyProject investment growth from a lump sum plus monthly contributions with monthly compounding. Free browser-based tool with year-by-year table.
- 05Simple Interest Calculator - Free & InstantCalculate simple interest with I = P x r x t. Free browser-based calculator with total amount, months or years, and a compound interest comparison.
- 06Percentage Calculator - 4 Calculators in OneCalculate percentages instantly: X% of Y, percentage change, tip calculator and more. Four calculators in one free tool.
- 07Unit Converter - Length, Weight & MoreConvert between length, weight, temperature, speed, and data units. Instant results with all common units. Free online tool.
- 08Weight Converter - kg, lbs, Stone & MoreConvert between kilograms, pounds, stone, ounces, tonnes and 12 weight units. Instant results with reference table. Free online.
- 09Length Converter - Meters, Feet & MilesConvert between meters, feet, inches, miles, kilometers, and 13 length units. Instant results with full reference table.
- 10Number Base Converter - Binary, Hex & MoreConvert between binary, octal, decimal, and hexadecimal number systems instantly. Free online tool for developers and students.
- 11Aspect Ratio Calculator - Resize ProportionallyCalculate aspect ratios and resize dimensions while maintaining proportions. Common presets for video, photo, and design. Free online.
- 12BMI Calculator - Free Body Mass Index ToolCalculate your Body Mass Index based on height and weight. See your BMI category instantly. Free online health calculator.
From the blog
Further reading- Free Online Calculators for Everyday Math and FinanceFree online calculators for percentages, discounts, VAT, compound interest, and unit conversion. Instant results in your browser, no sign-up needed.8 min read
- Financial Calculators: Loans, Compound Interest & DiscountsHow to use financial calculators for loan amortization, compound interest projections, discount analysis, and everyday money decisions that matter.9 min read
- Number Bases, Chmod & Validation for DevelopersHow number base conversion works, how Unix chmod permissions are calculated, and how to validate IBANs and credit card numbers with check digit algorithms.9 min read