KPI Tree
KPI Tree

Gross margin: a metric tree approach

Gross margin is one of the most scrutinised numbers in any business. It tells investors whether a company can generate profit from its core operations, tells operators whether pricing and cost structures are sustainable, and tells finance teams where margin is being won or lost. Yet most organisations treat gross margin as a single percentage on a P&L statement, reacting to movements after the fact rather than understanding the drivers behind them. A metric tree decomposes gross margin into its revenue and cost components, making the causal structure visible and giving teams specific levers to pull. This guide covers the gross margin formula, how to decompose it with a metric tree, benchmarks across SaaS, e-commerce, and services business models, and a structured approach to improving margin through tree-based analysis.

9 min read

Generate AI summary

What gross margin is and why it matters

Gross margin measures the percentage of revenue that remains after subtracting the direct costs of delivering the product or service. The formula is straightforward: Gross Margin = (Revenue - Cost of Goods Sold) / Revenue, expressed as a percentage. A company with one million pounds in revenue and 400,000 pounds in cost of goods sold (COGS) has a gross margin of 60%.

The metric matters because it represents the economic engine of the business. Every pound of gross profit funds operating expenses: sales, marketing, research and development, and general administration. A company with healthy gross margins has room to invest in growth, absorb cost increases, and weather downturns. A company with thin gross margins is fragile: any increase in input costs or competitive pricing pressure can push the business into loss-making territory.

Gross margin also serves as a proxy for business model quality. Software companies with 75-85% gross margins can invest heavily in customer acquisition because each incremental sale generates significant profit. Retailers with 30-40% margins must be far more disciplined with operating costs because there is less room between revenue and break-even. Investors use gross margin to assess scalability: businesses with high and improving gross margins tend to become more profitable as they grow, while those with flat or declining margins face a harder path to profitability.

The challenge is that gross margin, like any ratio, is an output. It tells you what happened but not why. When gross margin declines by three percentage points in a quarter, the headline number does not tell you whether the cause was a pricing concession, a shift in product mix, rising supplier costs, increased infrastructure spend, or some combination of all four. To answer the "why" question, you need to decompose the metric.

Gross margin is not just a finance metric. It is an operating metric that reflects decisions made across pricing, product, procurement, engineering, and customer success. When you treat it as a number that belongs solely to the CFO, you lose the ability to diagnose and fix the operational levers that drive it.

Decomposing gross margin with a metric tree

A metric tree decomposes gross margin into its two fundamental components: revenue and cost of goods sold. Each of these can be broken down further into the specific drivers that determine their value. The result is a tree that traces margin all the way down to the operational levers that individual teams control.

On the revenue side, the decomposition follows the structure of how the business earns money. For most companies, revenue breaks into volume (how many units, subscriptions, or engagements are sold) and price (how much each generates). Volume can be further split by customer segment, product line, or geography. Price decomposes into list price, discounts, and any variable pricing components. Each branch represents a lever that affects the numerator of the gross margin equation.

On the COGS side, the decomposition follows the cost structure of delivery. For a SaaS company, COGS includes hosting and infrastructure, customer support, professional services, and third-party software costs. For an e-commerce business, it includes raw materials, manufacturing, fulfilment, and shipping. For a services firm, it is primarily labour: the cost of the people delivering the service. The tree below illustrates a generalised gross margin decomposition that applies across business models.

The power of this decomposition is that it separates margin movements into their component causes. Consider a scenario where gross margin drops from 72% to 68% in a single quarter. Without the tree, the response is typically a vague directive to "improve margins." With the tree, you can trace the decline to its source. Perhaps revenue grew by 10%, but COGS grew by 18%. Drilling into the COGS branch, you might find that hosting costs increased by 30% due to a migration to a more expensive cloud tier, while direct labour costs remained flat. That is a specific, actionable finding: the margin decline is an infrastructure cost problem, not a pricing or labour problem.

Alternatively, the tree might reveal that revenue is the culprit. Total volume increased, but average price realisation fell because the sales team offered steeper discounts to close deals in a competitive market. In this case, the COGS structure is efficient, but the revenue quality has deteriorated. The intervention is entirely different: pricing discipline and deal desk governance rather than cost optimisation.

