Question: how to calculate beginning ending inventory?
Answer: Determine the cost of goods sold (COGS) using your previous accounting period's records.
Multiply your ending inventory balance with the production cost of each item. ... 
Add the ending inventory and cost of goods sold.
To calculate beginning inventory, subtract the amount of inventory purchased from your result.