Markup Calculator
Calculate markup as a percentage of cost from cost and price, and see why it differs from margin.
What this calculator does
Markup expresses the difference between price and cost as a percentage of cost. It is the number a seller adds to cost.
The result is printed as the markup percentage.
How to use it
Enter the cost and the price, then press Run.
The inputs are:
- Cost (starts at 80)
- Price (starts at 100)
Worked example
Input: 80.00 cost and 100.00 price.
Output: Markup = 25.0000% (price 100.00, cost 80.00).
Assumptions and rounding
Cost and price are per unit in the same currency. Markup prints to four decimal places; a price below cost produces a negative markup rather than an error.
What it refuses
A zero or negative cost is refused because the percentage is undefined; a negative price is refused.
Why it runs in your browser
The arithmetic happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Markup expresses the difference between price and cost as a percentage of cost. It is the number a seller adds to cost.
Cost and price are per unit in the same currency. Markup prints to four decimal places; a price below cost produces a negative markup rather than an error.
What the result means
Markup is always larger than the equivalent margin because the denominator is the smaller cost figure. A 25% markup on 80 is a 20% margin on 100.
How to use this calculator
Enter the cost and the price, then press Run.
Assumptions, rate basis and rounding
Cost and price are per unit in the same currency. Markup prints to four decimal places; a price below cost produces a negative markup rather than an error.
What to Expect
Best for
- Set a selling price from a known cost and target markup.
- Checking a quoted number before you act on it.
Not ideal for
- It does not include overhead, discounts, tax or volume.
- Decisions that need tax, legal or investment advice.
What this tool keeps
- Cost and price.
- The result is shown immediately; nothing is saved.
What may need cleanup
- Nothing: every run reads the fields fresh.
- Amounts must use one currency; no conversion is done.
Common errors
- A zero or negative cost is refused because the percentage is undefined; a negative price is refused.
- Entering a percentage as a decimal (0.06 instead of 6).
Example use cases
- Set a selling price from a known cost and target markup.
- Comparing two scenarios by changing one input at a time.
Sample input
80.00 cost and 100.00 price.
Sample output
Markup = 25.0000% (price 100.00, cost 80.00).
Who this is for
- Students and analysts checking a formula.
- Small-business owners and anyone comparing a quoted rate.
Frequently asked questions
What rate basis does this calculator use?
Cost and price are per unit in the same currency. Markup prints to four decimal places; a price below cost produces a negative markup rather than an error.
What input does it refuse?
A zero or negative cost is refused because the percentage is undefined; a negative price is refused.
Why is markup 25% when the margin is 20%?
Markup divides by cost (20/80) while margin divides by price (20/100); the same profit is a larger share of the smaller base.
Is this financial advice?
No. It is an arithmetic tool that applies the formula it states to the numbers you enter. It does not know your circumstances and does not recommend a product, a security or a course of action.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.