Gross Margin

Gross margin measures the percentage of revenue that remains after subtracting the cost of goods sold.

Businesses use gross margin to assess product profitability, set pricing, and compare channels or SKUs. A strong margin gives more room to cover operating expenses and generate net profit.

See how insights from HubSpot drive profitability

Use gross margin insights to improve deal profitability with Sales Hub.

What Is the Gross Margin and How Is It Calculated for a SaaS Company?

Gross margin measures the percentage of revenue that remains after subtracting the cost of goods sold, calculated as gross profit divided by revenue. This metric shows how much revenue is available to cover operating expenses and support investment in product and customer success.

For SaaS companies, the cost of goods sold typically includes hosting, third-party licenses, and support personnel salaries. Subscription fees represent the primary source of revenue. Finance and revenue teams can use HubSpot CRM reporting to monitor pricing, churn, or discounts. Operations teams can then evaluate how these factors affect the gross margin.

A high gross margin gives more flexibility to fund customer acquisition and product development, while a declining margin can indicate the need to adjust pricing or lower variable costs. Regular tracking of gross margin helps leaders forecast cash flow and prioritize strategic investments.

Resources:

How Does Gross Margin Relate to Customer Acquisition Cost and Lifetime Value?

Gross margin describes the portion of revenue that remains after the cost of goods sold. This number indicates how much revenue is available to cover customer acquisition costs and future customer service expenses. Teams should strive for a stronger gross margin.

Teams can compare gross margin per customer to CAC by applying the gross margin percentage to average revenue per account. From there, they can measure the payback period against acquisition spend. If gross margin multiplied by lifetime value does not exceed CAC, the business will need to adjust pricing, reduce costs, or improve retention.

Finance and revenue teams use HubSpot CRM reporting to join revenue, churn, and cost data. These operations teams can then calculate LTV:CAC ratios and monitor payback periods by segment. Clear visibility into those metrics guides channel investment, pricing decisions, and whether to prioritize retention or new customer acquisition.

What Hidden Expenses Should Be Included When Estimating Gross Margin for Subscription Revenue?

Hidden expenses that affect subscription gross margin include payment processing fees, third-party hosting and licensing costs, customer onboarding and implementation labor, and refunds or credits. These directly reduce the revenue available to cover operating expenses. 

Practical differences matter when comparing approaches: Some companies classify customer success and support as cost of goods sold. Others treat them as operating expenses, which allows these costs to be amortized or expensed immediately. Choosing one treatment over another affects margins. Variations make cross-company or period-to-period comparisons misleading unless assumptions are disclosed.

To get accurate, comparable margins, finance teams reconcile billing, usage, and cost lines by customer or cohort. Teams use HubSpot CRM reporting to combine subscription revenue with renewal and churn data as part of that reconciliation. Producing cohort-level gross margin helps leaders set pricing, prioritize retention, and assess which customer segments are truly profitable.

When Should a Company Prioritize Gross Margin Improvement Versus Revenue Growth?

Prioritizing gross margin improvement means focusing on increasing the percentage of revenue that remains after subtracting the cost of goods sold. Meanwhile, prioritizing revenue growth emphasizes expanding top-line sales. Remember: Weak margins can erode cash flow and profitability even as revenue rises. Meanwhile, pursuing revenue without profitability for each unit sold can lead to unsustainable spending.

A company with limited cash and low unit margins should emphasize margin improvement. This approach focuses on the financial constraints and market position, reducing the risk of capital shortfalls. The end result supports longer-term viability.

Teams pick an approach by analyzing profitability by unit, cohort profitability, and payback periods. Then, they can compare the return on acquisition versus margin gains. Finance and revenue operations teams use HubSpot CRM reporting to understand revenue generated from deals. They can then compare that information to cost data by cohort and calculate LTV:CAC. That overarching picture clarifies whether investing in acquisition or lowering variable costs will improve overall profitability.

How Can HubSpot Reports and Dashboards Help Monitor Gross Margin by Product Line?

Gross margin by product line shows the percentage of revenue that remains after subtracting the cost of goods sold for each product or SKU. This view reveals which offerings contribute most to covering operating expenses and where pricing changes may be necessary.

Teams create reports that join revenue, discounts, and cost fields at the product level. This allows them to calculate gross margin per offering and track trends over time. Finance and revenue operations managers can use HubSpot CRM reporting to track that information. These team members can combine line items with custom cost properties, building dashboards that filter by product line or cohort. HubSpot's reporting capabilities allow finance teams to identify low-margin products. Strategists can then inform pricing or bundling decisions.

