What Is Margin Calculator?

A free online margin calculator for e-commerce sellers, retailers, and business owners. Enter your revenue (selling price) and cost (COGS) to instantly see gross profit, margin percentage, markup percentage, break-even price, and recommended selling price for a target margin.

Profit margin is one of the most important metrics in any business. It tells you how much of each dollar of revenue is actually profit after accounting for costs. Margin Calculator computes gross profit, margin percentage, markup percentage, break-even price, and target margin pricing — everything you need to price products and evaluate profitability.

Enter the revenue (selling price) and cost (COGS — cost of goods sold). The calculator immediately shows the gross profit amount and the margin percentage. For example, a product sold for $100 that costs $60 to produce has a gross profit of $40 and a margin of 40%. That means 40% of the selling price is profit.

The markup percentage is also displayed — this is the profit expressed as a percentage of the cost, not the selling price. For the same $100 product costing $60, the markup is 66.7% ($40 profit ÷ $60 cost). Understanding the difference between margin and markup is critical for accurate pricing.

The break-even price shows the minimum selling price needed to cover costs (zero profit). The target margin section lets you enter a desired margin percentage, and the calculator shows the selling price needed to achieve it. For example, if you want 50% margin on a $60 cost, the selling price must be $120. The per-dollar breakdown shows how much of each dollar goes to cost vs. profit.

Real-World Use Cases for Margin Calculator

Pricing a Product to Achieve a Target Margin

You manufacture a widget with a COGS of $15. You want a 60% margin. Enter cost $15, desired margin 60%. The calculator shows the selling price should be $37.50. The current margin at $37.50 is 60%, markup is 150%. Use this to set your retail price confidently.

Analyzing the Margin on an Existing Product

You sell a subscription for $49/month with server and support costs of $15/month. Enter revenue $49, cost $15. Gross profit is $34, margin is 69.4%. This is a healthy margin for a SaaS product. The break-even price is $15 — you have a strong buffer above costs.

Determining if a Discounted Price Still Profits

Your $80 product (cost $35) is on sale for $60. Enter revenue $60, cost $35. Margin at full price is 56.3%. At sale price, margin drops to 41.7%. The markup at sale price is 71.4%. The discounted margin of 41.7% is still healthy, so the sale makes sense.

Why Use Margin Calculator?

  • Profit, margin, and markup calculations
  • Break-even price analysis
  • Target margin pricing recommendation
  • Per-dollar revenue profit breakdown

How to Use Margin Calculator — Step by Step

1

Enter your revenue or selling price.

2

Enter your cost or COGS.

3

View gross profit, margin %, and markup % instantly.

4

Use the analysis section for pricing recommendations.

Who Is Margin Calculator Best For?

  • e-commerce sellers
  • retailers
  • small business owners
  • entrepreneurs

Pro Tips for Margin Calculator

  • 1Margin and markup are not the same. A 50% margin means 50% of revenue is profit. A 50% markup means profit is 50% of cost. Confusing them leads to mispricing.
  • 2Industry benchmarks vary widely: retail 20-50%, SaaS 70-80%, restaurants 3-15%, consulting 50-80%. Know your industry's typical margin range.
  • 3Use the target margin feature for pricing new products. Start with your desired margin and let the calculator determine the selling price, rather than starting from cost.
  • 4The break-even price is your minimum. Any price above it generates profit, but ensure the margin is high enough to cover operating expenses beyond COGS.

Margin Calculator — Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit divided by revenue (selling price). Markup is profit divided by cost. For example, a 40% margin means 40% of the selling price is profit, while a 40% markup means profit is 40% of the cost.

What is a good profit margin?

It varies by industry. Retail typically ranges 20-50%, SaaS 70-80%, and restaurants 3-15%. Use the target margin feature to find the right price for your desired margin.

How accurate are the calculations?

All calculations use double-precision floating-point arithmetic following IEEE 754 standards. Financial calculations like loans and compound interest are verified against standard spreadsheet formulas.

Can I round results to a specific number of decimal places?

Results are typically displayed with up to 10 significant digits. You can mentally round to your desired precision for most practical use cases.

Is Margin Calculator really free to use?

Yes, Margin Calculator is completely free with no hidden charges, no usage limits, and no premium tiers. You can use it as often as you need without signing up or providing any personal information.

Ready to Use Margin Calculator?

Free online tool — works in your browser, no sign-up required. Start using it right now.

Try It Now
Free Forever · No Sign-up

182 Free Tools at Your Fingertips

All free online tools for developers, designers, students, and creators. Every tool works in your browser — no sign-up, no data collection.