Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Principles of Accounting, Volume 1: Financial Accounting

10.3 Calculate the Cost of Goods Sold and Ending Inventory Using the Perpetual Method

Principles of Accounting, Volume 1: Financial Accounting10.3 Calculate the Cost of Goods Sold and Ending Inventory Using the Perpetual Method

As you’ve learned, the perpetual inventory system is updated continuously to reflect the current status of inventory on an ongoing basis. Modern sales activity commonly uses electronic identifiers—such as bar codes and RFID technology—to account for inventory as it is purchased, monitored, and sold. Specific identification inventory methods also commonly use a manual form of the perpetual system. Here we’ll demonstrate the mechanics implemented when using perpetual inventory systems in inventory accounting, whether those calculations are orchestrated in a laborious manual system or electronically (in the latter, the inventory accounting operates effortlessly behind the scenes but nonetheless utilizes the same perpetual methodology).

Concepts In Practice

Perpetual Inventory’s Advancements through Technology

Perpetual inventory has been seen as the wave of the future for many years. It has grown since the 1970s alongside the development of affordable personal computers. Universal product codes, commonly known as UPC barcodes, have advanced inventory management for large and small retail organizations, allowing real-time inventory counts and reorder capability that increased popularity of the perpetual inventory system. These UPC codes identify specific products but are not specific to the particular batch of goods that were produced. Electronic product codes (EPCs) such as radio frequency identifiers (RFIDs) are essentially an evolved version of UPCs in which a chip/identifier is embedded in the EPC code that matches the goods to the actual batch of product that was produced. This more specific information allows better control, greater accountability, increased efficiency, and overall quality monitoring of goods in inventory. The technology advancements that are available for perpetual inventory systems make it nearly impossible for businesses to choose periodic inventory and forego the competitive advantages that the technology offers.

Information Relating to All Cost Allocation Methods, but Specific to Perpetual Inventory Updating

Let’s return to The Spy Who Loves You Corporation data to demonstrate the four cost allocation methods, assuming inventory is updated on an ongoing basis in a perpetual system.

Cost Data for Calculations

Company: Spy Who Loves You Corporation

Product: Global Positioning System (GPS) Tracking Device

Description: This product is an economical real-time GPS tracking device, designed for individuals who wish to monitor others’ whereabouts. It is being marketed to parents of middle school and high school students as a safety measure. Parents benefit by being apprised of the child’s location, and the student benefits by not having to constantly check in with parents. Demand for the product has spiked during the current fiscal period, while supply is limited, causing the selling price to escalate rapidly. Note: For simplicity of demonstration, beginning inventory cost is assumed to be $21 per unit for all cost assumption methods.

Chart showing July 1 beginning inventory of 150 units costing $21, July 5 sale of 120 units for $36, July 10 purchase of 225 units for $27, July 15 sale of 180 units for $39, July 25 purchase of 210 units for $33, with July 31 ending inventory of 285 units.

Calculations for Inventory Purchases and Sales during the Period, Perpetual Inventory Updating

Regardless of which cost assumption is chosen, recording inventory sales using the perpetual method involves recording both the revenue and the cost from the transaction for each individual sale. As additional inventory is purchased during the period, the cost of those goods is added to the merchandise inventory account. Normally, no significant adjustments are needed at the end of the period (before financial statements are prepared) since the inventory balance is maintained to continually parallel actual counts.

Ethical Considerations

Ethical Short-Term Decision Making

When management and executives participate in unethical or fraudulent short-term decision making, it can negatively impact a company on many levels. According to Antonia Chion, Associate Director of the SEC’s Division of Enforcement, those who participate in such activities will be held accountable.5 For example, in 2015, the Securities and Exchange Commission (SEC) charged two former top executives of OCZ Technology Group Inc. for accounting failures.6 The SEC alleged that OCZ’s former CEO Ryan Petersen engaged in a scheme to materially inflate OCZ’s revenues and gross margins from 2010 to 2012, and that OCZ’s former chief financial officer Arthur Knapp participated in certain accounting, disclosure, and internal accounting controls failures.

