Download a video

E-COMMERCE · 4 MIN READ

Profit Margin vs Markup: Calculate the Right Percentage

Profit margin divides profit by revenue; markup divides the same profit by cost. If an item costs 60 and sells for 100, profit is 40, gross margin is 40% and markup is about 66.67%. Use consistent cost and revenue figures: these percentages are not interchangeable and do not automatically represent net business profit.

Start with consistent inputs

For an item-level check, use the item’s selling revenue and its corresponding direct cost in the same currency and unit basis. For a period-level check, use matching net revenue and cost of goods sold. Mixing one item’s cost with a whole month’s revenue produces a misleading percentage.

Gross profit excludes costs that you have not entered. It does not automatically deduct overhead, interest, income tax or every business expense. This guide explains arithmetic, not accounting treatment or a recommended selling price.

Use the calculator in three steps

  • Open Profit Margin Calculator and enter Cost and Revenue (selling price).
  • Run the calculation and read Profit, Gross margin and Markup separately.
  • Compare the output with your source figures and keep the same cost definition when comparing products.

Worked example: cost 60, revenue 100

The profit amount is the same in both percentages; only the denominator changes. Adding 40% markup to a cost of 60 gives a selling price of 84. The resulting profit is 24 and gross margin is 24 ÷ 84 × 100, about 28.57%, not 40%.

To calculate a price for a target gross margin mathematically, divide cost by 1 minus the target margin expressed as a decimal. With cost 60 and a 40% target: 60 ÷ (1 − 0.40) = 100. This formula does not establish whether that price is suitable for your market or covers all expenses.

ResultCalculationValue
Profit100 − 6040
Gross margin40 ÷ 100 × 10040%
Markup40 ÷ 60 × 100About 66.67%

Handle losses and undefined percentages

InputsInterpretation
Cost 120, revenue 100Profit −20; gross margin −20%; markup about −16.67%
Cost 0, revenue 100Profit 100; gross margin 100%; markup is undefined, shown as a dash
Revenue 0Gross margin would divide by zero; the tool rejects this input
Negative cost or revenueUse valid nonnegative figures; this simplified tool is not a model for every adjustment

Decide what the result can answer

The result can help you spot a denominator error or compare like-for-like gross margins. It does not forecast demand, certify profitability or include missing operating expenses. There is no universal good margin for every product or business.

If your question is how many sales cover fixed and variable costs, use a break-even workflow with clearly defined assumptions. For accounting, tax or pricing decisions, verify how your records classify revenue and cost with an appropriate professional. Formula reference reviewed 23 November 2026 by the Cloude Tools editorial team.

Frequently asked questions

Is a 40% markup the same as a 40% margin?

No. Markup uses cost as the denominator; margin uses revenue. Cost 60 with 40% markup sells for 84 and has about 28.57% gross margin.

Does this calculate net profit?

It subtracts the cost you enter from revenue. It does not automatically include all operating expenses, finance costs or tax.

Why is markup a dash when cost is zero?

Markup divides by cost. A zero denominator makes that percentage undefined.

Can gross margin be negative?

Yes. When entered cost exceeds positive revenue, profit and gross margin are negative.

Key takeaways

  • Use revenue for margin and cost for markup.
  • Keep currency, time period and cost definitions consistent.
  • A correct percentage does not establish overall profitability.

Published 23 November 2026 by the Cloude Tools team.