gross margin

Gross margin measures the portion of revenue that remains after subtracting the cost of goods sold (COGS). It is typically expressed as a percentage and indicates how much income is available to cover operating expenses and profit.

Managers and finance teams use gross margin to set pricing, compare product or service performance, and forecast profitability. for example, a 60% gross margin means $0.60 of each revenue dollar contributes to fixed costs and operating income. HubSpot Sales Hub reporting and deal-level analytics can surface margin trends so sales teams prioritize more profitable opportunities.

See how HubSpot Sales Hub helps you drive revenue and close more deals

What Is Gross Margin and How Is It Calculated for a SaaS or Product Business?

Gross margin is the portion of revenue that remains after you subtract cost of goods sold (COGS), shown as a dollar amount or percentage. It indicates how much revenue is available to cover operating expenses and profit.

For SaaS offerings, COGS typically includes hosting, third-party licenses, customer support, and payment fees, while product businesses include manufacturing, materials, and shipping. HubSpot Sales Hub reporting can help associate deal revenue with estimated fulfillment costs so teams can monitor margins by product or subscription.

For example, a $1,000 contract that costs $300 to deliver yields a $700 gross margin, or 70%. Compare margins across products or plans to inform pricing decisions, resource allocation, and profitability forecasts.

Resources:

How Does Gross Margin Affect Customer Acquisition Cost, Customer Lifetime Value, and Pricing Strategy?

The gross margin influences how much you can invest in acquiring customers and still reach profitability. It sets the upper bound for sustainable customer acquisition cost (CAC) and affects the length of time needed to recoup acquisition expenses.

Higher gross margins allow for larger acquisition budgets and more flexibility in pricing tiers, while thin margins force stricter CAC limits and tighter product positioning. Teams often use margin benchmarks to decide whether to subsidize acquisition or raise prices to protect long-term value.

Use HubSpot Sales Hub reporting and deal-level analytics to link revenue, fulfillment costs, and customer lifecycles so you can calculate realistic CAC and customer lifetime value (CLV) thresholds. Those insights help pricing teams set plans that balance competitiveness with sufficient margin to fund operations.

Resources:

What Costs Should Be Included When Calculating Gross Margin for Services Versus Product Sales?

For services, include direct labor, contractor and subcontractor fees, onboarding and support time, and any third-party software or tools that are required to deliver the service.

For product sales, include raw materials, manufacturing or purchase cost, packaging, shipping, and expected warranty or return expenses. Allocate per-unit variable costs and include production overhead that rises with volume so per-sale margins reflect true fulfillment cost.

Use HubSpot Sales Hub reporting and deal analytics to connect revenue lines with estimated fulfillment expenses, making it easier to compare margins by SKU, service package, or subscription plan and inform pricing decisions.

Resources:

Which Is More Relevant for Pricing Decisions: Gross Margin Percentage or Gross Profit Per Unit?

Both metrics are valuable, but their relevance depends on the decision you need to make. Gross margin percentage shows the portion of revenue left after cost of goods sold and makes it easy to compare profitability across products, plans, or business models.

Gross profit per unit gives the absolute contribution of each sale and is especially useful when you price by SKU, set minimum order levels, or design bundles and discounts. Use per-unit profit to determine whether lower-margin items still generate enough cash to cover fixed costs and support pricing tiers.

Combine both perspectives in your reporting: HubSpot Sales Hub deal analytics can surface margin percentages by product line, while HubSpot CRM reporting can link per-unit profit to customer segments and lifecycle stages to inform tactical pricing choices.

How Can HubSpot's Reporting and Deal Properties Be Configured to Track Gross Margin by Product or Deal Type?

Start by deciding which cost elements count toward COGS for each product or service, for example direct labor, third-party fees, shipping, or hosting. Document a consistent method for allocating shared costs so reported margins are comparable across deals and product lines.

Create custom deal properties for cost, estimated COGS, and gross margin and capture SKU-level data using line items. Use HubSpot CRM custom properties to store cost inputs and HubSpot Sales Hub reporting to create calculated fields, segmented reports, and dashboards that show margin by product, plan, or deal type.

Segment reports by deal type and product category to spot low-margin areas and test pricing or fulfillment changes. Reconcile HubSpot figures with accounting records, and build validation rules or workflows to ensure cost values stay current and account for discounts, returns, and bundled pricing.

