Margin Calculator

Margin Calculator

Margin Calculator

Enter any two of Cost, Revenue, Profit, or Margin %, and this calculator will fill in the rest & show Markup % too.

Inputs
Tip: Use your own currency. Just enter numbers (no commas or symbols).
Enter exactly two values above, then click Calculate.
Show calculation steps

Steps will appear here after you calculate.

Result

Cost:
Revenue:
Profit:
Margin (%):
Markup (%):

Key formulas

  • Profit = Revenue − Cost
  • Margin % = (Profit ÷ Revenue) × 100
  • Markup % = (Profit ÷ Cost) × 100
  • Revenue = Cost + Profit
  • Cost = Revenue − Profit

Note

This tool assumes positive values. If your cost is 0 or margin is 100%, the math breaks, so you’ll see an error message instead.

How Does a Margin Calculator Work?

A margin calculator is a simple tool that helps you understand how much money you are really making from a product or service. Many people know their cost and selling price, but they don’t always know how much profit they are actually earning or what percentage margin they are achieving. That’s where this calculator becomes incredibly useful.

In business, four numbers are closely connected:

  1. Cost – how much it costs you to produce or buy the item
  2. Revenue (Selling Price) – how much you sell it for
  3. Profit – the money you earn after subtracting cost
  4. Margin % – the percentage of revenue that is your profit

If you know any two of these values, the calculator can instantly compute the other two. This saves time, helps avoid mistakes, and supports quick decision-making for pricing, planning, budgeting, and sales strategies.

Understanding the Key Elements

1. Cost

This is the amount you spend to produce an item or provide a service. It may include purchasing cost, shipping, labor, packaging, or other expenses.

2. Revenue

This is the price at which you sell the item. Revenue must always be higher than cost if you want to earn a profit.

3. Profit

Profit is simply the difference between revenue and cost:

Profit = Revenue − Cost

This tells you how much money you actually earn from each sale.

4. Margin (%)

Margin is your profit expressed as a percentage of your selling price. It shows how much of each rupee (or dollar) you keep as profit.

Margin % = (Profit ÷ Revenue) × 100

For example, if you sell something for ₹100 and your profit is ₹30, your margin is 30%.

5. Markup (%)

Margin is often confused with markup, but they are different.
Markup is profit as a percentage of cost:

Markup % = (Profit ÷ Cost) × 100

Both values are useful, but margin is generally used in business performance, while markup helps in pricing decisions.

How to Calculate Margin?

The margin calculator accepts these four inputs:

  • Cost
  • Revenue
  • Profit
  • Margin %

You only need to enter any two values. The calculator then uses formulas to calculate the remaining two.

Below is how it works depending on what you enter:

A) If you enter Cost + Revenue

The calculator will find:

  • Profit = Revenue – Cost
  • Margin % = (Profit ÷ Revenue) × 100
  • Markup % = (Profit ÷ Cost) × 100

Example:
Cost = ₹300, Revenue = ₹500
Profit = ₹200, Margin = 40%, Markup = 66.67%

B) If you enter Cost + Profit

The calculator will find:

  • Revenue = Cost + Profit
  • Margin % = (Profit ÷ Revenue) × 100
  • Markup % = (Profit ÷ Cost) × 100

C) If you enter Cost + Margin%

The calculator will find:

  • Revenue = Cost ÷ (1 − Margin/100)
  • Profit = Revenue − Cost
  • Markup % = (Profit ÷ Cost) × 100

D) If you enter Revenue + Profit

The calculator will find:

  • Cost = Revenue − Profit
  • Margin % = (Profit ÷ Revenue) × 100
  • Markup % = (Profit ÷ Cost) × 100

E) If you enter Revenue + Margin%

The calculator will find:

  • Profit = (Margin/100) × Revenue
  • Cost = Revenue − Profit
  • Markup % = (Profit ÷ Cost) × 100

F) If you enter Profit + Margin%

The calculator will find:

  • Revenue = Profit ÷ (Margin/100)
  • Cost = Revenue − Profit
  • Markup % = (Profit ÷ Cost) × 100

Real-Life Example

Imagine you run a small shop and you are planning to sell a product. You bought the product for ₹300, and you want to sell it for ₹500. You want to know:

  • How much profit will I make?
  • What is my margin percentage?
  • What is my markup?

Let’s calculate:

1. Profit

Profit = Revenue − Cost
Profit = 500 − 300
Profit = ₹200

This means you earn ₹200 for every piece you sell.

2. Margin (%)

Margin % = (Profit ÷ Revenue) × 100
Margin % = (200 ÷ 500) × 100
Margin % = 40%

So 40% of your selling price is your profit.

3. Markup (%)

Markup % = (Profit ÷ Cost) × 100
Markup % = (200 ÷ 300) × 100
Markup % = 66.67%

This means your selling price is 66.67% higher than your cost.

Why Is This Calculator Useful?

  • It helps you understand if your pricing is profitable
  • It avoids underpricing or overpricing
  • It saves time in manual calculations
  • It helps you decide discounts, selling price changes, and profit planning
  • It is extremely helpful for shop owners, freelancers, wholesalers, agencies, and students

Instead of doing the math manually every time, you can enter just two numbers and instantly get the complete picture of your cost, revenue, profit, margin, and markup.