Markup Calculation Formula

Are you pricing your products to hit your actual profit target?

Enter your cost and selling price to instantly see markup percentage, gross profit, and margin. Or work backwards from a target markup to find the right price.

Updated July 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Think of markup as the profit layer you stack on top of your cost — like a contractor adding a fee on top of materials. If you buy timber for $100 and charge the client $150, you have added a $50 layer. That layer expressed as a percentage of the original $100 is a 50% markup. The formula captures this exactly: it compares profit to cost, not to price.

The calculation has three moving parts: cost, selling price, and the gap between them. The gap is gross profit per unit. Divide that gap by cost to get markup. Divide it by selling price to get gross margin. Both ratios describe the same $50 gap — they just use a different denominator, which is why they always produce different percentages for the same transaction.

The gross margin output matters because most financial reporting, investor conversations, and accounting benchmarks use margin rather than markup. A business with a 43% gross margin sounds very different from one with a 76% markup, even though these figures can describe identical pricing. Keeping both visible prevents translation errors when you move from the pricing spreadsheet to the income statement.

When To Use This
Right tool, right situation

Use this formula when you know your cost and want to set a price, or when you know both numbers and want to verify that the markup is consistent with your targets. It works for physical products, services, digital goods, and wholesale contracts — any situation where you can define a clear cost and a clear selling price.

This tool is appropriate for a quick sanity check on a single SKU, a new service rate, or a quoted project. It is not appropriate for portfolio-level pricing decisions where product mix, volume discounts, tiered pricing, or dynamic pricing are involved. In those cases, total contribution margin across the full mix matters more than the markup on any single item.

Be cautious when cost is variable — seasonal inputs, fluctuating freight, or currency-exposed materials can shift your real cost significantly between the time you set a price and the time you deliver. A markup that looked solid in January can evaporate by Q3. Recalculate whenever your cost structure changes, not just when you update the price list.

Common Mistakes
Why results sometimes look wrong

Mistake 1: using margin when you mean markup. A business owner sets a 40% price increase expecting a 40% profit. But a 40% markup yields a 28.6% margin — not 40%. The cause is dividing by the wrong number. The consequence is systematic underpricing that erodes profit across every sale, sometimes for years before anyone notices.

Mistake 2: not separating gross profit from operating profit. A 76% markup sounds healthy, but if rent, salaries, and marketing consume $70 of every $100 in revenue, the business still loses money. This calculator shows gross profit only — what is left after cost of goods. Operating expenses come out next. Treat gross profit as a ceiling on operating costs, not as income.

Mistake 3: applying the same markup to every product in a line. A blanket 50% markup ignores differences in price sensitivity, competition, and turnover speed. High-velocity, low-margin items can generate more total profit than slow-moving high-markup goods. Markup is a per-unit metric; total profit multiplies it by volume. Both levers matter.

The Math
Worked examples and deeper derivation

The core equation: Markup % = ((Selling Price - Cost) / Cost) x 100. Rearranged to find selling price: Selling Price = Cost x (1 + Markup% / 100). Rearranged to find cost from a known selling price and markup: Cost = Selling Price / (1 + Markup% / 100).

Gross margin uses the same profit numerator but a different denominator: Margin % = ((Selling Price - Cost) / Selling Price) x 100. Because the denominator is larger (price is always greater than cost when markup is positive), margin is always a smaller percentage than markup for any given transaction. At a 100% markup, margin is exactly 50%. At a 200% markup, margin is 66.67%.

Converting between the two: Margin = Markup / (1 + Markup) and Markup = Margin / (1 - Margin) — both expressed as decimals. These conversion formulas are useful when a supplier quotes margin targets but your pricing model runs on markup, or vice versa.

Independent retailer pricing a new product
Cost: $42.50, Selling Price: $74.99, Units: 120 per month
Markup comes out to 76.45% with a gross profit of $32.49 per unit and a gross margin of 43.33%. Selling 120 units generates $3,898.80 in gross profit monthly. That covers overhead like rent and labor — but only if operating costs stay below that figure.
Freelancer checking a quoted project rate
Cost (time + software): $800, Selling Price (project quote): $1,200
Markup is 50% and gross margin is 33.33%. Many freelancers accidentally price at margin when they mean markup — a 50% markup and a 50% margin are very different numbers. At $1,200 the freelancer keeps $400, not $600.
Manufacturer validating distributor pricing
Cost: $18.75, Selling Price: $37.50, Units: 5,000
A clean 100% markup doubles the cost and yields a 50% gross margin. At 5,000 units the total gross profit is $93,750. A manufacturer reviewing distributor catalogs uses this check to confirm channel pricing stays above minimum advertised price without squeezing the distributor margin to zero.
Expert Unlock
The thing most explanations skip

The markup formula assumes a single, stable cost — but most real products have a blended cost that includes direct materials, direct labor, and an allocated share of overhead. When overhead allocation changes (due to volume, a new facility, or a change in accounting policy), the cost figure changes without anyone touching the product. Prices built on the old cost silently become mispriced. Practitioners review markup quarterly against updated standard costs, not just when launching a product.

There is also a compounding asymmetry at the extreme ends: a 100% markup yields a 50% margin, but a 200% margin is mathematically impossible — margin is bounded at 100% while markup is unbounded. This means that as margin approaches 100%, the equivalent markup approaches infinity. Any pricing model that targets margins above 80% should be stress-tested carefully; small input errors produce enormous markup swings in that range.

What is the difference between markup and margin, and does it change my price?

What is the markup percentage formula?
Markup percentage = ((Selling Price - Cost) / Cost) x 100. If you buy something for $40 and sell it for $60, the markup is 50%. This is different from margin, which divides the same profit figure by the selling price instead of cost, giving 33.33% in the same example.
Markup vs margin — which one should I use to set prices?
Use markup when you know your cost and want to build a specific profit layer on top of it — common in retail and manufacturing. Use margin when you know your target percentage of revenue that must flow through as profit — common in finance and executive reporting. Confusing the two is one of the most frequent pricing mistakes: a 50% markup is not the same as a 50% margin.
How do I calculate selling price from a target markup percentage?
Selling Price = Cost x (1 + Target Markup / 100). If your cost is $50 and you want a 60% markup, the selling price is $50 x 1.60 = $80. You can use the reversal feature in this calculator to solve for price or cost directly from any known markup.

Need something this doesn't cover?

Suggest a tool — we'll build it →