Petersen and Knapp allegedly participated in channel stuffing, which is the process of recognizing and recording revenue in a current period that actually will be legally earned in one or more future fiscal periods. A common example is to arrange for customers to submit purchase orders in the current year, often with the understanding that if they don’t need the additional inventory then they may return the inventory received or cancel the order if delivery has not occurred.7 When the intention behind channel stuffing is to mislead investors, it crosses the line into fraudulent practice. This and other unethical short-term accounting decisions made by Petersen and Knapp led to the bankruptcy of the company they were supposed to oversee and resulted in fraud charges from the SEC. Practicing ethical short-term decision making may have prevented both scenarios.

Specific Identification

For demonstration purposes, the specific units assumed to be sold in this period are designated as follows, with the specific inventory distinction being associated with the lot numbers:

  • Sold 120 units, all from Lot 1 (beginning inventory), costing $21 per unit
  • Sold 180 units, 20 from Lot 1 (beginning inventory), costing $21 per unit; 160 from Lot 2 (July 10 purchase), costing $27 per unit

The specific identification method of cost allocation directly tracks each of the units purchased and costs them out as they are sold. In this demonstration, assume that some sales were made by specifically tracked goods that are part of a lot, as previously stated for this method. For The Spy Who Loves You, the first sale of 120 units is assumed to be the units from the beginning inventory, which had cost $21 per unit, bringing the total cost of these units to $2,520. Once those units were sold, there remained 30 more units of the beginning inventory. The company bought 225 more units for $27 per unit. The second sale of 180 units consisted of 20 units at $21 per unit and 160 units at $27 per unit for a total second-sale cost of $4,740. Thus, after two sales, there remained 10 units of inventory that had cost the company $21, and 65 units that had cost the company $27 each. The last transaction was an additional purchase of 210 units for $33 per unit. Ending inventory was made up of 10 units at $21 each, 65 units at $27 each, and 210 units at $33 each, for a total specific identification perpetual ending inventory value of $8,895.

Calculations of Costs of Goods Sold, Ending Inventory, and Gross Margin, Specific Identification

The specific identification costing assumption tracks inventory items individually so that, when they are sold, the exact cost of the item is used to offset the revenue from the sale. The cost of goods sold, inventory, and gross margin shown in Figure 10.13 were determined from the previously-stated data, particular to specific identification costing.

 Financial data shows the cost of goods purchased, cost of goods sold, and cost of inventory remaining for July. These transactions occurred for cost of goods purchased: July 10, 225 units purchased at $27 each for a total cost of $6,075. July 25, 210 units purchased at $33 each for a total cost of $6,930. Total purchases in July were $13,005. These transactions occurred for cost of goods sold: July 5, 120 units sold at $21 each for a total cost of $2,520. July 15, 20 units sold at $21 each for a total cost of $420. July 15, 160 units sold at $27 each for a total cost of $4,320. Total cost of goods sold in July were $7,260. These transactions occurred for cost of inventory remaining: July 1, 150 units at $21 for a total of $3,150. July 5, 30 units at $21 for a total of $630. July 10, 30 units at $21 for a total of $360 and 225 units at $27 for a total of $6,075. July 15, 10 units at $21 for a total of $210 and 65 units at $27 for a total of $1,755. July 25 10 units at $21 for a total of $210, 65 units at $27 for a total of $1,755, and 210 units at $33 for a total of $6,930. A second chart shows cost value: 10 units at $21 equals $210, 65 units at $27 equals $1,755 210 units at $33 equals $6,930, for a cost value total of $8,895.
Figure 10.13 Specific Identification Costing Assumption Cost of Goods Sold, Inventory, and Cost Value. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Figure 10.14 shows the gross margin, resulting from the specific identification perpetual cost allocations of $7,260.

Gross Margin calculation: Sales of $11,340 minus Cost of Goods Sold 7,260 equals Gross Margin of 4,080.
Figure 10.14 Specific Identification Perpetual Cost Allocations Gross Margin. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Description of Journal Entries for Inventory Sales, Perpetual, Specific Identification

