How To Calculate Cost of Goods Sold (COGS)

Femi Lewis is a New York-based writer specializing in small business development and digital marketing whose work has been published in media outlets such as Black Enterprise, the South Florida Sun-Sentinel, Fort Worth Star-Telegram, Kansas City Star, Quizlet, and ThoughtCo. She is also the founder of her own content marketing firm, Femi Writes.

Updated on May 31, 2022 Reviewed by

Khadija Khartit is a strategy, investment, and funding expert, and an educator of fintech and strategic finance in top universities. She has been an investor, entrepreneur, and advisor for more than 25 years. She is a FINRA Series 7, 63, and 66 license holder.

In This Article In This Article

A customer in a store checks the price tag of a purse.

Consumers often check price tags to determine if the item they want to buy fits their budget. But businesses also have to consider the costs of the product they make, only in a different way.

The cost of goods sold (COGS) is the cost related to the production of a product during a specific time period. It’s an essential metric for businesses because it plays a key role in determining a company’s gross profit.

Learn more about how businesses use the cost of goods sold in financial reporting, and how to calculate it if you need to for your own business.

Key Takeaways

What Is the Cost of Goods Sold (COGS)?

Cost of goods sold refers to the total costs associated with the production of goods that a company sells. COGS is typically used by manufacturers, retailers, and wholesalers as these businesses sell or resell products to generate revenue.

Businesses determine COGS by calculating the value of their inventory at the beginning of the tax year, then adding in costs such as purchases, direct labor, materials/supplies, and other costs associated with creating products. The value of the inventory at the end of the tax year is subtracted from that total amount.

COGS are recorded as a business expense on income statements. It’s subtracted from a company’s total revenue to get the gross profit.

Note

The purpose of COGS is, in part, to help business decision makers, investors, and analysts determine gross profit that reveals how efficient a company is with managing production costs such as the costs for labor and supplies.

What Is Included in COGS?

Cost of goods sold includes the costs related to acquiring or producing a physical product to sell or resell. The costs often include:

COGS does not include costs such as sales and marketing, but it may include all or a portion of indirect costs such as rent, taxes, repackaging, handling, and administrative costs.

Cost of Goods Sold Formula

To determine COGS, a business must identify the following:

Formula for COGS

Essentially, to get the cost of goods sold, you add the beginning inventory and the additional inventory costs, then subtract the ending inventory value . The general formula for calculating COGS is:

Beginning Inventory + Purchases - Closing Inventory = COGS

For example, say your floral business had a beginning inventory of $20,000, which included the cost of all the flowers in your shop, the costs to ship them to you, and other associated costs.

Throughout the year, you may have incurred $10,000 in additional costs to buy and hold more flowers. At the end of the year, after sales, you calculate a closing inventory of $10,000. Here’s how calculating the cost of goods sold would work in this simple example:

Beginning inventory: $20,000

Closing inventory: $10,000

$20,000 + $10,000 - $10,000 = $20,000

Cost of goods sold: $20,000

Now, if your revenue for the year was $55,000, you could calculate your gross profit. To do this, subtract the cost of goods sold from your revenue. In this case, your gross profit would be $35,000 ($55,000 - $20,000 = $35,000).

Note

Keep in mind that in practice, calculating the cost of goods sold can be complex depending on the complexity of the company’s manufacturing process or other factors that go into the cost to make or purchase the products.

Methods for Calculating Inventory

Businesses can use one of three main methods for calculating inventory costs: FIFO (first in, first out), LIFO (last in, first out), and average cost.

The FIFO method assumes the first goods produced or purchased are the first sold, whereas the LIFO method assumes the most recent products produced or purchased are the first sold. The average cost method uses the average cost of inventory without regard to when the products were made or purchased.

Why COGS Is Important

The cost of goods sold is an important metric for a number of reasons.

Note

COGs can play a key role in minimizing tax bills. Businesses can use COGS on the Schedule C form. By documenting expenses during the production process, a business will be able to file for deductions that can reduce its tax burden.

Frequently Asked Questions (FAQs)

How do you calculate the variable cost of goods sold?

Variable costs are costs that change from one time period to another, often changing in tandem with sales. In contrast, fixed costs are costs that remain the same. The cost of goods sold is a variable cost because it changes. To calculate it, add the beginning inventory value to the additional inventory cost and subtract the ending inventory value.

What items are included in the cost of goods sold?

The five items included in the cost of goods sold are: inventory at the start of a new tax year; purchases not including cost of items used for personal usage; labor costs; material and supplies; and other costs.

What is not included in COGS?

COGS does not include costs such as overhead, sales and marketing, and other fixed expenses. COGS only includes costs and expenses related to producing or purchasing products for sale or resale such as storage and direct labor costs.

Was this page helpful? Thanks for your feedback! Tell us why!

The Balance uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.

  1. IRS. "Tax Guide for Small Business." Page 27.
  2. IRS. "Deducting Business Expenses."
  3. Tax Foundation. "Inventory Valuation in Europe."
Related Articles

Woman on phone in bakery looking at tablet

How to Calculate Cost of Goods Sold

HIPAA Compliance Training

Best HIPAA Training Programs

A woman sits at a desk with a computer.

A Beginner's Guide to Section 179 Deductions

SMART goals acronym visual

SMART Goals: Examples for Business

Business owner sitting at her desk making a list in her notebook.

Achieving Company Goals and Objectives

Two men planning operations in an empty warehouse

How to Write the Operations Plan Section of a Business Plan

A business owner unloads product from his vehicle

Vehicle Tax Deductions and Write-Offs Explained

Card Placeholder Image

What Is the Market Price per Share?

Illustration on network marketing

The Network Marketing Business Model

Businessman working at computer in office

Essential Office Equipment

Woman taking picture on smartphone of <a href=barcode for payment of bills for accounting app" width="282" height="188" />

Best Accounting Apps for Independent Contractors

Customer Service

Best Ticketing Systems of 2024

Best Small Business Software

Best Small Business Software

Business people negotiating a contract.

What Is a Retainer for a Lawyer?

A woman in her office makes notes on a piece of paper

What You Need to Know Before You Sign a W-9 Tax Form

Best Expense Tracker

Best Expense Tracker Apps to Download The Balance The Balance is part of the Dotdash Meredith publishing family. Newsletter Sign Up Newsletter Sign Up

We Care About Your Privacy

We and our 100 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may accept or manage your choices by clicking below, including your right to object where legitimate interest is used, or at any time in the privacy policy page. These choices will be signaled to our partners and will not affect browsing data.

We and our partners process data to provide:

Store and/or access information on a device. Use limited data to select advertising. Create profiles for personalised advertising. Use profiles to select personalised advertising. Create profiles to personalise content. Use profiles to select personalised content. Measure advertising performance. Measure content performance. Understand audiences through statistics or combinations of data from different sources. Develop and improve services. Use limited data to select content. List of Partners (vendors)