GUIDES & EDUCATIONAL ARTICLES July 13, 2026 · 8 Min Read

Markup and Margin Calculator – Calculate Profit Metrics

Free online markup and margin calculator. Solve for gross profit margin, markup, wholesale cost.

Every business that sells a product or service must understand the difference between markup and margin, two fundamental metrics that measure profitability in distinct but related ways. Markup refers to the percentage added to the cost of a product to determine its selling price, while margin refers to the percentage of the selling price that represents gross profit. Confusing these two concepts can lead to serious pricing errors that erode profitability. A markup and margin calculator helps entrepreneurs, managers, and students quickly convert between these figures and make sound pricing decisions.

Key Takeaway

Markup is calculated as profit divided by cost, while margin is calculated as profit divided by selling price. Because the denominators differ, a 50% markup does not equal a 50% margin. A 50% markup actually corresponds to a 33.3% margin.

1. Defining Markup and Margin

Markup is expressed as a percentage of the cost. If a retailer buys a product for $50 and sells it for $75, the profit is $25. The markup is $25 / $50 = 50%. This tells you that the selling price is 50% above the cost.

Gross margin (or profit margin) is expressed as a percentage of the selling price. Using the same example, the margin is $25 / $75 = 33.3%. This tells you that one-third of every dollar of revenue is gross profit. The formulas are:

  • Markup = (Selling Price - Cost) / Cost x 100
  • Margin = (Selling Price - Cost) / Selling Price x 100

2. Why the Distinction Matters

Many business owners use the terms interchangeably, but doing so can lead to significant financial miscalculations. Suppose a business owner wants a 40% margin on a product that costs $100. The correct selling price would be $100 / (1 - 0.40) = $166.67. However, if the owner mistakenly applies a 40% markup instead, the selling price would be $140, yielding only a 28.6% margin. Over hundreds or thousands of transactions, this mistake can cost tens of thousands of dollars in lost profit.

Markup is typically used in retail and wholesale pricing to ensure that the price covers the cost and provides a desired return. Margin is more commonly used in financial analysis, accounting, and investor reporting because it directly relates profitability to revenue. Understanding both metrics allows business owners to set prices strategically, evaluate competitor pricing, and communicate financial performance accurately to stakeholders.

3. Using the Calculator

The markup and margin calculator accepts any two of three values (cost, selling price, or profit) along with either the desired markup or margin percentage. It then solves for the remaining values. This is especially useful when you know your cost and target margin and need to determine the correct selling price, or when you want to reverse-engineer the cost from a known selling price and margin. The calculator handles the algebra instantly, eliminating the risk of manual errors.