Journal entries are not shown, but the following discussion provides the information that would be used in recording the necessary journal entries. Each time a product is sold, a revenue entry would be made to record the sales revenue and the corresponding accounts receivable or cash from the sale. Because of the choice to apply perpetual inventory updating, a second entry made at the same time would record the cost of the item based on the actual cost of the items, which would be shifted from merchandise inventory (an asset) to cost of goods sold (an expense).

First-in, First-out (FIFO)

The first-in, first-out method (FIFO) of cost allocation assumes that the earliest units purchased are also the first units sold. For The Spy Who Loves You, using perpetual inventory updating, the first sale of 120 units is assumed to be the units from the beginning inventory, which had cost $21 per unit, bringing the total cost of these units to $2,520. Once those units were sold, there remained 30 more units of beginning inventory. The company bought 225 more units for $27 per unit. At the time of the second sale of 180 units, the FIFO assumption directs the company to cost out the last 30 units of the beginning inventory, plus 150 of the units that had been purchased for $27. Thus, after two sales, there remained 75 units of inventory that had cost the company $27 each. The last transaction was an additional purchase of 210 units for $33 per unit. Ending inventory was made up of 75 units at $27 each, and 210 units at $33 each, for a total FIFO perpetual ending inventory value of $8,955.

Calculations of Costs of Goods Sold, Ending Inventory, and Gross Margin, First-in, First-out (FIFO)

The FIFO costing assumption tracks inventory items based on lots of goods that are tracked, in the order that they were acquired, so that when they are sold the earliest acquired items are used to offset the revenue from the sale. The cost of goods sold, inventory, and gross margin shown in Figure 10.15 were determined from the previously-stated data, particular to perpetual FIFO costing.

Financial data shows the cost of goods purchased, cost of goods sold, and cost of inventory remaining for July. These transactions occurred for cost of goods purchased: July 10, 225 units purchased at $27 each for a total cost of $6,075. July 25, 210 units purchased at $33 each for a total cost of $6,930. Total purchases in July were $13,005. These transactions occurred for cost of goods sold: July 5, 120 units sold at $21 each for a total cost of $2,520. July 15, 30 units sold at $21 each for a total cost of $630. July 15, 150 units sold at $27 each for a total cost of $4,050. Total cost of goods sold in July were $7,200. These transactions occurred for cost of inventory remaining: July 1, 150 units at $21 for a total of $3,150. July 5, 30 units at $21 for a total of $630. July 10, 30 units at $21 for a total of $360 and 225 units at $27 for a total of $6,075. July 15, 75 units at $27 for a total of $2,025. July 25 75 units at $27 for a total of $2,025, and 210 units at $33 for a total of $6,930. A second chart shows cost value: 7 units at $27 equals $2,025, 210 units at $33 equals $6,930, for a cost value total of $8,895.
Figure 10.15 FIFO Costing Assumption Cost of Goods Purchased, Cost of Goods Sold, and Cost of Inventory Remaining. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Figure 10.16 shows the gross margin, resulting from the FIFO perpetual cost allocations of $7,200.

Gross Margin calculation: Sales of $11,340 minus Cost of Goods Sold 7,200 equals Gross Margin of 4,140.
Figure 10.16 FIFO Perpetual Cost Allocations Gross Margin. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Description of Journal Entries for Inventory Sales, Perpetual, First-in, First-out (FIFO)

Journal entries are not shown, but the following discussion provides the information that would be used in recording the necessary journal entries. Each time a product is sold, a revenue entry would be made to record the sales revenue and the corresponding accounts receivable or cash from the sale. When applying perpetual inventory updating, a second entry made at the same time would record the cost of the item based on FIFO, which would be shifted from merchandise inventory (an asset) to cost of goods sold (an expense).

Last-in, First-out (LIFO)

The last-in, first-out method (LIFO) of cost allocation assumes that the last units purchased are the first units sold. For The Spy Who Loves You, using perpetual inventory updating, the first sale of 120 units is assumed to be the units from the beginning inventory (because this was the only lot of good available, so it represented the last purchased lot), which had cost $21 per unit, bringing the total cost of these units in the first sale to $2,520. Once those units were sold, there remained 30 more units of beginning inventory. The company bought 225 more units for $27 per unit. At the time of the second sale of 180 units, the LIFO assumption directs the company to cost out the 180 units from the latest purchased units, which had cost $27 for a total cost on the second sale of $4,860. Thus, after two sales, there remained 30 units of beginning inventory that had cost the company $21 each, plus 45 units of the goods purchased for $27 each. The last transaction was an additional purchase of 210 units for $33 per unit. Ending inventory was made up of 30 units at $21 each, 45 units at $27 each, and 210 units at $33 each, for a total LIFO perpetual ending inventory value of $8,775.

