Cost of Goods Sold
Cost of goods sold measures the direct costs tied to producing the goods a company sells during a given period. It commonly includes raw materials, direct labor, and manufacturing overhead directly associated with production.
Businesses subtract cost of goods sold from revenue to calculate gross profit and margin. Accurate COGS reporting informs pricing, inventory decisions, and sales forecasting, and HubSpot CRM alongside HubSpot Sales Hub reporting can centralize sales and product data to help teams reconcile costs and monitor margins.
See how HubSpot Sales Hub helps you drive revenue and close more deals
What Is a Practical Definition of Cost of Goods Sold for a SaaS Company?
Cost of goods sold for a SaaS company covers the direct costs required to deliver and support a subscription service, including cloud hosting, third-party service fees, and the amortized portion of product development directly tied to active customers. This measure matters because it determines gross margin, informs unit economics, and guides pricing and investment decisions.
Practical examples include cloud hosting fees, third-party API charges, payment processor fees, and the portion of customer success and support salaries allocated to active subscriptions. Finance and revenue teams can use HubSpot CRM reporting to link revenue to cost centers and calculate per-customer margins for budgeting and prioritization.
Accounting choices such as capitalizing development costs versus expensing them immediately can materially change reported cost of goods sold and the timing of profitability. Being explicit about these choices helps leaders set subscription pricing, model lifetime value accurately, and present clearer unit economics to stakeholders.
How Does Cost of Goods Sold Affect a Subscription Company's Gross Margin and Pricing Strategy?
Cost of goods sold for a subscription company is the direct cost of delivering the service, such as cloud hosting, third-party integrations, payment processing, and the portion of customer support tied to active accounts. This matters because higher COGS reduces gross margin and directly constrains how much headroom you have to set competitive pricing and invest in product development.
In practice, companies calculate COGS on a per-customer or per-plan basis to understand unit economics and to decide which features or tiers justify higher prices. This practice matters because knowing per-customer COGS reveals which plans are profitable and which require price adjustments, cost allocation changes, or efficiency improvements.
Finance and product teams can combine usage data and cost allocation to refine pricing and packaging, and tools like HubSpot CRM reporting make it easier to link revenue records to customer segments and cost centers for ongoing margin monitoring. This capability matters because timely visibility into margin movements enables faster pricing decisions and better prioritization of investments that improve profitability.
Resources:
When Should a Customer Success Team's Costs Be Included in Cost of Goods Sold for a Recurring Revenue Business?
Cost of goods sold should include customer success team costs when those costs are direct, measurable, and necessary to deliver the subscription service to active customers. This matters because including those direct costs produces more accurate gross margin calculations and informs pricing and unit-economics decisions.
Practical examples include onboarding specialists who configure new accounts, account managers who provide included support, and recurring implementation work that scales with the customer base. This matters because classifying those roles as cost of goods sold versus operating expenses changes reported profitability and can affect staffing and investment choices.
When comparing allocation methods, per-customer time tracking provides greater precision but adds administrative effort, while allocating support as a fixed overhead is simpler but can obscure margin differences across plans. Teams can use HubSpot CRM reporting and HubSpot Service Hub ticketing to tag customer interactions and measure time spent, and this helps finance and product leaders reprice plans, allocate headcount, or decide which services should be bundled or billed separately.
What Are the Pros and Cons of Treating Software Development as an Operating Expense Versus Cost of Goods Sold?
Treating software development as an operating expense means costs are recognized immediately as incurred, while treating eligible development costs as cost of goods sold (COGS) allocates those costs to the periods when related revenue is recognized. This decision matters because it directly affects reported gross margin, short-term profitability, and the financial metrics that investors and management use to assess unit economics.
Practical pros of expensing development include simpler accounting and clearer operating cost visibility, while cons include potentially understating the true margin of delivered products that required sustained engineering effort. Capitalizing development into COGS can present higher gross margins and better match costs to revenue but adds complexity, requires stricter documentation, and can increase earnings volatility across periods.
To apply either approach consistently, finance and product teams should track time, third-party fees, and allocation rules and then connect those cost records to revenue streams using HubSpot CRM reporting to compare margins by customer segment or plan. This linkage helps leaders test pricing scenarios, decide whether to bundle or bill new features, and present transparent unit-economics to stakeholders.
How Can HubSpot Financial Integrations Automate Cost of Goods Sold Tracking for a B2B Software Company?
Automated financial integrations consolidate invoices, bills, payroll entries, and purchase orders into cost streams that are tagged to revenue sources and reporting periods. This automation matters because it reduces manual reconciliation, delivers timely gross margin visibility, and helps finance teams make pricing and resource decisions with current data.
For example, integrations can push ledger lines into HubSpot CRM reporting while HubSpot Operations Hub data sync keeps customer and product records aligned with accounting dimensions. That setup matters because it enables automated allocation rules, faster per-customer margin calculations, and quicker detection of cost variances that affect profitability.
Companies should define mapping rules for capitalized development costs, third-party usage, and support headcount so that automated feeds allocate costs consistently across subscription cohorts. Consistent allocation matters because inconsistent treatment creates misleading unit economics, complicates forecasting, and can lead to incorrect pricing or investment choices.
What Should a Marketing Manager Know About Cost of Goods Sold When Forecasting Campaign ROI?
Cost of goods sold for campaign forecasting refers to the direct, incremental costs required to deliver the product or service that a campaign generates. This matters because failing to include those costs will overstate short-term ROI and lead to poorer channel and budget decisions.
Examples to include are unit production costs, payment processing fees, and the portion of onboarding or delivery labor that scales with new customers. Marketing teams can use HubSpot Marketing Hub attribution reporting to map campaign touchpoints to deals and apply cost allocations, which helps set realistic customer acquisition cost targets.
Marketers should decide whether to attribute COGS at acquisition or amortize delivery costs over customer lifetime and then apply that rule consistently in forecasts. That approach improves net contribution analysis and helps justify or reallocate spend toward channels that produce profitable customers after COGS.
Key Takeaways: Cost of Goods Sold
Cost of goods sold determines how much of revenue remains to fund pricing flexibility, product investment, and sustainable profitability, and it directly shapes strategic decisions about which plans and customers to prioritize. Measure and allocate cost of goods sold consistently at a per-customer or per-plan level, connect cost records to revenue streams to reveal true unit economics, and automate mappings where possible so finance and product leaders can act on timely margin signals. When accounting choices or allocation methods change, document and communicate those rules to preserve comparability and to avoid misleading stakeholders about performance.