E-Commerce Inventory Forecasting for Shopify: A Data-Driven Guide to Smarter Stock Decisions
Todd McCormick

Stockouts kill revenue. Overstocking kills cash flow. Between those two extremes lies inventory forecasting -- the practice of predicting how much product you need and when you need it. For Shopify merchants, getting this right is one of the highest-leverage operational improvements you can make.
Most small and mid-size e-commerce stores forecast inventory with a combination of gut feeling and spreadsheets. That works until it does not -- until you run out of your best seller during a traffic spike, or until you are sitting on six months of a product that stopped moving. This guide covers how to build a data-driven inventory forecasting system that scales with your Shopify store, using the data you already have.
Why Inventory Forecasting Matters More Than You Think
The direct cost of a stockout is obvious -- you lose the sale. But the indirect costs are often larger and harder to see.
The Hidden Costs of Poor Inventory Management
- Lost revenue from stockouts -- The immediate impact. A product that is out of stock cannot generate revenue. Depending on your category, 20-40% of customers who encounter a stockout will buy from someone else instead of waiting.
- Damaged ad spend efficiency -- If you are running Google Ads or email campaigns driving traffic to products that are out of stock, you are paying for clicks that cannot convert. Your ROAS drops and your money is wasted.
- SEO ranking impact -- Product pages that consistently show as out of stock can lose their search rankings over time. Google prioritizes pages that deliver a complete user experience, and a page without a working add-to-cart button is incomplete.
- Cash flow strain from overstock -- Money tied up in slow-moving inventory is money you cannot invest in marketing, new products, or operations. For many Shopify stores, excess inventory is the single largest drag on cash flow.
Storage and carrying costs -- Whether you are using a 3PL, a warehouse, or your garage, inventory takes up space that costs money. The longer product sits, the more it costs you in storage fees, insurance, and potential depreciation.
The Data You Need for Forecasting
Good inventory forecasting requires good data. The foundation is your sales history, but several other data sources make your forecasts dramatically more accurate.
Sales Velocity
Sales velocity is the rate at which a product sells over time -- typically measured as units per day or units per week. This is your single most important forecasting input.
Calculate sales velocity for each product or SKU:
Daily sales velocity = Total units sold in period / Number of days in period
For a product that sold 150 units in the last 30 days, the daily sales velocity is 5 units per day. At that rate, 200 units of current stock will last 40 days.
Track velocity over multiple time periods -- 7-day, 30-day, and 90-day averages. The 7-day average shows recent momentum. The 90-day average shows the underlying trend. When they diverge significantly, something is changing that deserves investigation.
Lead Time
Lead time is how long it takes from placing a reorder to having the product available to sell. For most Shopify merchants, this includes:
- Manufacturing or sourcing time -- How long your supplier takes to produce or prepare your order
- Shipping time -- Transit from supplier to your warehouse or 3PL
- Receiving and processing time -- Time to inspect, count, label, and shelve incoming inventory
Add these together for your total lead time. If manufacturing takes 15 days, shipping takes 10 days, and receiving takes 3 days, your total lead time is 28 days. You need to place your reorder at least 28 days before you expect to run out.
Always pad your lead time estimate by 20-30%. Supply chains are unpredictable, and underestimating lead time is one of the most common causes of stockouts.
Seasonality Patterns
Nearly every e-commerce category has seasonal demand patterns. Some are obvious -- swimwear in summer, holiday gifts in Q4. Others are subtler -- supplements spike in January with New Year's resolutions, pet products increase around adoption seasons, and office supplies surge in September with back-to-school.
If you have at least one full year of sales data, calculate month-over-month indices for each product or category. Divide each month's sales by the annual monthly average. A month with an index of 1.5 means sales are 50% above average. A month at 0.7 means 30% below average. Apply these indices to your base velocity forecasts to account for seasonal swings.
Marketing Calendar Impact
Your marketing calendar directly affects demand. A product launch, a major email campaign, a sale event, or a viral social post can spike demand well beyond your normal sales velocity. Factor planned marketing activities into your forecast:
- Sale events -- Expect 2-5x normal velocity during significant promotions, depending on discount depth and marketing spend
- Product launches -- Difficult to predict precisely, but use pre-launch interest (waitlist signups, social engagement) as a proxy
Influencer campaigns -- If you have historical data from prior influencer partnerships, use it to estimate demand impact. If not, build in a buffer.
Building Your Forecasting Model
You do not need machine learning or expensive software to build a useful forecast. A well-structured spreadsheet works for most Shopify stores under $5M in annual revenue. Here is a practical framework.
The Basic Reorder Formula
Reorder Point = (Daily Sales Velocity x Lead Time in Days) + Safety Stock
Safety stock is a buffer you maintain to protect against demand spikes and supply chain delays. A common approach is:
Safety Stock = Daily Sales Velocity x Safety Stock Days
Safety stock days depends on your risk tolerance and lead time volatility. For reliable domestic suppliers, 7-10 days of safety stock is typical. For international suppliers with longer, less predictable lead times, 14-21 days provides more protection.
Example: A product sells 8 units per day, has a 21-day lead time, and you want 10 days of safety stock. Reorder point = (8 x 21) + (8 x 10) = 168 + 80 = 248 units. When your stock hits 248 units, place your reorder.
Reorder Quantity
How much to order at each reorder depends on your desired days of supply and any minimum order quantities from your supplier.
Reorder Quantity = Daily Sales Velocity x Days of Supply Desired
If you want 60 days of supply and sell 8 units per day, order 480 units. Adjust for supplier minimums, price breaks at volume tiers, and available cash flow.
The tension is between ordering more (lower per-unit cost, fewer reorders) and ordering less (less cash tied up, less risk if demand changes). Most Shopify merchants find that ordering 45-90 days of supply per reorder provides a good balance.
Applying Seasonality
Adjust your velocity inputs based on the seasonal indices you calculated. If you are placing a reorder in October for products that will arrive in November, and your November index is 1.8x, multiply your base velocity by 1.8 for the forecasted period.
This is where many merchants get tripped up. They forecast based on current velocity without accounting for the fact that demand will be dramatically different when the inventory actually arrives. Always forecast for the period when the inventory will be selling, not for the period when you are placing the order.
ABC Analysis: Focus Where It Matters
Not every product deserves the same level of forecasting attention. ABC analysis categorizes your products by revenue contribution so you can focus your forecasting effort where it has the most impact.
How to Classify Your Products
- A items (top 20% of products by revenue) -- These typically generate 70-80% of your revenue. Forecast these weekly. Monitor velocity changes closely. Never let these stock out.
- B items (next 30% of products) -- These contribute 15-25% of revenue. Forecast monthly. Use standard safety stock calculations.
- C items (bottom 50% of products) -- These contribute 5-10% of revenue. Forecast quarterly or use simple min/max rules. Do not over-invest in forecasting accuracy for products that contribute minimally to revenue.
Run your ABC analysis quarterly. Products move between categories as demand shifts, and your forecasting effort should follow.
Monitoring and Adjusting
A forecast is a prediction, not a guarantee. The value of a forecasting system comes from continuous monitoring and adjustment.
Key Metrics to Track Weekly
- Days of supply remaining -- For each A-item product, how many days of inventory do you have at current velocity? Flag anything below your lead time plus safety stock.
- Sell-through rate -- What percentage of your inventory is selling within a given period? A healthy sell-through for most e-commerce categories is 15-25% per month. Below that signals overstocking; above that signals potential stockout risk.
- Forecast accuracy -- Compare your predicted demand to actual demand each month. Track this as a percentage (actual / forecasted). Consistently being off by more than 20% means your model inputs need adjustment.
Dead stock -- Products with zero sales in the past 60-90 days. This inventory is tying up cash and storage space. Create a plan to liquidate it through promotions, bundles, or wholesale channels.
When to Adjust Your Forecasts
Update your forecasts when:
- Velocity changes by more than 20% from your baseline -- A product suddenly selling faster or slower than expected needs an immediate forecast revision.
- You launch a new marketing campaign -- Planned demand increases should be baked into your forecast before the campaign launches, not after.
- A supplier changes lead times -- If your supplier notifies you of production delays or faster fulfillment, update your lead time inputs.
External events affect your category -- Tariff changes, shipping disruptions, viral social trends, or shifts in consumer behavior can all affect demand. Industry-level intelligence helps you spot these shifts early.
This is where having broader market context matters. If one of your products suddenly starts selling faster, is it because your marketing is working or because the entire category is trending? The answer determines whether you make a conservative restock or an aggressive one. Chartimatic surfaces this kind of sector trend data alongside your store metrics, so you can make inventory decisions with the full picture rather than just your own sales history.
Common Forecasting Mistakes
Even with a solid model, these common mistakes can undermine your forecasting accuracy.
Forecasting Based on Revenue Instead of Units
Your warehouse ships units, not dollars. Always forecast in units, even though it is tempting to think in revenue terms. A product that generated $10,000 last month at full price will generate a very different unit count at a 30% discount.
Ignoring Stockout Periods in Historical Data
If a product was out of stock for 10 days last month, that month's sales under-represent true demand. You need to adjust for stockout periods when calculating velocity. Estimate what sales would have been by extrapolating from the days when the product was in stock.
Over-Relying on a Single Time Period
Using only last month's sales to forecast next month ignores trend, seasonality, and natural volatility. Use multiple time horizons (7-day, 30-day, 90-day) and weight them according to your confidence in each signal. Recent data is more relevant for fast-moving trends, but longer periods provide stability.
Not Accounting for Product Life Cycle
New products have an introduction phase with unpredictable demand. Mature products have stable, forecastable demand. Declining products have gradually reducing demand. Apply different forecasting approaches to each stage rather than treating all products the same.
Scaling Your Forecasting System
As your Shopify store grows, your forecasting needs become more complex. Here is how to scale.
Under 100 SKUs
A well-structured spreadsheet is sufficient. Track velocity, lead time, safety stock, and reorder points for each product. Update weekly. This is manageable for one person in 30-60 minutes per week.
100-500 SKUs
At this scale, manual tracking becomes error-prone. Consider a dedicated inventory planning tool that integrates with Shopify. Shopify's built-in reports provide basic inventory analytics, and several apps specialize in demand planning for the 100-500 SKU range. The key feature to look for is automated velocity calculation and reorder alerts.
500+ SKUs
You need automated forecasting with statistical modeling. At this scale, manual forecasting is no longer practical for every SKU. Use ABC analysis to focus human attention on A items, and let automated systems handle B and C items with rule-based reordering.
Regardless of scale, the same principles apply: forecast in units, account for lead time and safety stock, adjust for seasonality, and monitor accuracy continuously.
Connecting Inventory to Your Broader Analytics
Inventory forecasting does not exist in isolation. It connects directly to your marketing, finance, and growth strategy.
- Marketing alignment -- Your marketing team should not launch a major campaign for a product with low stock. And your inventory team should increase reorder quantities for products that are about to get marketing support. These decisions require shared visibility.
- Cash flow planning -- Inventory purchases are often the largest cash outflow for a Shopify store. Your inventory forecast directly feeds your cash flow forecast. If you know you need to place $50,000 in reorders next month, your finance plan needs to account for it.
Product strategy -- Sell-through rates and days of supply data should inform decisions about which products to expand, which to phase out, and which to promote more aggressively.
The most effective approach is having all of this data -- sales velocity, marketing performance, channel metrics, and industry trends -- visible in one place rather than scattered across separate tools. Chartimatic consolidates your Shopify sales data alongside your marketing analytics and industry benchmarks into a single daily briefing, giving you the context you need to make inventory decisions that account for the full picture of your business.
The Bottom Line
Inventory forecasting is not about predicting the future perfectly. It is about making better decisions with the data you already have. A simple model based on sales velocity, lead time, and safety stock will outperform gut-feel ordering every time. Add seasonality adjustments, ABC prioritization, and weekly monitoring, and you have a system that prevents the two most expensive inventory mistakes -- running out of what sells and sitting on what does not.
Start with your top 20 products. Calculate their velocity, set reorder points, and track days of supply weekly. Once that habit is established, expand to the rest of your catalog. The merchants who master inventory forecasting free up cash, eliminate stockout-driven revenue losses, and operate with a level of confidence that makes every other part of the business easier to manage.
