Profit Margin Calculator

Enter what an item costs you and what you sell it for. You get the profit per sale, the gross margin and the equivalent markup — the three numbers people most often mix up.

$
What you pay for one unit (product, packaging, inbound shipping).
$
Gross margin—
Profit per unit—
Markup—

How to calculate profit margin

Gross margin tells you what share of the selling price you keep after paying for the product itself.

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

Example: you buy a mug for $30 and sell it for $50. Profit is $20. Margin is 20 ÷ 50 = 40%. Markup is 20 ÷ 30 = 66.67%. Same mug, same profit, two very different percentages.

Margin vs. markup

Margin divides profit by the price; markup divides it by the cost. Because price is always larger than cost (when you make a profit), margin is always the smaller number. Margin can never reach 100%, while markup has no upper limit.

MarkupMargin
25%20%
50%33.3%
100%50%
200%66.7%
300%75%

Mixing them up is one of the most common pricing mistakes: a seller who wants a “50% margin” but adds a 50% markup ends up with only a 33% margin.

What should you include in cost?

For gross margin, include everything you pay to get one unit ready to sell: the product, packaging, and inbound freight. Payment fees, marketplace fees, advertising and outbound shipping are usually handled separately — see the break-even ROAS calculator or the fee calculators to account for them.

Frequently asked questions

What is a good profit margin for e-commerce?

It varies a lot by category. Many online stores aim for a gross margin of 40–60% so that there is still money left after advertising, payment fees and shipping. Low-margin categories such as electronics often run far below that and rely on volume.

Can profit margin be more than 100%?

No. Margin is profit divided by price, and profit can never exceed the price, so the maximum is just under 100%. Markup, which divides by cost, can be any size.

How do I find the price for a target margin?

Divide the cost by (1 − target margin). For a $30 cost and a 40% margin, the price is 30 ÷ 0.6 = $50. Use the selling price calculator to do this automatically.

Is gross margin the same as net margin?

No. Gross margin only subtracts the cost of the product. Net margin subtracts every expense — fees, ads, salaries, rent and taxes — so it is always lower.