Blog / Product Series
Dave Willson
July 1, 2025
Calculating the Gross Profit Margin (GPM) may appear straightforward on the surface—but as with most things in accounting and finance, the challenge lies in the details. The formula is simple:
Gross Profit Margin = (Total Revenue - Total Cost of Sales) / Total Revenue
However, the complexity arises when determining what qualifies as revenue and what counts as cost of sales. These classifications can differ significantly based on the nature of the business and its accounting practices. Misclassification can lead to misleading performance indicators and ultimately poor decision-making.
Let's explore the core concepts behind GPM, highlights common pitfalls, and review practical strategies to ensure consistency and relevance in your calculations.
At its core, revenue represents the inflows generated by a company's core operations. But in practice, not every inflow should be counted as “Total Revenue.” We must begin by asking: What does the business do to generate value?
Understanding revenue starts with business context. A focused operation, such as a lemonade stand, has simple and clear revenue sources. A complex enterprise, like Amazon or Google, may derive revenue from advertising, subscriptions, product sales, logistics services, and more.
To determine what belongs in revenue, consider:
Examples:
Business | Core Revenue Activities |
---|---|
Lemonade Stand | Selling lemonade |
Car Dealership | Selling cars, parts, offering repairs |
Accounting Firm | Tax preparation, bookkeeping, advisory services |
SaaS Platform | Subscription access to software tools |
We need to segregate operational revenues from incidental ones. Incomes such as interest earned on loans to shareholders, gains on disposal of equipment, or affiliate commissions are not typically central to operations and should be classified under Other Income.
Name | Category |
---|---|
Product Sales | Revenue |
Service Revenue | Revenue |
Subscription Revenue | Revenue |
Consulting Fees | Revenue |
Affiliate Commissions | Other Income |
Interest Earned | Other Income |
Gain on Asset Disposal | Other Income |
Rental Income | Other Income |
Accounts such as Rental Income could be a core revenue item for a real estate business but classified as Other Income for a consulting firm renting out a spare office. The key is contextual relevance to the primary business model.
Cost of Sales (also referred to as Cost of Goods Sold or Direct Costs) refers to expenditures directly tied to producing or delivering a company’s goods or services. While this sounds clear-cut, in practice, classification often requires judgment.
There are no absolute rules about which expenses must be included in Cost of Sales versus Operating Expenses. Instead, the decision hinges on a few key principles:
The goal is to accurately reflect the cost required to earn the revenue reported. This includes raw materials, manufacturing labor, direct service labor, and associated inputs. It does not include general administrative costs, sales & marketing expenses, or office overhead.
While terminology may vary, the principle remains the same: identify costs incurred to directly deliver value to customers.
Ambiguity often arises with accounts that serve dual purposes. For example:
Name | Reason |
---|---|
Freight & Shipping | COGS if direct to customer. OPEX if for general logistics |
Packaging & Supplies | COGS if packaging of product. OPEX for office usage |
Wages/Salaries | COGS if direct to product. OPEX for admin, marketing, sales, etc |
Software Costs | COGS if production related (Saas to build product or provide service). OPEX for admin, marketing, sales, etc |
Maintenance & Repairs | COGS if for equipment used in production. OPEX for office or nonproduction assets |
Companies must define clear internal policies for these accounts and apply them consistently. This may involve splitting categories into separate line items.
Labor is one of the most debated cost categories when it comes to GPM. In some cases, companies split labor into:
However, this division can be difficult in practice. In our own accounting firm, we ultimately chose not to separate staff time between client delivery and administrative tasks because the tracking burden outweighed the benefits. While this choice made operations easier, it reduced the precision of our GPM and impacted how we interpreted results.
This example highlights a key concept in GAAP: the cost-benefit constraint. Perfect accuracy isn't always practical. Instead, companies must weigh the value of more granular insights against the costs of tracking and maintaining them.
Another important consideration is the inclusion of contra-expense accounts, such as:
These are typically recorded as negative expenses and reduce the overall Cost of Sales. Including them properly can significantly impact Gross Profit Margin by showing the net cost incurred after rebates or incentives.
If there's one rule to remember, it's this:
Consistency in calculation is more important than perfection.
Changing how you calculate GPM over time undermines your ability to compare performance across periods. If you must change your classification method, consider restating historical data to preserve trend comparability.
Additionally, consistency allows for external benchmarking. Understanding how your industry classifies expenses helps you evaluate your performance objectively. Even if you disagree with the standard treatment, conforming can aid in comparability and storytelling.
Once you’ve consistently defined and calculated Gross Profit Margin, you can begin to leverage it for insights:
Break down each component of Cost of Sales as a percentage of revenue. This will help pinpoint where rising costs are eating into profits—whether it's wages, materials, or third-party services.
Sudden swings in GPM can be a red flag for poor data integrity. Companies without proper inventory tracking or revenue recognition controls often report erratic GPM, which renders the KPI nearly useless for pricing and profitability decisions.
Gross Profit Margin isn't just an internal metric—it’s a strategic lever. If margins are consistently rising, you might ask:
GPM should be reviewed in light of broader business goals—not just a static performance metric.
Gross Profit Margin is one of the most powerful indicators of financial health and operational efficiency—but only when calculated with care and clarity.
To make GPM work for you:
As part of this KPI series, GPM is just the beginning. Future posts will cover other critical performance indicators such as Operating Profit Margin, Net Profit Margin, Operating Break Even, Current Ratio, Return on Assets, Altman Z-score, and more.
Understanding your KPIs isn’t just for your accountant—it’s for your strategy, your pricing, your product mix, and ultimately your success.
Purpose-built insights. Deep analysis. Relentless attention to details.
Dave Willson
Track financial risk before it's a problem. The Altman Z-Score is a proven early-warning metric that helps forecast distress and guide decisions.
Dave Willson
Track how efficiently your business turns equity into profit. ROE reveals shareholder value creation and helps guide reinvestment, funding, and performance decisions.