Racklipedia
Racklify
Fulfillment

What Is COGS? Definition, Formula, And Retail Example

Updated September 17, 2026
Published September 17, 2026
William Carlin

COGS

Definition

Cost of goods sold (COGS) is the direct cost of producing the products a business sells, including materials, direct labor, and manufacturing overhead. It is deducted from revenue to calculate gross profit and supports inventory valuation and profitability analysis.

Overview

COGS The abbreviation for cost of goods sold. In retail accounting this line item represents the direct, product-related costs that are matched to revenue when inventory is sold; it’s the single largest determinant of gross margin on the income statement for a merchant that buys and resells goods.


COGS is not a mysterious tax concept — it’s an accounting link between the inventory on your balance sheet and the cost recognized on your profit and loss when a sale occurs. For retailers COGS typically includes what you paid suppliers for the merchandise plus the costs required to get that merchandise ready for sale, while excluding selling, general and administrative expenses.


What It Covers


COGS only captures costs that are directly attributable to the goods sold during the period. Typical items include purchase price, inbound freight if the buyer is responsible (freight-in), import duties and nonrefundable taxes, and packaging or prep costs required to make the item sale-ready.


  • Purchase Price: The invoice cost paid to suppliers for each SKU.
  • Freight-In and Duties: Transportation and customs costs that are capitalized into inventory when the buyer bears them.
  • Packaging/Prep: Costs to repackage or label goods for retail sale (if applied to inventory).
  • Excluded Costs: Rent, marketing, store labor, utilities, and general overhead are operating expenses, not COGS.


Why It Matters


Gross profit equals sales minus COGS. For retailers, even small changes in COGS materially change gross margin percentage, pricing strategy, and profitability. Accurate COGS drives correct inventory valuation on the balance sheet and ensures you pay the proper taxes and analyze product profitability correctly.


How It’s Calculated (Basic Formula)


The most common periodic formula used in retail accounting is:


Beginning Inventory + Purchases (net) - Ending Inventory = COGS


Where Purchases (net) includes purchases plus freight-in and duties, minus purchase returns and allowances. Under a perpetual system the same economic elements apply but COGS is updated in real time for every sale.


How Inventory Costing Methods Affect COGS


Which inventory cost flow assumption you use—FIFO, LIFO (allowed for U.S. tax in many cases), or weighted-average—changes the timing and amount of COGS when prices fluctuate. During rising purchase prices, FIFO produces lower COGS and higher ending inventory values than LIFO; the reverse holds when prices fall.


Practical Example


Imagine a small apparel retailer with $10,000 beginning inventory. During the month they buy $15,000 of stock (including $500 freight-in) and end the month with $8,000 inventory. Using the periodic formula:


$10,000 + $15,000 - $8,000 = $17,000 COGS


If sales for the month were $30,000, gross profit is $13,000 and gross margin percent is 43.3% (13,000 / 30,000). If the retailer had overlooked freight-in, COGS would be understated by $500 and gross margin overstated.


Practical Tips For Retailers


  • Reconcile Regularly: Count inventory and reconcile physical counts to book inventory to catch shrinkage or recordkeeping errors that distort COGS.
  • Include Freight-In: Make sure inbound shipping and nonrefundable duties that you pay are capitalized into inventory costs, not expensed.
  • Pick A Consistent Method: Use the same inventory cost flow method period over period unless there’s a valid accounting reason to change, and document that choice for auditors and tax filings.
  • Use WMS/WMS-Integrated Accounting: Perpetual inventory systems reduce timing errors by posting COGS at the time of sale.


In short, the COGS line ties your purchasing and inventory practices directly to gross profit. For retailers, accurate COGS—calculated consistently and reconciled to physical inventory—supports pricing, tax compliance, and product-level profitability decisions.

Sources And Additional Reading (3)

More from this term
Looking for a 3PL?

Compare warehouses on Racklify and find the right logistics partner for your business.