How do you record inventory?
To record inventory purchases under a perpetual system, debit Inventory Asset and credit Accounts Payable or Cash. On each sale, debit Cash or Accounts Receivable and credit Sales, then record a second entry debiting Cost of Goods Sold and crediting Inventory. A $5,000 inventory purchase increases assets immediately, moving to cost of goods sold only when units ship.
An online store buys 50 units at $100 each in October. If that $5,000 goes straight to expense, October shows a loss, November shows a windfall when the units sell, and neither month is true. The stock was still on the shelf at the end of October. It was an asset.
Inventory stays on the balance sheet until it sells, and only then does its cost move to the profit and loss as cost of goods sold. Below are the entries for buying, selling, and counting stock under perpetual and periodic systems, opening inventory, shrinkage, the small-business tax rules, and how to do all of it in QuickBooks Online without the item list and the ledger drifting apart.
Download the inventory and COGS calculator
Excel model comparing periodic and perpetual inventory schedules, calculating Cost of Goods Sold and tracking FIFO cost layers.
Perpetual vs periodic inventory systems
Before recording any inventory transactions, you must determine whether your company operates on a perpetual or periodic inventory system:
- Perpetual Inventory System: Every purchase and every individual sale updates inventory balances in real time. When you buy inventory, your asset balance rises; when you ship an order, software immediately records cost of goods sold and reduces the asset balance. Modern accounting platforms like QuickBooks Online Plus and Advanced operate as perpetual systems.
- Periodic Inventory System: Purchases are accumulated during the accounting period in a temporary clearing account. The business conducts physical inventory counts at period end (monthly, quarterly, or annually) to measure ending stock and derive Cost of Goods Sold by formula.
The 3 standard perpetual inventory journal entries
Under a perpetual system, every purchase raises the asset and every sale needs two entries: one for the revenue and one that moves the cost of the units sold out of inventory.
1. Buying inventory on account
On October 5, 2026, you purchase 50 units of merchandise at $100.00 per unit ($5,000.00 total) from a vendor on net-30 terms.
| Date | Account | Account type | Debit | Credit |
|---|---|---|---|---|
| Oct 5 | Inventory Asset | Other Current Assets | 5,000.00 | |
| Oct 5 | Accounts Payable | Current Liability | 5,000.00 |
This entry increases your current assets by $5,000.00 and records the obligation to pay the supplier in Accounts Payable. Zero expense hits the profit and loss statement on October 5.
If you pay the vendor immediately using a company debit card or bank transfer, credit Cash or Checking instead of Accounts Payable.
2. Selling inventory (The dual-entry requirement)
On October 12, 2026, you sell 35 of those units to a retail customer for $200.00 per unit, generating $7,000.00 in revenue. The customer pays on account.
Recording a perpetual inventory sale requires two coordinated entries:
Part A: The revenue entry (Retail price)
| Date | Account | Account type | Debit | Credit |
|---|---|---|---|---|
| Oct 12 | Accounts Receivable | Accounts Receivable | 7,000.00 | |
| Oct 12 | Sales Income | Income | 7,000.00 |
Part B: The cost of goods sold entry (Wholesale cost)
Because 35 units were delivered, their wholesale cost (35 units x $100.00 cost = $3,500.00) must now be removed from the balance sheet and recognized as cost of goods sold.
| Date | Account | Account type | Debit | Credit |
|---|---|---|---|---|
| Oct 12 | Cost of Goods Sold | Cost of Goods Sold | 3,500.00 | |
| Oct 12 | Inventory Asset | Other Current Assets | 3,500.00 |
Together, these two entries reflect economic reality: your business earned $7,000.00 in revenue, recognized $3,500.00 in direct product costs, and generated $3,500.00 in gross margin. The remaining 15 units stay on the balance sheet inside Inventory Asset at $1,500.00.
3. Entering beginning inventory
When setting up a brand-new bookkeeping file or converting historical records on your start date, you must record the wholesale cost of unsold stock currently sitting on shelves.
On January 1, 2026, an initial physical audit establishes that your warehouse holds $10,000.00 in retail stock at cost.
| Date | Account | Account type | Debit | Credit |
|---|---|---|---|---|
| Jan 1 | Inventory Asset | Other Current Assets | 10,000.00 | |
| Jan 1 | Opening Balance Equity | Equity | 10,000.00 |
In an established business, opening inventory should already be on the prior balance sheet. If it is missing because past purchases were expensed in years already closed, adding it is a prior-period correction: credit Retained Earnings rather than Opening Balance Equity, and flag it to your CPA, because the tax return may need a change in accounting method with a §481(a) adjustment.
How periodic inventory calculates Cost of Goods Sold
Businesses that do not maintain barcode scanners or continuous inventory software record merchandise purchases in a temporary account named Purchases (or Merchandise Purchases).
At month-end or year-end, the bookkeeper counts physical inventory and computes Cost of Goods Sold using the classic accounting formula:
Cost of Goods Sold = Beginning Inventory + Net Purchases − Ending Inventory
Suppose your business started the year with $10,000.00 in inventory, purchased $40,000.00 of merchandise during the period, and counted $12,000.00 of physical stock at year-end on December 31, 2026:
- Beginning Inventory: $10,000.00
- Add Net Purchases: $40,000.00
- Goods Available for Sale: $50,000.00
- Less Ending Inventory Count: $12,000.00
- Cost of Goods Sold: $38,000.00
To close the temporary accounts and update the balance sheet, record this year-end adjusting journal entry:
| Date | Account | Account type | Debit | Credit |
|---|---|---|---|---|
| Dec 31 | Inventory Asset (Ending) | Other Current Assets | 12,000.00 | |
| Dec 31 | Cost of Goods Sold | Cost of Goods Sold | 38,000.00 | |
| Dec 31 | Inventory Asset (Starting) | Other Current Assets | 10,000.00 | |
| Dec 31 | Purchases | Cost of Goods Sold | 40,000.00 |
This entry resets the asset account to match the true physical count of $12,000.00, closes the $40,000.00 Purchases account to zero, and reports $38,000.00 of Cost of Goods Sold on the annual income statement.
Recording inventory shrinkage, damage, and count variances
In any physical warehouse, the quantity on hand rarely matches book records indefinitely. Theft, breakage, spoiled goods, and unrecorded customer samples create variances known as inventory shrinkage.
If your perpetual records indicate $1,500.00 of stock (15 units @ $100.00), but a physical cycle count on October 31 reveals only 13 units ($1,300.00), you must write off the 2 missing units ($200.00).
| Date | Account | Account type | Debit | Credit |
|---|---|---|---|---|
| Oct 31 | Inventory Shrinkage | Cost of Goods Sold | 200.00 | |
| Oct 31 | Inventory Asset | Other Current Assets | 200.00 |
In QuickBooks Online, do not write this adjustment as a manual journal entry. Select + New > Inventory quantity adjustment, pick the specific product, enter the new counted quantity (13), and select your shrinkage account. QuickBooks automatically writes the entry while updating the underlying item sub-ledger.
IRS tax rules: IRC §471 and the §471(c) small business exception
Federal tax law strictly enforces the matching of inventory costs with business revenues across all legal entity types: C corporations (Form 1120), S corporations (Form 1120-S), partnerships (Form 1065), and sole proprietors (Schedule C, Form 1040).
Key statutory standards include:
- IRC §471(a) and Treas. Reg. §1.471-1 General Rule: Inventories must be used whenever the production, purchase, or sale of merchandise is an income-producing factor, using an accounting method that clearly reflects income.
- IRC §471(c) Small Business Exception: Under the Tax Cuts and Jobs Act (TCJA), businesses that satisfy the gross receipts test under IRC §448(c) (average annual gross receipts of $31 million or less for 2025 and $32 million for 2026, indexed annually for inflation) do not have to keep inventories under §471(a). The same test separately exempts them from the uniform capitalization rules under IRC §263A(i). Qualifying small taxpayers can account for inventory as non-incidental materials and supplies (NIMS) under Treas. Reg. §1.162-3, or conform to their applicable financial statement (AFS) or books and records.
- The Expensing Fallacy under §471(c): Many small business owners incorrectly assume that electing §471(c) allows them to deduct all wholesale inventory on the date purchased. Treas. Reg. §1.471-1(b)(4) treats inventory accounted for as non-incidental materials and supplies as used or consumed when it is sold to a customer, and the cost is deductible in the later of the year it is paid or the year it is sold. You cannot buy $100,000.00 of stock on December 29 to wipe out taxable profit if the goods remain in your warehouse.
Inventory valuation: FIFO vs Average Cost and the QuickBooks conversion trap
Inventory valuation determines how costs flow into Cost of Goods Sold when identical items are acquired at varying unit prices over time:
- FIFO (First-In, First-Out): Assumes the oldest inventory items purchased are the first ones sold. In periods of rising prices, FIFO yields a lower Cost of Goods Sold and a higher ending inventory asset value.
- Weighted Average Cost: Spreads the total acquisition cost of all available units evenly across ending inventory and units sold.
This distinction creates a major trap when converting between accounting platforms:
QuickBooks Desktop Pro, Premier, and Mac track inventory using Weighted Average Cost (Enterprise with Advanced Inventory can use FIFO). QuickBooks Online Plus and Advanced strictly track inventory using FIFO.
When you migrate a company file from Desktop to Online, QuickBooks Online forces a mandatory conversion from Average Cost to FIFO. As detailed in our guide on what doesn’t convert to QuickBooks Online, you set a FIFO start date during the conversion and QuickBooks Online recalculates inventory from that date forward, posting whatever adjustments the new method requires.
The result is often an un-reconciled opening variance between your balance sheet and your tax return that requires manual re-alignment. Review our checklist on what to check after a QuickBooks migration to verify inventory balances post-transfer.
How to manage inventory in QuickBooks Online without corrupting reports
The fundamental rule of inventory in QuickBooks Online: never type a manual journal entry directly against the Inventory Asset account if you track item quantities.
QuickBooks maintains two parallel inventory records:
- The General Ledger balance on your Balance Sheet (
Inventory Asset). - The Inventory Valuation Summary sub-ledger, which tracks physical unit counts and FIFO cost layers per SKU.
When you type a manual journal entry debiting or crediting Inventory Asset:
- The Balance Sheet updates.
- The item quantity sub-ledger does NOT update.
- The Balance Sheet and the Inventory Valuation Summary permanently disagree.
To keep your sub-ledger and balance sheet synchronized, always use standard transaction forms:
- Ordering & Receiving: Create a Purchase Order, then copy it into a Bill or Expense using the Item details grid (selecting the tracked inventory item name, quantity, and cost), never the Category details grid.
- Fulfilling & Invoicing: Create an Invoice or Sales Receipt selecting the inventory item. QuickBooks Online automatically posts the wholesale cost from
Inventory AssettoCost of Goods Soldbehind the scenes. - Inventory Adjustments: Use + New > Inventory quantity adjustment to record theft, damage, or audit variances.
When inventory balances and physical stock diverge
If your balance sheet shows $45,000.00 in inventory but your warehouse count is $12,000.00, months of miscoded bank feeds, negative inventory counts, or broken FIFO layers have accumulated. Resolving historical inventory drift requires walking through past item receipts and reconciliations rather than entering an arbitrary plug.
Ledgerbrook cleans up historical inventory and balance sheet discrepancies under a fixed fee schedule:
$99per month of backlog20% off 6+ monthsA count at year end is part of the close for any business that carries stock, and the adjustment it produces belongs in the same month-end close as everything else. The journal entry reference has the rest of the series, and if your inventory reports disagree with your balance sheet or your shelves, send the file for a free review before you close the year.
Published October 3, 2026