The two numbers use the same profit figure but completely different formulas — and confusing them is one of the fastest ways for a small business to underprice its products.
Published August 25, 2026 · Reviewed by the Ihsabha Editorial Team
Markup and margin are two of the most commonly confused percentages in business, and the confusion isn't just academic — it directly affects pricing. Both numbers are calculated from the exact same two inputs, cost and selling price, and both describe profitability. But they divide by different denominators, which means the same item can have, say, a 50% markup and a 33.3% margin at the same time. Pricing a product to hit a target margin by using the margin percentage as if it were a markup percentage is a well-documented way for small businesses to quietly underprice their goods. This guide explains exactly how each formula works, why they diverge, and how to convert cleanly between them.
Markup expresses profit as a percentage of what the item cost you to acquire or produce. It answers the question: "How much did I add on top of my cost to set the selling price?" The formula is:
Because markup is measured against the smaller number (cost), it will always be numerically larger than the margin percentage on the same sale, for any profit greater than zero. It's also worth reading Reverse Percentage: How to Find the Original Number if this situation applies to you. Use the Margin & Markup Calculator below to check your own numbers quickly and accurately.
Margin (sometimes called gross margin or profit margin) expresses that same profit as a percentage of the selling price instead of the cost. It answers a different question: "Of every dollar a customer pays, how much of it is profit?" The formula is:
Because margin divides by the selling price — a larger number than cost whenever there's any profit at all — it will always come out lower than the markup percentage for the same transaction.
Take a product that costs a retailer $40 to source and is sold for $60. The profit is the same $20 either way, but the two percentages diverge because of what that $20 is divided by:
The same $20 profit is a 50% markup on cost, but only a 33.3% margin on revenue. Neither number is "wrong" — they're simply answering different questions about the same sale, and it's essential to know which one a supplier, spreadsheet, or accountant is actually referring to before using it to set a price.
The most expensive version of this confusion happens when a business wants to hit a target profit margin — say, 40% margin on every sale — but mistakenly applies that 40% as if it were a markup instead. Pricing an item that costs $60 with a 40% markup gives a selling price of $60 × 1.40 = $84, which actually produces a margin of ($84 − $60) ÷ $84 × 100 = 28.6% — well short of the intended 40% margin target. To genuinely hit a 40% margin on a $60 cost item, the correct selling price is $100, calculated using the margin-to-price formula covered below. The gap between the intended and actual margin — over 11 percentage points in this example — is pure profit quietly lost to a formula mix-up, and it gets worse the higher the target percentage.
If you know the markup percentage and want to find the equivalent margin percentage, without needing the actual cost and price:
For the 50% markup example above: 50 ÷ (100 + 50) × 100 = 50 ÷ 150 × 100 = 33.3%, which matches the direct calculation. This naturally leads to a related question, answered in How to Calculate a Tip: The Complete Tip Percentage Guide.
Going the other direction, to find the markup percentage that will produce a target margin percentage:
For a target margin of 40%: 40 ÷ (100 − 40) × 100 = 40 ÷ 60 × 100 = 66.7%. This confirms the earlier example — a genuine 40% margin actually requires a 66.7% markup, not a 40% markup, which is exactly the gap that caused the underpricing above. To save time, enter your values into the Margin & Markup Calculator and get an instant result.
In practice, most businesses start from a known cost and a target margin, and need to solve for the selling price directly, without going through markup at all:
For a $60 cost item with a 40% target margin: $60 ÷ (1 − 0.40) = $60 ÷ 0.60 = $100. Checking it: ($100 − $60) ÷ $100 × 100 = 40%, exactly as targeted.
If the goal instead is a specific markup percentage on cost, the price formula is simpler and uses straightforward multiplication:
For a $60 cost item with a 40% target markup: $60 × 1.40 = $84. Checking it: ($84 − $60) ÷ $60 × 100 = 40%, exactly as targeted — note this is a genuinely different price than the $100 needed for a 40% margin, which is precisely why keeping the two terms straight matters.
| Markup % | Equivalent Margin % |
|---|---|
| 10% | 9.1% |
| 25% | 20.0% |
| 50% | 33.3% |
| 66.7% | 40.0% |
| 100% | 50.0% |
| 150% | 60.0% |
| 300% | 75.0% |
Notice that margin can never reach 100%, no matter how high the markup climbs — since margin is profit divided by a selling price that always includes the cost as part of it, margin approaches but never equals 100%. Markup, by contrast, has no such ceiling. If you want to go further, How to Calculate Percentage Error: Formula, Steps & Worked Examples explains this point in more depth.
Many retailers use a shorthand called "keystone" pricing, which means setting the selling price at exactly double the wholesale cost — a 100% markup. It's worth working through what that translates to in margin terms, since the two numbers are further apart here than intuition suggests. A $50 wholesale item priced at $100 under keystone pricing has a markup of ($100 − $50) ÷ $50 × 100 = 100%, but a margin of ($100 − $50) ÷ $100 × 100 = 50%. A retailer describing their pricing as "keystone" or "100% markup" is therefore actually running a 50% gross margin — a distinction that matters when comparing performance against margin-based industry benchmarks rather than markup-based ones.
Because margin is the more common benchmark used across industries for comparing profitability, it helps to have a rough sense of where different sectors typically land — though actual figures vary widely by business and region.
| Industry type | Typical gross margin range |
|---|---|
| Grocery & supermarket retail | 15% – 25% |
| General retail (clothing, home goods) | 40% – 60% |
| Restaurants (food cost only) | 65% – 75% |
| Software & digital products | 70% – 90% |
| Wholesale & distribution | 10% – 25% |
These ranges exist because different business models carry very different overhead structures — a grocery store selling low-margin, high-volume goods needs a completely different pricing strategy than a software company with near-zero cost of reproducing its product.
Sometimes the known values are the selling price and the target margin, and the missing number is the maximum allowable cost. Rearranging the margin formula gives:
If a product must sell for $80 and needs to maintain a 35% margin, the maximum cost is $80 × (1 − 0.35) = $80 × 0.65 = $52. Paying more than $52 for that item would push the margin below the 35% target, even if the $80 selling price stays fixed. You can use the Margin & Markup Calculator to get the result instantly, with no manual math.
Unlike interest-based (riba) profit on a loan, markup and margin are both straightforward reflections of legitimate trade — a seller buying goods and reselling them at a fair, disclosed profit for genuine value added through sourcing, holding risk, and distribution. This is the basis of ordinary commerce and is entirely distinct from lending money at interest, which Ihsabha's calculators avoid throughout the site. Setting a transparent markup or margin on a product you actually own and sell is a normal, permissible business practice; the percentages in this guide describe pricing mechanics, not interest calculations. You may also find it useful to check Order of Operations (PEMDAS/BODMAS): The Complete Guide, which covers a related angle.
Running a percentage-off sale reduces margin far more sharply than the discount percentage itself suggests, because the discount comes straight out of the profit portion of the price rather than being spread proportionally across cost and profit. Take the earlier $40 cost, $60 price item with its 33.3% margin. A 20% discount brings the selling price down to $48, while the $40 cost stays fixed. The new margin is ($48 − $40) ÷ $48 × 100 = 16.7% — the margin was cut by more than half, even though the discount was only 20%. This is why retailers plan sale pricing carefully around margin, not just around the headline discount percentage; for the mechanics of the discount calculation itself, see Ihsabha's guide to calculating a percentage off a price.
Skip the manual conversions. Ihsabha's Margin & Markup Calculator converts between the two instantly and solves for your selling price from either a target margin or a target markup, with no rounding errors.
Markup and margin apply just as directly to services as to physical goods, once "cost" is redefined as the direct cost of delivering the service rather than a wholesale purchase price. A freelance designer whose direct costs (software subscriptions, contractor time, stock assets) for a project total $300 and who wants a 45% margin on the project fee can find the minimum fee to charge using the same selling-price-from-margin formula: $300 ÷ (1 − 0.45) = $300 ÷ 0.55 ≈ $545. Charging exactly $545 for the project yields ($545 − $300) ÷ $545 × 100 ≈ 45%, confirming the target margin was hit. Framing service pricing in margin terms, rather than an arbitrary flat markup on hours, is one of the more common ways freelancers and small agencies keep their quoted fees aligned with an actual profitability target.
Markup and margin sit alongside other percentage-based pricing calculations on Ihsabha. For the discount side of pricing — working out a sale price from an original price and a percentage off — see the guide to calculating a percentage off a price. And for the three foundational formulas behind every percentage calculation on this site, the core percentage formula guide is the place to start.
Markup is profit expressed as a percentage of cost: (Price − Cost) ÷ Cost × 100. Margin is profit expressed as a percentage of the selling price: (Price − Cost) ÷ Price × 100. They use the same profit amount but divide by different numbers, so a given profit always produces a higher markup percentage than margin percentage.
Subtract the cost from the selling price to find profit, divide that profit by the cost, then multiply by 100: Markup % = (Price − Cost) ÷ Cost × 100. For example, an item costing $40 and selling for $60 has a markup of (60 − 40) ÷ 40 × 100 = 50%.
Subtract the cost from the selling price to find profit, divide that profit by the selling price, then multiply by 100: Margin % = (Price − Cost) ÷ Price × 100. For example, an item costing $40 and selling for $60 has a margin of (60 − 40) ÷ 60 × 100 = 33.3%.
Because markup divides profit by cost while margin divides the same profit by the (larger) selling price, dividing by a bigger number always produces a smaller percentage. A 50% markup on a $40 cost item sold for $60 corresponds to a 33.3% margin, not a 50% margin.
Both markup and margin are exact percentages once you're clear on which formula applies — the only real risk is treating the two terms as interchangeable when a supplier contract, spreadsheet, or pricing conversation uses one term without specifying which. Before applying either percentage to a real price, it's worth explicitly confirming whether the number being discussed is measured against cost (markup) or against selling price (margin), since assuming wrong in either direction changes the resulting price meaningfully.
Work it out instantly with Ihsabha's Percentage Calculator and Percentage Change Calculator. For related reading on Ihsabha's blog, see How to Use a Scientific Calculator: Every Function Explained, Degrees vs. Radians: The Complete Guide to Angle Units and Significant Figures: Rules, Examples & How to Round Correctly.