Cost of goods sold (COGS) may be one of the most important accounting terms for business leaders to know. COGS includes all of the direct costs involved in manufacturing products. Understanding COGS, and managing its components, can mean the difference between running a business profitably and spinning on the proverbial hamster wheel to nowhere.

What is Cost of Goods Sold (COGS)?

If revenue represents the total sales of a company’s products and services, then COGS is the accumulated cost of creating or acquiring those products.

COGS is an accounting term with a specific definition under U.S. Generally Accepted Accounting Principles (GAAP) that requires product companies to apply inventory costing principles. That definition provides guidelines for which costs to include and an associated formula for calculating COGS. Most importantly, COGS is a key component of determining two critical business metrics: a company’s gross profit and its gross margin.

Gross profit is obtained by subtracting COGS from revenue, while gross margin is gross profit divided by revenue. The higher a company’s COGS, the lower its gross profit. So, COGS is an important concept to grasp.

COGS, sometimes called “cost of sales,” is reported on a company’s income statement, right beneath the revenue line.

Key Takeaways

  • Understanding and managing COGS helps leaders run their companies more efficiently and more profitably.
  • COGS includes all direct costs needed to produce a product for sale.
  • Different inventory-valuation methods can significantly impact COGS and gross profit.
  • Tax rules allow an expanded version of COGS, which can reduce tax liability.

Video: What Is COGS?

What Is Included in Cost of Goods Sold?

COGS includes all direct costs incurred to create the products a company offers. Most of these are the variable costs of making the product—for example, materials and labor—while others can be fixed costs, such as factory overhead.

A good litmus test to determine whether something should be included in COGS is to ask: Would the cost exist if no products were produced? If the answer is no, then the cost is likely included in COGS.

Examples of costs generally considered COGS include:

  • Raw materials
  • Items purchased for resale
  • Freight-in costs
  • Purchase returns and allowances
  • Trade or cash discounts
  • Factory labor
  • Parts used in production
  • Storage costs
  • Factory overhead

Exclusions From COGS

On the flip side, certain items are excluded from COGS. They include selling, general and administrative expenses, such as:

  • Distribution costs to customers
  • Office rents
  • Advertising
  • Accounting and legal fees
  • Management salaries

Logically, all nonoperating costs, such as interest and capital expenditures, are excluded from COGS, too. So are the costs for products that remain unsold at the end of a given period. Instead, these are reflected in the inventory on hand at the end of the period.

What Is the Purpose of COGS?

COGS tracks the direct costs tied to the production of goods sold by a company. This accounting measure is necessary for determining gross profit, guiding pricing strategies and informing tax calculations. Understanding COGS also helps businesses gauge production efficiency and financial health.

How to Calculate the Cost of Goods Sold (COGS)

Every accountant worth her spreadsheet should be able to rattle off the basic COGS formula in her sleep. On the surface, it’s simple, comprising just three variables: beginning inventory, purchases and ending inventory. However, layers of complexity underlie each component, requiring several steps to determine their value.

Basic COGS Formula

Here’s the general formula for calculating cost of goods sold:

(Beginning Inventory + Purchases) Ending Inventory = COGS

4 Steps to Calculate COGS

Diving a level deeper into the COGS formula requires five steps. Typically, these are tackled by accounting and tax experts, often with the help of powerful software. But these four steps are something all managers should have an appreciation for:

  1. Identify the beginning inventory of raw materials, then work in process and finished goods, based on the prior year’s ending inventory amounts.
  2. Determine the cost of purchases of raw materials that were made during the period, taking into account freight in, trade and cash discounts.
  3. Determine the ending inventory balance. Typically, it’s based on physical cycle counts and is done in accordance with the company’s inventory-valuation method of choice.
  4. Ensure that any other direct costs of production are included in the valuation of inventory.

COGS and Inventory Counts

As evidenced by the COGS formula, COGS and inventory go hand-in-hand. For this reason, the different methods for identifying and valuing the beginning and ending inventory can have a significant impact on COGS. Most companies do periodic physical counts of inventory to true up inventory quantity on hand at the end of a period. This physical count is a double check on “book” inventory records. It also helps companies identify damaged, obsolete and missing (“shrinkage”) inventory.

Once a company knows what inventory it has, leaders determine its value to calculate the final inventory account balance using an accounting method that complies with GAAP.

Companies’ beginning inventory for the current period equals their ending inventory for the prior period, and under GAAP, purchases during each year must be recorded using accrual basis accounting.

Periodic physical inventory and valuation are performed to calculate ending inventory.

Choosing an Accounting Method for COGS

There are many different methods for valuing inventory under GAAP. Different accounting methods will yield different inventory values, and these can have a significant impact on COGS and profitability.

