How to calculate cost of goods sold

Cost of Goods Sold (COGS) represents the direct costs attributable to the production or acquisition of the goods sold by a company during a specific period. It applies to inventory accounting under both periodic and perpetual systems to determine gross profit.

The fundamental equation is extBeginningInventory+extPurchasesextEndingInventory=extCOGS ext{Beginning Inventory} + ext{Purchases} - ext{Ending Inventory} = ext{COGS}. This calculation assigns costs to the units sold and determines the remaining value of inventory on the balance sheet.

The setup

Identify the accounting period. Gather the beginning inventory balance (BIBI) from the prior period's balance sheet. Sum all inventory purchases (PP) made during the current period. Determine the ending inventory balance (EIEI) via a physical count or continuous perpetual tracking.

The steps

  1. Record the beginning inventory value (BIBI).
  2. Calculate net purchases (PP). Add raw materials or merchandise purchased, add freight-in costs, and subtract purchase returns, allowances, and discounts.
  3. Add net purchases to beginning inventory to find the Cost of Goods Available for Sale: extCOGAS=BI+P ext{COGAS} = BI + P.
  4. Subtract the ending inventory value (EIEI) from the COGAS.
  5. The result is the Cost of Goods Sold: extCOGS=extCOGASEI ext{COGS} = ext{COGAS} - EI.

Checking the result

Verify that extCOGS+EI=BI+P ext{COGS} + EI = BI + P. If this equality fails, recalculate. Ensure no indirect operating expenses, such as marketing or administrative overhead, have been capitalized into the purchase costs.

Common errors

Failing to adjust gross purchases for returns, allowances, and discounts. Including freight-out (a selling expense) instead of freight-in (a direct cost). Miscounting the physical ending inventory, which inversely distorts the COGS calculation.

Worked example

A retailer has a beginning inventory of \15,000.Duringtheyear,theypurchase. During the year, they purchase $45,000inmerchandise,payin merchandise, pay$2,000infreightin,andreturnin freight-in, and return$1,500ofdefectivegoods.Thephysicalcountatyearendshowsanendinginventoryofof defective goods. The physical count at year-end shows an ending inventory of$12,000$. Calculate the COGS.

First, calculate net purchases (PP): P=45000+20001500=45500P = 45000 + 2000 - 1500 = 45500 Next, calculate Cost of Goods Available for Sale (extCOGAS ext{COGAS}): extCOGAS=BI+P=15000+45500=60500 ext{COGAS} = BI + P = 15000 + 45500 = 60500 Finally, subtract Ending Inventory (EIEI) to find extCOGS ext{COGS}: extCOGS=extCOGASEI=6050012000=48500 ext{COGS} = ext{COGAS} - EI = 60500 - 12000 = 48500 The Cost of Goods Sold is \48,500$.

FAQ

Run your own problem

References: Kieso, Weygandt, Warfield, Intermediate Accounting · OpenStax Principles of Accounting, Volume 1: Financial Accounting

See also