margin and markup calculator

Margin & Markup Calculator

Use this calculator to compare gross margin and markup, or to find the right selling price from a target markup or margin percentage.

1) Analyze an Existing Price

Enter your cost and current selling price to see profit, markup %, and margin %.

2) Find Selling Price from Markup %

Markup is based on cost. Example: 50% markup on $20 cost = $30 price.

3) Find Selling Price from Margin %

Margin is based on selling price. Example: 40% margin on $20 cost = $33.33 price.

Understanding Margin vs Markup

Margin and markup are both profitability metrics, but they are not interchangeable. Confusing these two numbers is one of the most common pricing mistakes in retail, ecommerce, wholesale, and service businesses.

  • Markup compares profit to cost.
  • Margin compares profit to selling price.

Because they use different denominators, the percentages are always different unless profit is zero.

Core Formulas

  • Profit = Selling Price - Cost
  • Markup % = (Profit / Cost) × 100
  • Margin % = (Profit / Selling Price) × 100
  • Selling Price from Markup = Cost × (1 + Markup%/100)
  • Selling Price from Margin = Cost ÷ (1 - Margin%/100)

Why This Matters for Pricing Strategy

If you aim for a 40% margin but accidentally apply a 40% markup, your actual margin will be only 28.57%. Over hundreds or thousands of sales, that gap can erase a large share of your expected profit.

The calculator above helps you avoid that error by showing both metrics side-by-side for every scenario.

Practical Example

Example A: You Know Cost and Selling Price

Cost = $50, Selling Price = $80. Profit is $30. Markup is 60% ($30/$50). Margin is 37.5% ($30/$80).

Example B: You Need a 35% Margin

Cost = $50. Required price = $50 ÷ (1 - 0.35) = $76.92. That corresponds to a markup of 53.85%.

Common Mistakes to Avoid

  • Using markup targets when your business goals are written in margin terms.
  • Ignoring variable costs such as shipping, payment fees, returns, and packaging.
  • Forgetting to update prices when supplier costs rise.
  • Assuming all products should carry the same margin.

Tips for Better Margin Management

  • Set minimum margin thresholds by product category.
  • Review gross margin monthly and compare to plan.
  • Use break-even and contribution analysis for promotions.
  • Track both unit economics and blended portfolio margin.

Quick FAQ

Is a 50% markup equal to a 50% margin?

No. A 50% markup equals a 33.33% margin.

Can margin be 100%?

No. A 100% margin would require infinite price unless cost is zero.

Which metric should I use?

Use whichever your business planning requires, but always confirm both numbers before finalizing price decisions.

🔗 Related Calculators