Margin vs. Markup: What’s the Difference?

If you run an ecommerce business, understanding margin vs. markup is critical to setting profitable prices. While these two ecommerce metrics sound similar, these two measure profit in very different ways and mixing them up can hurt your bottom line. Let’s break it down by margin vs markup definition.

What Is Margin?

Margin Formula:

Margin = (Selling Price – Cost) / Selling Price × 100

Margin Example:

Let’s say you sell a product for $50, and it costs you $30.

Margin = ($50 – $30) / $50 = 0.40 or 40%

What Is Markup?

Markup shows how much you’ve increased your cost price to set your selling price. It’s calculated as a percentage based on cost, not revenue.

Markup Formula:

Markup = (Selling Price – Cost) / Cost × 100

Markup Example:

Same product: selling price is $50, cost is $30.

Markup = ($50 – $30) / $30 = 0.666 or 66.67%

In other words, you’ve marked up your product by 66.67% from its original cost.

Knowing when to use margin and when to use markup is just as important as understanding the difference. Each metric serves a specific purpose in pricing, profitability analysis, and business decisions.

When to Use Margin

When to Use Markup

Why Using Both Markup and Margin Matters?

avatar
Tracy Ng

Senior Content Executive at TrueProfit & SEO/Content Specialist

Tracy Ng

Tracy is a senior content executive at TrueProfit – specializing in helping eCommerce businesses scale profitably through content. She has over 4 years of experience in eCommerce and digital marketing editorial writing. She develops high-impact content that helps thousands of Shopify merchants make data-driven, profit-focused decisions.

Let's Collaborate