Accounting · Inventory

Beginning Inventory Calculator

Enter cost of goods sold, net purchases, and ending inventory to calculate beginning inventory, goods available for sale, BI share of GAS, and inventory change — with a full flow waterfall showing how the period's inventory moved from start to finish.

Quick preset

Period inputs

📦
🛒
🏁

What to do next

Want to understand beginning inventory in depth?

📖
How to Calculate Beginning Inventory Full guide covering the inventory flow formula, when beginning inventory differs from prior period ending inventory, FIFO vs LIFO effects, and common mistakes.
Read guide →

Step-by-step

No calculation yet — enter your inventory values and click Calculate.

What this calculator does

This beginning inventory calculator works backward from the standard inventory flow identity: Beginning Inventory + Net Purchases = COGS + Ending Inventory. Given COGS, net purchases, and ending inventory, it solves for the missing beginning balance.

The flow waterfall shows the complete period movement — from beginning stock through purchases, goods available for sale, cost of goods sold, and the ending balance — so you can verify that all four numbers are internally consistent. The calculator also shows beginning inventory's share of total goods available and whether inventory increased or decreased during the period.

Formulas used

Inventory Flow Identity:
Beginning Inventory + Net Purchases = COGS + Ending Inventory

Rearranged to solve for BI:
Beginning Inventory = COGS + Ending Inventory − Net Purchases

Goods Available for Sale = Beginning Inventory + Net Purchases

BI Share of GAS = Beginning Inventory ÷ GAS × 100

Inventory Change = Ending Inventory − Beginning Inventory
(positive = inventory built up · negative = inventory drawn down)

How to use

  1. Select a preset or enter your own values for the accounting period you want to analyze.
  2. Enter COGS — cost of goods sold from the income statement for the period.
  3. Enter net purchases — total purchases minus any purchase returns, allowances, or discounts during the same period.
  4. Enter ending inventory — the inventory balance from the balance sheet at the end of the period.
  5. Click Calculate — the waterfall and all metrics update instantly.

Example calculations

Retail Store
COGS $420k · Purchases $390k · EI $95k
BI = $420k + $95k − $390k = $125,000
GAS = $515k · BI share: 24.27%
Change: −$30k (inventory drawn down)
Growth Phase
COGS $560k · Purchases $620k · EI $145k
BI = $560k + $145k − $620k = $85,000
GAS = $705k · BI share: 12.06%
Change: +$60k (aggressive stock build)
Lean Inventory
COGS $310k · Purchases $295k · EI $28k
BI = $310k + $28k − $295k = $43,000
GAS = $338k · BI share: 12.72%
Change: −$15k (lean draw-down)
Stable inventory
COGS $200k · Purchases $195k · EI $50k
BI = $200k + $50k − $195k = $55,000
GAS = $250k · BI share: 22%
Change: −$5k (near-flat inventory)

FAQ

What is the beginning inventory formula?

Beginning Inventory = COGS + Ending Inventory − Net Purchases. This comes from rearranging the inventory flow identity: Beginning Inventory + Net Purchases = COGS + Ending Inventory. If you know any three of the four values, you can solve for the fourth using this relationship.

Is beginning inventory the same as last period's ending inventory?

Usually yes — in a clean accounting system, the ending inventory from one period becomes the beginning inventory of the next. Differences can occur due to inventory write-downs, adjustments, theft corrections, or timing differences between how records are closed. If the numbers do not reconcile, investigate before filing reports.

What counts as net purchases?

Net purchases equals gross purchases minus purchase returns, purchase allowances, and purchase discounts received during the period. If you only have gross purchases and no returns or discounts to apply, use the gross figure directly. Using the wrong number here is the most common cause of an incorrect beginning inventory calculation.

Can beginning inventory be negative?

Under normal accounting conditions, inventory cannot be negative. A negative result almost always signals one of three problems: COGS is larger than what the period's inventory could support, ending inventory is overstated, or net purchases are understated. Check each input against the source documents before using the result.

What is goods available for sale?

Goods available for sale (GAS) equals Beginning Inventory plus Net Purchases — the total inventory that could have been sold during the period. It is the sum that gets divided between COGS (what was sold) and Ending Inventory (what remains). GAS is used to calculate the gross profit ratio and to check inventory record accuracy.

Does the costing method (FIFO vs LIFO) affect this calculation?

The formula itself is the same regardless of costing method. However, the dollar amounts you plug in — particularly COGS and ending inventory — will differ based on whether you use FIFO, LIFO, or weighted average cost. Make sure all three inputs come from the same costing method and the same period for the result to be internally consistent.

Related tools

Disclaimer: This calculator is for educational and planning purposes only. It does not provide accounting, tax, legal, or inventory management advice. Actual results may differ based on costing method (FIFO, LIFO, weighted average), purchase returns, write-downs, stock adjustments, and how purchases are recorded under your accounting system.