margin percentage calculator

Gross Margin Calculator

Enter your cost and selling price to calculate margin percentage, profit, and markup.


Target Margin Planner

Want a specific margin? Enter your cost and target margin to estimate the required selling price.

What is margin percentage?

Margin percentage tells you how much of every sale dollar you keep after covering the direct cost of the item. It is one of the most useful numbers for pricing, profitability, and business planning.

The formula is straightforward:

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

Example: If an item costs $30 and sells for $50, your profit is $20. Margin is $20 ÷ $50 = 40%.

Margin vs. markup: why people mix them up

Margin and markup are related, but they are not the same. Confusing them can cause major pricing errors.

Markup

Markup compares profit to cost:

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

Margin

Margin compares profit to selling price:

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

A 50% markup is not a 50% margin. For instance, if cost is $100 and you apply a 50% markup, price is $150. Margin is then $50/$150 = 33.33%.

How to use this margin percentage calculator

Mode 1: Calculate margin from cost and price

  • Enter your cost per unit.
  • Enter your selling price per unit.
  • Click Calculate Margin.

You’ll instantly see gross profit amount, gross margin percentage, and markup percentage.

Mode 2: Calculate required selling price from a target margin

  • Enter your cost.
  • Enter your desired margin percentage.
  • Click Calculate Required Price.

This is useful for quoting projects, setting retail prices, or testing “what-if” scenarios before launch.

Practical margin examples

Retail product

A shirt costs $18 landed and sells for $36. Profit is $18. Margin is 50%. Simple and healthy.

Food service item

A drink has ingredient cost of $1.20 and sells for $4.80. Profit is $3.60. Margin is 75%. This can help offset labor, rent, spoilage, and payment fees.

Freelance or agency work

If a project requires $1,000 of labor and software costs, and you quote $1,800, profit is $800. Margin is 44.44%. This helps determine whether the project supports overhead and growth goals.

Common pricing mistakes to avoid

  • Using markup when you need margin: This leads to lower-than-expected profitability.
  • Ignoring non-product costs: Shipping, returns, packaging, and transaction fees can erode margin quickly.
  • Discounting without recalculating: A small discount can cause a disproportionately large margin drop.
  • Copying competitor prices blindly: Your cost structure may be completely different.

How to improve your gross margin

Increase perceived value

Better positioning, packaging, and customer experience can support stronger pricing without a cost increase.

Reduce cost strategically

Negotiate suppliers, improve operations, reduce waste, and standardize processes where possible.

Use price tiers

Offer good/better/best options to capture multiple budgets while protecting margin on premium offers.

Track by product line

Overall margin can hide weak items. Measure by SKU, service type, or customer segment to make smarter decisions.

Final takeaway

Margin percentage is one of the clearest indicators of pricing health. With a reliable calculator and regular reviews, you can set better prices, improve profitability, and make decisions with confidence. Use the tool above to check current performance and plan future pricing targets in minutes.

🔗 Related Calculators