The metric tree makes both diagnoses possible from the same framework. Without it, teams argue about whether the margin problem is a cost problem or a revenue problem. With it, the data answers the question directly.

Revenue quality matters as much as cost control

Many organisations focus exclusively on reducing COGS to improve gross margin. But margin erosion caused by discounting, unfavourable product mix, or underpriced contracts cannot be fixed on the cost side. The metric tree ensures you examine both branches before deciding where to act.

Gross margin by business model

Gross margin varies dramatically across business models because the composition of COGS is fundamentally different. A SaaS company delivering software over the internet has a very different cost structure from a retailer shipping physical goods or a consultancy deploying senior professionals. Understanding where your business model sits on the gross margin spectrum is essential for setting realistic targets and knowing which COGS branches to prioritise in your metric tree.

The table below compares gross margin characteristics across three major business models: SaaS, e-commerce, and professional services. Each model has distinct COGS drivers, typical margin ranges, and improvement levers.

DimensionSaaSE-commerceProfessional services
Typical gross margin70% - 85%25% - 50%30% - 60%
Primary COGS componentsHosting, support, third-party softwareMaterials, manufacturing, fulfilment, shippingDelivery staff salaries, subcontractors
Scalability of COGSHigh: infrastructure costs grow sub-linearly with revenueLow: COGS scales roughly linearly with volumeLow: revenue requires proportional headcount
Margin improvement leverInfrastructure efficiency, support automation, pricingSupplier negotiation, fulfilment optimisation, product mixUtilisation rate, billing rate, leverage model
Investor expectation at scale75%+ is table stakes for institutional funding40%+ is strong; 50%+ is exceptional50%+ signals a productised or leveraged model

For SaaS companies, gross margin is closely watched because it indicates how much of each incremental revenue pound flows into the operating model. The best-in-class SaaS companies achieve gross margins above 80% by keeping hosting costs efficient, automating customer support, and minimising the professional services component. Companies with significant professional services or managed services revenue embedded in their contracts will show lower gross margins because those services are labour-intensive and do not scale.

For e-commerce businesses, gross margin is heavily influenced by product category and supply chain efficiency. Fashion and apparel retailers often achieve 50-60% gross margins because of high markups, while grocery and commodity products sit at 20-35% due to lower markups and perishability. The metric tree for an e-commerce company will have deeper branches on the COGS side: raw material costs, manufacturing or sourcing costs, warehousing, pick-and-pack, shipping, and returns processing. Each of these is a lever, and small improvements across multiple branches compound into meaningful margin gains.

For professional services firms, gross margin is essentially a function of three variables: utilisation rate (what percentage of billable hours are actually billed), billing rate (how much each hour is sold for), and direct cost per hour (what each hour costs the firm in salaries and benefits). The metric tree decomposes each of these, revealing whether margin pressure is coming from underutilisation, rate compression, or wage inflation. Firms that productise elements of their service delivery, using software and templates to reduce the labour hours per engagement, can break out of the linear relationship between revenue and headcount, pushing margins toward the higher end of the range.

Gross margin benchmarks and what drives them

Benchmarking gross margin requires comparing against companies with similar business models, at similar stages, serving similar markets. Cross-model comparisons are rarely useful: a SaaS company with 65% gross margin has a problem, while a manufacturing company with the same figure is performing well. The benchmarks below provide directional guidance for calibrating your position.

SaaS (public, at scale)

Median gross margin of 75%. Top quartile exceeds 82%. Companies below 70% typically have heavy professional services or managed services components that compress margin.

SaaS (private, growth stage)

Median gross margin of 70%. Early-stage companies often sit at 60-65% as they invest in customer success and onboarding. Margins should improve toward 75%+ as the customer base scales and support becomes more efficient.

E-commerce (direct to consumer)

Median gross margin of 40-50% depending on product category. Fashion and beauty skew higher. Electronics and commodities skew lower. Fulfilment costs are typically the most variable COGS component.

Professional services

Median gross margin of 35-45% for traditional consulting. Firms with productised offerings or strong leverage models (junior staff delivering under senior supervision) can reach 50-60%.

Manufacturing

