Everyday Math 9 Min Read

How to Calculate Markup vs Margin: Formulas & Differences

Markup and margin are two of the most critical metrics in sales, retail, and business. Confusing them can lead to major pricing errors and severe profit losses. Learn the math behind both.

ACN

AllCalcNow Editorial Team

Published June 25, 2026

When running a business or managing sales, your pricing strategy determines whether you make a profit or go out of business. To set prices and analyze profitability, managers use two key percentages: markup and gross profit margin.

Unfortunately, because both metrics use the relationship between cost and selling price, business owners and sales teams frequently use them interchangeably. Confusing markup with margin is a costly error. If you calculate your selling prices assuming a 30% margin but apply a 30% markup instead, you will underprice your product, leaving substantial profit on the table. In this guide, we define markup and margin, layout their mathematical formulas, work through step-by-step pricing examples, and show you how to navigate profit ratios like a professional.

Markup vs. Margin defined

While both metrics measure gross profit, they compare it to different reference points:

  • Markup: The percentage added to the wholesale cost of a product to determine its selling price. It measures profit relative to the product's **cost price**.
  • Margin (Gross Profit Margin): The percentage of the selling price that is profit. It measures profit relative to the product's **selling price** (revenue).

The Calculation Formulas

To calculate these ratios, we first determine the Gross Profit: `Gross Profit = Selling Price - Wholesale Cost`.

1. The Markup Formula

Markup is calculated by dividing gross profit by the wholesale cost:

Markup (%) = [ ( Selling Price - Cost ) / Cost ] * 100

2. The Margin Formula

Margin is calculated by dividing gross profit by the final selling price:

Margin (%) = [ ( Selling Price - Cost ) / Selling Price ] * 100

Convert Markups and Margins Instantly

Skip the manual fraction conversions. Use our free interactive Percentage Calculator to easily convert markup percentages to margins, find target price points, and audit transaction margins.

Step-by-Step Calculation Examples

Let's work through three scenarios to make the pricing arithmetic clear.

Example 1: Basic Markup and Margin Comparison

You buy a product for a wholesale cost of $100 and retail it for a selling price of $150. Let's calculate both metrics.

  • Calculate Gross Profit: $150 (Selling Price) - $100 (Cost) = $50.00
  • Calculate Markup:
    Divide profit by cost: `($50 / $100) * 100 = 50.00%`.
  • Calculate Margin:
    Divide profit by selling price: `($50 / $150) * 100 = 33.33%`.

This transaction has a **50% markup** but only a **33.3% gross profit margin**.

Example 2: Achieving a Target Margin vs. Markup

You source a product for $100. You want to price it to earn a 50% return. Let's see what happens if you apply a 50% markup vs. a 50% margin.

Scenario A: Applying a 50% Markup

  • Formula: `Selling Price = Cost * (1 + Markup / 100)`
  • Calculation: `$100 * (1 + 0.50) = $150.00`

Selling Price = $150.00 (Profit = $50.00, Margin = 33.33%)

Scenario B: Applying a 50% Margin Target

  • Formula: `Selling Price = Cost / (1 - Margin / 100)`
  • Calculation: `$100 / (1 - 0.50) = $100 / 0.50 = $200.00`

Selling Price = $200.00 (Profit = $100.00, Markup = 100.00%)

If you confuse these targets, you will price your product at $150 instead of $200, **losing $50 in gross profit per unit**. To achieve a true 50% profit margin, you must apply a 100% markup to the cost.

Example 3: Reversing the Margin to Find Cost

A competitor sells an item for $300. Industry data suggests they operate at a 40% gross margin. What is their estimated wholesale cost?

  • Identify the cost multiplier: `1 - Margin / 100 = 1 - 0.40 = 0.60` (Cost represents 60% of the selling price).
  • Multiply selling price by cost multiplier:
    Cost = $300 * 0.60 = $180.00

Their estimated wholesale cost is $180.00.

Markup to Margin Conversion Table

Target Margin (%) Required Markup (%) Wholesale Cost Resulting Selling Price
10% Margin 11.1% Markup $100.00 $111.11
20% Margin 25.0% Markup $100.00 $125.00
30% Margin 42.9% Markup $100.00 $142.86
50% Margin 100.0% Markup $100.00 $200.00
75% Margin 300.0% Markup $100.00 $400.00

Pricing Rules & Business Pitfalls

When evaluating product lines and transaction sheets, protect your business profits by avoiding these mistakes:

  1. Applying Markup Instead of Margin: Since markup is always higher than the equivalent margin, applying your margin target as a markup results in underpriced products. Ensure your pricing spreadsheets use the correct division formulas.
  2. Neglecting Overhead (Gross vs. Net Margin): Gross profit margin only accounts for the direct cost of goods sold (COGS). It ignores fixed overhead costs like rent, marketing, utilities, and payroll. A product line with a high gross margin can still lose money if net operational costs exceed those returns.
  3. The 100% Margin Myth: Profit margin can never reach or exceed 100% unless your wholesale cost is zero or negative. Since cost of goods is always positive, your profit margin will always be less than 100%. Markup, by contrast, has no ceiling and can reach 1,000% or more.

By checking your pricing math and verifying margins, you can establish healthy price points that cover operating expenses and drive business growth.

Frequently Asked Questions

What is the difference between markup and margin?

Markup is the percentage increase added to a product's wholesale cost to determine its retail price. Margin is the percentage of the selling price that is profit.

Why is markup always higher than margin?

Because markup calculates profit relative to a smaller number (wholesale cost), while margin calculates profit relative to a larger number (retail selling price).

Can profit margin be higher than 100%?

No. Profit margin can never be 100% or higher. It is calculated by dividing profit by selling price. Since selling price includes costs, profit can never equal or exceed selling price unless cost is zero or negative.