DuckyTools
Home Calculators Margin and Markup Calculator

Margin and Markup Calculator Calculators

Convert between cost, price, profit margin and markup.

Margin and Markup Calculator is a free online tool that convert between cost, price, profit margin and markup. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Calculators
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
4
Works offline
Yes, after the first visit

About Margin and Markup Calculator

Margin is profit over price; markup is profit over cost. Confusing them is a genuinely expensive mistake: a 50% markup is only a 33.3% margin, so a business that thinks it is making half on every sale is actually making a third. The tool shows both from whichever one you know.

How to use it

  1. Enter unit cost, i know the and value.
  2. Adjust the remaining 1 setting if the defaults do not fit your case.

The 4 settings

SettingWhat it doesDefault
Unit costA numeric value.40
I know theChoose from 3: Selling price, Target margin %, Target markup %.Selling price
ValueA numeric value.60
CurrencyChoose from 7: USD $, GBP £, EUR €, INR ₹, AUD A$, CAD C$….USD $

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsUnit cost, I know the, Value, Currency

Questions

What margin should I aim for?

It depends entirely on the sector — grocery retail runs on 1–3% net, software on 70%+ gross. What matters is that the margin covers your fixed costs at your realistic volume, which the Break-Even Calculator will tell you.

Why can I not have a 100% margin?

Because margin is profit as a share of price, and reaching 100% would require zero cost. The formula divides by (1 − margin), so 100% asks for a division by zero.

What does the i know the option change?

It offers 3 choices — Selling price, Target margin % and Target markup %. The default is Selling price, which suits most cases; change it when your input or your destination calls for something specific.

Is the arithmetic exact?

It uses double-precision floating point — about 15 significant figures, far more than the inputs justify. Displayed rounding is cosmetic; the underlying numbers are not rounded between steps, so chained results do not drift.