Calculations of Costs of Goods Sold, Ending Inventory, and Gross Margin, Last-in, First-out (LIFO)

The LIFO costing assumption tracks inventory items based on lots of goods that are tracked in the order that they were acquired, so that when they are sold, the latest acquired items are used to offset the revenue from the sale. The following cost of goods sold, inventory, and gross margin were determined from the previously-stated data, particular to perpetual, LIFO costing.

Financial data shows the cost of goods purchased, cost of goods sold, and cost of inventory remaining for July. These transactions occurred for cost of goods purchased: July 10, 225 units purchased at $27 each for a total cost of $6,075. July 25, 210 units purchased at $33 each for a total cost of $6,930. Total purchases in July were $13,005. These transactions occurred for cost of goods sold: July 5, 120 units sold at $21 each for a total cost of $2,520. July 15, 180 units sold at $27 each for a total cost of $4,860. Total cost of goods sold in July were $7,380. These transactions occurred for cost of inventory remaining: July 1, 150 units at $21 for a total of $3,150. July 5, 30 units at $21 for a total of $630. July 10, 30 units at $21 for a total of $630 and 225 units at $27 for a total of $6,075. July 15, 30 units at $21 for a total of $630 and 45 units at $27 for a total of $1,215. July 25 30 units at $21 for a total of $630, 45 units at $27 for a total of $1,215, and 210 units at $33 for a total of $6,930. A second chart shows cost value: 30 units at $21 equals $630, 45 units at $27 equals $1215, 210 units at $33 equals $6,930, for a cost value total of $8,775.
Figure 10.17 LIFO Costing Assumption Cost of Goods Purchased, Cost of Goods Sold, and Cost of Inventory Remaining. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Figure 10.18 shows the gross margin resulting from the LIFO perpetual cost allocations of $7,380.

Gross Margin calculation: Sales of $11,340 minus Cost of Goods Sold 7,380 equals Gross Margin of 3,960.
Figure 10.18 LIFO Perpetual Cost Allocations Gross Margin. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Description of Journal Entries for Inventory Sales, Perpetual, Last-in, First-out (LIFO)

Journal entries are not shown, but the following discussion provides the information that would be used in recording the necessary journal entries. Each time a product is sold, a revenue entry would be made to record the sales revenue and the corresponding accounts receivable or cash from the sale. When applying apply perpetual inventory updating, a second entry made at the same time would record the cost of the item based on LIFO, which would be shifted from merchandise inventory (an asset) to cost of goods sold (an expense).

Weighted-Average Cost (AVG)

Weighted-average cost allocation requires computation of the average cost of all units in goods available for sale at the time the sale is made for perpetual inventory calculations. For The Spy Who Loves You, the first sale of 120 units is assumed to be the units from the beginning inventory (because this was the only lot of good available, so the price of these units also represents the average cost), which had cost $21 per unit, bringing the total cost of these units in the first sale to $2,520. Once those units were sold, there remained 30 more units of the inventory, which still had a $21 average cost. The company bought 225 more units for $27 per unit. Recalculating the average cost, after this purchase, is accomplished by dividing total cost of goods available for sale (which totaled $6,705 at that point) by the number of units held, which was 255 units, for an average cost of $26.29 per unit. At the time of the second sale of 180 units, the AVG assumption directs the company to cost out the 180 at $26.29 for a total cost on the second sale of $4,732. Thus, after two sales, there remained 75 units at an average cost of $26.29 each. The last transaction was an additional purchase of 210 units for $33 per unit. Recalculating the average cost again resulted in an average cost of $31.24 per unit. Ending inventory was made up of 285 units at $31.24 each for a total AVG perpetual ending inventory value of $8,902 (rounded).8