Median gross margin of 25-35% for general manufacturing. Specialty and high-value manufacturing can reach 40-50%. Raw material costs and energy prices are the dominant COGS drivers.

Marketplaces and platforms

Gross margin of 60-75% on the take rate (commission revenue). Platforms with light-touch fulfilment models achieve higher margins. Those handling logistics or payments directly sit lower.

Within each business model, gross margin varies by company stage, scale, and strategic choices. Early-stage SaaS companies often have lower gross margins because they invest heavily in customer onboarding and implementation to establish product-market fit. As the customer base grows, these costs are amortised across more revenue, and the margin expands. Similarly, e-commerce companies that vertically integrate their supply chain, moving from reselling to own-brand manufacturing, can significantly improve gross margins by capturing the margin that was previously going to suppliers.

One of the most common benchmarking mistakes is comparing gross margin without normalising for what is included in COGS. Some companies classify customer support as a COGS item; others classify it as an operating expense. Some include stock-based compensation in COGS; others exclude it. These classification differences can swing gross margin by five to ten percentage points, making headline comparisons misleading. When benchmarking, ensure you understand both your own COGS classification and that of the companies you are comparing against.

Classification consistency

Before benchmarking gross margin, audit your COGS classification. Items commonly misclassified include customer support, DevOps and infrastructure team salaries, implementation costs, and hosting credits. A three-point margin improvement that comes from reclassifying costs out of COGS is not a real improvement; it is an accounting change.

Improving gross margin through tree-based analysis

Because gross margin is a ratio of two components, you can improve it by growing revenue faster than COGS, reducing COGS relative to revenue, or both. The metric tree provides a structured approach to identifying which lever offers the most headroom in your specific context. Rather than launching a broad "margin improvement programme," you walk the tree branch by branch, comparing each node to its benchmark or historical trend, and target the nodes with the largest gap between current and achievable performance.

  1. 1

    Diagnose the margin movement first

    Before acting, use the metric tree to determine whether the margin change is revenue-driven or cost-driven. A one percentage point decline caused by discounting requires a completely different response from the same decline caused by rising infrastructure costs. Walk both branches of the tree and identify which specific nodes moved.

  2. 2

    Improve price realisation

    Pricing is often the highest-leverage margin improvement available. A 5% increase in average selling price flows directly to gross profit with zero incremental cost. Review discount policies, eliminate unnecessary concessions, introduce value-based pricing tiers, and ensure the sales team has the tools and training to defend price. In the metric tree, this shows up as improved price realisation on the revenue branch.

  3. 3

    Shift product and customer mix

    Not all revenue is created equal. Some products, services, or customer segments generate significantly higher gross margins than others. Use the metric tree to identify your highest-margin offerings and direct sales and marketing efforts toward them. If professional services drag margin down, explore ways to productise those services or price them to achieve an acceptable margin.

  4. 4

    Reduce infrastructure and hosting costs

    For SaaS companies, hosting and compute costs are often the largest COGS line item. Optimise cloud architecture, right-size instances, negotiate committed-use discounts, and implement auto-scaling to avoid paying for idle capacity. A well-run SaaS company should be reducing hosting cost as a percentage of revenue every quarter as usage scales.

  5. 5

    Automate support and service delivery

    Customer support and implementation are labour-intensive COGS components. Invest in self-service documentation, chatbots, automated onboarding flows, and knowledge bases that reduce the human hours required per customer. Each support ticket deflected and each onboarding step automated directly improves gross margin.

  6. 6

    Negotiate supplier and vendor terms

    For e-commerce and manufacturing businesses, raw material and supplier costs are the dominant COGS driver. Negotiate volume discounts, consolidate suppliers, explore alternative materials, and lock in favourable long-term contracts. In the metric tree, this appears as a reduction in the direct materials branch.

The most effective gross margin improvement programmes target multiple branches of the tree simultaneously but with different time horizons. Pricing adjustments can take effect within a quarter. Infrastructure optimisation might take two to three months. Building a self-service support platform is a six-month investment. Renegotiating supplier contracts might take a year. The metric tree helps you sequence these initiatives by showing which nodes have the largest impact and which are fastest to improve.

