Margin calculator

Margin Calculator — Profit Margin, Markup & Selling Price | Gameast
GAMEAST

Margin Calculator

Work out your profit margin, markup and gross profit from cost and selling price, or find the selling price you need to hit a target margin.

Margin Calculator — 3 Modes
Profit Margin
—
—
Cost
—
Selling price
—
Gross profit
—
Margin
—
Markup
—
Where each sale goes—

What is profit margin?

Profit margin tells you what share of each sale you keep as profit. If you sell something for $100 and it cost you $60, your gross profit is $40, and your margin is 40%. Margin is always expressed against the selling price, which makes it easy to compare products, shops and businesses of different sizes.

This calculator uses gross margin: selling price minus the direct cost of the item. It does not include rent, wages, advertising, platform fees or tax, so your real take-home margin will be lower. Include those costs in the cost field if you want a net figure.

Margin vs markup: the difference

People mix these up constantly, and it leads to underpriced products. Both use the same profit figure, but they divide it by different things:

  • Margin = profit ÷ selling price
  • Markup = profit ÷ cost

Because the selling price is larger than the cost, markup is always a bigger number than margin for the same sale. A product bought for $60 and sold for $100 has a 40% margin but a 66.7% markup.

⚠️ Classic mistake: Adding a 50% markup does not give you a 50% margin. It gives you 33.3%. If your target is a 50% margin, you need to sell at double your cost, which is a 100% markup.

Margin and markup formulas

Profit margin

Formula
Margin % = (Price − Cost) ÷ Price × 100
Example: cost $60, price $100 → (100 − 60) ÷ 100 × 100 = 40%

Markup

Formula
Markup % = (Price − Cost) ÷ Cost × 100
Example: cost $60, price $100 → (100 − 60) ÷ 60 × 100 = 66.7%

Selling price from a target margin

Formula
Price = Cost ÷ (1 − Margin%)
Example: cost $60, target margin 40% → 60 ÷ 0.60 = $100

Selling price from a target markup

Formula
Price = Cost × (1 + Markup%)
Example: cost $60, markup 50% → 60 × 1.50 = $90

Maximum cost for a required margin

Formula
Max Cost = Price × (1 − Margin%)
Example: price $100, required margin 40% → 100 × 0.60 = $60

Margin to markup conversion table

Use this table to translate between the two quickly. The conversions come from Markup = Margin ÷ (1 − Margin).

MarginEquivalent markupPrice on $100 cost
10%11.1%$111.11
20%25%$125.00
25%33.3%$133.33
30%42.9%$142.86
40%66.7%$166.67
50%100%$200.00
60%150%$250.00
75%300%$400.00

Typical margins by industry

“Good” margin depends heavily on the business. These are rough, commonly cited ranges for gross margin. Real figures vary a lot by country, product and scale, so treat them as a starting point rather than a target.

Business typeTypical gross margin rangeWhy
Grocery / supermarketRoughly 20–30%High volume, thin margins
General retailRoughly 30–50%Depends on category and brand
RestaurantsRoughly 60–70% (before labour and rent)Food cost is only part of total cost
E-commerce / dropshippingRoughly 15–40%Ad spend and fees reduce what is left
Software / digital productsOften 70–90%Low cost to serve each extra customer
Services / consultingOften 50–80%Mostly time, little material cost
💡 Tip: A high gross margin does not guarantee profit. After advertising, platform fees, wages and tax, the net margin is often a fraction of the gross figure. Always compare your own margin against your own running costs.

Common pricing mistakes

  • Confusing markup with margin — The most frequent error. Set prices using the formula for the one you actually want to hit.
  • Forgetting hidden costs — Shipping, payment processing fees, packaging, returns and platform commissions all belong in your cost.
  • Discounting without checking margin — A 20% discount on a 25% margin product leaves you with roughly a 6% margin. Check with our Discount Calculator before running a sale.
  • Pricing from competitors only — Matching a competitor’s price is risky if their costs are lower than yours.
  • Ignoring currency changes — If you import goods, exchange rate moves can erase your margin between ordering and selling.

Frequently asked questions

How do you calculate profit margin?
+
Margin = (Price − Cost) ÷ Price × 100. With a cost of $60 and a price of $100, profit is $40 and margin is 40%. Use Mode 1 above to do this instantly.
What is the difference between margin and markup?
+
Margin divides profit by the selling price. Markup divides profit by the cost. For the same sale, markup is always the larger number. A 40% margin equals a 66.7% markup.
How do I price a product to get a 30% margin?
+
Divide your cost by 0.70. For a cost of $70, the price is $70 ÷ 0.70 = $100. Use Mode 2 with “Profit margin %” selected to calculate it for any cost.
Is a 50% markup the same as a 50% margin?
+
No. A 50% markup is a 33.3% margin. To get a 50% margin you need a 100% markup, meaning you sell at twice your cost.
What is a good profit margin?
+
It depends on the industry. Grocery businesses often run on thin margins, while software and services can reach much higher. A better question is whether your margin covers your running costs and leaves a profit you are happy with. See the industry table above for rough ranges.
Can margin be negative?
+
Yes. If your selling price is lower than your cost, you are selling at a loss and the margin is negative. The calculator shows this clearly so you can adjust the price.