What Is a Marketing Manager's Guide to Using Gross Margin Data to Optimize Campaign ROI?

A marketing manager can use gross margin data to see which campaigns produce profitable revenue after direct costs. This measure helps shift focus from top-line performance to the actual contribution each campaign makes to operating income.

Calculate campaign-level gross margin by attributing revenue and direct fulfillment costs to channels and creatives. Use HubSpot Marketing Hub campaign reporting and attribution tools to connect spend, conversions, and estimated COGS so you can compare true profitability across channels and tactics.

Translate those insights into action by setting margin thresholds for acceptable customer acquisition cost, running small tests to validate assumptions, and prioritizing offers or segments that yield higher per-sale contribution. Reconcile marketing figures with accounting for returns, discounts, and lifetime value to keep decisions grounded in financial reality.

Key Takeaways: gross margin

HubSpot CRM reporting tools centralize revenue and cost inputs so finance and operations teams can calculate gross margin by customer, product, or segment and reconcile those figures with accounting records. HubSpot Sales Hub pipeline analytics and deal-level custom properties enable sales leaders to monitor margin by opportunity, set pricing guardrails, and prioritize deals that contribute higher per-sale profit. HubSpot Marketing Hub campaign reporting and attribution link spend, conversions, and estimated fulfillment costs so marketers can compare true campaign profitability and set acquisition thresholds that protect target margins.

Frequently Asked Questions About gross margin

How Should a SaaS Company Calculate and Track Gross Margin by Product Tier to Inform Pricing Decisions?

Calculate gross margin for each tier by attributing recurring revenue to the tier and assigning direct cost lines such as hosting, third-party licenses, and customer success hours to that tier, then use the formula (revenue − COGS) / revenue. Use HubSpot CRM custom properties to store tier revenue and COGS at the subscription or deal level and create regular reports to monitor margin trends. Combine those fields with HubSpot Sales Hub pipeline analytics to compare margins across tiers and feed results into pricing experiments and guardrails.

How Can a Marketing Manager Use Gross Margin Data to Set Sustainable Customer Acquisition Cost Targets?

Translate gross margin into a contribution margin per customer by applying the margin percentage to expected lifetime revenue, then set CAC targets so that acquisition spend preserves a healthy payback period or return on investment. Use HubSpot Marketing Hub campaign reporting to connect channel spend to leads and HubSpot CRM attribution to link those leads to deals with stored gross margin values. Review cohort-level margin performance regularly to adjust bid strategies and channel mix based on real profitability rather than top-line conversions.

Which Costs Should Be Included When Calculating Gross Margin for Service Contracts Versus Product Sales?

For product sales include direct material costs, manufacturing, inbound and outbound freight, and per-unit warranty or returns expense, while for service contracts include billable labor, contractor fees, software or tooling used to deliver the service, and any third-party fulfillment costs. Account for recurring platform costs differently from variable fulfillment costs and exclude overhead that belongs to operating expenses rather than COGS. Capture these cost lines in HubSpot CRM deal properties and automate cost population with HubSpot Operations Hub data syncs to keep margin calculations consistent with accounting records.

When Should a Business Prioritize Gross Margin Percentage Versus Gross Profit Per Unit for Pricing and Inventory Decisions?

Use gross margin percentage when comparing profitability across product lines or when setting markups that must scale across price points, and use gross profit per unit when inventory costs, SKU-level stocking decisions, or minimum contribution thresholds are the priority. Consider percentage targets for portfolio-level pricing and per-unit profit for decisions where unit economics drive reorder points or promotional tactics. Surface both metrics in HubSpot CRM analytics and HubSpot Sales Hub reports so stakeholders can apply the right measure to pricing, bundling, or inventory actions.

How Can HubSpot Deal Properties and Reports Be Configured to Measure Gross Margin by Customer Segment and Campaign?

Create standardized HubSpot CRM deal properties for revenue, COGS, and gross margin, then use HubSpot Operations Hub workflows to calculate margin values when deals are created or updated. Tag deals with customer segment fields and link them to HubSpot Marketing Hub campaign attribution so reports can show margin by segment and by campaign source. Build custom dashboards in HubSpot CRM reporting to compare campaign-level margins, identify underperforming segments, and export reconciled figures for finance review.