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.
| Date | Event | Amount |
|---|---|---|
| Mar 2 | Buys 100 lamps at $40 on credit from a supplier | $4,000 |
| Mar 2 | Pays the carrier $180 in cash for freight-in | $180 |
| Mar 5 | Returns 10 damaged lamps to the supplier | $400 |
| Mar 9 | Pays the supplier within the 2% discount window | 2% of $3,600 |
| Mar 15 | Sells 60 lamps at $75 on account | $4,500 |
| Mar 20 | A 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.
| Account | Debit | Credit |
|---|---|---|
| Inventory | 4,000 | |
| Accounts Payable | 4,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.
| Account | Debit | Credit |
|---|---|---|
| Inventory | 180 | |
| Cash | 180 |
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.
| Account | Debit | Credit |
|---|---|---|
| Accounts Payable | 400 | |
| Inventory | 400 |
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.
| Account | Debit | Credit |
|---|---|---|
| Accounts Payable | 3,600 | |
| Cash | 3,528 | |
| Inventory | 72 |
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.
| Account | Debit | Credit |
|---|---|---|
| Accounts Receivable | 4,500 | |
| Sales Revenue | 4,500 |
Entry 2: cost of the goods sold. 60 lamps at $41.20.
| Account | Debit | Credit |
|---|---|---|
| Cost of Goods Sold | 2,472 | |
| Inventory | 2,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.
| Account | Debit | Credit |
|---|---|---|
| Sales Returns and Allowances | 375 | |
| Accounts Receivable | 375 |
Entry 2: bring the lamps back into stock. 5 lamps at $41.20.
| Account | Debit | Credit |
|---|---|---|
| Inventory | 206 | |
| Cost of Goods Sold | 206 |
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.
| Event | Inventory debit | Inventory credit | Balance |
|---|---|---|---|
| Purchase, 100 lamps | 4,000 | 4,000 | |
| Freight-in | 180 | 4,180 | |
| Purchase return, 10 lamps | 400 | 3,780 | |
| Purchase discount | 72 | 3,708 | |
| Sale, 60 lamps at cost | 2,472 | 1,236 | |
| Sales return, 5 lamps at cost | 206 | 1,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.
| Event | Debit | Credit | Amount |
|---|---|---|---|
| Purchase | Purchases | Accounts Payable | 4,000 |
| Freight-in | Freight-In | Cash | 180 |
| Purchase return | Accounts Payable | Purchase Returns | 400 |
| Payment with discount | Accounts Payable | Cash 3,528 / Purchase Discounts 72 | 3,600 |
| Sale | Accounts Receivable | Sales Revenue | 4,500 |
| Sales return | Sales Returns and Allowances | Accounts Receivable | 375 |
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.
| Account | Debit | Credit |
|---|---|---|
| Cost of Goods Sold | 2,266 | |
| Inventory (ending balance) | 1,442 | |
| Purchase Returns | 400 | |
| Purchase Discounts | 72 | |
| Purchases | 4,000 | |
| Freight-In | 180 |
Debits are $4,180 and credits are $4,180. COGS is $2,266, the same as in the perpetual system, because nothing went missing.
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.
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.
Reyuko