Standardizing cost definitions and scheduling regular dashboard reviews makes comparisons meaningful across periods and teams. Regular monitoring prevents margin erosion, supports more accurate forecasting, and helps leaders reallocate resources toward higher-margin offerings.

Resources:

What Metrics Should a SaaS Marketing Manager Track to Protect Gross Margin?

Gross margin is the percentage of revenue that remains after subtracting the cost of goods sold. For a marketing manager, gross margin indicates whether acquisition and retention efforts are financially sustainable. With this information, marketers can make more cost-effective choices about pricing, channel mix, and customer selection.

Key metrics include customer acquisition cost (CAC), average revenue per account (ARPA), churn rate, campaign-level acquisition cost, and gross margin by cohort. Marketing teams use HubSpot Marketing Hub attribution reporting and HubSpot CRM revenue analytics to connect campaign spend to revenue and calculate these metrics. Resulting reports identify channels and tactics that preserve margins.

Marketers should monitor gross margin by acquisition channel, customer cohort, and product tier to spot high-cost segments before they erode profitability. Regular reviews enable teams to reallocate budget to more profitable channels. Strategists may also adjust pricing or packaging.

Resources:

Key Takeaways: Gross Margin

Gross margin determines how much revenue remains after direct costs. This value dictates a company's ability to fund operating expenses, invest in product and customer success, and generate sustainable net profit. Measure gross margin consistently by cohort and product, reconcile hidden variable costs such as payment fees and onboarding labor, and prioritize actions that improve unit profitability. By centralizing cost and revenue data in HubSpot CRM reporting, teams can create cohort-level dashboards to monitor pricing, packaging, and channel allocation.

Frequently Asked Questions About Gross Margin

Which cost-allocation method gives the most accurate gross margin by product for a multi-product B2B company?

Activity-based costing usually produces the most accurate gross margin by product in a multi-product B2B company. This process assigns direct and support costs to the activities that drive consumption. Finance and revenue teams should implement allocation rules for shared costs, such as hosting and support. They can track usage by measuring API calls, onboarding hours, or seat counts. Use HubSpot CRM reporting and HubSpot Data Hub data sync to centralize transactions, so product-level margins reconcile.

Why should executives link gross margin targets to hiring and go-to-market budgets?

Linking gross margin targets to hiring and go-to-market budgets ensures that headcount and acquisition investments are funded by sustainable, long-term pricing rather than short-term revenue. This alignment forces clear ROI thresholds for new roles and channels. The result is less risk of margin erosion as the company scales. Executives can model scenarios with HubSpot Sales Hub pipeline analytics and HubSpot CRM reporting to test hiring plans against margin targets before approving spend.

Who should own the gross margin reconciliation process between finance, product, and customer success teams?

Finance should own the gross margin reconciliation process, but other teams should still be involved. Organizations should create a cross-functional working group that includes product and customer success to validate inputs and assumptions. Product teams should supply usage and feature-cost drivers. Customer success should provide onboarding and support effort estimates. Additional information allows reconciliations to reflect real-world costs. Use HubSpot CRM reporting to centralize revenue cohorts and HubSpot Service Hub ticketing metrics to quantify support cost drivers for regular reconciliation.

Where in the subscription lifecycle do companies most commonly lose margin, and how should teams prioritize fixes?

Companies most commonly lose margin during onboarding and early months of usage, due to unexpected fulfillment costs and high rates of downgrades or churn. Teams should prioritize fixes by impact and frequency, addressing high-cost inefficiencies before optimizing low-frequency discounts. Track cohorts with HubSpot CRM customer journey analytics and use HubSpot Data Hub to connect billing and support metrics. This view allows teams to quantify impact and test targeted interventions.

How can pricing and packaging experiments be structured to raise gross margin without increasing churn?

Teams should structure pricing and packaging experiments as controlled cohort tests. With each experiment, vary only one dimension at a time. That may be price, included features, or billing cadence. Focusing on one element isolates effects to understand impact. Use value-based tiers and optional add-ons to protect vulnerable customers, while capturing more margin from less price-sensitive segments. Measure outcomes with HubSpot Marketing Hub and HubSpot CRM reporting before rolling out changes.