# Cost of Goods Sold (COGS)

> The direct cost of the items sold in a period. Rent and ads are not in it.

**Field:** Business & Startups  
**Category:** Accounting  
**Also known as:** COGS, Cost of Sales, Cost of Revenue

## Think of it like

For a cake, it is the eggs, flour and sugar, and the baker's time. It is not the shop rent.

## Definition

Cost of goods sold is the direct cost of the things a company sold in a period. It counts the stuff, the parts and the work that went into each item. It only counts items that were sold, not ones still on the shelf. Rent, ads and office pay are not part of it. Revenue minus this cost gives gross profit. People often call it COGS.

## Formula

```
COGS = Opening Stock + Purchases - Closing Stock
```

## Example

Jack sells 500 chairs this month. The wood and the workers who built them cost $20,000. That is his COGS.

## Why it matters

It decides gross profit. A rise in COGS eats into every sale, even if sales stay the same.

## Common mistake

Counting everything bought this month. Items still unsold sit in stock and are not part of COGS yet.

## Three principles

- **Direct costs only.** What went into each item.
- **Only what sold.** Unsold stock waits on the shelf.
- **Sets gross profit.** Revenue minus COGS is gross profit.

## Related terms

- [Gross Profit](https://learn.benibix.com/term/business/gross-profit)
- [Operating Expenses (OpEx)](https://learn.benibix.com/term/business/operating-expenses)
- [Variable Cost](https://learn.benibix.com/term/business/variable-cost)
- [Direct Cost](https://learn.benibix.com/term/business/direct-cost)
- [Inventory](https://learn.benibix.com/term/business/inventory)
- [Income Statement](https://learn.benibix.com/term/business/income-statement)

## Taught in

- [Gross and Operating Profit](https://learn.benibix.com/learn/business-accounting/gross-and-operating-profit): Accounting, 4/15

![A waterfall of bars. Revenue of $100 is a tall bar. Cost of goods sold takes $40 away, leaving gross profit of $60. Operating expenses take $35 away, leaving operating profit of $25. Interest and tax take $10, leaving net profit of $15.](https://learn.benibix.com/diagrams/income-statement-waterfall.svg)

---

Source: https://learn.benibix.com/term/business/cost-of-goods-sold
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
