price margin calculator

Interactive Price Margin Calculator

Calculate profit margin, markup, selling price, or cost price in seconds.

Whether you run an ecommerce shop, a wholesale business, or a side hustle, pricing decisions can make or break profitability. A good price margin calculator helps you set prices quickly and with confidence. Instead of guessing, you can work from clear numbers: cost, selling price, profit, margin, and markup.

What this price margin calculator does

This tool supports three core pricing tasks:

  • Find margin and markup when you already know your cost and selling price.
  • Find selling price when you know your cost and the margin you want to hit.
  • Find cost price when you know your selling price and desired margin.

That makes it useful for both planning and analysis. You can use it before launching a product, and you can use it after a sales period to evaluate performance.

Margin vs. markup (the most common pricing confusion)

Gross Margin

Margin is profit as a percentage of selling price:

Margin (%) = (Selling Price - Cost Price) / Selling Price × 100

Margin answers the question: What percentage of revenue do I keep as gross profit?

Markup

Markup is profit as a percentage of cost:

Markup (%) = (Selling Price - Cost Price) / Cost Price × 100

Markup answers the question: How much did I add to my cost?

These are not interchangeable. A 50% markup does not mean a 50% margin. In fact, 50% markup equals a 33.33% margin.

How to use the calculator

1) Find margin and markup

Select Find Margin & Markup, enter your cost and selling price, then click Calculate. You’ll get:

  • Gross profit amount
  • Margin percentage
  • Markup percentage
  • Profit status (profit, break-even, or loss)

2) Find selling price from target margin

Select Find Selling Price, enter your cost and target margin. The calculator returns the exact selling price required to meet your goal.

3) Find cost price from selling price and margin

Select Find Cost Price, enter your selling price and desired margin. This is useful when you need to know your maximum allowable cost from suppliers.

Core formulas behind the calculator

These are the formulas used by the tool:

  • Profit = Selling Price − Cost Price
  • Margin (%) = Profit / Selling Price × 100
  • Markup (%) = Profit / Cost Price × 100
  • Selling Price from target margin = Cost Price ÷ (1 − Margin)
  • Cost Price from target margin = Selling Price × (1 − Margin)

Note: for formula calculations, margin is converted from percentage to decimal. Example: 35% becomes 0.35.

Quick reference: target margin and required markup

Target Margin Required Markup
10%11.11%
20%25.00%
30%42.86%
40%66.67%
50%100.00%
60%150.00%
70%233.33%

Common pricing mistakes to avoid

  • Confusing margin and markup and underpricing products.
  • Ignoring variable costs such as shipping, transaction fees, returns, and packaging.
  • Using one target margin for every product instead of category-based pricing.
  • Discounting too aggressively without testing the impact on margin.
  • Not reviewing prices regularly when supplier costs change.

Practical examples

Retail example

If your product costs $18 and you sell for $30, your profit is $12, margin is 40%, and markup is 66.67%.

Target pricing example

If your cost is $55 and you need a 35% margin, your selling price should be about $84.62.

Sourcing limit example

If you sell at $120 and require a 45% margin, your cost should be no higher than $66.00.

Frequently asked questions

Is gross margin the same as net profit margin?

No. Gross margin only considers direct product cost (COGS). Net margin includes operating expenses, taxes, overhead, and other costs.

Can I use this for services?

Yes. Use your effective service delivery cost as “cost price” and client fee as “selling price.”

What is a good margin?

It depends on industry, competition, and cost structure. Many product businesses target margins between 30% and 60%, but your ideal number should reflect your overhead and growth goals.

Final thoughts

A reliable price margin calculator makes pricing decisions faster and more accurate. Use it before setting prices, during promotions, and when negotiating supplier costs. Better pricing discipline means healthier margins, stronger cash flow, and a more sustainable business over time.

🔗 Related Calculators

🔗 Related Calculators