What is ending inventory and why does it matter?
Ending inventory represents the total monetary value of unsold goods, raw materials, and finished merchandise held by a business at the conclusion of an accounting period. Whether calculated at the end of a fiscal month, quarter, or year, ending inventory is a foundational metric that links a company balance sheet directly to its income statement.
On the balance sheet, ending inventory appears as a current asset within working capital. On the income statement, it directly determines the cost of goods sold (COGS), gross profit margins, and net taxable earnings. Tracking your ending inventory accurately prevents cash from becoming trapped in slow-moving stock while ensuring you have sufficient stock to fulfill incoming customer orders. To gauge how quickly your stock converts into cash, measure holding duration with the days inventory outstanding calculator, calculate direct merchandise costs using the cost of goods sold calculator, or evaluate overall operational cash velocity with the cash conversion cycle calculator. To determine the most cost-effective batch size to reorder from suppliers without overstocking, use the EOQ calculator, and to evaluate how effectively your stock generates gross profit relative to the cash tied up in it, calculate inventory return with the GMROI calculator.
The ending inventory formula and step-by-step breakdown
Under the standard periodic inventory accounting system, ending inventory is derived using the basic cost-flow equation:
This calculation relies on three primary variables:
- Beginning inventory: The total recorded value of unsold stock carried over from the final day of the preceding accounting period.
- Net purchases: All inventory acquired during the current period, including freight-in, shipping, and direct handling charges, minus vendor purchase returns, damaged-goods allowances, and early-payment discounts.
- Cost of Goods Sold (COGS): The direct manufacturing or wholesale acquisition costs attributable to units that were sold to customers during the period.
Combining beginning inventory and net purchases yields the total cost of goods available for sale:
Every dollar of goods available for sale during the period follows one of two paths: it is either sold to generate revenue (recorded as COGS) or remains in the warehouse at period-end (recorded as ending inventory).
Inventory turnover ratio and Days Sales of Inventory (DSI)
Determining the raw dollar value of closing inventory is only the first step. High-performing finance teams evaluate inventory efficiency using two related metrics:
1. Inventory turnover ratio
Inventory turnover measures how many times a business sells and replaces its entire stock during a given period. It is calculated by dividing COGS by the average inventory value:
A higher turnover ratio signals robust sales, lean inventory holding, and lower carrying costs. A subdued turnover ratio indicates overstocking, excess warehouse storage fees, or obsolete items that require markdowns.
2. Days sales of inventory (DSI)
Days sales of inventory translates the turnover multiple into the average number of days required to turn inventory into completed sales:
Because inventory cannot be liquidated into cash overnight without steep discounts, conservative lenders often evaluate short-term liquidity with the acid-test ratio calculator, which deliberately removes inventory from current assets to test immediate solvency.
How valuation methods affect ending inventory value
When acquisition costs fluctuate throughout the year, the valuation method chosen under standard accounting principles significantly impacts the reported ending inventory and bottom-line profit:
- First-In, First-Out (FIFO): Assumes the earliest acquired items are sold first. In an inflationary environment with rising supplier prices, ending inventory is valued at recent, higher replacement costs. This produces lower COGS, higher ending assets, and higher reported profits on the accounting profit calculator. To calculate COGS and ending inventory layer-by-layer across multiple purchase batches, use the FIFO inventory calculator.
- Last-In, First-Out (LIFO): Assumes the most recently purchased merchandise is sold first. When costs are rising, LIFO matches higher recent costs against current revenues, lowering reported gross profit and deferring corporate income tax liabilities (permitted under US GAAP, prohibited under IFRS).
- Weighted-average cost: Blends the cost of all units available for sale during the period into a single average unit cost. This method smooths out price volatility and offers a balanced middle ground between FIFO and LIFO.
Worked example: Computing closing stock and turnover
Consider an e-commerce retail business preparing its quarterly financial statements with the following records:
- Starting inventory: $25,000
- Net purchases during quarter: $30,000
- Cost of goods sold (COGS): $40,000
The calculation proceeds as follows:
- Total goods available for sale: $25,000 + $30,000 = $55,000.
- Ending inventory: $55,000 - $40,000 = $15,000. Unsold goods on the balance sheet equal $15,000, representing 27.3% of total available goods.
- Average inventory: ($25,000 + $15,000) / 2 = $20,000.
- Inventory turnover ratio: $40,000 / $20,000 = 2.00x per quarter.
- Days sales of inventory (DSI): 365 / (2.00 × 4) = 45.6 days on an annualized basis, or approximately 45 days to convert stock to sales.
The ripple effect of ending inventory errors
Because ending inventory is subtracted from goods available for sale to compute COGS, an inventory valuation mistake creates a dollar-for-dollar distortion across two distinct periods:
- Understating ending inventory: Artificially increases COGS, which understates gross profit, operating margin, and net income in the current period.
- Overstating ending inventory: Artificially reduces COGS, which overstates current gross profit and gives an overly optimistic picture of business profitability.
- The self-reversing effect: Since ending inventory becomes the next period beginning inventory, an error in year one automatically creates an equal and opposite distortion in year two, correcting cumulative retained earnings if left unadjusted.
Strategies to optimize ending inventory levels
Striking the right balance between excess inventory carrying costs and stockout risk requires disciplined inventory management:
- Conduct routine cycle counts: Rather than relying solely on a massive annual physical audit, count high-velocity stock categories on a continuous weekly or monthly schedule to reconcile shrinkage, breakage, and system discrepancies early.
- Implement ABC classification: Group inventory by value. Focus rigorous reorder controls on Category A (the top 20% of items delivering 80% of revenue), while keeping looser safety stock on low-value Category C supplies.
- Establish dynamic reorder points: Set minimum safety stock buffers based on supplier lead times, seasonal demand spikes, and average daily consumption rates to avoid emergency air-freight fees.
- Identify and discount slow-moving goods: Items that remain in ending inventory across several quarters consume valuable warehouse space and tie up operational capital. Bundle or discount aging inventory to recover cash flow quickly.
Frequently asked questions
How does ending inventory impact cost of goods sold and net income?
What does it mean if ending inventory is calculated as negative?
Can ending inventory be estimated without a physical inventory count?
What is the relationship between beginning and ending inventory?
Why do lenders exclude inventory from the acid-test quick ratio?
Are my calculation inputs saved or transmitted to a server?
Resources and references
The formulas and methods in this calculator were checked against these independent sources.