Learn the basics
Follow the accounting cycle
Go from debits and credits to financial statements. Finish by closing the coffee shop’s first month.
Start the beginner courseFree accounting lessons and practice
Learn the accounting cycle with one coffee shop, or work through the records you’d review at month-end. Check your answers as you go.
Start the beginner course Explore workplace casesBuy supplies, record a credit sale, and collect an invoice. Check your answer after each step.
26 practice sets 7 workplace cases
Learn the basics
Go from debits and credits to financial statements. Finish by closing the coffee shop’s first month.
Start the beginner coursePractise a topic
Enter your figures, check each step, then try the same problem with new amounts.
Open the Practice LabApply it at work
Trace differences to bank records, invoices, or ledger extracts. Decide what to post and explain why.
Open workplace casesWork through nine lessons, then solve the café’s first month on your own.
Study the accounting treatment, follow a worked example, and check your understanding.
Find a topic or browse by level. Each lesson includes a worked example and practice.
Reviewed by Ijaz Ali, ACCA · Updated November 2026
Cost of goods available for sale equals opening inventory plus purchases. The cost assigned to boxes sold becomes COGS. The cost assigned to boxes on hand stays in inventory, subject to a month-end valuation check.
Great Lakes Supply Ltd. in Mississauga, Ontario, sells safety gloves by the box. It sells 250 boxes on credit for $20 each before HST. All amounts are in Canadian dollars.
| Date | Transaction | Boxes | Cost per box | Total |
|---|---|---|---|---|
| Jan 1 | Opening inventory | 100 | $10.00 | $1,000 |
| Jan 10 | Purchase | 200 | $12.00 | $2,400 |
| Jan 20 | Purchase | 100 | $13.00 | $1,300 |
| — | Available for sale | 400 | — | $4,700 |
| Jan 25 | Sale at $20 per box | 250 | See calculations below | Revenue $5,000 |
First in, first out assigns the oldest costs to the sale. The 250 boxes sold use all 100 boxes from opening inventory and 150 from the January 10 purchase. The remaining 50 boxes from January 10 and all 100 boxes from January 20 make up ending inventory.
Divide total cost by total boxes available. This weights each purchase price by the quantity bought at that price.
Under perpetual moving average, recalculate the average as stock is received. After January 10 it is $3,400 ÷ 300, or about $11.33 per box. After January 20 it is $4,700 ÷ 400, or $11.75. The sale follows both purchases, so perpetual moving average and periodic weighted average produce the same figures here. A sale between the purchases could produce different results.
| Measure | FIFO | Weighted average |
|---|---|---|
| COGS | $2,800 | $2,937.50 |
| Ending inventory | $1,900 | $1,762.50 |
| Gross profit | $2,200 | $2,062.50 |
With rising unit costs, FIFO assigns the older, lower costs to COGS. In this example that leaves both gross profit and ending inventory $137.50 higher than under weighted average.
On January 25, record the credit sale and Ontario HST at 13%. Then transfer the cost of the boxes sold from inventory to COGS.
| Entry | Account | Debit | Credit |
|---|---|---|---|
| Credit sale | Accounts receivable | $5,650 | — |
| Credit sale | Sales revenue | — | $5,000 |
| Credit sale | HST payable | — | $650 |
| Cost of sale | Cost of goods sold | $2,800 | — |
| Cost of sale | Inventory | — | $2,800 |
Net realisable value (NRV) is the estimated selling price less any costs to complete and make the sale. At January 31, NRV is $11 per box. For the 150 boxes still on hand, total NRV is 150 × $11 = $1,650. FIFO cost is $1,900, so write inventory down by $250.
| Account | Debit | Credit |
|---|---|---|
| Cost of goods sold | $250 | — |
| Inventory | — | $250 |
After the write-down, inventory is $1,650, January COGS is $3,050 and gross profit is $1,950. If the same boxes are still on hand and the revised NRV supports $1,800, reverse $150 by debiting Inventory and crediting Cost of goods sold. Any reversal is capped at the original $250 write-down. The carrying amount cannot exceed the original $1,900 cost.
IAS 2 under IFRS and Section 3031 under ASPE permit FIFO or weighted average for interchangeable inventory and do not permit last in, first out (LIFO). Both use the lower of cost and NRV for inventory like these gloves.
In SAP ECC, use MM03 and select Accounting 1 for the relevant valuation area to see the material’s price control. V is moving average price. S is standard price. With S, stock is posted at standard price and differences from actual prices on relevant receipts or invoices go to price difference accounts.
At month-end, reconcile stock quantities and values to the ledger, review slow-moving stock, and support the NRV estimate with evidence such as recent selling prices, planned markdowns and costs to sell. Document any write-down or reversal separately from ordinary inventory movements.
Which cost layers are left after the FIFO sale?
50 boxes at $12 and 100 at $13, for a total of $1,900.
What is weighted average COGS, and why does moving average give the same result here?
$2,937.50. Both purchases happened before the only sale, so the same 400 boxes and $4,700 of costs determine the rate.
How much does the customer owe, and how much is sales revenue?
The customer owes $5,650. Revenue is $5,000 and the remaining $650 is HST payable.
After the write-down, NRV rises to $2,000 for the same boxes still on hand. How much can you reverse?
Reverse $250 to bring inventory from $1,650 back to its $1,900 original cost.
Ijaz Ali is an ACCA-qualified Senior Accountant with over 10 years of experience in financial reporting, month-end close and SAP FICO. He is a former SAP FICO instructor and runs The Accounting Nest YouTube channel.
Watch on YouTube