Cost of Goods Sold
Cost of Goods Sold (COGS). Cost of producing or purchasing products or services a commercial sells during a specific accounting period. Includes; raw materials, direct labor, and manufacturing overhead. Excludes; indirect expenses like marketing, rent, and administrative costs.
JOURNAL
investopedia.com
Cost of Goods Sold (COGS) Explained With Methods to Calculate It
By
Updated February 19, 2026
Reviewed by
Reviewed by Thomas Brock
Thomas J. Brock is a CFA and CPA with more than 20 years of experience in various areas including investing, insurance portfolio management, finance and accounting, personal investment and financial planning advice, and development of educational materials about life insurance and annuities.
Learn about our Financial Review Board
Fact checked by
DEFINITION
Cost of goods sold refers to the direct costs associated with producing the goods a company sells, excluding indirect expenses such as distribution and sales costs.
KEY TAKEAWAYS
Cost of goods sold (COGS) includes the direct costs of producing or purchasing goods sold during a period.It excludes indirect expenses such as marketing, rent, and administrative overhead.COGS is subtracted from revenue to calculate gross profit and gross margin.Higher COGS generally reduces profitability, all else equal.The amount reported depends on the inventory accounting method used (FIFO, LIFO, or average cost).
Get personalized, AI-powered answers built on 27+ years of trusted expertise.
ASK
What Is Cost of Goods Sold (COGS)?
Cost of goods sold (COGS) represents the direct costs of manufacturing or purchasing the products a company sells, such as materials and labor. It excludes indirect expenses, such as distribution costs and sales force costs.
Cost of goods sold is also referred to as "cost of sales."
A low Cost of Goods Sold (COGS) indicates higher profit margins.
Investopedia / Xiaojie Liu
Why Is Cost of Goods Sold (COGS) Important?
COGS is an important metric on financial statements as it is subtracted from a company’s revenues to determine its gross profit. Gross profit is a profitability measure that evaluates how efficient a company is in managing its labor and supplies in the production process.
Because COGS is a cost of doing business, it is recorded as an expense on income statements. Knowing the cost of goods sold helps analysts, investors, and managers estimate a company’s bottom line. If COGS increases, net income will decrease. While this movement is beneficial for income tax purposes, the business will have less profit for its shareholders. Businesses thus try to keep their COGS low so that net profits will be higher.1
What Is Included in the Cost of Goods Sold (COGS)?
Cost of goods sold (COGS) is the cost of acquiring or manufacturing the products a company sells during a period. Only costs directly tied to production are included, such as labor, materials, and manufacturing overhead.2
For example, COGS for an automaker would include the material costs for the parts that go into making the car plus the labor costs used to put the car together. The cost of sending the cars to dealerships and the cost of the labor used to sell the car would be excluded.
Furthermore, costs incurred on the cars that were not sold during the year will not be included when calculating COGS, whether the costs are direct or indirect. In other words, COGS includes the direct cost of producing goods or services that were purchased by customers during the year. As a rule of thumb, if you want to know if an expense falls under COGS, ask: "Would this expense have been an expense even if no sales were generated?"
IMPORTANT
COGS only applies to those costs directly related to producing goods intended for sale.1
What Is the Cost of Goods Sold (COGS) Formula?
COGS=Beginning Inventory+P−Ending InventorywhereP=Purchases during the periodCOGS=Beginning Inventory+P−Ending InventorywhereP=Purchases during the periodInventory that is sold appears in the income statement under the COGS account. The beginning inventory for the year is the inventory left over from the previous year—that is, the merchandise that was not sold in the previous year.Any additional productions or purchases made by a manufacturing or retail company are added to the beginning inventory. At the end of the year, the products that were not sold are subtracted from the sum of beginning inventory and additional purchases. The final number derived from the calculation is the cost of goods sold for the year.On a company's balance sheet, inventory appears under the section called current assets. The balance sheet provides a snapshot of a company's finances at the end of an accounting period; therefore, any inventory figure on a balance sheet represents the company's ending inventory for that specific accounting period.
What Are the Different Accounting Methods for COGS?
The value of the cost of goods sold depends on the inventory valuation method adopted by a company. There are three methods that a company can use when recording the level of inventory sold during a period: first in, first out (FIFO), last in, first out (LIFO), and the average cost method. The special identification method is used for high-ticket or unique items.3
FIFO Method
The earliest goods to be purchased or manufactured are sold first. Since prices tend to go up over time, a company that uses the FIFO method will sell its least expensive products first, which translates to a lower COGS than the COGS recorded under LIFO. Hence, the net income using the FIFO method increases over time.
LIFO Method
Under LIFO, the most recently added goods are sold first. During periods of rising prices, goods with higher costs are sold first, leading to a higher COGS amount. Using this method, the net income tends to decrease over time.
Average Cost Method
The average price of all the goods in stock, regardless of purchase date, is used to value the goods sold. Taking the average product cost over a time period has a smoothing effect that prevents COGS from being highly impacted by the extreme costs of one or more acquisitions or purchases.
Special Identification Method
The special identification method uses the specific cost of each unit of merchandise (also called inventory or goods) to calculate the ending inventory and COGS for each period. In this method, a business knows precisely which item was sold and the exact cost. This method is typically used in industries that sell unique items like cars, real estate, and rare and precious jewels.
What Type of Companies Are Excluded From a COGS Deduction?
Many service companies don’t report any cost of goods sold (COGS) because they don’t sell physical products. Under generally accepted accounting principles (GAAP), COGS refers only to the cost of inventory items sold during a given period. Since purely service-based businesses typically don’t hold inventory, they have no COGS to report. If a company’s income statement doesn’t list COGS, there is no deduction for those costs.1
Examples of pure service companies include accounting firms, law offices, real estate appraisers, business consultants, and professional dancers, among others. Even though all of these industries have business expenses and normally spend money to provide their services, they do not list COGS. Instead, they have what is called "cost of services," which does not count towards a COGS deduction.
Cost of Revenue vs. COGS
Costs of revenue exist for ongoing contract services that can include raw materials, direct labor, shipping costs, and commissions paid to sales employees. These costs cannot be classified as COGS unless they are directly tied to a tangible product sold. The IRS website even lists some examples of "personal service businesses" that do not calculate COGS on their income statements. These include doctors, lawyers, carpenters, and painters.4
Many service-based companies have some products to sell. For example, airlines and hotels are primarily providers of services such as transport and lodging, respectively, yet they also sell gifts, food, beverages, and other items. These items are considered goods, and these companies maintain inventories of them. Both of these industries can list COGS on their income statements and claim them for tax purposes.
Operating Expenses vs. COGS
Both operating expenses and cost of goods sold (COGS) are expenditures that companies incur with running their business; however, the expenses are segregated on the income statement. Unlike COGS, operating expenses (OPEX) are expenditures that are not directly tied to the production of goods or services.5
Typically, SG&A (selling, general, and administrative expenses) are included under operating expenses as a separate line item. SG&A expenses are expenditures, such as overhead costs, that are not directly tied to a product. Examples of operating expenses include the following:
Rent
Utilities
Office supplies
Legal costs
Sales and marketing
Payroll
Insurance costs
What Is the Difference Between Cost of Sales and Cost of Goods Sold?
While these terms are often used interchangeably, there's a subtle difference between the two. COGS specifically refers to the direct costs associated with producing goods or acquiring inventory that has been sold during a particular period. By contrast, COS includes not only the direct costs of goods sold but also other costs directly related to generating revenue, such as direct labor and direct overhead. Essentially, COS encompasses a broader range of expenses than COGS, as it may include additional costs associated with delivering the product or service to the customer.
What Are the Limitations of COGS?
COGS can easily be manipulated by accountants or managers looking to cook the books. It can be altered by:
Allocating to inventory higher manufacturing overhead costs than those incurred
Overstating discounts
Overstating returns to suppliers
Altering the amount of inventory in stock at the end of an accounting period
Overvaluing inventory on hand
Failing to write off obsolete inventory
When inventory is artificially inflated, COGS will be under-reported, which, in turn, will lead to a higher-than-actual gross profit margin and hence, an inflated net income.
Investors looking through a company’s financial statements can spot unscrupulous inventory accounting by checking for inventory buildup, such as inventory rising faster than revenue or total assets reported.
Explain It Like I'm Five
If a company sells a table for $200 and it costs $120 in materials and labor to make it, then $120 is the cost of goods sold.
COGS only includes the direct costs of making or buying the product, not the rent for the office or the cost of advertising it.