Margin percentage is the portion of each sales dollar that remains as profit after covering the cost of the goods sold. It helps you set prices, evaluate product profitability, and compare performance across items or periods. To compute it, you need the selling price and the cost of the item. This guide walks you through the formula, a worked example, and common pitfalls.
What You'll Need
- The selling price of the product or service (before any discounts or taxes).
- The cost of the product (what you paid to acquire or produce it).
- A calculator or spreadsheet (optional, but helpful for multiple items).
Step-by-Step
- Identify the selling price. Use the price you charge customers before adding sales tax or other fees. For example, if you sell a chair for $120, that is your selling price.
- Identify the cost of goods sold (COGS). This is the direct cost to produce or purchase the item. Include materials, labor, and shipping if they are directly tied to the product. For the chair, suppose it costs $70 to make.
- Subtract the cost from the selling price to find the profit. Profit = Selling Price − Cost. In the example: $120 − $70 = $50 profit.
- Divide the profit by the selling price. This gives you the margin as a decimal. $50 ÷ $120 = 0.4167.
- Multiply by 100 to convert to a percentage. 0.4167 × 100 = 41.67%. So the margin percentage is 41.67%.
- Interpret the result. For every $100 in sales, you keep $41.67 as gross profit after covering the product cost. The rest ($58.33) goes to the cost of the item.
Common Mistakes
- Using cost instead of selling price as the denominator. Margin is profit divided by selling price, not by cost. Dividing by cost gives you markup percentage, which is a different metric.
- Forgetting to include all direct costs. If you exclude shipping, packaging, or direct labor, your margin will look higher than it really is.
- Confusing margin with markup. Markup is profit divided by cost. For the chair, markup is $50 ÷ $70 = 71.43%. They are not interchangeable.
- Not converting to a percentage. Leaving the result as 0.4167 instead of 41.67% can lead to misreading the figure.
- Using net profit instead of gross profit. Margin percentage typically uses gross profit (revenue minus COGS), not net profit (which also subtracts operating expenses, taxes, and interest).
Tips
- Use a consistent formula in spreadsheets:
=(Price - Cost) / Priceand format the cell as a percentage. - Calculate margin for each product line separately to spot low performers.
- Set target margins based on your industry and business goals. A 40% margin is common for many retail goods, but it varies widely.
- Review your margins regularly as costs change. A small increase in material costs can significantly reduce your margin.
- When comparing margins, use the same time period and include the same types of costs for each item.
Troubleshooting
Your margin percentage seems too high or too low. Double-check the numbers you are using. Make sure the selling price is the final price you charge (before tax) and that the cost includes all direct expenses. A common error is using the wholesale cost instead of the full landed cost.
The result is negative. This means your cost is higher than your selling price. You are losing money on each sale. Review your pricing or look for ways to reduce costs.
Your margin changed suddenly. Check if your cost inputs changed, or if you started including a new expense. Also verify that you are not mixing gross and net figures.
You get a decimal like 0.5 and need a percentage. Multiply by 100 or format the cell as a percentage in your spreadsheet. The decimal 0.5 equals 50%.
Frequently Asked Questions
What is the difference between margin and markup?
Margin is profit divided by selling price. Markup is profit divided by cost. For a $120 item that costs $70, margin is 41.67% and markup is 71.43%.
Can margin percentage be over 100%?
No, because profit cannot exceed the selling price. If your cost is zero, the margin is 100%. If your cost is negative (which doesn't happen in normal business), it could exceed 100%, but that is not realistic.
Should I use gross margin or net margin?
Gross margin uses only the cost of goods sold. Net margin subtracts all operating expenses, taxes, and interest. Use gross margin for product-level analysis and net margin for overall business profitability.
How do I calculate margin percentage in Excel?
Put the selling price in cell A1 and the cost in cell B1. In cell C1, enter =(A1-B1)/A1 and format C1 as a percentage. The result is the margin percentage.
What is a good margin percentage?
It depends on your industry. Grocery stores often operate on 1-3% margins, while software companies can have 80%+ margins. Compare your margin to industry benchmarks or your own historical data.
Does margin percentage include taxes?
No. Margin is calculated on the selling price before sales tax or VAT. Taxes are collected separately and remitted to the government, so they are not part of your profit calculation.