If you have ever priced a product by adding 50 percent to your cost and expected a 50 percent profit margin, you already fell into the trap this article exists to fix. Markup and margin sound like the same idea wearing two different hats. They are not. They are two different math problems that happen to use the same two numbers, and mixing them up is one of the quietest ways e-commerce sellers underprice their own products.
Markup is profit calculated against your cost. Margin is profit calculated against your selling price. Same dollar of profit, two different denominators, two different percentages.
That single sentence explains more pricing mistakes in e-commerce than almost any other concept in small business accounting. Let’s break down why it matters and where it actually bites people.
Markup Explained: How Much Are You Adding to Cost?
Markup answers the question: how much did I add on top of what this cost me?
Formula: Markup percent = (Selling price minus Cost) divided by Cost, times 100
Say you buy a product for $20 and sell it for $30. Your profit is $10. Divide that $10 by your $20 cost, and you get 50 percent. That’s your markup. It’s the amount you tacked on relative to what you paid.
Suppliers, manufacturers, and wholesalers tend to talk in markup because their world revolves around cost. It’s a natural language for people thinking from the production side outward.
Margin Explained: How Much Profit Do You Keep?
Margin answers a different question: of every dollar a customer hands me, how much is actually profit?
Formula:
Margin percent = (Selling price minus Cost) divided by Selling price, times 100
Same example. $20 cost, $30 selling price, $10 profit. This time divide that $10 by the $30 selling price, and you get 33.3 percent. Not 50 percent. That gap between 50 and 33.3 is the entire reason this topic trips people up.
Accountants, investors, and anyone reading a profit and loss statement tend to think in margin, because margin tells you what share of revenue survives after cost. It’s usually a better single number for gauging business health, since revenue, not cost, is what actually flows into your bank account first.
Markup vs Margin: The Numbers Side by Side
This is the part people are really searching for. Here’s how markup and margin line up at matching profit levels.
| Markup Percent | Margin Percent |
| 10% | 9.1% |
| 20% | 16.7% |
| 25% | 20% |
| 33.3% | 25% |
| 50% | 33.3% |
| 66.7% | 40% |
| 100% | 50% |
| 150% | 60% |
| 300% | 75% |
Notice the pattern. Markup will always read higher than margin at the same underlying profit, and the gap widens as the percentages climb. A 100 percent markup, which sounds like doubling your money, only produces a 50 percent margin. A lot of sellers set pricing goals in markup language and then get quietly disappointed when their actual margin, the number that determines whether the business is healthy, comes in lower than expected.
How To Convert One Into The Other
You don’t need to memorize the table. Two formulas cover every scenario.
Markup to margin: Margin = Markup divided by (1 plus Markup)
Margin to markup: Markup = Margin divided by (1 minus Margin)
Plug in decimals, not percentage signs, and multiply the result by 100 at the end. A 50 percent markup becomes 0.5 divided by 1.5, which is 0.333, or 33.3 percent margin. Run it the other direction, and a 25 percent margin becomes 0.25 divided by 0.75, which is 0.333, or 33.3 percent markup. Same relationship, mirrored.
How to Price a Product for a Target Margin
Say your landed cost on a product, meaning what you paid the supplier plus inbound freight and packaging, comes to $18. You’ve decided you need a 40 percent margin on this item to make the numbers work.
- Convert margin to markup: 0.40 divided by (1 minus 0.40) equals 0.667, or 66.7 percent markup
- Apply that markup to cost: $18 times 1.667 equals $30.01, so you’d price it at $30
- Check it: $30 minus $18 is $12 profit. $12 divided by $30 is 40 percent margin, confirmed
That’s the whole workflow. Decide the margin you need first, convert it to a markup, then apply that markup to your cost to land on a selling price.
Which Ecommerce Costs Can Shrink Your Margin?
The formulas above only work as well as the cost figure you plug into them, and that’s where a lot of e-commerce sellers go wrong. It helps to separate cost into two different buckets.
Landed or product cost is what typically belongs in the markup and margin formulas: what you paid your supplier, plus inbound freight, duties, and packaging to get the product ready to sell. This is your baseline cost of goods sold.
Selling costs sit outside the basic markup and margin math entirely. Payment processing fees, marketplace or platform commissions, advertising spend, and the cost of returns and refunds are real and often significant, but they’re not part of the standard markup or margin formula. They get deducted separately, further down the income statement, which is why a product with a healthy margin on paper can still lose money once those additional costs are factored in.
If you’re setting a target margin using only your landed cost and never checking what’s left after platform fees, ad spend, and returns, the margin you think you have and the margin that actually lands in your bank account can be two very different numbers. Contribution margin is the metric built specifically to answer that second question, since it factors variable selling costs back in.
This distinction also matters when you run a sale. A seller aiming for a 40 percent margin might assume a 20 percent off promotion still leaves comfortable room. But a discount calculated off of the selling price eats into margin at a steeper rate than it looks like against markup, and that’s before accounting for the ad spend usually driving the promotion in the first place. Running a sale without first checking the math is a common way a “profitable” product turns into a break-even one for the duration of the promo.
Markup or Margin: Which Should Ecommerce Sellers Use?
Use markup when you’re setting an initial price from cost. It’s the natural tool for the moment you’re deciding what a product should sell for based on what it cost you to acquire or produce.
Use margin when you’re evaluating whether the business is actually healthy or comparing profitability across products. Margin is the number that shows up in profit and loss reporting; it’s what investors and lenders tend to look at, and it tells you what percentage of every sale actually survives as profit after the cost of goods sold is subtracted.
Most experienced e-commerce operators do both. They set the initial sticker price using a markup they’re comfortable with, then immediately check what margin that produces before finalizing it, since a markup that feels generous can still produce a margin too thin to absorb platform fees, ad spend, and returns once everything is accounted for.
If you want to go a level deeper than either metric, contribution margin strips variable selling costs, including ad spend, back out, and shows what’s genuinely left over. It’s a sharper lens once you’re past basic pricing and trying to judge whether a product is actually worth promoting.
What Counts As A Good Markup Percentage?
There isn’t a single markup number that works across e-commerce. It depends on your category, your average order value, how much you spend on advertising to generate a sale, your return rate, and how thin or thick your platform and payment fees run. A low-ticket, high-volume category with efficient shipping can sustain a thinner markup than a category with expensive freight, high return rates, or a lot of paid acquisition cost per order.
Rather than chasing a round number you saw somewhere, it’s more useful to work backward: figure out the margin you need after fees, average ad spend, and expected returns to actually be profitable, then convert that margin into the markup that gets you there using the formula above. A markup that looks generous on a spreadsheet but ignores those downstream costs is not a good markup, no matter what percentage it is.
4 Steps to Set a Profitable Ecommerce Price
Before locking in a price on a new product, run this sequence:
- Add up the true landed cost, not just the supplier price
- Decide the margin percent you need to cover fees, typical ad spend, and expected returns for that product
- Use the margin to markup formula above to find the markup that produces that margin
- Set your price from that markup, then sanity check it against what similar products sell for
Doing it in that order, margin first, protects the number that actually matters. Working backward from a markup that simply feels good, without checking what margin it produces or what costs still sit outside it, is how sellers end up profitable on paper and thin in the bank account.
How to Avoid Markup and Margin Pricing Mistakes
Markup and margin will always produce different percentages from the same profit, and the gap between them grows as pricing gets more aggressive. Treat markup as the tool you use to set a price, and margin as the number you use to judge whether that price actually works once landed cost, fees, advertising, and returns are all accounted for. Get that order right, and the rest of your pricing decisions will get noticeably easier to trust.
If your catalog has grown past the point where you can track this by feel, that’s usually the moment to bring in a fractional controller who can build out proper margin reporting by SKU, one that actually separates landed cost from platform fees, ad spend, and returns, rather than relying on gut checks at the point of sale.




