Business Glossary

What is Cost of Goods Sold?

The cost of goods sold (COGS) is a key metric for companies producing physical and/or digital goods. It is calculated using the cost of goods sold formula and recorded on a company’s profit and loss statement. Inventory (such as raw materials) will also usually be listed as current assets on the company’s balance sheet.

Examples of cost of goods sold

The most basic COGS formula is:
Value of inventory at beginning of the year

  • Value of any purchases made during the year
  • Value of inventory at end of year
    = Cost of goods sold

Purchases made during the period refers to anything directly related to the manufacturing of the goods.

For example, in the case of physical goods, it can include packaging, transport and wages/salaries as well as raw materials. In fact, for digital goods, labour costs often constitute a significant part of the cost of goods sold.


As the name suggests, only expenses that directly relate to the manufacture of goods can be counted as part of the cost of goods sold. Indirect expenses cannot be included in COGS. They would probably be included in either cost of revenue or operating expenses.

Cost of revenue refers to expenses incurred due to the provision of a service. This service may be directly and intrinsically linked with a physical item. It is not, however, one of the direct production costs and is therefore excluded from the COGS calculation.

One common example of this would be a warranty on a physical item. The warranty is clearly only relevant if you have the physical item. The provision of warranty support, however, is not directly connected to the production of the item. This means that it cannot be included under COGS.

If the service is provided under an extended warranty, its costs will be classed under cost of revenue. If it’s provided under a standard warranty, it will probably be classed under operating expenses (OPEX).

Operating expenses are often referred to as sales, general and administrative expenses, as these tend to be the main line items in this section of the profit and loss account.

Calculating COGS depends on valuing inventory

The basic concept of cost of goods sold is very simple. Implementing it effectively in practice, however, depends on valuing your inventory accurately.

In accounting, there are three standard ways of valuing inventory. These are:

  • First in first out (FIFO)
  • Last in first out (LIFO)
  • Average cost method (ACM)

FIFO and LIFO both assume that products are sold in order of age. FIFO assumes that a company sells its oldest products first. LIFO assumes that a company sells its newest products first.

The reason this difference is significant is that, generally, manufacturers increase their prices over time. This means that FIFO accounting assumes that manufacturers are selling lower-priced goods before more expensive ones. LIFO assumes that they are doing the opposite.

ACM tries to get around the challenge of price inflation by taking the average value of the inventory. In principle, this can make ACM more accurate overall than either FIFO or LIFO accounting.

In practice, your choice of inventory-valuation method is probably less important than your commitment to it. Stakeholders need to be able to build up a clear picture of a business’s development from one year to the next. They can only do this if the financial accounting remains consistent.

Why cost of goods sold is important

There are two ways a company can achieve profitability. One is to maximise income and the other is to minimise its costs. Generally, stakeholders like to see companies doing both as this gives the healthiest profit margins.

Keeping track of the COGS is one way for stakeholders to measure how well a company is doing at keeping on top of its overheads. In addition to this being important on its own, it also has implications for other key measures of a company’s overall health such as its cash flow and its balance sheet.

Find out more about cost of goods sold.

This article is for informational purposes only and does not constitute legal, employment, tax or professional advice. For specific advice applicable to your business, please contact a professional.

Explore how Square can help you run your business.

Appointments POS

The point-of-sale solution for bookings, payments, retail, inventory, and more.

Ecommerce platform

Turn any business into an online business with a free eCommerce website.

Invoicing software

Square Invoices are free to create and send. Easily send customised online invoices, estimates, and recurring payments with Square.

EFTPOS machine

Square Terminal is your all-in-one credit card and eftpos machine for payments and receipts. It’s secure, reliable and an entirely fairer way to get paid.

Point of Sale Software

Square Point of Sale makes it easy to sell in person, online, over the phone or out in the field. It’s simple to use, and there’s no training required

Restaurant POS

An all-in-one restaurant POS system built to help owners, managers, and staff make the most of every shift.

Retail POS

Square for Retail streamlines your business and keeps everything synced across in-store and online sales, inventory, purchase orders, Customer Directory, and advanced reports.

Tap to Pay on Android™

Accept contactless payments on NFC-enabled devices. Download the Square POS app to start taking payments with just your phone.


Take contactless payments with just your Android phone.

Accept contactless cards and digital wallets with Tap to Pay on Android.

Get business insights and hear more about Square.

Join our email list to receive stories from business owners, industry tips, new product information, and more.

By providing your information you agree to receive marketing communications from Square. Please visit Square’s Privacy Policy for further information.