How to use this calculator
- Enter cost, selling price.
- Review the assumptions and units shown beside the fields.
- Read the live result, calculation note, and worked examples before using the answer.
Markup measures price above cost
Markup answers a specific question: how large is the difference between selling price and cost when measured against cost? The calculator first finds profit as selling price − cost, then divides that difference by cost and multiplies by 100. Because cost is the denominator, markup describes the percentage added to the cost base.
If an item costs 40 and sells for 60, the difference is 20. Dividing 20 by the 40 cost gives 0.5, so markup is 50%. The price can also be reconstructed as cost × (1 + markup as a decimal): 40 × 1.5 = 60. That reverse check confirms both the percentage and its denominator.
The calculator's profit output is the arithmetic difference between the two entries. Whether it corresponds to gross profit, contribution, or another business measure depends on what has been included in cost. If labor, shipping, payment fees, or overhead are omitted from the cost entry, the calculator does not add them automatically. Label the cost basis before drawing a broader profitability conclusion.
Margin uses selling price instead
Profit margin uses the same price-minus-cost numerator but divides it by selling price. With cost 40 and price 60, profit is 20, markup is 20 ÷ 40 × 100 = 50%, and margin is 20 ÷ 60 × 100 = 33.333...%. Both percentages are correct; they answer different questions.
Markup describes profit relative to the money represented by cost. Margin describes profit as a share of revenue. When price is above a positive cost, selling price is the larger denominator, so margin is lower than markup. Treating a 50% markup as a 50% margin would overstate the share of the selling price represented by the 20 difference.
The labels matter more than the bare percentage. A report that says only 50% without naming markup or margin is ambiguous. Include the base explicitly, especially when comparing figures from different tools or teams. One source may use margin colloquially while another uses the precise selling-price denominator.
Worked example: cost 75 and price 100
For cost 75 and selling price 100, profit is 100 − 75 = 25. Markup is 25 ÷ 75 × 100 = 33.333...%, displayed as about 33.33%. Margin is 25 ÷ 100 × 100 = 25%. The numerator remains 25 in both calculations, while the denominator changes.
A reverse price check starts from the markup. Converting 33.333...% to a decimal gives one third. Multiplying cost by 1 + one third gives 75 × 4/3 = 100. Starting from the margin instead, price can be recovered as cost ÷ (1 − margin as a decimal): 75 ÷ 0.75 = 100.
Rounding the markup to 33.33% before reversing it gives a price slightly below 100 because 33.33% is an approximation to a repeating decimal. Preserve more digits in intermediate work and round the final displayed price according to the relevant currency rule. A small difference created by early rounding is not evidence that the two formulas conflict.
Negative markup when price is below cost
When selling price is below cost, the difference is negative. With cost 120 and price 90, profit is 90 − 120 = −30, not positive 30. Markup is −30 ÷ 120 × 100 = −25%. The negative sign indicates that price is 25% below the entered cost base.
The corresponding margin is −30 ÷ 90 × 100 = −33.333...%. Its magnitude differs because selling price 90 is the denominator rather than cost 120. Calling the result merely a 25% margin would be wrong in both sign and base. The output keeps the two rates separate so the loss can be described accurately.
A negative result can be intentional in a clearance or loss-leader scenario, but the calculator does not judge the strategy. It only compares the two entered amounts. If the price or cost refers to a different quantity, period, or currency, align those bases before interpreting the sign.
Converting a target markup into a price
To turn a target markup into a selling price, convert the percentage to a decimal and use price = cost × (1 + markup). For a cost of 80 and target markup of 30%, price is 80 × 1.30 = 104. Entering 80 and 104 into the calculator returns profit 24 and markup 30%.
The corresponding margin is 24 ÷ 104 × 100 = 23.076923...%, or about 23.08%. This example shows why the same target percentage cannot be used interchangeably as markup and margin. A 30% markup does not mean that 30% of revenue is the price-minus-cost difference.
To convert directly between positive rates, margin = markup ÷ (1 + markup) when both are decimals. Here 0.30 ÷ 1.30 = 0.230769..., matching 23.08%. Conversely, markup = margin ÷ (1 − margin) when margin is below 100%. These conversions preserve the underlying price and cost; they only change the denominator used to describe the same difference.
Break-even and zero-denominator cases
When cost and price are equal, profit, markup, and margin are all zero. With cost 100 and price 100, the difference is 0, and dividing that zero by either nonzero base gives 0%. This break-even input is a useful boundary check for the calculator.
A zero cost is different. With cost 0 and price 50, profit is 50 and margin is 100%, but markup is not defined because its formula would divide by zero. The function therefore returns no markup percentage. Describing the markup as infinite or as 100% would not match the implemented result or the standard formula.
With a zero selling price, margin is not defined. For cost 50 and price 0, profit is −50 and markup is −100%, but margin has a zero denominator and is not returned. These cases show why a percentage needs both a numerator and a valid base. The monetary difference can remain defined even when one of the percentage measures is not.
Keeping cost and price on the same basis
Cost and selling price must cover the same unit. A per-item cost cannot be compared directly with revenue for an entire batch. If 10 items cost 400 in total and one item sells for 60, either convert cost to 40 per item or convert price to 600 for the batch before calculating. Both aligned versions give profit 20 per item or 200 per batch and markup 50%.
Currency and time basis must also match. A cost in euros and price in dollars require conversion before subtraction. An annual service cost compared with a monthly fee needs the quantities brought to the same period. Selecting a currency symbol in the interface labels the output; it does not perform an exchange-rate conversion.
Define what the cost includes. A narrow purchase cost can be useful for a merchandise markup, while a broader cost including allocated expenses may be useful for another analysis. Neither definition is supplied by the arithmetic. Consistent, documented inputs make the resulting percentage comparable over time and across products.
Checking rounding and interpreting the output
Three checks catch most errors. First, verify profit as price minus cost, including its sign. Second, confirm that markup divides by cost and margin divides by price. Third, reconstruct the price from cost and markup. For cost 40 and markup 50%, the check is 40 × 1.5 = 60.
Keep full precision until the final presentation. The 75-to-100 example produces a repeating 33.333...% markup; 33.33% is a readable rounded value, not the exact fraction. State the chosen decimal places when comparing close rates, and avoid repeatedly feeding rounded percentages into later calculations.
Markup is a descriptive ratio, not a complete pricing recommendation. It does not include demand, taxes, regulations, competitors, or costs that were not entered. Use the calculator to make the cost-price relationship explicit, then apply any additional business assumptions separately and document them.
Reference and example table
| Case | Meaning |
|---|---|
| Example 1 | Cost 40 and price 60 creates a 50% markup. |
| Example 2 | Cost 75 and price 100 creates a 33.33% markup and 25% margin. |
| Example 3 | Cost 120 and price 90 creates a negative 25% markup. |
Frequently asked questions
What is the markup formula?
Markup = (selling price − cost) ÷ cost × 100. The calculator also reports the monetary difference and the corresponding profit margin.
Is markup the same as margin?
No. Markup divides the price-minus-cost difference by cost, while margin divides it by selling price. With cost 40 and price 60, markup is 50% and margin is about 33.33%.
Why does cost 75 and price 100 give 33.33% markup?
The difference is 25. Dividing 25 by the 75 cost gives one third, or 33.333...%, while dividing by the 100 price gives a 25% margin.
What does a negative markup mean?
It means selling price is below the entered cost. Cost 120 and price 90 produce profit −30 and markup −25%.
How do I set a price from a target markup?
Use price = cost × (1 + markup as a decimal). A cost of 80 with a 30% markup gives 80 × 1.30 = 104.
What happens when cost is zero?
Profit and margin can still be calculated for a nonzero price, but markup is not defined because its formula divides by cost. The function returns no markup percentage.
What happens when selling price is zero?
Margin is not defined because it would divide by zero. For cost 50 and price 0, profit is −50 and markup is −100%.
Does choosing a currency symbol convert the values?
No. The symbol only labels the amounts. Enter cost and price in the same currency and on the same per-item, per-project, or total basis.