GP margin formula: how to calculate gross profit margin
Learn the GP ratio formula, see HK$ examples and compare your gross profit margin with industry averages.
Written by Lena Hanna—Trusted CPA Guidance on Accounting and Tax. Read Lena's full bio
Published Monday 26 October 2026
Table of contents
Key takeaways
- Calculate your gross profit margin, also called the gross profit (GP) ratio, with (Gross profit ÷ Revenue) × 100, where gross profit is revenue minus cost of goods sold
- Track your margin monthly or quarterly to spot rising costs or pricing opportunities, and compare it with similar businesses in your industry
- Improve your margins by raising prices on high-demand products, negotiating better supplier deals, or streamlining operations through automation and inventory optimisation
- Use margin analysis to shape your product mix, focusing on higher-margin offerings and spotting products that need pricing or cost changes
What is gross profit margin?
Gross profit margin is the percentage of sales revenue remaining after you subtract the cost of goods sold (COGS), though the exact calculation may differ slightly between International Financial Reporting Standards (IFRS) and US Generally Accepted Accounting Principles (US GAAP). It shows how efficiently your business produces and sells products or services.

This metric reveals:
- Profitability by product or service: which offerings generate the most profit
- Pricing effectiveness: whether your prices cover costs and leave room for growth
- Cost efficiency: how well you manage production and delivery expenses
Higher gross profit margins make it easier to cover operating expenses like rent and utilities, improving your chances of turning a net profit.
Why gross profit margin matters for your business
Gross profit margin reveals whether your pricing covers costs and leaves enough profit to grow. It's a metric investors, lenders and accountants often look at when assessing business health.
Your gross profit margin tells you:
- Pricing power: whether you can raise prices without losing customers
- Cost control: how efficiently you manage supplier and production costs
- Growth potential: whether you have enough margin to invest in expansion, hiring or new products
- Cash flow health: higher margins typically mean more cash available for operations
Tracking your margin over time helps you identify opportunities early, like renegotiating supplier costs or adjusting pricing to stay competitive.
How to calculate gross profit margin
Calculating your gross profit margin involves a simple formula. The following sections explain the formula and walk you through the calculation step by step.
Gross profit margin formula
Gross profit margin formula:

Gross profit margin = (Gross profit ÷ Revenue) × 100
Where:
- Gross profit = Revenue minus cost of goods sold (COGS)
- Revenue = Total sales income before any deductions
GP ratio formula
In Hong Kong, you'll often hear gross profit margin called the GP ratio or GP% (gross profit percentage). It's the same measure, so you work it out the same way:
GP ratio = (Gross profit ÷ Revenue) × 100
For example, a trading company with HK$500,000 in revenue and HK$350,000 in COGS has a gross profit of HK$150,000. Its GP ratio is (HK$150,000 ÷ HK$500,000) × 100 = 30%.
Step-by-step calculation guide
Follow these steps to calculate your gross profit margin:
- Find your total revenue: Add up all sales income for the period you're measuring.
- Calculate your cost of goods sold (COGS): Include direct costs like materials, labour and production expenses.
- Subtract COGS from revenue: This gives you your gross profit as a dollar amount.
- Divide gross profit by revenue: This converts your profit to a decimal.
- Multiply by 100: This gives you your gross profit margin as a percentage.
Gross profit margin example calculation
This example shows the calculation for a cleaning business:


