📦 Accounting guide

How to Calculate Beginning Inventory

Beginning inventory is the value of stock on hand at the start of an accounting period. This guide covers the inventory flow formula, a five-step waterfall visual showing how BI connects to COGS and ending inventory, when beginning inventory differs from the prior period's closing balance, FIFO vs LIFO effects, and four worked examples aligned to common business scenarios.

Last updated: March 31, 2026

What is beginning inventory and why does it matter?

Beginning inventory (BI) is the dollar value of goods a business had on hand at the start of an accounting period — a month, quarter, or fiscal year. It is the opening balance of the inventory account and the starting point for the period's inventory flow.

Beginning inventory matters because it directly affects cost of goods sold and gross profit. If beginning inventory is overstated, COGS is overstated and gross profit is understated for the period. If it is understated, the opposite occurs. Accurate BI is therefore a prerequisite for accurate financial statements.

It also matters for inventory planning. Comparing beginning and ending inventory tells you whether stock levels rose, fell, or held steady — a signal of purchasing strategy, demand patterns, and supply chain activity during the period.

Beginning inventory formula

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 (GAS) = Beginning Inventory + Net Purchases
BI Share of GAS = Beginning Inventory ÷ GAS × 100

Here is the full inventory flow waterfall for the Retail Store preset — COGS $420k, net purchases $390k, ending inventory $95k:

Beginning inventory$420,000 + $95,000 − $390,000 = $125,000
$125,000
+
Net purchasesAdded to stock during the period
$390,000
=
Goods available for sale$125,000 + $390,000
$515,000
COGSCost of goods sold during the period
$420,000
=
Ending inventoryGAS − COGS = $515,000 − $420,000 ✓
$95,000

The waterfall also serves as a self-check: GAS minus COGS must equal ending inventory. If it does not, at least one of the four inputs is wrong or covers a different period.

What the inventory change tells you

Comparing beginning inventory to ending inventory reveals how stock levels moved during the period — and why that matters for purchasing and demand planning.

EI < BI
Inventory drawn down

Sold more than was purchased. Could mean strong demand, lean replenishment, or preparation to reduce stock. Example: Retail Store (BI $125k → EI $95k, −$30k).

EI ≈ BI
Stable inventory

Purchases roughly matched COGS. Inventory levels held steady. Common in mature operations with consistent reorder points and predictable demand.

EI > BI
Inventory built up

Purchased more than was sold. Could mean seasonal build, new product launch prep, or overstocking. Example: Growth Phase (BI $85k → EI $145k, +$60k).

How to calculate beginning inventory — step by step

1
Get COGS from the income statement. Cost of goods sold for the period is shown on the income statement or P&L report. Make sure it covers the exact same time window as your purchases and ending inventory figures.
2
Get ending inventory from the balance sheet. The ending inventory balance as of the last day of the period. For a monthly calculation, use the month-end balance. For an annual calculation, use the fiscal year-end figure.
3
Calculate net purchases for the period. Net purchases = gross purchases − purchase returns − purchase allowances − purchase discounts. Use the same period as COGS and ending inventory. This is the most common input error — using gross instead of net.
4
Apply the formula. Beginning Inventory = COGS + Ending Inventory − Net Purchases.
Example: $420,000 + $95,000 − $390,000 = $125,000.
5
Verify with the flow identity. Check: Beginning Inventory + Net Purchases = COGS + Ending Inventory.
$125,000 + $390,000 = $515,000 = $420,000 + $95,000 ✓. If both sides match, the inputs are internally consistent.
6
Calculate goods available for sale (optional). GAS = Beginning Inventory + Net Purchases = $125,000 + $390,000 = $515,000. BI share = $125,000 ÷ $515,000 × 100 = 24.27%. This ratio helps contextualize how much of the period's supply came from opening stock vs new purchases.

When beginning inventory differs from the prior period's ending inventory

