Bookkeeping Fundamentals
6
Minutes Read
Published
September 5, 2025
Updated
September 5, 2025

Inventory bookkeeping for e-commerce startups: fixing data drift, landed costs, and COGS

Learn how to track inventory and calculate COGS for ecommerce startups to gain accurate financial insights and streamline your online store's accounting.
Glencoyne Editorial Team
The Glencoyne Editorial Team is composed of former finance operators who have managed multi-million-dollar budgets at high-growth startups, including companies backed by Y Combinator. With experience reporting directly to founders and boards in both the UK and the US, we have led finance functions through fundraising rounds, licensing agreements, and periods of rapid scaling.

How to Track Inventory and Calculate COGS for E-commerce Startups

The Shopify dashboard shows one number for inventory value. Your 3PL’s report shows another. Your balance sheet in QuickBooks or Xero tells a third, completely different story. This is not a minor annoyance; it is a critical information gap that directly impacts your cash flow and profitability. When your inventory and financial records do not align, you cannot trust your gross margin, make smart pricing decisions, or accurately forecast your purchasing needs. Effective inventory bookkeeping is the foundation of scalable e-commerce accounting, turning chaotic data into a clear financial picture that guides your growth.

Diagnosing the Disconnect in Your Inventory Data

The gap between your sales channels, warehouse reports, and accounting software is a classic symptom of data drift. It happens when systems are not integrated properly, forcing you to use manual, error-prone spreadsheets to bridge the divide. The reality for most early-stage startups is more pragmatic: founders are often entering sales data by hand or relying on basic bank feed rules that lack the necessary detail. This directly causes one of the most common pain points: endless manual spreadsheet fixes for purchase orders, returns, and fulfillment that consume founder time and introduce costly data entry mistakes.

At the core of sound e-commerce accounting is the accrual method. Accrual accounting recognizes revenue when earned and expenses when incurred, not when cash changes hands. For inventory, this means recording its cost when it is sold, as Cost of Goods Sold (COGS), not when you pay the supplier. This timing is crucial for calculating an accurate gross margin and understanding your true profitability.

A common mistake that accelerates data drift is a poor integration between Shopify and QuickBooks or Xero that syncs every individual order. This floods your accounting software with unnecessary transaction detail, making bank reconciliation nearly impossible. The best practice is to sync summarized journal entries. This approach groups daily transactions into a single entry, correctly allocating sales, taxes, platform fees, and COGS into clean, manageable records that match your bank deposits.

The Power of Summarized Journal Entries

Instead of hundreds of individual transactions, a summary entry provides a clean, consolidated view of a day's sales activity. For example, a single entry would debit your cash account for the total deposit, and then credit separate accounts for sales revenue, sales tax payable, and shipping fees collected. Simultaneously, it would debit your COGS expense account and credit your inventory asset account, keeping your books perfectly balanced and easy to reconcile.

Choosing Your Framework: How to Track Inventory Accurately

To systematically track inventory and get an accurate COGS number, you need to choose an accounting framework. The two primary methods are the periodic and perpetual inventory systems. While many startups begin with one, scaling demands a transition to the other. Understanding the stock reconciliation process for each is key to maintaining accuracy.

The Periodic Inventory System

The periodic system is the simplest way to start. It does not track inventory on a daily basis. Instead, you determine your inventory value by performing a full physical count at the end of an accounting period, such as a month or quarter. COGS is then calculated after the fact using a straightforward formula.

Periodic System COGS = Beginning Inventory + Purchases - Ending Inventory

While this method works for businesses with very few SKUs and low transaction volume, it provides no real-time visibility into stock levels. You only know your profitability in hindsight, which makes agile decision-making about marketing or promotions impossible. It also increases the risk of stockouts, as you have no daily data to inform reordering.

The Perpetual Inventory System

In contrast, a perpetual inventory system updates inventory balances continuously with every transaction. When a product is sold, the system simultaneously records the revenue and the corresponding COGS, reducing inventory in real time. This provides a constant, up-to-date view of inventory levels, gross margins, and profitability on every single sale. Even with a perpetual system, regular physical counts, known as cycle counts, are necessary to identify and correct discrepancies from theft, damage, or receiving errors.

For any e-commerce business aiming to scale, adopting a perpetual inventory system is not a luxury; it is a necessity for maintaining financial control and making informed, data-driven decisions. It provides the financial clarity needed for effective purchasing, marketing, and pricing strategies.

Getting COGS Right: The Importance of Landed Cost

One of the most significant errors in early-stage inventory bookkeeping is assuming COGS is simply the price you pay your supplier. This mistake hides your true profitability and leads to flawed pricing strategies. To perform an accurate COGS calculation for your e-commerce business, you must use the landed cost. Landed cost is the total expense incurred to get a product from the supplier's factory into your warehouse, ready for sale.

Components of Landed Cost

Landed cost includes the original unit cost plus all associated expenses. Ignoring these additional costs artificially inflates your gross margin on paper, giving you a false sense of financial health. Key components include:

  • Product purchase price from the supplier
  • Freight and shipping costs (international and domestic)
  • Customs, duties, tariffs, and taxes
  • Insurance fees for the shipment
  • Payment processing and currency conversion fees

The correct approach is to bundle all these costs and allocate them across the units in a given purchase order. To find the true cost per item, you can use a simple formula:

Landed Cost per Unit = Total PO Cost (including freight, duties, etc.) / Number of Units

Landed Cost in Practice: An Example

