Cost of Goods Sold (COGS)
Cost of goods sold is the cost assigned to inventory or goods that were sold during a reporting period under the organization’s accounting policy.
For service and software businesses, the analogous presentation may be called cost of revenue. Classification depends on the accounting framework, business model, and consistently applied policy.
COGS connects the cost of sold goods to the revenue reported for the same period. It is not a universal bucket for every cost that feels directly related to customers.
Move inventory and production cost into the sold period
Product costs remain in inventory until the related goods are sold, subject to the applicable accounting policy.
- 01Beginning inventory
Cost carried into the period
- 02Purchases or production
Qualifying product cost added during the period
- 03Ending inventory
Cost not yet assigned to sold goods
- 04COGS
Cost assigned to the goods sold in the period
Gross profit is a reporting result, not the same as cash generated or runway.
What is Cost of Goods Sold (COGS)?
Cost of goods sold is the cost assigned to goods sold during a reporting period. In a product business, qualifying costs can enter inventory when goods are purchased or produced and move into COGS when those goods are sold. Inventory remaining at period end stays outside current-period COGS, subject to write-downs and the applicable accounting policy.
COGS is subtracted from revenue to calculate gross profit. Costs below gross profit are generally operating expenses, but the boundary is not determined by a single universal test. Freight, labor, fulfillment, overhead, support, hosting, and payment costs can receive different treatment depending on the business, reporting framework, materiality, and established policy.
Service and software companies often use the term cost of revenue rather than COGS. They should define the categories consistently rather than copy a physical-inventory formula into a model that has no inventory.
What can enter COGS?
For a product business, direct materials, direct production labor, and allocated production overhead can be part of inventory cost. Purchase cost and qualifying freight can also matter. The exact treatment should follow the accounting policy and relevant framework.
Inventory costs
Costs assigned to goods held for sale and released to COGS when the related units are sold.
Production costs
Qualifying materials, labor, and overhead used to bring inventory to its present condition.
Period expenses
Selling, general, administrative, research, and other costs that do not qualify for inventory or cost-of-revenue treatment under the policy.
COGS versus cost of revenue
COGS is strongly associated with goods and inventory. Cost of revenue is often used more broadly for costs associated with delivering service or software revenue. The labels can appear differently across organizations, so compare the underlying policy and categories rather than assuming identical treatment.
Why classification discipline matters
Moving a cost between COGS and operating expenses changes gross profit and gross margin even when total operating profit is unchanged. Consistency makes period comparisons useful. A policy change should be documented and prior comparisons restated or clearly qualified.
Why it matters
COGS helps show how much of reported revenue remains after the cost assigned to the goods sold. That gross profit can be compared across products, periods, and operating models when the classification policy is stable.
The measure does not by itself show cash timing. Inventory may be purchased before the sale, suppliers may be paid later, and customer cash may arrive on a different schedule. Use cash-flow and working-capital views for those questions.
Product-business formulas
- Beginning inventory measured under the selected accounting policy
- Qualifying purchases and production costs added during the period
- Ending inventory under the same costing method
- Revenue for the same reporting period when calculating gross profit
Product-business formulas
COGS = Beginning inventory + Purchases or production costs − Ending inventory Gross profit = Revenue − COGS
Illustrative inventory calculation
A product company begins the month with $90,000 of inventory cost, adds $70,000 of purchases and qualifying production cost, and ends with $55,000 of inventory. COGS is $105,000.
If revenue for the same month is $180,000, gross profit is $75,000. This example does not decide which real-world labor, freight, fulfillment, or overhead categories qualify. The company’s accounting policy and source records determine that classification.
How RunwayCal helps
RunwayCal’s Financial Statements surface generates an Income Statement from supported structured inputs for management review. Expense categories should be reviewed before interpreting gross profit or comparing periods.
RunwayCal does not replace the accounting system or determine the correct accounting policy for a company. Use the organization’s approved classifications and reconcile them to the source records.
Common mistakes
- 1Using “cost that disappears with zero customers” as a universal accounting rule.
- 2Applying an inventory formula to a service model without explaining the reporting policy.
- 3Changing classifications between periods to improve gross margin presentation.
- 4Treating gross profit as cash generated or as a runway measure.
Get the Financial Clarity Newsletter
Practical tips on cash flow, runway, and financial decisions for founders, business owners, CFOs, investors, and board members. Free, weekly, no spam.
Review the cost boundary before reading gross profit
Use consistent classifications, inspect the period output, and keep accounting policy separate from planning assumptions.
Explore Financial Statements