Knowing how to find cost of goods sold (COGS) is essential for measuring profitability, valuing inventory, and preparing accurate financial statements. This guide explains the COGS formula, the costs to include, inventory valuation methods, and practical examples for retailers, manufacturers, and online businesses Nothing fancy..
Introduction
Cost of goods sold (COGS) represents the direct cost of inventory that a business sells during an accounting period. It includes the cost of acquiring or producing the products sold, along with other directly attributable costs such as inbound freight and import duties. COGS does not normally include administrative salaries, advertising, rent for corporate offices, or delivery costs charged to customers.
COGS appears on the income statement and is subtracted from revenue to calculate gross profit. A business that understands its COGS can set better prices, identify margin problems, control purchasing costs, and evaluate inventory management more effectively Nothing fancy..
The Basic Cost of Goods Sold Formula
The standard COGS formula is:
Beginning Inventory + Net Purchases or Production Costs − Ending Inventory = Cost of Goods Sold
The components are:
- Beginning inventory: The value of inventory available at the start of the period.
- Net purchases: Total inventory purchases plus direct acquisition costs, less returns, allowances, and purchase discounts.
- Ending inventory: The value of unsold inventory counted or calculated at the end of the period.
- Cost of goods sold: The cost assigned to units sold during the period.
Another useful intermediate calculation is:
Beginning Inventory + Net Purchases = Cost of Goods Available for Sale
Subtract ending inventory from goods available for sale to determine the cost of the units no longer in stock Worth keeping that in mind. Which is the point..
How to Find Cost of Goods Sold Step by Step
1. Choose the Accounting Period
Decide whether the calculation covers a month, quarter, or year. The beginning and ending inventory figures must correspond exactly to that period. Mixing a monthly inventory count with annual purchases will produce an inaccurate result.
2. Determine Beginning Inventory
Beginning inventory is the value carried forward from the previous period. For a continuing business, last period’s ending inventory becomes the current period’s beginning inventory. Verify that this amount agrees with the general ledger and reflects any inventory write-downs or adjustments.
3. Calculate Net Purchases
Add all purchases intended for resale or production. Then include directly attributable costs such as:
-
Freight charged to bring inventory into the business
-
Import duties and nonrecoverable taxes
-
Purchase returns, allowances, and discounts received from suppliers
-
Commissions or brokerage fees paid to acquire the goods
-
Any other costs necessary to bring the inventory to its present location and condition
The result is net purchases (or net cost of goods manufactured for producers).
4. Compute Cost of Goods Available for Sale
Add beginning inventory to net purchases. This figure represents the total cost of every unit the business had available to sell during the period.
5. Determine Ending Inventory
Conduct a physical count or apply a perpetual inventory system to establish the quantity and cost of goods remaining at period-end. The valuation method chosen (FIFO, LIFO, weighted average, or specific identification) directly determines the dollar amount assigned to this ending balance Not complicated — just consistent..
6. Apply the COGS Formula
Subtract ending inventory from the cost of goods available for sale. Worth adding: the difference is the cost of goods sold for the period. Record this amount on the income statement.
Inventory Valuation Methods and Their Impact on COGS
Because inventory items are often purchased at different prices throughout a period, a business must adopt a consistent cost-flow assumption to assign costs to units sold and units remaining. The method chosen affects COGS, gross profit, taxable income, and the balance sheet value of inventory Practical, not theoretical..
First-In, First-Out (FIFO)
Assumption: The oldest inventory items are sold first.
- Rising prices: COGS is lower (based on older, cheaper costs), gross profit and taxes are higher, and ending inventory reflects current replacement cost.
- Falling prices: COGS is higher, gross profit is lower, and ending inventory is understated relative to current cost.
- Best for: Businesses selling perishable goods or products with short life cycles where physical flow matches the assumption.
Last-In, First-Out (LIFO)
Assumption: The most recently acquired inventory is sold first Simple, but easy to overlook..
- Rising prices: COGS is higher (based on recent, expensive costs), gross profit and taxes are lower, and ending inventory consists of older, outdated costs.
- Falling prices: COGS is lower, gross profit is higher.
- Constraint: Permitted under U.S. GAAP but prohibited under IFRS. Companies using LIFO for tax purposes must also use it for financial reporting (LIFO conformity rule).
- Best for: U.S.-based companies in inflationary environments seeking to match current costs against current revenues and defer tax liability.
Weighted Average Cost (WAC)
Assumption: All units available for sale are assigned the same average cost And that's really what it comes down to..
- Calculation: Cost of Goods Available for Sale ÷ Total Units Available for Sale.
- Effect: Smooths price fluctuations. COGS and ending inventory fall between FIFO and LIFO results.
- Best for: Businesses with large volumes of indistinguishable, low-cost items (e.g., commodities, hardware, fuel) where tracking individual batches is impractical.
Specific Identification
Assumption: The actual cost of each specific unit sold is tracked and expensed Easy to understand, harder to ignore..
- Requirement: Feasible only when items are unique, high-value, or serialized (e.g., jewelry, automobiles, custom machinery, real estate).
- Effect: Perfect matching of cost and revenue; no estimation or assumption required.
- Risk: Opportunity for earnings management by selectively choosing which specific units to sell.
Practical Examples by Business Type
1. Retailer: "Main Street Apparel" (Periodic FIFO)
Scenario: A clothing boutique operates on a calendar year.
- Beginning Inventory (Jan 1): 200 units @ $15 = $3,000
- Purchases:
- Mar 15: 300 units @ $16 = $4,800
- Sep 10: 250 units @ $18 = $4,500
- Ending Inventory (Dec 31): Physical count shows 180 units remaining.
Calculation:
- Goods Available: 750 units / $12,300
- FIFO Ending Inventory (newest costs): 180 units from Sep purchase @ $18 = $3,240
- COGS: $12,300 − $3,240 = $9,060
Insight: FIFO yields a lower COGS ($9,060) and higher ending inventory ($3,240) compared to LIFO, boosting reported profit.
2. Manufacturer: "Precision Machining Inc." (Job Order / Specific ID Hybrid)
Scenario: A custom fabrication shop builds three machines during Q1.
- Direct Materials: Tracked per job via bill of materials.
- Direct Labor: Tracked via time tickets per job.
- Manufacturing Overhead: Applied using a predetermined rate ($25/machine hour).
Job Cost Sheets (Completed & Sold in Q1): | Cost Element | Job #101 | Job #102 | Job #10
| Cost Element | Job #101 | Job #102 | Job #103 |
|---|---|---|---|
| Direct Materials | $5,000 | $7,500 | $6,000 |
| Direct Labor | $3,000 | $4,500 | $3,500 |
| Overhead (160, 240, 200 hrs @ $25) | $4,000 | $6,000 | $5,000 |
| Total Job Cost | $12,000 | $18,000 | $14,500 |
Total COGS for Q1: $12,000 + $18,000 + $14,500 = $44,500
Insight: Because each job is unique, Specific Identification is the only logical method. The predetermined overhead rate ensures consistent cost allocation even before actual overhead costs are known at period-end.
3. E-Commerce Distributor: "GlobalGadgets" (Perpetual WAC)
Scenario: An online seller of wireless earbuds uses a perpetual inventory system with the weighted average method.
| Date | Transaction | Units | Unit Cost | Total Cost |
|---|---|---|---|---|
| Jan 1 | Beginning Inventory | 500 | $8.00 | $4,000 |
| Jan 12 | Purchase | 300 | $9.00 | $2,700 |
| Jan 18 | Sale | (400) | — | — |
| Feb 5 | Purchase | 400 | $9. |
Calculation (Perpetual WAC):
- After Jan 12 purchase: 800 units / $6,700 → Average cost = $8.375/unit
- Jan 18 sale: 400 × $8.375 = $3,350 COGS → Remaining: 400 units / $3,350
- After Feb 5 purchase: 800 units / $7,150 → Average cost = $8.9375/unit
- Feb 20 sale: 350 × $8.9375 = $3,128 COGS → Remaining: 450 units / $4,022
Total COGS: $3,350 + $3,128 = $6,478 | Ending Inventory: $4,022
Insight: WAC produces results that fall between FIFO and LIFO, making it ideal for businesses where individual unit tracking is impossible and price volatility would distort