Margin Calculator

Result Summary
Margin: 33.33%
Profit: $50.00
Markup: 50.00%

A free calculator to find your profit margin, gross margin, and more. Enter your cost and selling price — we will do the math.

What is margin?

Margin tells you how much profit you make from selling something. If you buy a product for $50 and sell it for $80, your profit is $30. The margin shows how big that profit is, compared to the selling price.

In this case:

It is a quick way to check if your business is making enough money from each sale.

How to calculate profit margin

Use this formula:

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

Below is the breakdown with an example:

So you are keeping 60 cents for every dollar of revenue.

Profit margin vs gross margin - are they the same?

They are often used interchangeably, but here is the difference:

This calculator focuses on gross margin. If you are running a small shop or ecommerce business, this is the one you will likely need.

Difference between Margin and Markup?

This is one of the most common confusions in pricing.

Below is an example:

After calculate both result is:

So, In the above scenario Margin is 50%, and Markup is 100%

They give you different numbers even though the cost and selling price are the same.

When to use each:

Most businesses stick to one method for consistency usually margin, because it directly shows how much profit you keep from each sale.

Reasons to Use a Margin Calculator

Whether you sell t-shirts, digital products, or coffee mugs — knowing your margin helps you price right and avoid undercharging.

Reverse calculation: What price should I sell at?

Let's say you want a 30% margin, and your cost is $70. Use this formula:

Selling Price = Cost Price ÷ (1 – Desired Margin)

So you’ll need to sell at $100 to hit a 30% margin.

Example:

Assume you are a Shopify seller and you import custom mugs at $5 each and want 40% margin.

Now you know the minimum you should charge to stay profitable.

Frequently Asked Questions

What is a good profit margin?

It depends on your industry. Most small businesses aim for at least 20%. In tech and software, margins can be much higher.

Is profit margin the same as markup?

No. Margin is based on the selling price. Markup is based on the cost price. Example: If your cost is $50 and margin is 50%, selling price is $100. But with a 50% markup, your selling price would be $75.

Can I use this calculator for services, not just products?

Absolutely. As long as you know your cost and what you want to charge, it works the same way.

Can it calculate required selling price from a target margin?

Yes, just switch to the reverse mode and input your cost and desired margin.