ThisCalculator

Business

Markup vs Gross Margin Calculator

Updated · Standard formula, shown below

Gross margin 28.57 %
Markup
40.00 %
Result
Cost price
50 $
You entered
Selling price
70 $
You entered

Markup vs Gross Margin Calculator

This calculator works out either the markup percentage or the gross margin percentage for a product, depending on which two values you enter: cost and selling price, or cost and desired margin. You get the missing figure instantly, plus the other percentage so you can compare them directly. The formulas behind it are simple, but the difference between markup and margin is one of the most common pricing mistakes in small business.

Formula

Both figures come from the same two numbers: the cost of the item and the price you sell it for. The difference between them is your profit in dollars.

  • Gross margin (%) = (Selling price − Cost) ÷ Selling price × 100
  • Markup (%) = (Selling price − Cost) ÷ Cost × 100

Variables:

  • Cost – what you pay to acquire or produce the item (in dollars, or any currency)
  • Selling price – what the customer pays (same currency)
  • Profit – Selling price − Cost

The only difference between the two formulas is the denominator: margin divides by the selling price, markup divides by the cost. That single difference is why the percentages are never the same (except when profit is zero).

Worked Example

Using the default values from the calculator: cost = $50, selling price = $70.

  1. Profit = $70 − $50 = $20
  2. Gross margin = ($20 ÷ $70) × 100 = 28.57%
  3. Markup = ($20 ÷ $50) × 100 = 40%

So a 40% markup produces a 28.57% gross margin. They are not the same, and confusing them can lead to underpricing or overpricing.

Why the Difference Matters

If you think a 40% markup means a 40% margin, you will underprice your products. In the example above, a 40% margin would require a selling price of $83.33 (cost ÷ (1 − 0.40)), not $70. Many small businesses set prices based on markup, then measure profitability using margin, which creates a mismatch that can quietly erode profits.

Retailers often talk in terms of markup when setting prices (“keystone” is a 100% markup, or double the cost), but financial statements report margin. Knowing both numbers helps you translate between the two languages.

How to Use the Calculator

Enter any two of the three values (cost, selling price, or the percentage you want) and the calculator fills in the rest. The current version takes cost and selling price and returns both percentages. To find a selling price from a desired margin, use the formula:

Selling price = Cost ÷ (1 − desired margin)

For example, if you want a 30% margin on an item that costs $40, the price should be $40 ÷ 0.70 = $57.14. If you instead applied a 30% markup, the price would be $52, giving a margin of only 23.1%.

Common Mistakes and Misconceptions

  • Using the wrong base: Margin is a percentage of the selling price, markup is a percentage of cost. Swapping them changes the result.
  • Forgetting other costs: Both markup and margin only consider the direct cost of the item. Overhead, shipping, taxes, and discounts are not included, so the actual profit will be lower.
  • Rounding too early: If you round the margin to 29% and then use it to calculate a price, you’ll get a slightly different price than if you used the exact 28.57%.
  • Assuming they are interchangeable: A 50% markup is a 33.3% margin. A 50% margin requires a 100% markup. The two only equal each other at 0%.

Limits of the Formula

The formulas assume a single product with a known cost and a single selling price. They do not account for volume discounts, variable costs per unit, seasonal pricing, or bundling. For a business with multiple products, you would calculate the margin for each product or use weighted averages. Also, the calculator works in any currency, but you must use the same currency for both cost and price.

For a full picture of business profitability, you also need to consider operating expenses, taxes, and other indirect costs. Gross margin only tells you how much of each sales dollar is left after paying for the product itself.

Frequently Asked Questions

What is the difference between markup and margin?

Markup is the percentage of cost that you add to get the selling price. Margin is the percentage of the selling price that is profit. For example, a $20 profit on a $100 sale is a 20% margin but a 25% markup (if cost is $80).

How do I convert markup to margin?

Use the formula: Margin = Markup ÷ (1 + Markup). For a 50% markup, margin = 0.50 ÷ 1.50 = 33.3%. To convert margin to markup: Markup = Margin ÷ (1 − Margin). A 33.3% margin equals a 50% markup.

Why is my margin always lower than my markup?

Because margin divides profit by a larger number (selling price), while markup divides by a smaller number (cost). As long as profit is positive, the selling price is larger than cost, so the margin percentage will always be smaller than the markup percentage.

Can I use this calculator for services instead of products?

Yes, as long as you can assign a direct cost to the service (materials, labor, etc.) and a selling price. The same formulas apply, but be sure to include all direct costs in the “cost” field.

What is a good markup percentage?

There is no universal number. It depends on your industry, competition, and overhead. Many retailers use a 50% markup (a 33.3% margin), but some luxury goods have much higher markups. The key is to ensure the resulting margin covers all your other costs and leaves a profit.

Does the calculator include taxes or shipping?

No. You should enter the cost that includes everything you pay to get the product ready for sale (including shipping and any import fees) and the selling price before sales tax. Sales tax is collected separately and does not affect your margin.

Related

Formula used
in cost | Cost price | $ | 50 | 0
in price | Selling price | $ | 70 | 0
out margin | Gross margin | % | (price - cost) / price * 100 | 2
out markup | Markup | % | (price - cost) / cost * 100 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.