Margin Calculator

Pick which two numbers you know — cost, selling price, margin, or markup — and this solver fills in the rest: gross profit, margin percentage, markup percentage, and the price you should charge.

$
$
%
%

Report a Bug

Margin vs Markup — the Difference That Costs Money

Margin and markup describe the same dollars of profit from two different angles, and mixing them up is one of the most expensive habits in small business. The formulas look almost identical: Margin = (Price − Cost) / Price × 100, while Markup = (Price − Cost) / Cost × 100. The only difference is the denominator — margin divides by the selling price, markup divides by the cost — but that one change means the two numbers are never equal on a profitable sale.

Here's the mistake in action. Say your accountant tells you the business needs a 40% gross margin to cover overhead and hit its profit target. You head to the stockroom, take a product that costs $60, apply a 40% markup, and price it at $84. Feels right. It isn't. That $24 of profit on an $84 price is only a 28.6% margin — more than eleven points short of the target. To actually earn a 40% margin on a $60 cost, you divide by 0.60 instead of multiplying by 1.40: $60 / 0.60 = $100. The correct price is $100, not $84, and every unit sold at the wrong price quietly gives away $16.

The error always cuts in the same direction. Markup is measured against the smaller number (cost) and margin against the larger one (price), so treating a margin target as a markup percentage always underprices the product. It never overprices it. A useful gut check: a 50% markup is a 33.33% margin, and a 50% margin needs a 100% markup. Once those two facts are second nature, you'll catch the mistake before it ever reaches a price tag.

Margin to Markup Conversion Table

Because the two measures use different denominators, every margin has exactly one equivalent markup, given by Markup = Margin / (1 − Margin). Going the other way, Margin = Markup / (1 + Markup). These are the pairs you'll reach for most often:

10% margin = 11.11% markup

15% margin = 17.65% markup

20% margin = 25% markup

25% margin = 33.33% markup

30% margin = 42.86% markup

40% margin = 66.67% markup

50% margin = 100% markup

60% margin = 150% markup

75% margin = 300% markup

Notice how the gap between the two numbers widens as the percentages climb. At a 10% margin the markup is barely a point higher, but at a 50% margin the markup is double, and by 75% it's four times as large. As margin approaches 100%, the required markup shoots toward infinity — which is why no real product ever reaches a 100% margin. That would mean acquiring it for free. The calculator's results table includes this quick reference, so the conversion is always one glance away while you're pricing.

Gross Margin vs. Net Margin

When people talk about profit margin, they might mean gross margin, net margin, or something in between. Gross margin only considers the direct costs of producing or acquiring a product, things like raw materials, manufacturing labor, and shipping from the supplier. It tells you how much room you have between what you pay for inventory and what customers pay you.

Net margin goes much further. It subtracts all business expenses, including rent, utilities, salaries, marketing, insurance, taxes, and loan payments. A business might have a healthy 50% gross margin but only a 5% net margin after all those overhead costs are covered. That's not unusual, especially in industries like restaurants or retail where operating costs run high.

Operating margin sits in between. It accounts for operating expenses like rent and payroll but excludes interest and taxes. It's a useful indicator of how efficiently a business runs day to day, before the influence of its capital structure and tax situation. Investors and analysts often look at all three together to build a complete picture. A declining gross margin signals pricing pressure or rising input costs, while a shrinking operating margin suggests the business is losing control of its overhead. Watching these metrics over time gives you early warning signs of trouble before they show up in the bank account.

Profit Margin Benchmarks by Industry

Profit margins vary enormously across industries, so there's no single number that qualifies as good or bad. Software companies routinely operate with gross margins above 70% because the cost of producing additional copies of software is almost nothing after the initial development. A SaaS company might sell a subscription for $50 a month with a gross cost per user of $5, delivering a 90% gross margin.

Retail is a different world entirely. Grocery stores famously operate on razor-thin margins, often between 1% and 3% net. They make up for it with volume, selling millions of items per store per year. Clothing retailers do better, typically landing in the 4% to 13% net margin range, though fashion brands with strong name recognition can push well above that.

Manufacturing margins depend heavily on the product. Consumer electronics might carry gross margins of 20% to 40%, while luxury goods can exceed 60%. Construction companies tend to run 5% to 10% net margins because of the high cost of labor, materials, and equipment.

The restaurant industry averages around 3% to 9% net margins. Food costs eat up about 28% to 35% of revenue, labor takes another 25% to 35%, and rent and utilities claim a big slice of what's left. Professional services like consulting and accounting firms often enjoy the widest margins since their primary cost is labor, and there's no physical inventory to manage. Knowing where your industry falls helps you set realistic targets and spot problems before they become crises.

Strategies to Improve Your Profit Margins

Improving margins comes down to two levers: increasing revenue per unit or decreasing cost per unit. The most straightforward approach is raising prices, but that only works if your customers perceive enough value to absorb the increase without switching to a competitor. Incremental price increases of 2% to 5% annually often fly under the radar, especially when paired with genuine improvements to your product or service.

On the cost side, negotiate with suppliers. Many business owners accept the first price they're quoted and never revisit it. Buying in larger volumes, prepaying, or committing to long-term contracts can often unlock discounts of 5% to 15%. Switching to alternative materials or suppliers without sacrificing quality is another option worth exploring regularly.

