Profit margin calculator

Calculate your current profit margin, or the selling price that gives you the margin you want.

Last reviewed: October 2026 · How we review our tools

Calculate profit margin

Profit margin

Profit per unit
Markup (profit as a percentage of cost)

Selling price for a target margin

Selling price needed

Profit per unit

What does this tool calculate?

Profit margin is the share of every riyal you sell for that you keep after the cost is taken out. This page has two calculators:

How to use it

In the first calculator, enter the cost and the selling price. In the second, enter the cost and the margin you want as a percentage (from 0 to less than 100), then tap "Calculate" in the calculator you're using.

Worked example

How to read the result

The first calculator shows the margin, the profit per unit and the markup side by side. If the selling price is below the cost, the margin shows as negative with a warning that you're selling at a loss.

Margin and markup are not the same thing

Markup (profit on cost)Equivalent profit margin
25%20%
50%33.33%
100%50%

So adding 30% to the cost gives you a margin of only about 23%. If your goal is a specific margin, use the second calculator instead of adding a percentage to the cost.

Common questions

Why can't the margin reach 100%?

A 100% margin would mean the cost is zero or the selling price is infinite. That's why the second calculator only accepts a margin below 100%.

Which should I use for pricing: margin or markup?

Both are correct as long as you stick to one. Margin links profit to the selling price, which makes it easy to compare with expenses and sales, while markup is easier when you add a fixed percentage to the purchase price.

Also read: the difference between profit margin and markup, and how to price a product in your online store, step by step

Related tools