Module 07 · Inventory Accounting and COGS in Practice

Inventory Accounting Journal Entries: Purchases, Sales and Returns

See inventory accounting journal entries for purchases, freight, returns, discounts and sales in a perpetual and a periodic system, with worked numbers.

11 min readLesson 1 of 10 in this moduleUpdated 2026-11-09

Inventory accounting journal entries move cost between the Inventory asset and the Cost of Goods Sold (COGS) expense. In a perpetual system you debit Inventory when you buy and, at every sale, debit COGS and credit Inventory at the item's cost. In a periodic system you only record purchases as you go and compute COGS once at period end. Example: 60 lamps costing $41.20 each sold for $75 each give revenue of $4,500 and COGS of $2,472.

Key takeaways

  • Every purchase-side event (freight, returns, discounts) changes the cost of inventory, not your expenses.
  • A perpetual system records two entries per sale: revenue and receivable, then COGS and Inventory.
  • A periodic system records no COGS at the time of sale; COGS is the result of a count at period end.
  • Both systems give the same COGS when nothing goes missing. When stock does go missing, a periodic system hides the loss inside COGS.
  • Sales returns reverse revenue, and a resalable return also reverses COGS and puts the item back into Inventory.

Perpetual vs periodic: the choice behind every journal entry

Before you can write a journal entry for stock, you need to know which system your books follow, because the entries differ.

In a perpetual system the Inventory account is updated with every purchase, return and sale, so the ledger balance always shows what you should have on hand. COGS is recorded at the moment of each sale. This is how modern accounting software works, and it is the system used in every table below unless a section says otherwise.

In a periodic system the Inventory account stays untouched during the month. Purchases go into separate accounts (Purchases, Purchase Returns, Purchase Discounts, Freight-In), and at period end you count the stock and calculate COGS. It is simple, and it is still common with paper books and spreadsheets. For the formula behind it, see how COGS is calculated.

If the debit and credit logic itself is new, read debit and credit rules first. Inventory is an asset, so a debit increases it and a credit decreases it. COGS is an expense, so a debit increases it.

A running example: one product line for one month

The numbers below are made up for teaching. The figures in this example are fictional. Lakeside Home Goods starts the month with no lamps in stock and has the following transactions.

DateEventAmount
Mar 2Buys 100 lamps at $40 on credit from a supplier$4,000
Mar 2Pays the carrier $180 in cash for freight-in$180
Mar 5Returns 10 damaged lamps to the supplier$400
Mar 9Pays the supplier within the 2% discount window2% of $3,600
Mar 15Sells 60 lamps at $75 on account$4,500
Mar 20A customer returns 5 lamps in resalable condition$375

Each event gets its own entry in the next sections. We use the average cost method, so the cost per lamp is calculated once purchase costs are settled. (Which cost method you pick changes the numbers when prices move; see FIFO vs average costing.)

How do you record a purchase of inventory?

When you buy goods for resale on credit, you debit Inventory (an asset) and credit Accounts Payable. You do not debit an expense, because the goods are still waiting to be sold.

AccountDebitCredit
Inventory4,000
Accounts Payable4,000

If you paid cash, the credit would go to Cash or Bank instead. If the goods arrive before the supplier's invoice, businesses with a goods-received step credit a clearing liability (often called Goods Received Not Invoiced, or GRNI) first, then replace it with Accounts Payable when the invoice is entered.

Is freight-in part of inventory cost?

Yes, freight you pay to bring the goods to your door is part of what the goods cost you. Under IFRS (IAS 2) the cost of inventory includes the purchase price plus transport and handling to get it to its present location, less trade discounts and rebates. US GAAP is also built on the idea of cost to bring goods to a saleable condition. Freight to deliver goods to your customer is different: that is a selling expense, not an inventory cost.

AccountDebitCredit
Inventory180
Cash180

Inventory now stands at $4,180 for 100 lamps.

What is the journal entry for a purchase return?

When you send goods back, you reduce what you owe and reduce the stock. The credit goes to Inventory, not to an income account, because you are undoing part of the purchase.