Here are three of the most commonly used methods for valuing inventory under GAAP:

  1. First-in-First-Out (FIFO)

    The FIFO method assumes that the oldest inventory units are sold first. It’s an order-of-production approach. This means that the inventory remaining at the end of an accounting period would be the units that were most recently produced. During periods where costs for raw materials or labor are increasing, the FIFO method would yield a higher per-unit valuation of inventory for those items still on hand, compared with those that were sold earlier in the period. In this case, FIFO would cause COGS to be lower.

  2. Last-in-First-Out (LIFO)

    LIFO inventory valuation is a reverse-production-order approach. It assumes that the ending inventory on hand are the oldest units produced, and that the newest units produced have already been sold. During periods when costs for raw materials or labor are increasing, LIFO yields a lower per-unit valuation of inventory for those items still on hand, because they were produced earlier in the period. In this case, LIFO would cause COGS to be higher.

  3. Average Cost Method

    ACM values inventory using an average cost for the period. It blends costs from throughout the period and smooths out price fluctuations. Total costs to create products are divided by total units created over the entire period.

Examples of COGS

Consider this simplified example of COGS:

Décor.com sells high-end kitchen tables to consumers. On Jan. 1, 2019, it held five tables in inventory, each valued at $1,000. Then, during the year, Décor purchased 10 additional tables from its supplier. On Dec. 31, 2019, Décor counted three unsold tables in its warehouse.

Here’s how the company would calculate its costs:

(Beginning Inventory + Purchases) Ending Inventory = COGS

So, in Décor’s case:

Beginning Inventory $5,000
+ Purchases 10,000
- Ending Inventory 3,000
= Cost of Goods Sold $12,000

How Is COGS Different from Cost of Revenue and Operating Expenses

Several other accounting concepts are similar to COGS, but each is different in its own way. Two of the most commonly confused terms are “cost of revenue” and “operating expenses.”

Here’s how they differ:

  • Cost of revenue vs. COGS:

    Cost of revenue is most often used by service businesses, although some manufacturers and retailers use it as well. Cost of revenue is more expansive than COGS; it includes not only all the COGS components, but also direct costs in the sales function, such as sales commissions, sales discounts, distribution and marketing. Similar to COGS, cost of revenue excludes any indirect costs, such as manager salaries, that are not attributed to a sale.

  • Operating expenses vs. COGS:

    “Operating expenses” is a catchall term that can be thought of as the opposite of COGS. It deals with the costs of running a business, but not necessarily the costs of producing a product. Operating expenses include selling, general and administrative (SG&A) expenses such as insurance, legal and accounting fees, travel, taxes and office supplies. Excluded from operating expenses are COGS items as well as nonoperating expenses, such as interest and currency exchange costs.

    COGS vs. Cost of Revenue vs. Operating Expenses

    COGS Cost of Revenue Operating Expenses
    What it is Direct costs associated with the creation of goods sold. Also known as "cost of sales." All direct costs associated with producing goods or services for sale. Day-to-day costs of running a business not included in COGS or cost of revenue. Also known as "OpEx."
    What it includes Raw materials, direct labor and manufacturing overhead. COGS and sales-related costs, such as sales commissions and discounts, distribution and marketing. Selling, general & administrative (SG&A) expenses, such as marketing, payroll, administrative costs, rent and utilities.
    Where to find it Income statement, subtracted from revenue to calculate gross profit. Income statement, subtracted from revenue to calculate gross margin. Income statement, listed as expenses to calculate operating income.
    How to calculate it COGS = (Beginning inventory + purchases) – ending inventory Cost of Revenue = COGS + direct selling costs Operating Expenses = Payroll/wages + sales commissions + marketing/advertising costs + rent + utilities + insurance + taxes
    COGS is a subset of cost of revenue, both of which are tied to the direct costs of product manufacturing. Operating expenses encompasses the day-to-day costs of running a business.

What Does Cost of Goods Sold Tell You, and Why is it Important?

COGS provides businesses with insights into the direct costs of their production activities. By analyzing COGS, businesses can make strategic decisions about cost management, product development and operational improvements, all of which are critical for long-term success and sustainability. The important insights gained from COGS extend into various aspects of business operations:

  • Profitability analysis: COGS is directly subtracted from revenue to calculate gross profit, which is a primary indicator of a company’s profitability from its core operations.
  • Pricing strategy: COGS informs pricing decisions by providing the baseline cost of products, ensuring that prices are competitive and set to achieve a desired profit margin.
  • Tax reporting: COGS is a deductible business expense, which can significantly reduce taxable income, affecting a company’s tax liabilities.
  • Inventory management: COGS plays a critical role in inventory accounting, helping businesses understand the cost of inventory sold and manage stock levels efficiently.
  • Financial health: COGS is a reflection of a company’s cost management and operational efficiency, which is important for stakeholders, including investors and creditors.

