# What is COGS? Cost of goods sold, formula | MyRecords

> Cost of goods sold (COGS) is the direct cost of the goods a business sold in a period. See the formula, a worked example and which costs stay out of it.

Canonical: https://myrecords.cloud/resources/glossary/cogs/
Last updated: 2026-12-03

Glossary · Accounting

**What is COGS?**

 [Cost of goods sold (COGS) calculator](https://myrecords.cloud/resources/free-tools/cogs-calculator/)

Definition

Cost of goods sold (COGS) is the direct cost of the goods a business sold in a period: opening stock plus purchases and production cost, minus closing stock.

Subject

Accounting

Applies

In any country

Also called

cost of goods sold, cost of sales, COGS

Term 29 of 150, A to Z Updated 3 Dec 2026

## What it means

**COGS = opening stock + purchases and production cost − closing stock**

Revenue minus COGS is gross profit, and gross profit over revenue is the [gross margin](https://myrecords.cloud/resources/glossary/gross-margin/). COGS holds only the cost of getting the goods ready for sale: the purchase price, the cost of making them, and the freight and duty paid to bring them in (the [landed cost](https://myrecords.cloud/resources/glossary/landed-cost/)). Selling, office and finance costs sit lower down the profit and loss statement.

Under IAS 2, the cost of stock becomes an expense in the period in which the sale is recognised, not when the stock was bought. Which units count as sold depends on the [stock valuation](https://myrecords.cloud/resources/glossary/stock-valuation/) method: [FIFO](https://myrecords.cloud/resources/glossary/fifo/) or [weighted average cost](https://myrecords.cloud/resources/glossary/weighted-average-cost/). Service businesses use the wider name, cost of sales.

## Example

Harbour Lane Supplies Ltd, Manchester, year to 31 Dec 2026:

| Figure | Value |
| --- | --- |
| Opening stock, 1 Jan | £42,000 |
| Purchases in the year | £310,000 |
| Freight and duty inward | £8,000 |
| Closing stock, 31 Dec | £50,000 |
| COGS: 42,000 + 310,000 + 8,000 − 50,000 | £310,000 |
| Revenue | £465,000 |
| Gross profit: 465,000 − 310,000 | £155,000 |
| Gross margin | 33.3% |

## Common mistakes

-   Putting delivery to customers, sales salaries or office rent into COGS.
-   Leaving freight inward and import duty out, which makes the margin look better than it is.
-   Using purchases for the year as COGS without adjusting for opening and closing stock.
-   Changing the valuation method in the middle of a year.

## In MyRecords

Stock is valued on every movement at each item’s method, so the cost of what was sold builds up through the year, not only at the year-end count. The Cost of goods sold report breaks the figure down by item group, and Profit and loss opens Gross profit by item. Landed costs are included once they are booked.

## Official sources

Updated 3 Dec 2026

1.   [IAS 2 Inventories, IFRS Foundation](https://www.ifrs.org/issued-standards/list-of-standards/ias-2-inventories/) ifrs.org · Summary read on 3 Dec 2026: what the cost of inventories includes, and that the cost of inventories sold is an expense of the period in which the related revenue is recognised.

## More accounting terms

[All accounting terms](https://myrecords.cloud/resources/glossary/#accounting)

-   [Day book A day book is the date-wise list of every voucher posted in the books, such as sales, receipts, payments and journals, used to review a day's entries.](https://myrecords.cloud/resources/glossary/day-book/)
-   [Days payables outstanding (DPO) Days payables outstanding (DPO) is the average number of days a business takes to pay its suppliers: trade payables ÷ cost of goods sold (or purchases) × the days in the period.](https://myrecords.cloud/resources/glossary/dpo/)
-   [Days sales outstanding (DSO) Days sales outstanding (DSO) is the average number of days a business takes to collect payment after a sale: trade receivables ÷ credit sales × the number of days in the period.](https://myrecords.cloud/resources/glossary/dso/)
-   [Declining-balance depreciation Declining-balance depreciation charges a fixed percentage each year on the asset's carrying amount at the start of that year, so the charge is largest in the first year and falls after it.](https://myrecords.cloud/resources/glossary/declining-balance-depreciation/)
-   [Deferred revenue Deferred revenue is money a business has received for goods or services it has not delivered yet; it is a liability until the work is done.](https://myrecords.cloud/resources/glossary/deferred-revenue/)
-   [Depreciation Depreciation is the part of a fixed asset's cost charged as an expense in each year of its useful life, as the asset wears out or becomes outdated.](https://myrecords.cloud/resources/glossary/depreciation/)

Any business, anywhere

## Put these terms to work in your books.

Accounting, tax, stock, payroll and loans in one system, customised to the way you work.

[See every app](https://myrecords.cloud/product/) [Works worldwide](https://myrecords.cloud/solutions/worldwide/)

Free, no obligation

Request a quote

-   For the apps and modules you pick
-   At our best price, in writing
-   Your questions, answered by our team

[Request a quote](https://myrecords.cloud/contact/?topic=quote) [or contact us](https://myrecords.cloud/contact/)