AccountDebitCredit
Accounts Payable400
Inventory400

Inventory is now $3,780 for 90 lamps. If the supplier sends a credit note instead of a refund, the debit to Accounts Payable is the same: the credit note reduces your payable.

How are purchase discounts recorded?

A purchase discount is a reduction of cost, so it also credits Inventory. The lamps remaining on the bill come to $3,600 ($4,000 less the $400 return). The 2% early-payment discount is $72, so you pay $3,528.

AccountDebitCredit
Accounts Payable3,600
Cash3,528
Inventory72
Gross method and net method

This example records the bill at the full price and takes the discount when you pay (the gross method). Some businesses record the bill net of the expected discount instead. Both are acceptable; what matters is that the discount ends up as a reduction of inventory cost, not as income.

After this step, Inventory holds $3,708 for 90 lamps. The unit cost is $3,708 divided by 90, which is $41.20.

Unit cost = (purchase price + freight-in - returns - discounts) / units on hand

Here: (4,000 + 180 - 400 - 72) / 90 = $41.20 per lamp

What are the journal entries for a sale in a perpetual system?

A sale in a perpetual system needs two entries because it does two things: it earns revenue, and it uses up inventory.

Entry 1: revenue. 60 lamps at $75.

AccountDebitCredit
Accounts Receivable4,500
Sales Revenue4,500

Entry 2: cost of the goods sold. 60 lamps at $41.20.

AccountDebitCredit
Cost of Goods Sold2,472
Inventory2,472

Gross profit on this sale is $4,500 minus $2,472, which is $2,028, a gross margin of 45.1%. Sales tax is left out here to keep the focus on stock; in practice it is credited to a tax liability on Entry 1 and never touches inventory or COGS.

The cost in Entry 2 is not the selling price. Beginners often debit COGS for $4,500. That overstates expense, understates inventory and wipes out your gross profit.

How do you record a sales return?

A returned sale reverses the revenue, and, if the item goes back on the shelf, reverses the cost too.

Entry 1: undo the revenue. 5 lamps at $75.

AccountDebitCredit
Sales Returns and Allowances375
Accounts Receivable375

Entry 2: bring the lamps back into stock. 5 lamps at $41.20.

AccountDebitCredit
Inventory206
Cost of Goods Sold206

Sales Returns and Allowances is a contra-revenue account. Keeping it separate (instead of debiting Sales Revenue directly) lets you see how much of your revenue comes back to you, which is a quality signal in itself. If the returned lamp is damaged and cannot be resold, skip Entry 2 for that unit and instead consider a write-down; the loss stays in the books as an expense, not hidden in stock. For that case, see inventory shrinkage and write-downs.

What does the Inventory account look like after all this?

Following the Inventory ledger through the month shows how the entries fit together.

EventInventory debitInventory creditBalance
Purchase, 100 lamps4,0004,000
Freight-in1804,180
Purchase return, 10 lamps4003,780
Purchase discount723,708
Sale, 60 lamps at cost2,4721,236
Sales return, 5 lamps at cost2061,442

The month ends with 35 lamps and $1,442 of Inventory, which is 35 times $41.20. If a physical count also finds 35 lamps, your books and your shelves agree. If it finds 33, the missing two lamps ($82.40) are a loss you can see and investigate.

The income statement for the lamps shows net sales of $4,125 ($4,500 less $375 returned), COGS of $2,266 ($2,472 less $206) and gross profit of $1,859, still a 45.1% margin.

What changes in a periodic system?

In a periodic system the same purchase-side events are recorded, but to separate accounts, and the sale has no cost entry at all.

EventDebitCreditAmount
PurchasePurchasesAccounts Payable4,000
Freight-inFreight-InCash180
Purchase returnAccounts PayablePurchase Returns400
Payment with discountAccounts PayableCash 3,528 / Purchase Discounts 723,600
SaleAccounts ReceivableSales Revenue4,500
Sales returnSales Returns and AllowancesAccounts Receivable375

At month end you count 35 lamps worth $1,442 and make one closing entry that moves everything into COGS and sets the Inventory balance.