Consider this practical example. You order 1,000 units of a product from a supplier at $15 per unit, making the initial product cost $15,000. However, you also pay $2,000 for international freight and $1,000 in import duties. Your total purchase order cost is not $15,000, but $18,000.

Using the landed cost formula, your true cost per unit is $18,000 divided by 1,000 units, which equals $18. That $3 difference is your real margin. If you based your pricing on the $15 cost, you might run a promotion that you think is profitable but actually loses money on every sale. Accurate COGS calculation for e-commerce depends on capturing this detail correctly.

Building Your Tech Stack: A Good, Better, Best Approach

Choosing the right tools for your stage is critical. Over-investing in complex software too early burns cash, while relying on manual processes for too long creates costly inefficiencies. A scenario we repeatedly see is founders struggling to decide when to upgrade their inventory management software and accounting workflows. This "Good, Better, Best" framework helps clarify what you need at your current stage of growth.

'Good': The Starter Stack (Under $1M in Revenue)

This stack typically consists of your sales channel (Shopify, Amazon), your accounting software (QuickBooks in the US, Xero in the UK), and spreadsheets. In this model, inventory is often managed via the periodic system. Financial data is entered manually or through basic bank rules, which often fail to capture the detail required for accrual accounting. It is a functional starting point, but it is not scalable and is the primary source of the data drift and inaccurate COGS discussed earlier.

'Better': The Connector Stack ($1M - $5M in Revenue)

This is the ideal setup for businesses ready to scale. The stack adds a crucial middleware tool like A2X or Link My Books. These connectors solve the Shopify and QuickBooks integration problem by acting as a bridge. Instead of syncing every order, they create summarized daily or monthly journal entries from your sales channel data. They correctly separate and allocate revenue, sales tax, shipping income, and platform fees, providing a clean, accurate, and reconciled data flow into QuickBooks or Xero. This dramatically reduces manual work and ensures your financial reporting is timely and reliable.

'Best': The IMS Stack ($5M+ Revenue or High Complexity)

This stack is for businesses with significant revenue or high operational complexity. It introduces dedicated inventory management software (IMS) like Cin7 or Katana. An IMS acts as a central hub and a single source of truth for all product-related operations. It manages purchase orders, tracks stock movements in real time, and handles complex scenarios like product bundling and multi-location fulfillment.

The trigger point for an IMS is typically when you face one or more of the following:

  • Selling across multiple channels (e.g., Shopify, Amazon, wholesale)
  • Using multiple warehouses or 3PLs
  • Assembling product bundles or kits from component parts
  • Requiring advanced demand forecasting and purchase order management

The IMS integrates with both your sales channels and accounting software, creating a seamless, automated perpetual inventory system that provides complete control and visibility.

Your Action Plan for Scalable Inventory Accounting

Moving from chaotic spreadsheets to a clean, scalable inventory bookkeeping system is a gradual process. It is about building the right foundation at the right time. For founders and their teams, the path forward is clear and manageable. Follow these steps to build a financial infrastructure that supports your growth.

  1. Calculate Your True COGS. Your immediate priority should be to calculate your landed cost for every purchase order. This single change will provide a much clearer view of your actual product margins and profitability. Do not invest in new software until you have mastered this fundamental process.
  2. Implement a Connector Tool. If you are wrestling with manual data entry from Shopify or Amazon, your next step is to implement a connector tool like A2X. This is the most impactful upgrade for businesses crossing the $1 million revenue threshold, as it automates the most time-consuming and error-prone part of the e-commerce accounting workflow.
  3. Plan for a Full IMS. Finally, start planning for the future. Understand the triggers for needing a full inventory management system. When you begin expanding to multiple sales channels, adding a second 3PL, or introducing product kits, you will know it is time to invest in a more robust solution.

By taking these deliberate steps, you can build a financial infrastructure that not only keeps pace with your growth but actively accelerates it by providing the data you need to make smarter decisions.

Frequently Asked Questions

Q: Why can't I just use the inventory numbers from Shopify for my accounting?
A: Shopify tracks units but does not calculate COGS using the landed cost required for accurate financial reporting. It also does not account for shrinkage, damaged goods, or returns correctly. Relying solely on Shopify's data leads to the data drift that creates a disconnect between your operational reports and your financial statements.

Q: How often should I do a physical inventory count?
A: If you use a periodic system, you must perform a full physical count at the end of each accounting period (e.g., monthly or quarterly). If you use a perpetual system, you should perform regular "cycle counts" on a rotating basis throughout the year to verify accuracy and identify discrepancies without shutting down operations.

Q: What is the difference between inventory management and inventory accounting?
A: Inventory management is the operational process of ordering, storing, and tracking physical goods. Inventory accounting is the financial process of valuing that inventory, recording its movement on the balance sheet, and calculating the Cost of Goods Sold (COGS) on the income statement. The two must be aligned for accurate reporting.

Q: Can I use cash-basis accounting for my e-commerce inventory?
A: Generally, no. Tax authorities in both the US and UK require businesses that hold inventory to use the accrual accounting method. This ensures that the cost of the inventory (COGS) is correctly matched to the revenue it generates in the same period, providing a true measure of profitability.

This content shares general information to help you think through finance topics. It isn’t accounting or tax advice and it doesn’t take your circumstances into account. Please speak to a professional adviser before acting. While we aim to be accurate, Glencoyne isn’t responsible for decisions made based on this material.

Curious How We Support Startups Like Yours?

We bring deep, hands-on experience across a range of technology enabled industries. Contact us to discuss.