Gross profit margin: how to calculate and improve it
Learn how gross profit margin tracks profitability, and how to calculate and improve it.
Written by Lena Hanna—Trusted CPA Guidance on Accounting and Tax. Read Lena's full bio
Published Tuesday 21 April 2026
Table of contents
Key takeaways
- Calculate your gross profit margin by subtracting your cost of goods sold from revenue, dividing by revenue, and multiplying by 100 — this tells you how much money you keep from each sale after direct costs.
- Track your gross profit margin monthly and compare it against previous periods to catch pricing problems, rising supplier costs, and underperforming products before they hurt your bottom line.
- Benchmark your margin against your industry, since a healthy range varies widely — software companies typically hit 70–90% while retailers aim for 20–50% — and make sure your margin covers operating expenses, taxes, and your own pay.
- Improve your margin by reviewing your pricing regularly, negotiating better deals with suppliers, and cutting waste in your production or service delivery process.
Key takeaways
- Calculate gross profit margin by subtracting cost of goods sold from revenue, dividing by revenue, and multiplying by 100. This shows how much money remains after direct costs to cover operating expenses and generate profit.
- Track your gross profit margin trends over time to spot pricing issues, cost increases, and product performance problems early. This allows you to make informed decisions about pricing and cost management.
- Benchmark your margin against industry standards. Good margins vary by sector: software companies typically achieve 70–90% while retail businesses maintain 20–50%. Make sure your margin covers operating expenses, taxes, and owner compensation.
- Improve your gross profit margin by adjusting prices based on market conditions. Reduce cost of goods sold through better supplier relationships and bulk purchasing. Streamline operations to eliminate waste and automate processes.
What is gross profit margin?
Gross profit margin is the percentage of revenue you keep after subtracting the direct costs of producing your goods or services. It shows how efficiently your business turns sales into profit before covering operating expenses.
This metric reveals three critical insights:
- Operational efficiency: how well you convert resources into sellable products or services
- Pricing effectiveness: whether your prices cover costs and leave room for profit (notably, across most Canadian industries, markups have remained roughly stable since early 2022)
- Financial health: your capacity to pay operating expenses and invest in growth
High margins give you more funds to cover rent and utilities, greater capacity for growth, and better resilience during downturns.
Low margins signal opportunities to review pricing, reduce costs, or improve efficiency to strengthen your financial position.
After paying operating expenses from your gross profit, the remainder becomes your net profit.
Why gross profit margin matters for your business
Gross profit margin acts as a health check for your products or services. It shows how much you keep from each sale before paying general business expenses.
Tracking your margin helps you:
- spot which products or services generate the most profit
- make smarter pricing decisions based on real cost data
- catch rising costs or pricing problems early, much like how mentions of price increases in corporate earnings calls tend to peak alongside periods of high inflation.
A healthy margin means more cash to reinvest and grow your business.
How to calculate gross profit margin
Gross profit margin (calculation)
Gross profit margin formula:
Gross profit margin = (gross profit ÷ revenue) × 100

Gross profit margin formula explained
Calculate gross profit margin in two steps:
- Find your gross profit: subtract your cost of goods sold (COGS) from your total revenue
- Calculate the percentage: divide gross profit by total revenue, then multiply by 100
Gross profit margin example calculation
Gross profit margin calculation example:
Imagine you run an office cleaning service.
- Revenue: $20,000
- Cost of goods sold: $8,000 (cleaning supplies, labour)
- Gross profit: $20,000 - $8,000 = $12,000
Margin calculation: ($12,000 ÷ $20,000) × 100 = 60% gross profit margin
This means you keep 60 cents from every dollar of revenue after covering direct costs.
Follow these tips for accurate calculations
Follow these tips for accurate calculations:

Accurate COGS estimation

