E-commerce4 min read

How to Calculate Profit Margin (Formula & Examples)

Profit margin tells you how much of every dollar of revenue you actually keep after costs. It's the single clearest measure of whether a product — or a whole store — is worth selling.

The good news: the math is simple, and once you know it you can price with confidence. Here's the formula, a worked example, and the benchmarks that matter.

Profit Margin Calculator

Your numbers

Enter your price and cost — results update instantly.

$
$

All-in cost per unit

Profit margin
61.7%
$18.49 / unit
Markup
160.8%
Profit ÷ cost
Gross profit / unit
$18.49
Monthly profit
$5,547.00
300 units
Monthly revenue
$8,997.00

The profit margin formula

Profit margin (%) = (Sale price − Cost) ÷ Sale price × 100. If you sell an item for $30 that costs you $12 all-in, your gross profit is $18 and your margin is 18 ÷ 30 = 60%.

The key is that “cost” should be everything it takes to deliver the product: the product itself, shipping, packaging, payment and marketplace fees. Leave one out and your margin will look healthier than it really is.

Margin vs markup — they're not the same

Markup measures profit against cost, not price: Markup (%) = (Price − Cost) ÷ Cost × 100. The same $30 item with $12 cost has a 60% margin but a 150% markup.

Confusing the two is one of the most common pricing mistakes. If you set prices from a “60% markup,” you'll earn far less margin than you think.

What's a good profit margin?

It varies by model. Healthy e-commerce and retail businesses often run 40–60% gross margin and 10–20% net margin after operating costs. Below ~10% net leaves little room for ad spend, returns, or a bad month.

Rather than chase a universal number, aim to (1) know your true margin per product, and (2) protect enough of it to fund growth. The calculator above does the first part instantly.

Frequently asked questions

What is a good profit margin?

It depends on your model, but many healthy e-commerce businesses run a 40–60% gross margin and a 10–20% net margin. Below about 10% net profit margin, there's little cushion for ads, returns, or cost increases.

Is profit margin the same as markup?

No. Margin is profit as a percentage of the sale price; markup is profit as a percentage of cost. A 60% margin equals a 150% markup on the same item, so it's important not to mix them up when pricing.

How do I increase my profit margin?

Raise prices where the market allows, lower your landed cost (negotiate with suppliers, cut shipping/packaging waste), reduce marketplace and payment fees, and drop or reprice products whose margin is too thin to be worth selling.

Track this on a live dashboard

Connect your store and watch these numbers update themselves — no spreadsheets.

Get early access

Keep reading