U.UtilityApp
🔢 MathFree · No signup

Margin Calculator

Calculate profit margin and markup percentage from a selling price and cost — for pricing any product or service.

Reading the three results

Enter what you sell something for and what it costs you. The calculator returns:

  • Profit margin: (price − cost) ÷ price × 100
  • Profit: price − cost
  • Markup: (price − cost) ÷ cost × 100

With the defaults, a $100 price and a $70 cost give a 30.00% margin, $30 profit and a 42.86% markup. Read the margin as cents per dollar of sales: of every $1 a customer pays, 30 cents is left after covering the cost.

Gross or net: it depends on the cost you enter

The calculator has no idea what your cost includes. Enter only what you paid for the product and you get a gross margin per unit. Add shipping you absorb, payment and platform fees, packaging and a share of overheads, and the figure moves toward a net margin.

Say an item sells for $48. With a $31.20 total cost per unit, the calculator shows a 35.00% margin, $16.8 profit (that is, $16.80) and a 53.85% markup. Whichever version you use, keep it the same from month to month, or the margins won't be comparable.

Margins don't average

Suppose product A sells for $100 and costs $70 (a 30% margin), and product B sells for $20 and costs $10 (a 50% margin). Averaging the two percentages gives 40%, but that's not your margin on the pair.

Add the revenue and the costs first: $120 of sales and $80 of cost. Enter those and the calculator shows 33.33%. The big, low-margin product weighs more because more of your revenue comes from it. Always compute a store-wide or monthly margin from totals.

A higher margin isn't always more profit

A $200 item at a 20% margin earns $40 per sale. A $50 item at a 50% margin earns $25. The percentage tells you how efficiently each sale turns into profit; the dollar figure tells you what each sale contributes. Use margin to compare pricing and dollars to plan whether sales will cover your fixed costs.

Margin also tells you how much room you have when costs rise. The highest cost you can absorb at a minimum margin is price × (1 − minimum margin). At a $100 price with a 25% floor, costs can rise to $75 before you need to reprice.

Losses, zero costs and dashes

  • Cost above price: a $100 price with a $120 cost shows a −20.00% margin, a −16.67% markup and profit as $-20, meaning a $20 loss.
  • Zero cost: the margin is 100.00%, and markup shows a dash because nothing can be divided by a zero cost.
  • Zero price: the margin shows a dash for the same reason.

Frequently asked questions

What is a good profit margin?+

There is no single figure. A grocer and a software firm can both be healthy with very different margins. Compare yours with your own history and with businesses that sell similar things, and watch the trend: a margin that slips every quarter is a warning even if it still looks respectable.

How much do I need to sell to earn a profit target?+

Divide the target profit by the margin as a decimal. At a 30% margin, $3,000 of profit needs $10,000 of sales. That assumes the margin holds at every sale, so discounts and returns raise the figure.

Is this the same as margin in stock trading?+

No. A trading margin is money you deposit with a broker as collateral for borrowing. This calculator measures profit as a share of the selling price, which is the meaning used in pricing and accounts.

Guides & deep dives

Embed this tool on your website

Free to use on blogs, school sites and intranets. Paste this code into your page's HTML; please keep the credit line.

<iframe src="https://utilityapp.lat/embed/math/margin-calculator" title="Margin Calculator" width="100%" height="660" style="border:0;max-width:760px" loading="lazy"></iframe>
<p style="font-size:13px"><a href="https://utilityapp.lat/math/margin-calculator">Margin Calculator</a> by UtilityApp</p>