- include all direct costs such as materials, labour, and shipping. Account for work in progress (WIP) as the inclusion rate increases to 100% for subsequent tax years.
- exclude indirect costs such as rent, marketing, and administrative expenses
- update COGS regularly when supplier prices change
Revenue timing accuracy
- match revenue with corresponding COGS in the same period
- subtract returns and discounts from revenue before calculating
Make sure you estimate your COGS correctly, as it strongly affects the gross profit margin calculation.
Factors affecting gross profit margin
Several factors influence your gross profit margin. Understanding these helps you identify why your margins change and where you can take action.
External factors
Several external factors affect your gross profit margin:
Market demand
- high demand supports premium pricing and higher margins.
- low demand forces price cuts to maintain sales volume.
- seasonal shifts change both pricing power and sales patterns.
Supplier costs
- rising material prices directly reduce margins unless you achieve a complete pass-through of costs to prices, as seen recently in the retail food sector.
- labour cost increases affect service-based businesses.
- supply chain disruptions raise procurement expenses.
Customer spending power
- economic downturns shrink customer budgets.
- inflation changes purchasing decisions, especially when rates fluctuate significantly, such as hitting a peak of 8.1% before settling back down.
- competitive pressure may force price matching.
Industry and business factors
What counts as a good margin depends on several factors:
- Industry: cost structures vary widely, with hospitality facing high overhead and financial services earning higher fees
- Region: taxes, rent, and customer traffic differ between locations
- Business type: ecommerce stores often achieve higher margins than brick-and-mortar retailers due to lower overhead
- Market competition: competitive industries like electronics retail face price pressure that squeezes margins
Interpreting gross profit margin trends
Tracking margin trends over time reveals patterns in your business performance:
- identify which products or services generate the strongest margins
- detect seasonal cost fluctuations
- catch gradual supplier price increases before they erode profitability
- compare performance across different time periods
Regular monitoring helps you act quickly when you spot changes.
Gross profit margin vs gross profit
Gross profit is a dollar amount. Gross profit margin is a percentage. Both measure the same concept but express it differently.
- Gross profit: the money remaining after subtracting cost of goods sold, for example $50,000
- Gross profit margin: the percentage of revenue that becomes gross profit, for example 60%
The term "gross margin" means the same thing as gross profit margin.
Gross profit margin compared with other metrics
Here's a quick comparison of the main differences between gross profit margin and two other business metrics, and how to use each one to work out the profitability of your business.
Gross profit margin vs operating profit margin
Operating profit margin includes operating costs like rent and utilities in addition to COGS. It shows profitability after all day-to-day business expenses, not just direct production costs.
Gross profit margin vs net profit margin
Net profit margin is your bottom-line profit after all expenses, including operating costs, interest, and taxes. It shows your overall financial health.
How to use each metric
Each metric serves a different purpose in evaluating your business performance. Use each metric for different decisions:
- Gross profit margin: evaluate pricing and production efficiency
- Operating profit margin: assess overall business efficiency
- Net profit margin: measure total profitability after all costs
FAQs on gross profit margin
Here are answers to common questions about gross profit margin.
What's a good gross profit margin?
A good gross profit margin varies by industry. Software companies typically achieve 70–90%, while retail businesses maintain 20–50%. Your margin should cover operating expenses, taxes, and owner compensation while leaving room for growth.
How often should I review my gross profit margin?
Review your gross profit margin monthly to catch trends early. Compare your results to previous months and the same period last year to identify seasonal patterns or concerning changes.
Can I have a high gross profit margin but still lose money?
Yes. A high gross profit margin means you price products well and control direct costs effectively. However, if your operating expenses (rent, salaries, marketing) exceed your gross profit, you'll still have a net loss.
What's the difference between gross margin and markup?
Gross margin is the percentage of revenue remaining after direct costs. Markup is the percentage you add to your costs to set your selling price. They measure profitability differently and will give you different percentages from the same numbers.
How can I improve my gross profit margin quickly?
Start by reviewing your pricing to ensure it reflects current costs and market value. Negotiate better rates with suppliers or find alternative suppliers. Reduce waste in your production or service delivery. Focus on your most profitable products or services.
Disclaimer
Xero does not provide accounting, tax, business or legal advice. This guide has been provided for information purposes only. You should consult your own professional advisors for advice directly relating to your business or before taking action in relation to any of the content provided.