---
title: "How to Calculate Beginning Inventory: Formula and Checks"
description: "Beginning inventory = ending inventory + COGS - purchases, and it should equal last period's closing stock. See both methods worked in rupees and dollars."
canonical: https://luckpanda.app/blog/how-to-calculate-beginning-inventory
author: "Dhrumil Barot"
author_bio: "Dhrumil is a small-business operations and compliance expert. Dhrumil built LuckPanda so small businesses can run invoicing, inventory, accounts and compliance in one place."
published: 2026-11-21
updated: 2026-11-21
category: "Purchasing and inventory"
keywords: "how to calculate beginning inventory"
language: en
---

# How to Calculate Beginning Inventory: Formula and Checks

Beginning inventory = ending inventory + COGS - purchases, and it should equal last period's closing stock. Both methods worked, with a reconciliation check.

By [Dhrumil Barot](https://luckpanda.app/about#founder), Founder. Published 21 Nov 2026. Updated 21 Nov 2026. 6 min read.

**TL;DR:** Beginning inventory = ending inventory + cost of goods sold (COGS) - purchases. In normal books it is simply last period's closing stock carried forward, so the useful job is to calculate it both ways and check they match. LuckPanda's Inventory module is being built to record opening stock per warehouse and every stock movement after it, so the carry-forward is a record rather than a retyped number.

[See the LuckPanda Inventory module](https://luckpanda.app/modules/inventory)

Beginning inventory, also called opening inventory or opening stock, is the cost value of all goods a business holds on the first day of an accounting period. The beginning inventory formula is **beginning inventory = ending inventory + COGS - purchases**. A shop that closed March with ₹1,30,000 of stock, sold goods costing ₹2,40,000 in March and bought ₹2,10,000 during March started March with ₹1,60,000. That figure should be the same as February's ending inventory; if it is not, something was missed. Below, the formula is worked both ways, in rupees and in dollars, with the check that catches the difference.

## What is the beginning inventory formula?

The beginning inventory formula is the ending inventory identity turned around. Everything you started with plus what you bought, minus what you sold, is what you have left. Rearranged:

| Formula | Use it for |
| --- | --- |
| Beginning inventory = last period's ending inventory | The normal case: carry the closed figure forward |
| Beginning inventory = ending inventory + COGS - purchases | Working backwards when the opening figure is missing or doubtful |
| Beginning inventory + purchases = cost of goods available for sale | The next step in the COGS calculation |
| COGS = beginning inventory + purchases - ending inventory | The tax and P&L view of the same identity |

The same identity sits on US tax forms. [IRS Form 1125-A](https://www.irs.gov/forms-pubs/about-form-1125-a) starts with line 1, "Inventory at beginning of year", adds purchases and other costs, and subtracts line 7, "Inventory at end of year", to give cost of goods sold. In India, the Schedule III statement of profit and loss under the Companies Act, 2013 shows the same movement as "Changes in inventories of finished goods, work-in-progress and stock-in-trade": opening stock minus closing stock.

All figures are at cost, not selling price. "Purchases" means net purchases: invoice price minus returns and discounts, plus freight in ([IRS Publication 538](https://www.irs.gov/publications/p538)). GST you can claim as input tax credit is not part of cost.

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

Yes. Beginning inventory for a period is the adjusted ending inventory of the period before it, to the rupee or cent. If you closed 31 March with $18,400 of stock, you open 1 April with $18,400. The [ending inventory guide](https://luckpanda.app/blog/how-to-calculate-ending-inventory) covers how that closing figure is built from a count and a costing method.

They only differ when something changed between the close and the opening:

- **Late adjustments** were posted to the old period after you carried the number forward (a supplier invoice that arrived late, a customer return, a shortage from the count).
- **Goods in transit** were counted in one period and not the other.
- **The costing method changed**, say from FIFO to weighted average, and the opening balance was restated.
- **A new business or a new system** has no prior period to carry from.

So the rule is: close the previous period first, then carry forward. Shopify's guide makes the same point: post late invoices, returns, goods in transit and consignment adjustments before you take the number.

## What you need before you start

- **Last period's ending inventory** at cost, from the balance sheet or stock ledger.
- **This period's COGS**, from the profit and loss or the sales records at cost.
- **This period's net purchases**: every GRN or purchase bill, after returns and discounts, plus freight in.
- **This period's ending inventory**, from a physical count valued with your costing method.
- **Your costing method.** Under [IAS 2](https://www.ifrs.org/issued-standards/list-of-standards/ias-2-inventories/) and India's Ind AS 2, interchangeable items use FIFO or weighted average. LIFO is allowed for US tax only, adopted with Form 970.

## How to calculate beginning inventory step by step

The worked example: a Jaipur electrical goods shop, financial year 2026-27, month of April.

| Item | Source | Amount |
| --- | --- | ---: |
| Ending inventory, 31 March (carried forward) | March balance sheet | ₹1,30,000 |
| Purchases in April (net, incl. freight in) | Purchase register | ₹2,85,000 |
| COGS for April | Sales at cost | ₹2,62,000 |
| Ending inventory, 30 April (counted) | Stock count at FIFO | ₹1,48,000 |

1. **Close last period.** Confirm March has no pending invoices, returns or count adjustments.
2. **Take last period's ending inventory as the opening figure.** Method 1 gives ₹1,30,000.
3. **Collect this period's purchases.** Add every purchase bill and freight; subtract returns and discounts: ₹2,85,000.
4. **Take COGS for the period**: ₹2,62,000.
5. **Count and value this period's ending stock**: ₹1,48,000.
6. **Work the formula backwards.** Method 2: ₹1,48,000 + ₹2,62,000 - ₹2,85,000 = **₹1,25,000**.
7. **Compare the two figures.** ₹1,30,000 carried forward vs ₹1,25,000 worked back: a ₹5,000 gap, 3.8% of the opening figure, to explain before you post.

The gap is 1.9% of April's ₹2,62,000 COGS, which is enough to move a 20% gross margin by close to 2 points. Set a tolerance in advance (for example, 0.5% of opening stock) and investigate anything above it.

![Two routes to one opening figure: carry forward, or work back from the close](https://cdn.sanity.io/images/pcmcvz9y/production/dcb203b5f2c5090c3cdcdf9a28b9cc8eb0d9ae39-1344x326.png?w=1200&auto=format&fit=max)

*If both methods agree, the opening balance is safe to post.*

## How do you find beginning inventory without ending inventory?

You can't calculate it from the formula without some closing figure, but you have three ways in:

1. **Count today and work back.** Count the stock now, value it at cost, then add back COGS since the period start and subtract purchases since then. This is how a business moving off spreadsheets finds a reliable opening balance.
2. **Estimate ending inventory with the gross profit method**, then work back. Net sales × (1 - gross margin) gives estimated COGS: ₹3,50,000 of April sales at a 25% margin means about ₹2,62,500 COGS, or 75% of sales. That is good enough for a monthly report, not for annual accounts.
3. **Start fresh.** A new business's first beginning inventory is zero, or the stock it brought in on day one (capital introduced as goods) valued at cost.

If you only have this period's opening and purchases and want the closing number, that is the other direction: see [how to calculate ending inventory](https://luckpanda.app/blog/how-to-calculate-ending-inventory).

## The same check in dollars

A US online store closes its books quarterly and uses FIFO.

| Q2 2026 | Amount |
| --- | ---: |
| Ending inventory, 31 March (carried forward) | $18,400 |
| Purchases, April-June | $52,600 |
| COGS, April-June | $49,900 |
| Ending inventory, 30 June (counted) | $21,100 |

Worked back: $21,100 + $49,900 - $52,600 = **$18,400**. It matches the carried-forward figure, so the opening balance stands and Q2 COGS is right. When the two match, you can rely on both your purchase records and your count.

## How do you reconcile a difference?

A gap between the carried-forward figure and the worked-back figure means one of the four inputs is wrong. In the Jaipur example the ₹5,000 gap came from one of these, in rough order of likelihood:

| Cause | What it does | Fix |
| --- | --- | --- |
| Purchase bill posted twice or in the wrong month | Purchases too high, worked-back figure too low | Match purchases to GRNs for the period |
| Shrinkage (theft, damage, breakage) not booked | Count lower than books | Book the shortage as a loss in the period |
| Goods in transit counted in March and April | Opening and closing both include the same lot | Use delivery terms to decide which period owns them |
| COGS at selling price instead of cost | COGS too high | Rebuild COGS at cost |
| Method change without restating | Two periods on different bases | Restate the opening balance on the new method |
| Late return posted to March after carry forward | March close changed after you copied it | Re-take the closed March figure |

Here, matching the purchase register to GRNs found a ₹5,000 bill for cable reels posted in April that had been received and counted in March. Moving it to March's purchases corrects April purchases to ₹2,80,000, and both methods then agree at ₹1,30,000.

An error in ending inventory is a two-period problem: it overstates or understates one period's profit and then reverses in the next, because that ending figure becomes the next beginning figure. Checking the opening balance both ways is what catches it early.

[beginning inventory and ending inventory](https://www.youtube.com/watch?v=FVcGfr3FgBk&t=114s) (Vivienne Lim)

Vivienne Lim explains why beginning inventory should not just be copied from the last period, since a wrong ending figure carries forward unnoticed, then works a car dealer example backwards to a 1.4 million opening figure.

- [1:54](https://www.youtube.com/watch?v=FVcGfr3FgBk&t=114s) why not just plug in last period's ending
- [2:41](https://www.youtube.com/watch?v=FVcGfr3FgBk&t=161s) the backwards formula
- [3:03](https://www.youtube.com/watch?v=FVcGfr3FgBk&t=183s) car dealer example with 1.2 million on hand
- [4:13](https://www.youtube.com/watch?v=FVcGfr3FgBk&t=253s) beginning inventory of 1.4 million

## Why does beginning inventory matter?

- **COGS and profit.** COGS = beginning inventory + purchases - ending inventory. A ₹5,000 error in the opening balance is a ₹5,000 error in the period's profit. See the [COGS formula](https://luckpanda.app/blog/cogs-formula).
- **Average inventory and turnover.** Average inventory = (beginning + ending) ÷ 2, which feeds the [inventory turnover ratio](https://luckpanda.app/blog/inventory-turnover-ratio). A wrong opening figure distorts both; see [average inventory](https://luckpanda.app/blog/average-inventory).
- **Tax returns.** Form 1125-A in the US, and the opening stock line in Indian accounts and the tax audit, both start from it.
- **Shrinkage.** Opening + purchases - COGS tells you what should be on the shelf; the count tells you what is.

## How often should you check the opening balance?

- **Monthly (every 30 days or so)** if you close monthly books or file GST monthly: run the two-way check before you post the first entry of the month.
- **Quarterly (every 90 days)** for businesses on quarterly closes, such as the US store above.
- **At year end, always**, after the full physical count: the new financial year's opening stock is what the auditor ties to last year's balance sheet.
- **Within 1-2 days of switching systems**, count the stock and set the opening balance in the new system from the count, not from the old system's report.

## Multiple warehouses or locations

Calculate beginning inventory per location, then add them up. Transfers between your own warehouses are not purchases: they move stock without changing the total, so leave them out of the company-wide formula but include them in each location's own movements.

![Per-location opening stock rolls up to one company figure; transfers net to zero](https://cdn.sanity.io/images/pcmcvz9y/production/bb66aaa11f92262799bab250639426e61b39f416-1344x410.png?w=1200&auto=format&fit=max)

*Transfers cancel out at company level.*

## Where LuckPanda fits

LuckPanda's Inventory module is being built; its items, warehouses and stock movements pages are live on the module page today. The plan, as the module page describes it: you add items with their unit, prices and tax rate, set up warehouses and record opening stock in each, and "every receipt, delivery, transfer and adjustment will be a stock movement with a date, a quantity and the document that caused it". Stock counts "will record differences as adjustments, so the history explains every change rather than overwriting it." That is the reconciliation above, kept as a record. Today the Sales module (quotes, invoices, receipts, credit notes, payment links) is live, and items you define there are the same items Inventory will count.

## Questions

### What is the beginning inventory formula?

Beginning inventory = ending inventory + cost of goods sold - purchases, all at cost. In normal bookkeeping it equals the previous period's ending inventory.

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

Yes, once the previous period is closed. They differ only when adjustments were posted after the figure was carried forward, or the costing method changed.

### How do you find beginning inventory without ending inventory?

Count the stock today, value it at cost, then add back COGS and subtract purchases since the start of the period. For a quick estimate, use the gross profit method to estimate the closing figure first.

### Is beginning inventory an asset or an expense?

It is a current asset on the opening balance sheet. It becomes an expense only through COGS as the goods are sold. See [is inventory an asset](https://luckpanda.app/blog/is-inventory-an-asset).

### What is another name for beginning inventory?

Opening inventory, opening stock and opening balance all mean the same thing.

### Can beginning inventory be zero?

Yes, for a new business that has not bought stock yet, or a service business that holds none.

Opening stock that matches the last close, and a record of every unit after it, is what the Inventory module is being built to keep. [See the LuckPanda Inventory module](https://luckpanda.app/modules/inventory)

## More guides

- [PO vs Non-PO Invoice: Which Spend Needs a Purchase Order](https://luckpanda.app/blog/po-vs-non-po-invoice)
- [Managing Payables: A Weekly AP Routine for Small Business](https://luckpanda.app/blog/managing-payables)
- [Best Ways to Track Inventory: 4 Methods, When Each Breaks](https://luckpanda.app/blog/best-ways-to-track-inventory)

## Related tools

- [Invoice generator](https://luckpanda.app/tools/invoice-generator): Bill a client in any currency, with tax worked out as you type.

## About the author

**Written by [Dhrumil Barot](https://luckpanda.app/about#founder)**, Founder. Dhrumil is a small-business operations and compliance expert. Dhrumil built LuckPanda so small businesses can run invoicing, inventory, accounts and compliance in one place. [LinkedIn](https://www.linkedin.com/in/bdhrumil) · [X](https://x.com/fyidhrumil)