Calculations of Costs of Goods Sold, Ending Inventory, and Gross Margin, Weighted Average (AVG)

The AVG costing assumption tracks inventory items based on lots of goods that are combined and re-averaged after each new acquisition to determine a new average cost per unit so that, when they are sold, the latest averaged cost items are used to offset the revenue from the sale. The cost of goods sold, inventory, and gross margin shown in Figure 10.19 were determined from the previously-stated data, particular to perpetual, AVG costing.

Financial data shows the cost of goods purchased, cost of goods sold, and cost of inventory remaining for July. These transactions occurred for cost of goods purchased: July 10, 225 units purchased at $27 each for a total cost of $6,075. July 25, 210 units purchased at $33 each for a total cost of $6,930. Total purchases in July were $13,005. These transactions occurred for cost of goods sold: July 5, 120 units sold at $21 each for a total cost of $2,520. July 15, 180 units sold at $26.29 each for a total cost of $4,733. Total cost of goods sold in July were $7,253. These transactions occurred for cost of inventory remaining: July 1, 150 units at $21 for a total of $3,150. July 5, 30 units at $21 for a total of $630. July 10, 225 units at $31.24 for a total of $8,902. A second chart shows cost value: 285 units at $31.24 equals $8,902 for a cost value total of $8,902.
Figure 10.19 AVG Costing Assumption Cost of Goods Purchased, Cost of Goods Sold, and Cost of Inventory Remaining. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Figure 10.20 shows the gross margin, resulting from the weighted-average perpetual cost allocations of $7,253.

Gross Margin calculation: Sales of $11,340 minus Cost of Goods Sold 7,253 equals Gross Margin of 4,087.
Figure 10.20 Weighted AVG Perpetual Cost Allocations Gross Margin. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Description of Journal Entries for Inventory Sales, Perpetual, Weighted Average (AVG)

Journal entries are not shown, but the following discussion provides the information that would be used in recording the necessary journal entries. Each time a product is sold, a revenue entry would be made to record the sales revenue and the corresponding accounts receivable or cash from the sale. When applying perpetual inventory updating, a second entry would be made at the same time to record the cost of the item based on the AVG costing assumptions, which would be shifted from merchandise inventory (an asset) to cost of goods sold (an expense).

Comparison of All Four Methods, Perpetual

The outcomes for gross margin, under each of these different cost assumptions, is summarized in Figure 10.21.

Comparison between Specific ID, FIFO, LIFO, and AVG respectively: Sales Revenue 11,340 minus the costs under each method: 7,260, 7,200, 7,380, or 7,253 equals Gross Margin under each method of 4,080, 4,140, 3,960, or 4,087.
Figure 10.21 Gross Margin Comparison. (attribution: Copyright Rice University, OpenStax, under CC BY-NC-SA 4.0 license)

Think It Through

Last-in, First-out (LIFO)

Two-part consideration: 1) Why do you think a company would ever choose to use perpetual LIFO as its costing method? It is clearly more trouble to calculate than other methods and doesn’t really align with the natural flow of the merchandise, in most cases. 2) Should the order in which the items are actually sold determine which costs are used to offset sales revenues from those goods? Explain your understanding of these issues.

Footnotes

  • 5U.S. Securities and Exchange Commission (SEC). “SEC Charges Former Executives with Accounting Fraud and Other Accounting Failures.” October 6, 2015. https://www.sec.gov/news/pressrelease/2015-234.html
  • 6SEC v. Ryan Petersen, No. 15-cv-04599 (N.D. Cal. filed October 6, 2015). https://www.sec.gov/litigation/litreleases/2017/lr23874.htm
  • 7George B. Parizek and Madeleine V. Findley. Charting a Course: Revenue Recognition Practices for Today’s Business Environment. 2008. https://www.sidley.com/-/media/files/publications/2008/10/charting-a-course-revenue-recognition-practices-__/files/view-article/fileattachment/chartingacourse.pdf
  • 8Note that there is a $1 rounding difference due to the rounding of cents inherent in the cost determination chain process.
Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/principles-financial-accounting/pages/1-why-it-matters
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/principles-financial-accounting/pages/1-why-it-matters
Citation information

© Jul 16, 2024 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.