How to calculate markup and margin to price your products right
Mixing up markup and margin is a quick way to underprice your products and lose money. Learn the difference between these two profit metrics, how to calculate them on scratch paper, and why getting the math right is crucial for your bottom line.
Aug 2, 2026 5 min read
People often use markup and margin as if they mean the exact same thing. They do not. Mixing them up is one of the easiest ways to accidentally underprice a product, alienate a customer, or silently bleed money. Both terms describe your profit, but they calculate that profit from entirely different directions. If you want to know exactly how much cash is flowing through your business, you need to understand the math behind both. Here is how they work, how to calculate them on scratch paper, and why a mix-up can wreck your bottom line.
The difference between markup and margin
Markup and margin look at the same pile of money from opposite ends.
Markup is your profit expressed as a percentage of your cost. It is a backward-looking metric. You take what you paid to produce or acquire an item, and you add a percentage on top. Manufacturers and wholesalers usually talk in markup because their process starts with raw costs—materials, labor, shipping—and builds the price upward from there.
Margin—specifically gross margin—is your profit expressed as a percentage of your final selling price. It is a forward-looking metric. It tells you what fraction of every dollar handed to you by a customer is yours to keep after covering the cost of the goods. Retailers typically rely on margin because it maps perfectly to their top-line revenue and tells them how much is left over to pay for overhead like rent and payroll.
Because you calculate markup against your base cost and margin against your final price, the two percentages will never match unless both happen to be zero.
How to calculate markup by hand
Setting a price based on a markup percentage is straightforward addition and multiplication. You just figure out the percentage of the cost, then add it to the original cost.
The formula: Selling price = cost × (1 + markup% ÷ 100)
Say you buy a product for $40 wholesale and want to apply a 50% markup. First, convert that 50% to a decimal by dividing by 100, which gives you 0.50. Add 1 to that decimal to represent your base cost plus the markup, giving you 1.50.
Finally, multiply your $40 cost by 1.50. $40 × 1.50 = $60.
Your selling price is $60. Your profit is the selling price minus your cost, leaving you with a clean $20.
If you ever need to verify your markup after a sale, just divide your profit by your cost and multiply by 100. Doing the math on our example ($20 ÷ $40) × 100 confirms the 50% markup.
How to calculate margin by hand
This is where business owners often make an expensive mistake. If you want a 40% margin on that same $40 item, you cannot just multiply the cost by 1.40. That math gives you a 40% markup, not a 40% margin. If you stop there, you will end up charging less than you planned and wondering why your bank account is light at the end of the month.
To hit a target margin, you have to work backward from the final selling price.
The formula: Selling price = cost ÷ (1 − margin% ÷ 100)
Let us find the correct price to achieve a 40% margin on a $40 cost. First, convert your target margin to a decimal (40 ÷ 100 = 0.40). Next, subtract that decimal from 1.
1 − 0.40 = 0.60.
This 0.60 means that 60% of your final price will go toward covering your raw cost. To find the actual price, divide your cost by this number.
$40 ÷ 0.60 = $66.67.
To get a true 40% margin, your selling price must be $66.67. Your profit is the selling price minus the $40 cost, which equals $26.67.
Checking the math works the same way, just using the selling price instead of the cost. Divide your $26.67 profit by the $66.67 selling price, multiply by 100, and you hit your 40% margin perfectly.
Comparing the two methods
To really see why knowing the difference matters, look at what happens to a $50 item when you apply a 50% target using both methods.
| Target | Calculation Mode | Selling Price | Profit Dollar Amount |
|---|---|---|---|
| 50% | Markup | $75.00 | $25.00 |
| 50% | Margin | $100.00 | $50.00 |
Hitting a 50% margin actually requires a 100% markup. You have to double the wholesale cost—generating $50 of profit on a $50 cost—so that the profit makes up exactly half of the $100 final price.
There is also a hard mathematical limit to margin. Markup can go as high as you want. A 500% or 1000% markup is entirely possible if you buy something cheap and sell it for a massive premium. Margin, however, caps out at 99.99%. A 100% margin means absolutely every penny of the selling price is profit. To pull that off, you would either have to acquire the product for exactly zero dollars, or charge an infinite selling price.
When to calculate manually vs. using a tool
Doing the math on scratch paper is a great habit. It keeps you sharp during vendor negotiations and helps you spot bad pricing on the fly. If a supplier tells you they built a 25% margin into your wholesale price, you know exactly what that means and how they got there.
Eventually, though, manual math slows you down. Running the division and decimal conversions by hand for a massive spreadsheet of inventory is tedious. It also introduces a lot of room for basic arithmetic errors, especially if you are working late or distracted.
In the real world, you usually need to see both numbers at the same time anyway. A supplier might quote a cost based on markup, but your accountant wants to see the projected retail margin. Converting between the two in your head gets messy fast. It is easy enough to divide $40 by 0.60 on a notepad. It is a completely different story trying to calculate a 37.5% margin on a unit cost of $14.82.
When you need to update prices in bulk, manage complex decimals, or just double-check your own scratchpad math, skip the manual formulas and let software handle the heavy lifting.
Ready to run your own pricing scenarios? Use the Markup and Margin Calculator.