AccountDebitCredit
Cost of Goods Sold2,266
Inventory (ending balance)1,442
Purchase Returns400
Purchase Discounts72
Purchases4,000
Freight-In180

Debits are $4,180 and credits are $4,180. COGS is $2,266, the same as in the perpetual system, because nothing went missing.

Periodic systems hide losses inside COGS

In a periodic system COGS is the leftover: goods available minus what you counted. Theft, breakage and counting errors are not shown anywhere. Suppose the count had found only 33 lamps ($1,359.60). COGS would come out at $2,348.40, which is $82.40 higher, and nothing would tell you why. A perpetual ledger would show the book balance of $1,442 against a count of $1,359.60 and force the question. The retail version of this problem is covered in retail COGS.

Which system should a small business use?

Use a perpetual system if you can. It gives you a live stock value, makes gross margin visible after every sale and surfaces differences when you count. Use a periodic system only when item-level tracking is not practical, and plan for a count at least once a period. Either way, run the count: our guide to conducting a stock opname step by step shows how.

Tax and accounting rules on inventory, including which cost methods are allowed, differ by country. LIFO, for example, is not permitted under IFRS but is allowed in the United States. Check your local rules or ask an accountant before choosing a method.

How Reyuko posts these entries

Reyuko uses a perpetual system. A purchase bill debits Inventory, or GRNI when goods were received through a purchase delivery first; the bill then clears GRNI and creates the payable. A sales invoice posts revenue, receivable and tax, and also debits COGS and credits Inventory, or credits the goods-shipped-not-invoiced account when a delivery order already moved the stock. Each product has its own cost method (Average, FIFO, LIFO or FEFO), and every sale takes its cost from the product's purchase batches under that method.

Common mistakes with inventory journal entries

  • Expensing purchases immediately. Debiting a purchase expense in a perpetual system understates inventory and profit until the month you sell.
  • Debiting COGS at selling price. COGS is always at cost.
  • Forgetting the cost side of a return. Reversing revenue but not COGS leaves inventory understated.
  • Treating discounts as other income. Early-payment discounts reduce inventory cost.
  • Ignoring freight-in. The freight bill belongs to the goods, so add it to Inventory.

More patterns appear in common mistakes in inventory and costing. When you want to see the same logic applied to a whole month of figures, move on to COGS from the trial balance, and make sure each entry is checked in your general journal before you close the month.

Frequently asked questions

What is the journal entry for buying inventory?

Debit Inventory and credit Accounts Payable (or Cash if you pay at once). In a perpetual system the purchase goes straight into the Inventory asset because the goods are not yet sold. In a periodic system you debit a Purchases account instead and move the total into COGS at period end.

What is the journal entry for cost of goods sold?

In a perpetual system, every sale also debits Cost of Goods Sold and credits Inventory for the cost of the units sold, not their selling price. In a periodic system there is no entry at the sale; one closing entry at period end sets COGS and the ending Inventory balance.

How do you record a purchase return in inventory accounting?

Debit Accounts Payable, or Cash if the supplier refunds you, and credit Inventory for the cost of the returned goods. The return reduces both what you owe and what you hold. In a periodic system the credit goes to Purchase Returns instead.

Is freight-in an expense or part of inventory?

Freight you pay to bring goods to your premises is part of inventory cost, so you debit Inventory (or Freight-In in a periodic system). It becomes an expense through COGS when the goods are sold. Freight paid to deliver goods to a customer is a selling expense.

What is the difference between perpetual and periodic inventory journal entries?

A perpetual system updates Inventory with every purchase and sale and records COGS at each sale. A periodic system records purchases in separate accounts, makes no entry for cost at the sale, and calculates COGS from a physical count at period end.

How do you record a sales return of inventory?

Make two entries. First debit Sales Returns and Allowances and credit Accounts Receivable for the selling price. Then, if the goods can be resold, debit Inventory and credit Cost of Goods Sold for their cost.

Put this into practice in Reyuko

Reyuko posts inventory, cost of goods sold and gross profit from the same ledger, so the numbers in this lesson are the numbers on your reports.

Download Reyuko freeSee what's included