Back

Cost of Goods Sold

Updated
August 10, 2026
Link copied!

What Is Cost of Goods Sold?

Cost of Goods Sold (COGS) is the direct cost of producing or acquiring the goods a business actually sold during a period. It appears on the income statement directly below revenue, and subtracting it gives gross profit, the first and most fundamental measure of whether a business's core sales activity is profitable before any overhead is considered.

The COGS Formula


FORMULA
Cost of Goods Sold = Beginning Inventory + Purchases − Ending Inventory

EXAMPLE

A distributor starts the quarter with $380,000 in inventory, purchases $1,200,000 more during the period, and ends with $420,000 in inventory.
COGS = $380,000 + $1,200,000 − $420,000 = $1,160,000.
This is the cost of what was actually sold, distinct from what was purchased during the period.

Notice that purchases and COGS are not the same figure. A business can buy more inventory than it sells in a given period, which increases ending inventory and keeps that spending off COGS until the goods actually sell in a later period.

What Is Included in COGS

  • Direct materials:
    the raw materials or purchased goods that make up the product sold.
  • Direct labor:
    wages for workers directly involved in producing the goods, for a manufacturer.
  • Freight-in:
    the cost of getting purchased inventory to the business, as distinct from freight-out, which is a selling expense.
  • Manufacturing overhead:
    for manufacturers, factory costs directly tied to production, such as equipment depreciation on the production line.

What is excluded is just as important: selling expenses, administrative salaries, marketing, and freight-out to customers are operating expenses, not COGS, even though they are real costs of running the business. Miscoding these into COGS distorts gross margin and makes it harder to compare performance period to period.

Cost of Goods Sold vs. Cost of Sales

These terms are frequently used interchangeably, and in most contexts they mean the same thing. Where a distinction is drawn, cost of goods sold is sometimes used specifically for businesses that sell physical products, while cost of sales is used more broadly to include service-based costs as well, such as the direct labor cost of delivering a service. In practice, most financial statements use one term or the other consistently rather than distinguishing between them.

COGS Journal Entry


EXAMPLE

At the point of sale (perpetual inventory system)
Debit: Cost of Goods Sold $1,160,000
Credit: Inventory $1,160,000
Inventory decreases as goods leave, and the cost moves to the income statement in the same period as the related revenue.

Under a periodic inventory system, COGS is not recorded transaction by transaction. Instead, it is calculated once at period end using the formula above, based on a physical inventory count, and posted as a single adjusting entry. Most modern accounting systems use the perpetual method, updating COGS with each sale, because it gives real-time inventory visibility rather than only a period-end snapshot.

Why COGS Accuracy Depends on Invoice Processing

COGS is only as accurate as the inventory and purchase data feeding it. If supplier invoices for inventory purchases are sitting unprocessed rather than posted, the purchases figure in the formula is understated, which distorts both COGS and the resulting gross margin for the period, even though the underlying inventory may already be sitting in the warehouse.

This is the same accuracy dependency that runs through the balance sheet and the AP aging report: the formula itself is simple, but every input depends on invoice processing having kept pace with what has actually been received.

Frequently Asked Questions About Cost of Goods Sold

1. What is Cost of Goods Sold?

Cost of Goods Sold (COGS) is the direct cost of producing or acquiring the goods a business sold during a period. It appears on the income statement below revenue, and subtracting it gives gross profit.

2. What is the formula for Cost of Goods Sold?

COGS equals beginning inventory plus purchases during the period, minus ending inventory. A business starting with $380,000 in inventory, purchasing $1,200,000, and ending with $420,000 has a COGS of $1,160,000 for the period.

3. What is included in Cost of Goods Sold?

Direct materials, direct labor for manufacturers, freight-in on purchased inventory, and manufacturing overhead directly tied to production. Selling expenses, administrative salaries, marketing, and freight-out to customers are excluded and classified as operating expenses instead.

4. What is the difference between Cost of Goods Sold and Cost of Sales?

In most contexts they mean the same thing and are used interchangeably. Where a distinction is drawn, cost of goods sold is sometimes reserved for physical products, while cost of sales is used more broadly to include service delivery costs as well.

5. What is the journal entry for Cost of Goods Sold?

Under a perpetual inventory system, each sale debits Cost of Goods Sold and credits Inventory for the cost of the items sold. Under a periodic system, COGS is instead calculated once at period end from a physical count and posted as a single adjusting entry.

6. Is Cost of Goods Sold an expense?

Yes, it is reported as an expense on the income statement, though it is distinguished from operating expenses because it relates directly to producing what was sold. It is subtracted from revenue first, before operating expenses, to calculate gross profit.

Post inventory costs when they happen.
LayerNext captures and codes supplier invoices as they arrive, so the inventory and freight costs feeding COGS are current instead of reconstructed at close.
Talk to Sales
No items found.
No items found.