In a clean accounting system, the ending inventory of one period becomes the beginning inventory of the next — no adjustment needed. But several situations can cause a difference between the two:

  • Inventory write-downs. If goods became obsolete, damaged, or unsaleable between period close and period open, their value is written down before the new period starts.
  • Physical count adjustments. A physical inventory count that reveals shortages (shrinkage, theft, counting errors) may trigger an adjustment that changes the opening balance.
  • Accounting corrections. An error discovered in the prior period's closing inventory requires a restatement, which flows forward into the current period's beginning balance.
  • Timing differences. Goods in transit that were included in ending inventory but not received can create a mismatch if the accounting treatment changes between periods.

When BI and prior EI differ, the difference should be documented and explained in accounting records. Unexplained discrepancies are a red flag during audits.

Four worked examples

Example 1 — Retail Store preset

COGS $420k · Purchases $390k · EI $95k

BI is higher than EI — inventory was drawn down during the period.

BI = $420,000 + $95,000 − $390,000
BI = $125,000
GAS = $515,000 · BI share = 24.27%
Change = −$30,000 (drawn down)

✓ Stock consumed, not restocked 1:1

Example 2 — Growth Phase preset

COGS $560k · Purchases $620k · EI $145k

Heavy purchasing relative to COGS — inventory built up significantly.

BI = $560,000 + $145,000 − $620,000
BI = $85,000
GAS = $705,000 · BI share = 12.06%
Change = +$60,000 (built up)

⚠ Purchases exceeded COGS — investigate demand vs supply alignment

Example 3 — Lean Inventory preset

COGS $310k · Purchases $295k · EI $28k

Tight, efficient inventory — very little stock carried forward.

BI = $310,000 + $28,000 − $295,000
BI = $43,000
GAS = $338,000 · BI share = 12.72%
Change = −$15,000 (lean draw-down)

✓ JIT-style operation — low carrying cost

Example 4 — Negative result (error signal)

COGS $300k · Purchases $380k · EI $50k

Purchases exceed COGS + EI — result is negative, which flags a data problem.

BI = $300,000 + $50,000 − $380,000
BI = −$30,000 ← impossible

✗ Negative BI = input error. Check: COGS too low? Purchases overstated? Wrong period?

Common mistakes when calculating beginning inventory

  • Using revenue instead of COGS. The formula requires cost of goods sold, not total sales revenue. Using revenue will produce a wildly different and incorrect result.
  • Using gross purchases instead of net purchases. If purchase returns, allowances, or discounts are not subtracted, net purchases is overstated and beginning inventory is understated.
  • Mixing periods. COGS, net purchases, and ending inventory must all cover exactly the same period. Mixing a monthly COGS with a quarterly ending inventory produces a meaningless number.
  • Ignoring write-downs between periods. If ending inventory was written down before the next period opened, beginning inventory does not equal prior ending inventory. Failing to account for the write-down will overstate beginning inventory.
  • Assuming negative BI is valid. Under normal accounting, inventory cannot be negative. A negative result is always a signal to investigate the inputs, not a legitimate accounting outcome.

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.

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

Usually yes, in a clean accounting system. But write-downs, physical count adjustments, accounting corrections, and timing differences can cause the two numbers to diverge. When they differ, the difference should be documented and explained — unexplained discrepancies are flagged in audits.

What counts as net purchases?

Net purchases equals gross purchases minus purchase returns, purchase allowances, and purchase discounts received during the period. Using gross purchases instead of net is the most common input error in this calculation — it overstates net purchases and therefore understates beginning inventory.

Can beginning inventory be negative?

No. Under normal accounting conditions, inventory cannot be negative. A negative result means at least one input is wrong — typically COGS is understated, purchases are overstated, or the figures come from different periods. Investigate all three inputs 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 potentially have been sold during the period. It gets split between COGS (what was actually sold) and Ending Inventory (what remains). GAS is used to compute gross profit ratios and to verify that BI + Purchases balances with COGS + EI.

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

The formula is identical regardless of costing method. However, the dollar amounts for COGS and ending inventory will differ under FIFO, LIFO, or weighted average cost — which means the calculated beginning inventory will also differ. Always use inputs from the same costing method applied consistently across the same period. Mixing FIFO-based COGS with LIFO-based ending inventory produces an incorrect result.