Racklipedia
Racklify
​
Fulfillment

Ending Inventory Formula: Calculate and Reconcile Closing Stock

By William Carlin
Updated November 23, 2026
Published November 13, 2026

Ending Inventory

Definition

Ending inventory is inventory remaining at the close of a defined reporting period.

Overview

Ending inventory is the stock remaining at the close of a defined reporting period; to calculate it you must reconcile units (physical counts and inventory movements) and then apply a valuation method such as FIFO to those reconciled units. The basic unit reconciliation is: Ending Units = Beginning Units + Receipts + Customer Returns - Sales - Write‑offs; valuation (for FIFO) then assigns cost to the ending units using the most recent purchase layers.


Units Reconciliation Versus Valuation


Separate the physical count (units) from the monetary valuation. Units reconciliation answers “how many items are on hand?” and relies on receipts, sales/shipment records, returns, and adjustments (write‑offs, transfers). Valuation answers “what are those units worth?” and applies a cost flow method (FIFO, LIFO where allowed, or weighted average) to the reconciled unit quantity.


Standard Formulas


Key formulas used in practice:


Worked Example — Units Reconciliation


Assume a single SKU with these movements in the period:

  • Beginning Units: 1,000 units.
  • Receipts: 400 units at $5.00; 200 units at $6.00 (total receipts = 600 units).
  • Sales (shipped): 900 units.
  • Customer Returns: 50 units (restocked).
  • Write‑offs: 20 units (damaged/lost).


Reconcile units first:

  • Ending Units: 1,000 + 600 + 50 - 900 - 20 = 730 units on hand.


Valuation Example Using FIFO


Under periodic FIFO the ending inventory is valued from the most recent purchases backward. Costs available:

  • Beginning Inventory Cost: 1,000 units @ $4.00 = $4,000.
  • Receipt 1: 400 units @ $5.00 = $2,000.
  • Receipt 2: 200 units @ $6.00 = $1,200.
  • Total Units Available: 1,600 units; Total Cost Available: $7,200.


We need to value 730 ending units using the most recent layers:

  • Take Receipt 2: 200 units @ $6.00 = $1,200.
  • Then Receipt 1: 400 units @ $5.00 = $2,000.
  • Remaining: 730 - 200 - 400 = 130 units from Beginning Inventory @ $4.00 = $520.
  • Ending Inventory Value (FIFO): $1,200 + $2,000 + $520 = $3,720.


For completeness, COGS (periodic) = Total Cost Available ($7,200) - Ending Inventory ($3,720) = $3,480. Note that COGS is derived after valuation; do not use COGS to compute ending units.


How To Find Ending Inventory Without COGS


When COGS is not available, you cannot use the periodic identity Ending = Beginning + Purchases - COGS to compute units. Instead:

  • Physical Count: Perform a cycle count or full physical count and reconcile to WMS/perpetual records.
  • Perpetual Records: Use transaction logs (receipts, shipments, returns, adjustments) to compute units moved in the period and apply the units reconciliation formula.
  • Estimation Methods: Use the gross profit (retail) method only for interim estimates—this is an approximation and not acceptable where precise financial reporting is required.


Linking Ending Inventory To DIO And Performance


Once ending inventory value and COGS are known, calculate DIO to understand how long inventory sits before sale. Lower DIO suggests faster turnover; higher DIO may indicate overstock or slow demand. Use DIO to set reorder points and inventory budgets.


Checklist: Calculate And Reconcile Ending Inventory


  • Confirm Beginning Units: Verify opening balance in the WMS and general ledger match.
  • Verify Receipts: Match ASN/PO receipts to physical receipts and WMS records (quantities and lot/batch where applicable).
  • Match Sales Shipments: Reconcile outbound invoices, carrier proof of delivery, and WMS picks to remove shipped units.
  • Record Returns Accurately: Count returned units and determine their condition and cost treatment before restocking.
  • Apply Adjustments: Post write‑offs, transfers, and shrinkage; document reasons and approvals.
  • Compute Ending Units: Use Units Reconciliation formula and resolve any variance with a cycle count.
  • Choose Valuation Method: Apply FIFO (or permitted alternative) to the reconciled units; document layer assumptions and costs.
  • Reconcile To G/L: Ensure inventory subsidiary ledgers and per‑unit valuation tie to the general ledger; post any correcting entries with support.
  • Review KPIs: Calculate DIO and other turnover metrics to inform budgeting and purchasing.
  • Verify Platform/Carrier Rules: Confirm e‑commerce platform and carrier chargebacks, return rules, and inventory hold policies before finalizing counts and financial postings.


Practical Notes And Common Pitfalls


Always keep units and valuation workflows separate. Mistaking a units error for a valuation issue leads to incorrect COGS and procurement decisions. Returns and damaged goods require policy decisions: decide whether returned items are valued at original cost, repair cost, or transferred to a different SKU/location with a reserve. For audit and cross‑platform reporting, preserve receipts, shipping records, return authorizations, and disposal documentation.


Verify current carrier and platform rules in their official documentation before publishing inventory counts, making claims about liability, or calculating chargebacks—those rules change and affect whether a shipment counts as a sale, return timing, or who bears loss.


In short, the Ending inventory for a period is determined first by reconciling units (beginning + receipts + returns - sales - write‑offs) and then valuing those reconciled units using your chosen cost flow method (FIFO example above). Follow the checklist, document assumptions, and use DIO and other KPIs to connect inventory counts to operational and financial plans.

Sources And Additional Reading (4)

More from this term
Looking for a 3PL?

Compare warehouses on Racklify and find the right logistics partner for your business.