It is equally important to know when not to optimise gross margin. Early-stage companies may deliberately accept lower margins to accelerate customer acquisition, offering generous implementation support or discounted pricing to land strategic accounts. Companies entering new markets may invest in fulfilment infrastructure that temporarily compresses margins but enables future scale. The metric tree makes these trade-offs explicit by showing the relationship between margin investments and revenue growth. A conscious decision to invest in a COGS branch to accelerate revenue growth is different from an unconscious margin leak, and the tree helps you distinguish between the two.

KPI Tree is built for this kind of analysis. It lets you model your gross margin decomposition, connect each node to live data sources, assign ownership to the teams responsible for each lever, and track the interventions they are running. When margin moves, you do not need to convene a meeting to figure out why. You open the tree and see which branch changed, who owns it, and what they are doing about it.

Connecting gross margin to the broader metric tree

Gross margin does not exist in isolation. It is one node in a broader profitability metric tree that connects revenue quality to operating efficiency to net income. Understanding how gross margin interacts with other financial and operational metrics prevents you from optimising it at the expense of growth or sustainability.

At the top of the tree, gross margin feeds into operating margin. A company with strong gross margins but bloated operating expenses will still struggle to reach profitability. Conversely, a company with modest gross margins but lean operations can be highly profitable. The metric tree makes this relationship explicit: gross profit minus operating expenses equals operating profit, and the ratio of each to revenue shows where margin is being created and where it is being consumed.

MetricRelationship to gross marginWhat it adds to the picture
Revenue growthGross margin can improve or decline as revenue grows, depending on pricing discipline and COGS scalabilityEnsures margin improvement is not coming at the expense of growth
Operating marginGross profit minus operating expenses; gross margin sets the ceiling for operating marginShows whether gross profit is being consumed by sales, marketing, and R&D costs
Customer acquisition cost (CAC)CAC is an operating expense, not a COGS item, but high CAC combined with low gross margin creates unsustainable unit economicsConnects acquisition efficiency to margin to assess overall business viability
Net revenue retentionExpansion revenue from existing customers typically comes at near-zero COGS, improving gross marginReveals whether revenue growth is margin-accretive or margin-dilutive
Revenue per employeeHigh revenue per employee combined with strong gross margin signals genuine operating leverageEnsures workforce productivity is translating into profitable revenue

The most valuable metric trees place gross margin alongside these complementary metrics rather than treating it as a standalone figure. When a board or leadership team reviews gross margin, they should simultaneously see revenue growth (to ensure margin gains are not achieved by shrinking the business), operating margin (to ensure gross profit is not being consumed by overhead), and unit economics metrics like CAC payback and LTV:CAC ratio (to ensure the overall model is sustainable).

This interconnection is where a metric tree tool becomes particularly powerful. Rather than tracking these metrics in separate spreadsheets or isolated dashboards, a tree structure shows how they connect. Gross margin flows into gross profit, which funds operating expenses. Revenue growth determines whether the business can achieve operating leverage. Customer acquisition cost determines whether growth is efficient. Retention rates determine whether revenue is durable. The tree makes these dependencies explicit, so improving one metric does not inadvertently damage another.

For finance teams, the gross margin metric tree often becomes the centrepiece of monthly and quarterly business reviews. It provides a structured framework for explaining margin movements to the board, diagnosing the root cause of variances, and assigning accountability for improvement. Instead of presenting a flat P&L and hoping someone asks the right questions, the tree invites exploration: walk the branches, find the nodes that moved, trace them to their causes, and discuss the response.

“The difference between a good finance team and a great one is not the accuracy of their reporting. It is their ability to explain why a number moved and what should be done about it. A gross margin metric tree transforms margin analysis from a reporting exercise into a diagnostic conversation.

Decompose your gross margin into actionable drivers

Build a metric tree that connects gross margin to the revenue and cost levers that actually move the number. Assign ownership, set targets, and track margin improvement in real time.

Experience That Matters

Built by a team that's been in your shoes

Our team brings deep experience from leading Data, Growth and People teams at some of the fastest growing scaleups in Europe through to IPO and beyond. We've faced the same challenges you're facing now.

Checkout.com
Planet
UK Government
Travelex
BT
Sainsbury's
Goldman Sachs
Dojo
Redpin
Farfetch
Just Eat for Business