QBO DojoLearning Library
    QBO Dojo
    Lesson 21 · Special Transactions

    Inventory and Cost of Goods Sold

    When a business buys products to resell, the cost of those products is not an expense right away. Understanding when inventory becomes Cost of Goods Sold is one of the most important concepts in product-based bookkeeping.

    Learn It

    Inventory is the stock of products a business holds to sell to customers. When the business buys inventory, it is buying an asset — not recording an expense. The inventory sits on the balance sheet until it is sold.

    Here is the key concept: buying inventory does not normally create Cost of Goods Sold immediately. The cost becomes Cost of Goods Sold only when the related inventory is sold. This separates the timing of the purchase from the timing of the expense.

    As we saw in Purchases and Expenses, buying an asset is different from recording an expense. Inventory is an asset until it is sold. Then the cost moves from the inventory asset to Cost of Goods Sold.

    Two Effects of Selling Inventory

    When a business sells inventory, two things happen at the same time:

    1. Revenue is recorded: the business earns money from the sale. As we covered in Sales and Revenue, revenue is recorded when the sale happens.
    2. Cost of Goods Sold is recorded: the cost of the inventory sold moves from the inventory asset to COGS. The inventory balance goes down, and an expense is recognized.

    The difference between revenue and COGS is called gross profit. Gross profit tells the business how much it earned from selling products before other expenses like rent, utilities, and payroll.

    See It

    A business purchases 10 items for $40 each. Total inventory cost is $400. Later, the business sells 3 items for $75 each.

    ItemAmount
    Revenue (3 × $75)$225
    Cost of Goods Sold (3 × $40)($120)
    Gross Profit$105
    Inventory Remaining (7 × $40)$280

    Here is the journal entry when the inventory is purchased:

    AccountDebitCredit
    Inventory400—
    Cash—400

    Notice: no expense is recorded. Inventory is an asset. Then, when 3 items are sold:

    AccountDebitCredit
    Cash (or A/R)225—
    Sales Revenue—225
    Cost of Goods Sold120—
    Inventory—120

    Two things happen: revenue is recorded ($225), and the cost of the sold inventory moves from the inventory asset to COGS ($120). The inventory balance drops from $400 to $280.

    Returns, Damage, and Adjustments

    When a customer returns a usable item, the sale is reversed. Revenue goes down, and the item goes back into inventory. COGS is also reversed — the cost returns from COGS to the inventory asset.

    Sometimes inventory is damaged, lost, or stolen. In that case, the inventory must be removed from the books, but there is no sale to match it against. The cost is written off — usually to an inventory adjustment or a separate expense account. This is not COGS because the inventory was not sold.

    Regular inventory counts help catch these problems. If the physical count does not match the book balance, the bookkeeper must investigate and adjust the inventory to match reality.

    Perpetual vs. Periodic Inventory

    There are two common ways to track inventory:

    • • Perpetual inventory: the inventory balance and COGS are updated every time a sale is made. This is what most modern accounting software does.
    • • Periodic inventory: the inventory balance is updated only at the end of a period, when a physical count is done. COGS is calculated as beginning inventory + purchases − ending inventory.

    This lesson uses the perpetual method — COGS is recorded at the time of each sale. The concepts are the same either way: buying inventory is an asset, and the cost becomes COGS when the inventory is sold.

    Do It

    Complete the inventory worksheet below. Enter the units in and out for each event. Then calculate the ending units, ending inventory value, net COGS, net revenue, and gross profit.

    Do It — Complete the Inventory Worksheet

    Starting inventory: 10 units at $40 each = $400 value. The unit cost stays at $40 throughout. For each event, enter the units in or units out. Then calculate the ending units, ending inventory value, COGS, revenue, and gross profit.

    For sales, revenue = units sold × sale price. COGS = units sold × unit cost. The customer return reverses both revenue and COGS. The damaged unit is removed from inventory (reduce value) but is not part of COGS.

    EventUnits InUnits OutUnits After
    Starting Inventory10
    Purchase 5 additional units at $40 each
    —10
    Sell 4 units at $75 each—
    10
    Customer returns 1 usable unit (was sold at $75)
    —10
    Identify 1 damaged unit — must be removed—
    10

    Now calculate the final totals (type your answers):

    Ending Units

    Ending Inventory Value

    $

    Net COGS (sold − returned)

    $

    Net Revenue (sold − returned)

    $

    Gross Profit (revenue − COGS)

    $

    Prove It

    Answer each question, then read the explanation. There's no score — this is just to help the ideas stick.

    Question 1

    A business buys 10 units of inventory at $40 each. When is the cost recorded as Cost of Goods Sold?

    Question 2

    A business sells 3 units for $75 each. The units cost $40 each. What is the gross profit on this sale?

    Question 3

    A customer returns 1 usable unit that was sold for $75 (cost $40). What happens to inventory and COGS?

    Ready for more than a short exercise?

    This worksheet gives you four events with the unit cost clearly stated. Real bookkeeping requires you to handle many products with different costs, track inventory across many sales, reconcile physical counts to the books, and deal with returns, damage, and adjustments. QBO Dojo practice clients let you apply these skills across realistic business activity inside QuickBooks Online.

    Explore QBO Dojo Practice Clients

    Key Takeaways

    • Buying inventory creates an asset — not an expense.
    • Cost of Goods Sold is recorded when inventory is sold, not when it is purchased.
    • Selling inventory has two effects: revenue is recorded, and COGS reduces the inventory asset.
    • Gross profit = revenue minus cost of goods sold.
    • Customer returns reverse both revenue and COGS — the item goes back to inventory.
    • Damaged or missing inventory is written off — it is not COGS because it was not sold.