Margin Formula

Understanding profitability starts with knowing how much of your revenue remains after accounting for costs. The margin formula is the primary tool for this assessment, providing a snapshot of business health at the product, service, or company level.

The Standard Margin Formula

Profit margin is expressed as a percentage of the selling price. It represents the portion of your revenue that exceeds the cost of goods sold (COGS).

To calculate the profit margin, use the following equation:

Margin (%) = ((Revenue - COGS) / Revenue) × 100

Where:

  • Revenue is the total selling price of the item or service.
  • COGS is the direct cost required to produce or acquire that item.

For instance, if you sell a jacket for $100 and it costs $60 to produce, your profit is $40. Using the formula: ($40 / $100) × 100 = 40% margin.

Calculation Mode
Input The direct cost to produce or acquire the item The total selling price of the item
Industry Margin Reference
IndustryTypical Net MarginNotes
Grocery / Supermarket1–3%High volume, thin margins
Retail (general)2–5%Depends on product category
Manufacturing5–10%Varies by complexity
Food & Beverage3–9%Restaurants lower, packaged higher
Professional Services10–20%Consulting, accounting, law
Real Estate15–25%Commissions and development
SaaS / Software20–30%Scalable, lower COGS
Disclaimer: This calculator is for informational purposes only. It calculates gross margin based on cost and revenue. Operating and net margins require additional expense data. Consult a financial advisor for specific business guidance.

This article is for informational purposes only. Consult a financial advisor for specific business guidance.

The calculator above allows you to determine your profit margin by inputting the cost of production and the final selling price. It is useful for retail pricing, gross margin analysis, and evaluating the profitability of individual product lines.

Margin vs. Markup: The Critical Distinction

A common mistake in financial analysis is treating margin and markup as the same metric. While both use cost and revenue, they represent two different perspectives.

  • Margin asks: “What percentage of my selling price is profit?”
  • Markup asks: “How much above my cost did I increase the price?”

Using the previous example of a $60 cost and a $100 price:

MetricCalculationResult
Margin($100 - $60) / $10040%
Markup($100 - $60) / $6066.7%

If you confuse these two, you risk pricing your products too low, failing to cover overhead costs, or overestimating your profitability. Always verify which metric your financial reports represent.

Types of Profit Margins

Business owners and analysts often look at three specific levels of margin to understand different aspects of financial performance:

  1. Gross Margin: This measures the profitability of production. It subtracts only the immediate COGS from revenue. It ignores overheads, taxes, and interest, highlighting how efficiently you produce or source your goods.
  2. Operating Margin: This goes deeper, subtracting all variable and fixed operating expenses (like rent, utilities, and payroll) from gross profit. It reflects your operational efficiency and overall business management.
  3. Net Margin: This is the bottom line. It accounts for every single expense, including taxes and interest. It shows what remains for the owners or for reinvestment after all obligations have been satisfied.

Why Profit Margins Matter

Tracking margins is not merely an accounting exercise; it is a defensive strategy. Low margins signal vulnerability. If your margin is thin, even a small increase in supplier prices or a minor decrease in sales volume can turn a profitable business into a money-losing one.

Regularly auditing your margins allows for dynamic pricing adjustments. If your analysis shows a declining margin, you can identify whether the issue stems from rising production costs–indicating a need to negotiate with suppliers–or from pricing decisions that no longer align with market conditions.

Frequently Asked Questions

What is a good profit margin?
A “good” margin varies significantly by industry. Generally, a 10% net profit margin is considered standard, 20% is good, and 5% is low. Industries with high overheads, like retail, often operate on thinner margins than software companies.
Why is margin different from markup?
Margin focuses on the percentage of the selling price that is profit, while markup focuses on the percentage added to the cost to reach that price. Confusing these two often leads to pricing errors and projected loss.
Does the margin formula use revenue or cost?
The standard margin formula uses total revenue (the selling price). Using the cost as the denominator technically calculates the markup, not the margin, which leads to incorrect profitability assessments.
Can the margin formula result in a negative number?
Yes, a negative margin indicates that the cost of goods sold (COGS) exceeds the revenue generated from the sale. This effectively means the business is losing money on every unit sold before considering other operating expenses.
  1. Profit Calculator – Calculate Gross, Operating & Net Profit
  2. ROI Formula: How to Calculate Return on Investment (2026)
  3. Margin Calculator