Your sales increased this month, but does that mean your business became more profitable?
Not necessarily. Higher supplier costs, discounts, delivery charges, or operating expenses can absorb the extra revenue. Tracking sales alone may hide what is happening.
Learning how to calculate profit margin helps you understand how much of your revenue remains after a particular set of costs. It also helps you compare products, review prices, and identify expenses that need attention.
The basic calculation is:
Profit margin (%) = Profit ÷ Revenue × 100
However, the profit figure you use matters. Gross, operating, and net profit margins answer different questions.
This guide explains each formula with small-business examples, shows the difference between margin and markup, and outlines common calculation mistakes.
All business figures below are hypothetical and provided to explain the calculations. They are not industry benchmarks.
What Is Profit Margin?
Profit margin expresses profit as a percentage of revenue.
For example, if a business earns $1,000 in net profit from $10,000 in revenue:
$1,000 ÷ $10,000 × 100 = 10% net profit margin
That means the business reports $0.10 in net profit for each dollar of revenue.
Profit and profit margin are different measurements:
| Measurement | Example | What it tells you |
|---|---|---|
| Revenue | $10,000 | Sales generated during the period |
| Net profit | $1,000 | Profit remaining after applicable expenses |
| Net profit margin | 10% | Net profit relative to revenue |
A business can increase its profit amount while its profit margin falls. You need both figures to understand the change.
The Three Main Profit Margin Formulas
| Margin | Formula | Main question |
|---|---|---|
| Gross profit margin | Gross profit ÷ Revenue × 100 | How much remains after the cost of goods or services sold? |
| Operating profit margin | Operating profit ÷ Revenue × 100 | How profitable are the business’s operations? |
| Net profit margin | Net profit ÷ Revenue × 100 | How much remains after all recognized income and expenses? |
Gross profit deducts cost of goods sold. Operating profit also deducts operating expenses. Net profit includes financing costs, income taxes where applicable, and relevant nonoperating items. Each margin divides the corresponding profit by revenue. investopedia.com
Use revenue and expenses covering the same period and apply consistent accounting classifications.
How to Calculate Gross Profit Margin
Gross profit measures revenue remaining after the cost of goods sold, often shortened to COGS.
For a retailer, this generally involves the cost of the inventory actually sold during the period. Service businesses may use a cost-of-services category. The correct classification depends on the business and its accounting policies.
Step 1: Calculate Gross Profit
Gross profit = Revenue − Cost of goods sold
Step 2: Calculate the Percentage
Gross profit margin = Gross profit ÷ Revenue × 100
These formulas are also set out in Xero’s gross profit margin guidance. xero.com
Example: A Small Retail Shop
Suppose a shop records:
- Revenue: $10,000
- Cost of goods sold: $6,000
Gross profit is:
$10,000 − $6,000 = $4,000
Gross profit margin is:
$4,000 ÷ $10,000 × 100 = 40%
The shop has $0.40 of gross profit per dollar of revenue to cover operating expenses and other costs.
This is not a 40% net profit margin. Rent, administration, financing costs, and other applicable expenses still need consideration.
How to Calculate Operating Profit Margin
Operating profit considers the costs of running the business as well as the costs of goods or services sold.
For a straightforward example:
Operating profit = Gross profit − Operating expenses
Then:
Operating profit margin = Operating profit ÷ Revenue × 100
Operating expenses may include administration, marketing, occupancy costs, and depreciation, depending on the business’s accounting classifications. Avoid counting an expense again if it is already included in COGS.
Example: Adding the Shop’s Operating Expenses
Continue with the same shop:
| Item | Amount |
|---|---|
| Revenue | $10,000 |
| Cost of goods sold | $6,000 |
| Gross profit | $4,000 |
| Operating expenses | $2,500 |
| Operating profit | $1,500 |
Operating margin is:
$1,500 ÷ $10,000 × 100 = 15%
The shop’s gross margin is 40%, while its operating margin is 15%.
Looking at both helps distinguish product-cost performance from the expense of running the business.
How to Calculate Net Profit Margin
Net profit margin uses the final profit figure after all applicable income and expenses have been recognized.
Net profit margin = Net profit ÷ Revenue × 100
Use the net profit shown in properly prepared accounts rather than treating the bank balance as profit. Xero’s net margin guidance distinguishes this broader measure from gross margin, which deducts a narrower set of costs. xero.com
Example: Completing the Shop’s Calculation
Assume the shop also records $100 in interest expense and $400 in business income-tax expense, with no other income or expenses.
| Item | Amount |
|---|---|
| Operating profit | $1,500 |
| Less interest expense | $100 |
| Less income-tax expense | $400 |
| Net profit | $1,000 |
The tax amount is an illustrative assumption, not a tax-rate calculation.
Net margin is:
$1,000 ÷ $10,000 × 100 = 10%
The three results are:
| Margin | Result |
|---|---|
| Gross profit margin | 40% |
| Operating profit margin | 15% |
| Net profit margin | 10% |
Always name the margin you are discussing. Saying “our margin is 40%” without specifying the measure can create confusion.
Small-Business Example: A Freelancer
Suppose a freelance designer records the following for one month:
| Item | Amount |
|---|---|
| Client revenue | $3,000 |
| Direct subcontractor costs | $600 |
| Gross profit | $2,400 |
| Operating expenses | $900 |
| Operating profit | $1,500 |
Under the assumed classifications:
Gross margin = $2,400 ÷ $3,000 × 100 = 80%
Operating margin = $1,500 ÷ $3,000 × 100 = 50%
These figures do not establish net margin because financing, taxes, and other relevant items have not been included.
Remember the Owner’s Time
A solo business may report a substantial profit while requiring many unpaid owner hours.
Alongside the accounts, record time spent delivering work, finding customers, and handling administration. Consider whether the remaining earnings provide reasonable compensation for that effort.
Keep any management estimate for owner time separate from recorded expenses unless it is appropriately recognized in the accounts.
Profit Margin vs Markup: What Is the Difference?
Margin and markup use different denominators:
Margin (%) = Profit ÷ Selling price × 100
Markup (%) = Profit ÷ Cost × 100
AccountingCoach explains that markup is calculated relative to cost, while gross margin percentage is calculated relative to sales. accountingcoach.com
Example: A Product Costs $60 and Sells for $100
Gross profit:
$100 − $60 = $40
Gross margin:
$40 ÷ $100 × 100 = 40%
Markup:
$40 ÷ $60 × 100 = 66.67%
| Measure | Result |
|---|---|
| Gross profit | $40 |
| Gross margin | 40% |
| Markup | 66.67% |
Adding 40% to cost does not create a 40% margin.
A 40% markup on $60 produces an $84 price:
($84 − $60) ÷ $84 × 100 = 28.57% margin
How to Set a Price Using a Target Margin
To calculate a selling price from a known cost and target gross margin:
Selling price = Cost ÷ (1 − Target margin as a decimal)
Suppose the relevant unit cost is $60 and the target gross margin is 40%:
$60 ÷ (1 − 0.40) = $100
This produces a 40% gross margin under those assumptions.
Before using the result, check whether the cost includes everything intended for that calculation. Payment fees, packaging, delivery, returns, and overhead still need appropriate treatment.
A target margin is a planning input. It does not establish that customers will accept the resulting price.
How Discounts Affect Profit Margin
Suppose the same $100 product has a $60 cost.
Before a discount:
- Gross profit: $40
- Gross margin: 40%
After a 10% discount, the price becomes $90:
- Gross profit: $90 − $60 = $30
- Gross margin: $30 ÷ $90 × 100 = 33.33%
The price fell by 10%, but gross profit per unit fell by 25%, from $40 to $30.
Discounts may still serve a business purpose, but assess their effect on profit and expected sales volume before using them.
Common Profit Margin Mistakes
Mixing Reporting Periods
Do not compare one month’s sales with a different month’s costs. Use matching periods and a consistent accounting basis.
Treating All Inventory Purchases as COGS
Stock purchased during a period may remain unsold. Use the cost associated with goods sold under your accounting method rather than automatically deducting every purchase.
Confusing Cash With Profit
A customer payment, loan receipt, equipment purchase, or loan-principal repayment can affect cash differently from accounting profit.
Review cash flow separately so a profitable period does not hide a payment shortfall.
Using the Wrong Profit Figure
Gross profit excludes costs that net profit includes. Label calculations clearly.
Averaging Percentages Without Weighting
Suppose one product generates $1,000 in revenue at a 50% gross margin and another generates $9,000 at a 10% margin.
Combined gross profit is:
$500 + $900 = $1,400
Combined margin is:
$1,400 ÷ $10,000 × 100 = 14%
It is not the simple average of 50% and 10%.
Dividing by Zero
If revenue is zero, the standard margin calculation is undefined. Report that no meaningful percentage can be calculated for the period.
What Is a Good Profit Margin?
There is no single target that suits every small business.
Business model, cost structure, owner compensation, growth spending, and accounting treatment affect the result.
Make comparisons useful by checking:
- The same margin type.
- Similar business activities.
- Comparable reporting periods.
- Consistent expense classifications.
- Unusual income or expenses.
Start with your own trend. If margin falls, investigate whether pricing, product mix, discounts, supplier costs, or overhead changed.
A higher margin also does not automatically mean a higher total profit. Review revenue, profit amount, and cash flow together.
Frequently Asked Questions
1. What is the basic profit margin formula?
Divide profit by revenue and multiply by 100. Specify whether the profit figure is gross, operating, or net profit.
2. How do I calculate a 20% profit margin?
If revenue is $5,000 and the relevant profit is $1,000:
$1,000 ÷ $5,000 × 100 = 20%
The label depends on which profit figure you used.
3. Is a 30% markup the same as a 30% margin?
No. If cost is $100, a 30% markup gives a $130 selling price. The margin is:
$30 ÷ $130 × 100 = 23.08%
4. Can profit margin be negative?
Yes. If revenue is $2,000 and net loss is $300:
−$300 ÷ $2,000 × 100 = −15% net margin
This indicates a loss for that period.
5. How often should a small business calculate profit margin?
A monthly review is a practical starting point when records are available. Also review quarterly and annual results to understand seasonal changes and longer-term performance.
Conclusion
Calculate profit margin by choosing the correct profit figure, dividing it by matching revenue, and expressing the result as a percentage.
Use gross margin to examine direct costs and pricing, operating margin to review running costs, and net margin to assess the final result. Track these alongside profit amounts and cash flow so your decisions reflect the whole business.