- Revenue: HK$20,000 (from cleaning offices)
- COGS: HK$8,000 (labour, supplies, equipment)
- Gross profit: HK$20,000 − HK$8,000 = HK$12,000
- Gross profit margin: (HK$12,000 ÷ HK$20,000) × 100 = 60%
A 60% gross profit margin means you keep 60 cents from every dollar of sales after covering direct costs.
Get your calculation right
Make sure you estimate your COGS correctly, as it strongly affects the gross profit margin calculation. Check your numbers with Xero's free margin calculator.
Gross profit margin vs gross profit
Gross profit is the dollar amount left after subtracting COGS from revenue. Gross profit margin expresses that same figure as a percentage of total revenue.
For example, if your gross profit is HK$12,000 on HK$20,000 in sales:
- Gross profit: HK$12,000 (a dollar amount)
- Gross profit margin: 60% (a percentage)
The percentage makes it easier to compare performance across time periods or against competitors of different sizes. You may also hear "gross margin" used interchangeably with gross profit margin.
Other profit metrics like operating profit margin and net profit margin measure profitability after additional expenses. This article focuses on gross profit margin.
Gross profit margin vs markup
Margin and markup both start with gross profit, but they compare it with different figures. Margin is gross profit as a share of the selling price, while markup is gross profit as a share of cost. In the cleaning example, HK$12,000 of gross profit is a 60% margin on HK$20,000 in sales and a 150% markup on HK$8,000 in costs.
When you set prices, it helps to know how to calculate margin and how to work out your markup, so you base each price on the right figure.
What is a good gross profit margin?
A good gross profit margin depends on your industry, because some sectors carry much higher direct costs than others.
Your target margin depends on:
- Industry norms: some sectors have structurally higher or lower margins
- Business size: larger businesses may accept lower margins due to volume
- Market conditions: competitive pressure can squeeze margins
Your gross profit margin needs to cover operating expenses (rent, utilities, salaries) and taxes while leaving room for profit.
Industry benchmarks for gross profit margin
Average gross margins vary by sector. These are the averages for US publicly listed companies in NYU Stern's Margins by Sector data (Aswath Damodaran, January 2026):
- Food and beverage (Restaurant/Dining): 32.24%
- Retail (General): 33.18%
- Trading and distribution (Retail Distributors): 30.57%
- Professional services (Business & Consumer Services): 33.38%
Margins for Hong Kong small businesses may differ from these listed-company averages. Your accountant or bookkeeper can help you find benchmarks for similar-sized businesses in your industry and clarify what margin your business should aim for.
Factors that affect your margins
Several factors influence your gross profit margin:
- Industry structure: some sectors carry higher direct costs per sale, for example, a restaurant buys ingredients for every meal, while a consultancy's direct costs are mostly staff time
- Geographic region: costs, taxes and customer volume vary by location
- Business model: ecommerce and physical retail carry different direct costs, such as shipping and payment fees, which change your margin
- Market competition: intense competition in sectors like electronics retail drives down prices and squeezes margins
- Supplier costs: rising material or labour costs directly reduce your margin
Understanding these factors helps you set realistic targets.
Benchmarking your gross profit margin
For a realistic picture of your performance, benchmark your business against competitors in your industry. You'll get the clearest picture if you compare against similar-sized businesses that operate in the same industry, market or region.
Analysing gross profit margin for business insights
Gross profit margin analysis helps you identify which products, services or business areas generate the most profit and where you have opportunities to improve performance.
Use your margin data to make decisions about:
- Pricing adjustments: raise prices on high-demand items or reduce prices to increase volume
- Cost management: negotiate with suppliers or find more efficient production methods
- Product mix: focus on higher-margin offerings and optimise your product range
Once you understand your margin data, you can interpret trends over time.
Interpreting gross profit margin trends
Track your gross profit margin monthly or quarterly to spot patterns:
- Rising margins: may indicate successful price increases, better supplier deals or improved efficiency
- Declining margins: may indicate opportunities to address rising costs, competitive positioning or pricing strategy
- Seasonal fluctuations: help you plan inventory and staffing around predictable demand changes
- Product-level variation: shows which offerings drive profitability and which have room for improvement
Consistent tracking helps you act on changes sooner and protect your cash flow.
When to reassess your gross profit margin
Review your gross profit margin when:
- Costs change: supplier prices increase or you switch vendors
- You adjust pricing: after raising or lowering prices
- Sales patterns shift: seasonal changes or new competitors enter the market
- You want to hit targets: when revenue or profit goals need attention
- You're planning growth: before hiring, expanding or launching new products
Accounting software like Xero financial reports makes it easy to track margins and spot changes quickly.
How to improve gross profit margin
Improving your gross profit margin puts more money back into your business for growth, hiring or reserves. These strategies can help.
Adjust your prices
Review your pricing regularly to make sure it reflects your costs and market position:
- Raise prices strategically: increase prices on high-demand products or services where customers are less price-sensitive
- Add value to justify higher prices: improve quality, add features or bundle services
- Respond to competition: adjust pricing when competitors change theirs, while maintaining your value position
- Test price changes: try small increases and monitor the impact on sales volume
Reduce your cost of goods sold
Lowering your COGS directly increases your gross profit margin:
- Negotiate with suppliers: ask for bulk discounts, longer payment terms or loyalty pricing
- Compare vendors regularly: get quotes from multiple suppliers to secure competitive rates
- Optimise inventory: track stock closely to maximise freshness and maintain ideal levels
- Optimise production: find more efficient methods or materials without sacrificing quality
- Buy in bulk: purchase high-turnover items in larger quantities when cash flow allows
Streamline your operations
Operational efficiency reduces costs without cutting quality:
- Automate repetitive tasks: use accounting software like Xero to handle invoicing, reconciliation and reporting
- Manage inventory carefully:maintain optimal stock levels to free up cash and reduce storage costs
- Reduce administrative overhead: digitise records and automate data entry to cut waste and manual effort
- Track time and labour: identify where staff time goes so you can spot inefficiencies
- Review processes regularly: identify opportunities to speed up production or delivery
Understanding related profit metrics
Beyond gross profit margin, two other profit metrics help you assess business performance:
- Operating profit margin: measures profit after subtracting operating expenses (rent, utilities, salaries) from gross profit. Use it alongside gross margin for pricing and budgeting decisions.
- Net profit margin: shows your "bottom line" profit after all expenses, interest and taxes. Use it for long-term financial planning and assessing overall business health.
Each metric builds on the previous one:
- Gross profit margin: revenue minus COGS
- Operating profit margin: gross profit minus operating expenses
- Net profit margin: operating profit minus interest and taxes
A healthy net profit margin gives your business more room to absorb rising costs or slower sales.
Use Xero to track your gross profit margin
Track your gross profit margin simply with Xero:
- Automated calculations: calculate your gross profit margin automatically from your sales and expense data
- Real-time reporting: see your margins update as you record transactions
- Customisable reports: break down margins by product, service or time period
- Trend tracking: monitor how your margins change over time with visual dashboards
Save time on margin calculations and get one month free when you try Xero today.
FAQs on gross profit margin
Common questions about gross profit margin, answered.
How do I calculate GP ratio from my profit and loss statement?
Take gross profit (revenue minus cost of sales) from your profit and loss statement, divide it by revenue and multiply by 100. For example, HK$80,000 of gross profit on HK$200,000 of revenue gives a GP ratio of 40%.
What does a 40% gross profit margin mean?
A 40% gross profit margin means you keep 40 cents from every dollar of sales after paying for direct costs. The remaining 60 cents covers your cost of goods sold.
How often should I check my gross profit margin?
Review your gross profit margin monthly at minimum. Check it more often after price changes, when costs shift or during seasonal fluctuations.
Can your gross profit margin be too high?
A very high margin may signal an opportunity to review your pricing strategy to optimise sales volume and maintain your competitive position. Balance margin with market competitiveness and customer demand.
How does Xero help me track gross profit margin?
Xero automatically calculates your gross profit margin from your financial data and displays it in real-time reports, so you can monitor trends without manual spreadsheets.
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.