How to Use Cost of Goods Sold for Your Business

Properly calculating COGS shows a business manager the true cost of the products sold. This is critical when setting customer pricing to ensure an adequate profit margin.

In addition, COGS is used to calculate several other important business management metrics. For example, inventory turnover—a sales productivity metrics indicating how frequently a company replaces its inventory—relies on COGS. This metric is useful to managers looking to optimize inventory levels and/or increase salesforce sell-through of their products.

COGS is also used to determine gross profit, which is another metric that managers, investors and lenders may use to gauge the efficiency of a company’s production processes.

Drawbacks and Limitations of COGS

While COGS is a critical measure for understanding a business’s direct costs and profitability, it has its limitations and potential drawbacks, which can affect the accuracy and usefulness of COGS for financial analysis and decision-making.

  • COGS does not account for indirect expenses, such as marketing and administrative costs, which can also significantly impact profitability.
  • Inventory valuation methods can vary, leading to different COGS calculations and making comparisons between companies challenging.
  • Because a COGS calculation has so many moving parts, it can be prone to errors and subject to manipulation. An incorrect COGS calculation can obscure the true results of a business’ operations. For example, it can result in misstated net income and tax liability. At the very least, this can lead to wasted time and lost opportunities. At worst, there can be ethical and legal implications.
  • COGS is based on historical costs and may not reflect current market conditions or the replacement cost of inventory.
  • For service-based companies, COGS may not be as clearly defined or as relevant as it is for product-based businesses.

Cost of Goods Sold and Tax Returns

So far, this discussion of COGS has focused on GAAP requirements, but COGS also plays a role in tax accounting. Businesses that hold physical inventory—such as manufacturers, retailers and distributors—are required to calculate COGS when determining their taxable income.

This tax calculation of COGS includes both direct costs and parts of the indirect costs for certain production or resale activities as defined by the uniform capitalization rules. Indirect costs to be included for tax purposes include rent, interest, taxes, storage, purchasing, processing, repackaging, handling and administration. For detailed worksheets, see IRS Publication 334;(opens in a new tab) for most managers, however, it’s sufficient to understand that this expanded calculation of COGS typically decreases the total tax bill.

For businesses with under $25 million in gross receipts ($26 million for 2020), there are some exceptions to the rules for inventory, accrual accounting and, by extension, COGS.

Cost of Goods Sold and Accounting Software

Calculating COGS can be challenging. It requires a company to keep complete and accurate records for the GAAP calculations reported on financial statements and, separately, to support a tax return. A company’s inventory management, from both the physical and valuation perspectives, must be precise. Purchases and production costs must be tracked during the year.

And regardless of which inventory-valuation method a company uses—FIFO, LIFO or average cost—much detail is involved.

All of the above can become exponentially more complicated when volumes and product lines increase. For companies with many SKUs, the best approach to calculating COGS will be a robust accounting system that’s tied to inventory management.

However you manage it, knowing your COGS is critical to achieving and sustaining profitability, so it’s important to understand its components and calculate it correctly. COGS also reveals the true cost of a company’s products, which is important when setting pricing to yield strong unit margins.

Calculate Your COGS With NetSuite

NetSuite Cloud Accounting provides the perfect solution to manage these complexities. With NetSuite, businesses have access to a comprehensive, real-time view of their financials, which is essential for accurate COGS calculation. The software supports streamlined data entry and accounting processes, both of which reduce the potential for errors that can affect COGS, gross profit and, ultimately, financial statement accuracy. Integration with other business systems, such as NetSuite Inventory Management, enables detailed tracking of inventory levels, purchases and production costs, all of which feed into the COGS. By connecting the dots between sales, inventory management and overall financial management, NetSuite ensures that businesses have the insights they need to manage COGS effectively, which is crucial for maintaining profitability and competitive pricing.

Plan & Forecast
More Accurately

Free Product Tour

COGS FAQs

Is cost of goods sold an expense or revenue?

Cost of goods sold (COGS) is an expense, representing all of the direct costs a company incurs in the production and sale of its products and services. Costs include raw materials, direct labor and storage costs.

How do you record cost of goods sold?

Cost of goods sold (COGS) is recorded as an expense on the income statement and is subtracted from revenue to determine gross profit. Meticulous record-keeping on inventory and purchases is essential for COGS to be calculated accurately.

Where do COGS go on a balance sheet?

Cost of goods sold (COGS) does not appear on a company’s balance sheet. Rather, it is found on the income statement. COGS is one of the variables for calculating gross profit, which does appear on the balance sheet.

What is cost of goods sold in P&L?

Cost of goods sold (COGS) is a line item on a business’ profit and loss (P&L) statement, which also includes its revenue, expenses, interest, taxes and net income. The P&L provides insight into the company’s profitability for a set accounting period.