This ending inventory calculator will help you determine what is the total value of units in your inventory at the end of an accounting period. Thanks to this tool, you will be able to quickly and effortlessly figure out how to calculate the ending inventory value that goes into your balance sheet. You will also be able to calculate your inventory turnover to measure how efficiently you are selling your product. If you want to discover what is the ending inventory formula, simply keep reading!

Make sure to check out the margin calculator, too!

What is the ending inventory?

If you happen to sell any products, you will probably be left with some of the product in stock at the end of the accounting period. These products have a certain value, called the ending inventory.

The most straightforward way to calculate the ending inventory is to conduct a physical count. This, however, is not always possible; it may be far too time- and labor-consuming, or you might be too busy shipping products at the end of the month to perform an actual count. Then, the best method is the analytical one - to deduce the ending inventory from your beginning inventory, the cost of goods sold, and net monthly purchases.

Ending inventory formula

The formula for the ending inventory is as follows:

Ending Inventory = (Beginning Inventory + Net Purchases) - (Cost of goods sold)


  • Beginning inventory is the monetary value of the inventory at the beginning of the accounting period;
  • Net purchases is the value of new items in the inventory that were purchased during the accounting period;
  • Cost of goods sold, or COGS, is the direct cost of production of goods that you sell out of the materials from the inventory.

Inventory turnover

You can also use this calculator to determine the inventory turnover. Essentially, this value depicts how efficient you are in selling your goods - it is the ratio of how much product you have in your inventory to the amount you actually sell. It can be calculated according to the following equation:

Inventory Turnover = Cost of Goods Sold / ((Beginning Inventory + Ending Inventory) / 2)

Remember that there is no one optimal inventory turnover value. Even though high values are preferable, they may signal that the inventory levels are low during the month, what can cause difficulties with providing your product to customers on a short notice.

How to calculate ending inventory: an example

  1. Start with determining your beginning inventory. Let's assume that at the beginning of the month you had $25,000 worth of materials in stock.

  2. Determine the net value of purchases made over the month. Let's say it was $30,000.

  3. Find out what was the cost of producing the goods you sold during this month. We can assume it was equal to $40,000.

  4. You can now input these values to the ending inventory formula:

Ending Inventory = (Beginning Inventory + Net Purchases) - (Cost of goods sold)

Ending Inventory = ($25,000 + $30,000) - ($40,000)

Ending Inventory = ($55,000 - $40,000 = $15,000

  1. Additionally, you can find the inventory turnover of your business:

Inventory Turnover = Cost of Goods Sold / ((Beginning Inventory + Ending Inventory) / 2)

Inventory Turnover = $40,000 / (($25,000 + $15,000) / 2) = 2.0

Your inventory turnover is equal to 2. It means that you have sold the equivalent of your average inventory twice during the accounting period.

Another ending inventory calculation method

Besides the method explained above, there are other methods for calculating the ending inventory value. Among them we have: FIFO and LIFO. In this section, we will briefly cover the former.

The FIFO method (First-in, First-out) assumes that the first product the company sells is the first inventory produced or bought. Then, the remaining inventory (ending inventory) value will include only the products that the company produced later.

In that case, if later products are more expensive to produce, ending inventory would show a higher value compared to the one we would get if we use the average value of the inventory produced.

Bogna Szyk
Beginning inventory
Net purchases
Cost of goods sold
Ending inventory
Inventory turnover
People also viewed…

Christmas tree

Welcome to the Christmas tree calculator, where you will find how to decorate your Christmas tree in the best way. Take a look at the perfect Christmas tree formula prepared by math professors and improved by physicists. Plan in advance how many lights and decorations you'll need!

Okun's law

Use the Okun's law calculator to study the relationship between the output gap and cyclical unemployment.

Plastic Footprint

Find out how much plastic you use throughout a year with this plastic footprint calculator. Rethink your habits, reduce your plastic waste, and make your life a little greener.

Sinking fund

The sinking fund calculator helps you find the value you should put aside to have a required sum of cash at the end of the period.
main background