Cost Of Goods Sold
Cost of goods sold (COGS) is the direct cost of producing the goods a company sells. It includes raw materials, direct labor, and factory overhead and is central to calculating gross margin and product profitability.
Tracking cost of goods sold lets finance and sales teams set pricing, evaluate margins, and forecast profit by product line. HubSpot Sales Hub reporting and deal-level data help tie revenue to product costs for clearer pricing and discount decisions.
See how HubSpot Sales Hub helps you drive revenue and close more deals
What Is the Cost of Goods Sold and How Is It Calculated for a B2B SaaS Business?
In a B2B SaaS business, cost of goods sold refers to the direct expenses required to deliver subscription services during a reporting period. Typical items include hosting and infrastructure, third-party platform fees, customer onboarding and support labor, and amortized development or licensing costs.
HubSpot Sales Hub reporting can help you match subscription revenue to specific products and contract terms so you can allocate those direct costs by product line or customer cohort. Using aligned sales and billing data makes it easier to produce consistent COGS figures for margin analysis and pricing decisions.
To calculate COGS for a period, sum the direct service costs incurred in that period and apply any appropriate amortization or allocation rules for multi-period items. Clear COGS measurement improves gross margin visibility and supports better product-level profitability insight.
Resources:
How Does the Cost of Goods Sold Affect Gross Margin, Pricing Strategy, and Customer Acquisition Cost?
Cost of goods sold reduces gross margin by increasing the direct expenses that are subtracted from revenue. Higher cost of goods sold shrinks available margin and changes the amount you can profitably spend to win customers.
When you set pricing, allocate direct, recurring, and amortized costs to each product or service to calculate contribution margin. That granularity helps you decide on discounting, pricing tiers, and the customer acquisition cost you can accept for each segment.
Use HubSpot Sales Hub deal-level reporting to match revenue to specific products or SKUs, calculate gross margin per sale, and model the maximum customer acquisition cost that preserves your target margins.
What Are the Common Edge Cases and Allocation Assumptions When Apportioning Shared Costs to the Cost of Goods Sold in a Company Using CRM and Marketing Automation?
Shared costs such as hosting, third-party platforms, and support often do not map cleanly to a single product line. Edge cases arise when customers use multiple services, when costs are incurred across reporting periods, or when a small number of customers account for most usage.
Common allocation bases include usage metrics, revenue share, active users, and headcount. Usage-based apportionment typically yields more accurate product margins but requires reliable telemetry, while revenue-based splits are simpler to apply but can misstate contribution for high-usage or low-revenue segments.
HubSpot CRM reporting can link deal revenue and contact-level activity to customer records so you can simulate different allocation rules with real data. Documenting assumptions and running sensitivity comparisons helps you evaluate trade-offs between precision, auditability, and operational effort.
When Should a Company Classify a Cost as Cost of Goods Sold Versus an Operating Expense for Financial and Pricing Decisions?
Deciding whether to record an expense as cost of goods sold or as an operating expense depends on whether the cost is directly required to produce or deliver the revenue during the reporting period.
Costs that are directly tied to production or service delivery, such as raw materials, hosting fees that scale with active subscriptions, and direct implementation labor, are usually classified as cost of goods sold, while general administration, sales and marketing, and rent are treated as operating expenses.
HubSpot CRM reporting can help you link deal revenue and customer usage to specific costs so you can test allocation rules, measure product-level margins, and make informed pricing decisions.
How Can HubSpot's Reporting and CRM Tools Be Configured to Track, Allocate, and Report a Company's Cost of Goods Sold?
Set up a consistent record for cost of goods sold by adding line-item or deal-level properties that capture direct costs such as hosting, third-party licenses, and implementation labor. Tag products or SKUs on deals so each sale carries the associated cost fields for clear attribution.
Use HubSpot CRM custom properties and HubSpot Sales Hub line items to store and attach cost elements to transactions. that approach lets you join revenue and direct costs at the deal level for accurate period reporting.
Combine those fields in custom reports to calculate gross margin, create calculated properties for contribution per product, and publish dashboards for finance and product teams. Run regular reconciliations and document allocation rules to keep COGS measurements auditable and actionable.
What Should a Finance Leader's Dashboard Include to Monitor and Reduce the Cost of Goods Sold Across Sales and Marketing Channels?
A finance leader's dashboard should make clear how direct costs affect unit economics and overall profitability. Focus on the few metrics that reveal where spending concentrates across products and channels.
Include measures such as gross margin per product, cost per active customer, and contribution margin by channel. Use HubSpot CRM custom reports and HubSpot Sales Hub line items to attach cost properties to deals and reconcile revenue with direct costs.
Add visualizations for trending cost of goods sold, channel-level allocation, and customer cohorts so you can spot margin erosion early. Set alert thresholds and schedule regular reconciliations to validate allocation rules and inform pricing and retention choices.
Key Takeaways: Cost Of Goods Sold
HubSpot CRM reporting and HubSpot Sales Hub pipeline analytics let finance teams attach deal-level line items and cost properties to revenue so they can calculate gross margin and contribution per product. HubSpot Marketing Hub lead tracking and HubSpot Sales Hub deal tagging help allocate acquisition expenses to customer cohorts, while HubSpot Operations Hub data sync and HubSpot CRM custom properties streamline cost attribution and reconciliation across systems. Together, these tools support dashboards and alerts for trending cost of goods sold, channel-level allocation, and informed pricing decisions.
Frequently Asked Questions About Cost Of Goods Sold
Which Allocation Methods Produce the Most Actionable Cost of Goods Sold Metrics for Product-Level Gross Margin and Unit Economics?
When Should a Company Classify a Cost as the Cost of Goods Sold Versus an Operating Expense for Financial Reporting and Pricing Decisions?
How Does Treating Cost of Sales Versus Cost of Goods Sold Impact Gross Margin Reporting and Pricing Strategy Across Business Lines?
How Can HubSpot's Reporting and CRM Tools Be Configured to Track, Allocate, and Report a Company's Cost of Goods Sold for Channel-Level and Product-Level Analysis?
Related Business Terms and Concepts
Gross Margin
Understanding gross margin is essential for implementing cost of goods sold effectively because gross margin translates those costs into a clear measure of product profitability and pricing decisions. By mapping cost of goods sold to gross margin metrics, finance and product teams can set price floors, prioritize product investments, and detect margin erosion before it impacts profitability.
Revenue Management
Revenue management directly impacts cost of goods sold success by aligning recognition policies and pricing cadence with how delivery costs are allocated, improving margin visibility across reporting periods. Implementing revenue management controls helps accounting and finance reconcile vendor timing with revenue, which supports more accurate contribution-margin decisions and contract negotiations.
Accrued Revenue
Accrued revenue serves as a prerequisite for accurate cost of goods sold reporting by ensuring revenue and corresponding delivery costs are matched to the same period, preventing distorted margin signals. When finance teams manage accruals precisely, leadership gains reliable monthly gross margin metrics for pricing and portfolio evaluations.
Sales Forecasting
Sales forecasting directly impacts cost of goods sold by informing capacity planning, vendor commitments, and variable hosting budgets tied to expected demand. Integrating sales forecasts with unit-level COGS allows operations and finance to smooth provisioning, negotiate better supplier terms, and model margin scenarios under different demand assumptions.
Sales Growth
Sales growth has an outcome relationship with cost of goods sold because changes in scale alter per-unit costs and can create opportunities for margin improvement or pressure when variable costs rise faster than revenue. Monitoring how COGS scales with customer acquisition enables executives to time infrastructure investments and pricing adjustments to preserve profitability during expansion.
B2B SaaS
In a B2B SaaS context, cost of goods sold typically includes hosting, third-party licenses, and customer success delivery, which requires product-level allocation to understand unit economics. Using HubSpot Sales Hub and HubSpot CRM to attach product line items and usage metrics improves visibility into per-customer COGS and supports strategic pricing and go-to-market decisions.