Reducing waste is underrated. In manufacturing, a 3% reduction in scrap or defective output goes straight to the bottom line. In services, eliminating unnecessary steps or automating repetitive tasks frees up billable hours. Track your time and materials carefully, and you'll almost always find fat to trim.

Product mix matters too. Not all products carry the same margin. Focusing your sales and marketing efforts on higher-margin items, or bundling lower-margin products with profitable ones, can shift your average margin upward without changing a single price. Finally, don't ignore payment terms. Offering early payment discounts to customers who pay within 10 days improves cash flow, while negotiating extended payment terms with suppliers gives your money more time to work before it goes out the door.

Formula

Margin = (Price − Cost) / Price × 100; Markup = (Price − Cost) / Cost × 100; Markup = Margin / (1 − Margin); Margin = Markup / (1 + Markup)

Profit margin and markup both measure profitability but use different denominators. Margin divides profit by the selling price, showing what portion of sales is profit. Markup divides profit by cost, showing how much was added above cost. The two conversion formulas let you translate between them: a 33.33% margin and a 50% markup describe exactly the same sale. Because the calculator can solve these equations in any direction, you only ever need two of the four values.

Where:

  • Price = The total amount received from selling the product or service.
  • Cost = The total expense incurred to produce, purchase, or deliver the product or service.
  • Margin = Profit divided by selling price, expressed as a percentage. Always lower than the markup percentage for the same transaction.
  • Markup = Profit divided by cost, expressed as a percentage. Always higher than the margin percentage for the same transaction.

Example Calculations

Retail Pricing from Cost and Selling Price

A retailer buys a jacket for $40 and sells it for $100. Using the "Cost & Selling Price" mode, what are the profit, margin, and markup?

  1. Calculate gross profit: $100 − $40 = $60
  2. Calculate margin: ($60 / $100) × 100 = 60%
  3. Calculate markup: ($60 / $40) × 100 = 150%

A 60% margin is strong for retail and typical of clothing with good brand positioning. Notice how the markup is 150% while the margin is 60%. These are very different numbers describing the same transaction.

Pricing Backward from a Target Margin

A candle maker's cost per unit is $18 and the business plan calls for a 45% gross margin. Using the "Cost & Margin %" mode, what should the selling price be?

  1. Convert the margin to a decimal: 45% = 0.45
  2. Divide cost by (1 − margin): $18 / 0.55 = $32.73 selling price
  3. Calculate gross profit: $32.73 − $18.00 = $14.73
  4. Calculate the equivalent markup: ($14.73 / $18.00) × 100 = 81.82%

Dividing by (1 − margin) is the step people skip when they mistakenly multiply cost by 1.45 instead. That shortcut would price the candle at $26.10 — a margin of just 31%, well short of the 45% target.

Frequently Asked Questions

There's no universal answer because margins vary enormously by industry. Grocery stores operate profitably at 1% to 3% net margins, while software companies may exceed 20%. A good margin is one that's competitive within your specific industry, covers all operating expenses, and leaves enough profit to reinvest in growth. Compare your margins to publicly reported industry averages and track them over time. Consistent improvement matters more than hitting an arbitrary target.

Margin and markup use different denominators. Margin divides profit by revenue, which is the larger number, producing a smaller percentage. Markup divides profit by cost, which is the smaller number, producing a larger percentage. Since revenue always exceeds cost in a profitable sale, the margin percentage will always be lower than the markup percentage. For example, a $20 profit on a $100 sale gives you a 20% margin but on a $50 cost gives you a 40% markup.

To convert margin to markup, use: Markup = Margin / (1 − Margin). To convert markup to margin, use: Margin = Markup / (1 + Markup). For example, a 25% margin equals a 33.33% markup, and a 50% markup equals a 33.33% margin. These formulas work when both values are expressed as decimals. The results table below the calculator includes a quick-reference conversion for common margins, because the relationship isn't intuitive and mental math gets tricky at higher percentages.

Yes. Use the "I know:" dropdown to pick which two values you have. Choose "Cost & Margin %" to find the selling price that hits a margin target, "Selling Price & Margin %" to work out the maximum cost you can afford at a given retail price, or "Cost & Markup %" to apply cost-plus pricing. In every mode the calculator fills in all four values — cost, selling price, margin, and markup — so you can sanity-check a price from whichever direction the numbers arrive.

Most financial professionals and accountants prefer working with margin because it directly shows what portion of revenue becomes profit. Margin ties neatly into income statements and financial planning. However, many retailers and wholesalers use markup in daily operations because it's simpler to calculate, just multiply cost by a factor. The key is consistency. Pick one method, make sure everyone on your team understands it, and don't accidentally swap them. Confusing margin for markup or vice versa is the fastest way to underprice your products.

Gross profit is revenue minus the direct cost of goods sold, the costs directly tied to producing or purchasing the items you sell. Net profit subtracts everything else on top of that: operating expenses, overhead, interest payments, and taxes. A business can have a large gross profit but a small or even negative net profit if operating costs are too high. Both numbers matter. Gross profit tells you whether your pricing and production costs are in line, while net profit tells you whether the overall business is financially sustainable.

Related Calculators