TechBuzzPro

Margin Percentage Formula & How to Calculate It

· 4 min read · Apps & Browsers

In this article
  1. What Is Margin Percentage?
  2. How to Calculate Margin Percentage
  3. Margin vs. Markup: What’s the Difference?
  4. How to Use Margin Percentage in Pricing
  5. Common Mistakes When Calculating Margin
  6. Limitations of Margin Percentage
  7. Frequently Asked Questions

The formula for calculating margin percentage is: Margin Percentage = (Selling Price – Cost Price) / Selling Price × 100. This gives the percentage of each sales dollar that remains as profit after covering the cost of the goods sold.

What Is Margin Percentage?

Margin percentage, often called profit margin, measures how much of your revenue is actual profit. It’s a key metric for pricing products, evaluating business performance, and comparing profitability across different items or companies. Unlike a simple markup (which is based on cost), margin is always expressed as a percentage of the selling price.

How to Calculate Margin Percentage

Follow these steps to find the margin percentage for any product or service:

  1. Determine the selling price (what the customer pays).
  2. Determine the cost price (what you paid to acquire or produce the item, including materials, labor, and shipping).
  3. Subtract the cost from the selling price to get the profit.
  4. Divide the profit by the selling price.
  5. Multiply by 100 to convert to a percentage.

For example, if you sell a chair for $200 and it costs you $120 to make, your profit is $80. The margin percentage is ($80 / $200) × 100 = 40%. This means 40% of the selling price is profit.

Margin vs. Markup: What’s the Difference?

A common confusion is mixing up margin with markup. Markup is the percentage of the cost that you add to get the selling price. The formula is: Markup Percentage = (Selling Price – Cost Price) / Cost Price × 100. Using the same chair example, the markup is ($80 / $120) × 100 = 66.7%. Notice that the margin is 40% while the markup is 66.7%—they are not the same. Margin relates profit to the selling price, while markup relates profit to the cost. Always know which one you’re using, especially when setting prices or negotiating.

How to Use Margin Percentage in Pricing

If you know your desired margin and your cost, you can work backward to set a selling price. The formula is: Selling Price = Cost / (1 – Desired Margin), where the margin is expressed as a decimal (e.g., 0.40 for 40%). For instance, if an item costs $50 and you want a 30% margin, the selling price should be $50 / (1 – 0.30) = $50 / 0.70 = $71.43. This ensures that 30% of the final price is profit.

Common Mistakes When Calculating Margin

  • Using markup instead of margin – Many people accidentally use the cost as the denominator. Always divide by the selling price for margin.
  • Forgetting to include all costs – Shipping, packaging, and transaction fees should be part of the cost price for an accurate margin.
  • Mixing up percentage and decimal – In formulas, convert percentages to decimals (e.g., 40% becomes 0.40) before doing calculations.
  • Ignoring discounts – If you offer a sale, the margin should be calculated on the actual selling price after the discount, not the list price.

Limitations of Margin Percentage

Margin percentage is a snapshot, not the whole story. It doesn’t account for overhead costs like rent, salaries, or utilities—those are fixed costs that affect net profit, not just the cost of goods. A product can have a high margin but still lose money if overhead is high. Also, margin varies by industry; a grocery store might survive on a 2% margin while a software company might have 80%. Always compare margins within your own industry and track them over time rather than chasing a universal number.

Frequently Asked Questions

What is a good margin percentage?

There’s no single “good” number—it depends on your industry. Retail typically sees margins between 20% and 50%, while luxury goods or software can exceed 70%. A good margin is one that covers your costs, leaves room for profit, and is competitive in your market. Many small businesses aim for at least 10–20% net profit margin to stay sustainable.

How do I calculate margin percentage in Excel?

In Excel, if cell A1 contains the selling price and B1 contains the cost, enter the formula =(A1-B1)/A1 in cell C1, then format C1 as a percentage. This will show the margin percentage. Double-check that the cell format is set to “Percentage” so Excel multiplies by 100 automatically.

Can margin percentage be negative?

Yes, a negative margin means you’re selling below cost. For example, if you sell an item for $50 that costs you $60, your margin is ($50 – $60) / $50 = -20%. This indicates a loss on each sale, which is unsustainable unless it’s a temporary loss leader strategy.

What is the difference between gross margin and net margin?

Gross margin only subtracts the direct cost of goods sold (materials, labor) from revenue. Net margin subtracts all expenses, including operating costs, taxes, and interest. Net margin is always lower than gross margin and gives a more complete picture of profitability.

How do I calculate margin from markup?

If you know the markup percentage, you can convert it to margin using the formula: Margin = Markup / (1 + Markup), where both are decimals. For example, a 50% markup (0.50) gives a margin of 0.50 / 1.50 = 0.333, or 33.3%. This is useful when you’re given a markup and need to know the margin for reporting.