Skip to content

Home  /  Tools  /  Markup Margin Calculator

Free online tool

Markup Margin Calculator

Work out markup, margin and gross profit from any cost and price, then reverse the math to find the selling price you need for a target margin.

Panel 1 — From cost and selling price

Enter what an item costs you and what you sell it for.

What you pay to make or buy one unit.
What the customer pays for one unit.

Panel 2 — Selling price from a target margin

Enter a cost and the margin you want, and get the exact price to charge.

The same cost basis used in Panel 1 by default.
Target gross margin, from 0% up to just under 100%.

What this markup calculator does

A markup calculator turns a product cost into a clear selling price, and this free markup calculator shows markup, margin, and gross profit side by side so you can see the whole picture at once. However, many sellers still price by gut feeling, and that habit quietly eats into profit on every order. A shop owner who adds a flat amount to every product may earn plenty on one item and almost nothing on another. This tool does the percentage math for you, in both directions, as you type. First, you enter a cost and a selling price to see the profit, the markup percent, and the margin percent. Next, you enter a cost and a target margin to get the exact price you should charge.

Quick answer: Find markup, margin and gross profit from cost and price, or set a selling price from your target margin.
markup calculator

In addition, both panels update live, so you can test a discount, a supplier price rise, or a new target margin without starting over. Retailers use this kind of check before a sale season. Meanwhile, freelancers and service businesses use the same math to quote work that actually covers their time. Wholesalers rely on it when buyers negotiate hard on unit price. As a result, one simple tool serves pricing decisions across almost every kind of business.

How we calculate it

Markup and margin describe the same profit, but they measure it against two different numbers. Specifically, markup divides gross profit by the cost price. In contrast, margin divides gross profit by the selling price. An item that costs $80 and sells for $100 makes $20 of gross profit. Therefore, its markup is 20 divided by 80, which equals 25 percent. Its margin is 20 divided by 100, which equals 20 percent. Overall, the profit is identical in both cases, and only the starting point changes.

This difference matters because teams often talk past each other. However, a buyer who promises a 30 percent margin is not offering the same deal as a seller who asks for a 30 percent markup. A 30 percent markup on an $80 cost produces a price of $104. That $104 price leaves only $24 of profit, which is a margin of about 23 percent. In addition, the gap grows as the percentages climb, so the confusion gets more expensive at higher price points. Consequently, clear definitions protect both sides of a negotiation.

Markup vs margin: why the numbers always differ

Margin can never reach 100 percent on a normal sale, because the selling price always includes the cost as well as the profit. However, markup has no ceiling at all. A digital product that costs $5 to deliver and sells for $50 has a markup of 900 percent. Still, its margin is 90 percent, because $45 of the $50 price is profit. Luxury goods, software, and handmade products often carry markups of several hundred percent. In contrast, grocery and fuel businesses often survive on margins in the low single digits.

A useful rule links the two numbers directly. Specifically, margin equals markup divided by one plus markup, when both are written as decimals. A markup of 0.25 becomes a margin of 0.25 divided by 1.25, which is 0.20, or 20 percent. Conversely, markup equals margin divided by one minus margin. A target margin of 30 percent needs a markup of about 42.86 percent, not 30 percent. Finally, memorizing just one of these conversions prevents the most common pricing error in small business.

Setting prices with a target margin

Panel 2 of this tool works backwards from the margin you want. First, take your full unit cost, including materials, packaging, shipping in, and any platform fees. Next, choose a target margin that also leaves room for discounts, returns, and taxes. The required price is the cost divided by one minus the target margin as a decimal. For example, an $80 cost with a 30 percent target margin gives 80 divided by 0.70, which equals $114.29. Every sale at that price keeps exactly 30 cents of gross profit in each dollar of revenue.

Testing a few targets side by side is a smart habit. However, a higher margin is not always better, because a price that is too high can cut sales volume sharply. A slightly lower margin on a product that sells every day can beat a high margin on a product that rarely moves. In addition, you should recheck your prices whenever supplier costs change, even by a small amount. A five percent rise in cost can erase a thin margin completely if the price stays frozen. Overall, small, regular price reviews beat one big correction once a year.

Common pricing mistakes to avoid

The most common mistake is treating markup and margin as the same number. For example, a seller who wants a 40 percent margin but applies a 40 percent markup actually earns only about a 28.6 percent margin. Another frequent error is pricing from an incomplete cost. Many sellers forget packaging, transaction fees, breakage, and the cost of their own time. Therefore, the true margin ends up far lower than the spreadsheet suggests. In addition, copying a competitor’s price without knowing their cost structure can lock you into a loss.

Rounding can quietly hurt you as well. However, rounding a calculated price down to a neat number is fine when the margin is healthy. Rounding down on a thin margin can push a product below break-even. Next, remember that discounts come out of margin, not out of markup. A 20 percent discount on a product with a 25 percent margin leaves almost nothing after costs. Finally, run every important price through the calculator before you publish it, because thirty seconds of checking can protect months of profit.

Markup to margin: quick conversion table

Use this table when a supplier, buyer, or partner quotes one number and you think in the other. Every pair below follows the same conversion used above: margin equals markup divided by one plus markup, with both written as decimals. So a 50% markup is a margin of 0.50 divided by 1.50, which is 33.33%.

MarkupMargin on the same sale
10%9.09%
20%16.67%
25%20.00%
33.33%25.00%
50%33.33%
75%42.86%
100%50.00%
150%60.00%
200%66.67%

By Umar Anwar · Last updated: October 2026.

✦ FAQ

Pricing
questions,
answered.

Markup, margin, and target pricing explained in plain English.

What is the difference between markup and margin?

Markup is profit divided by cost, while margin is profit divided by selling price. Because the denominators differ, the same profit always produces a higher markup percentage than margin percentage. For example, a product that costs $80 and sells for $100 has a 25% markup but only a 20% margin.

How do you calculate markup percentage?

Subtract the cost price from the selling price to get gross profit, then divide that profit by the cost price and multiply by 100. For example, (100 – 80) / 80 x 100 = 25% markup on an item that costs $80 and sells for $100.

How do you calculate margin percentage?

Divide gross profit by the selling price, then multiply by 100. For example, an item that costs $80 and sells for $100 makes $20 of profit, and 20 / 100 x 100 = a 20% margin. Margin always stays below 100% when the selling price is positive.

How do I find the selling price for a target margin?

Divide the cost by 1 minus the target margin written as a decimal. For example, with an $80 cost and a 30% target margin, the required selling price is 80 / (1 – 0.30) = $114.29. That price also equals a markup of about 42.86% on cost.

Is a 50% markup the same as a 50% margin?

No. A 50% markup on an $80 cost gives a $120 selling price, and the $40 profit on that price is only a 33.33% margin. To earn a true 50% margin on an $80 cost, the selling price has to be $160, which is a 100% markup.

Can markup be more than 100%?

Yes. Markup has no upper limit because it compares profit with cost. An item that costs $40 and sells for $100 makes $60 of profit, which is a 150% markup. The margin on that same sale is 60%, because margin compares profit with the selling price instead.

Related tools

Also try these free calculators and utilities from UA Tools.