Shopify Inventory Forecasting
Shopify inventory forecasting helps merchants predict how much stock to hold. Learn the best methods, tools and tips to avoid stockouts.
Hylke Reitsma is co-founder of Forthsuite and a supply chain specialist with 8+ years of hands-on experience at Shell, Verisure, and Stryker. He holds an MSc in Supply Chain Management from the University of Groningen and writes practical guides to help e-commerce teams run leaner, faster supply chains. Selected by Replit as 1 of 20 founders for the inaugural Race to Revenue Cohort #1 (2026) and certified as a Replit Platform Builder.
TL;DR: Effective Shopify inventory forecasting means moving beyond simple sales averages. It requires a system that accounts for sales velocity, supplier lead times, marketing events, and seasonality. By implementing a structured process, merchants can reduce stockouts, minimize carrying costs, and make more profitable purchasing decisions directly from their Shopify data.
Last updated: July 2026
What is Shopify Inventory Forecasting
Shopify inventory forecasting is the process of predicting how much stock you will need to meet future customer demand. Shopify inventory forecasting is not just a guess; it is a calculation based on historical sales data, market trends, and planned promotions. The goal is to hold the right amount of product: enough to prevent stockouts, but not so much that you tie up cash in slow-moving inventory.
For a Shopify merchant, this process involves analyzing data directly from your store. You look at which products sell, how fast they sell, and when they sell. A simple forecast might use a 30-day sales average to predict next month's needs. A more accurate forecast incorporates seasonality, growth trends, and supplier lead times. For example, a store selling outerwear will need a different forecast for October than for May.
The output of a good forecast is a concrete number: the quantity of each SKU to order and the date by which you need to order it. This prevents two expensive problems. The first is a stockout, which leads to lost sales and disappointed customers. The second is overstocking, which inflates storage costs and risks product obsolescence, forcing markdowns that destroy your margins.
Forecasting connects your sales activity to your purchasing decisions. It turns reactive ordering, like buying more stock only after a customer complains it's sold out, into a proactive, data-driven workflow. Apps like Forthcast — one of five separate apps Forthsuite builds with — automate this by pulling Shopify sales data directly into forecasting models, creating purchase order recommendations without manual spreadsheet work.
Why It Matters in 2026
Holding the wrong inventory is more expensive than ever. Capital costs are high, and customer expectations for fast shipping are non-negotiable. In 2026, the gap between brands that forecast accurately and those that guess will widen into a significant competitive disadvantage. Poor forecasting directly erodes profit margins through storage fees, dead stock, and lost sales.
The cost of a stockout goes beyond a single lost sale. When a potential customer sees an "out of stock" message, they are likely to go to a competitor. You lose the sale, the customer, and any future revenue they might have generated. On the other side, excess inventory is a direct drain on your cash flow. That money could be used for marketing, product development, or other growth activities. Instead, it is sitting on a warehouse shelf, depreciating in value.
Furthermore, supply chain disruptions have become a standard part of doing business. A McKinsey & Company analysis found that companies can now expect supply chain disruptions lasting a month or more to occur every 3.7 years. Without a forecast that includes buffer stock, your business is vulnerable to supplier delays, shipping problems, or sudden spikes in raw material costs. A solid forecast acts as a financial buffer against this volatility.
In the Shopify ecosystem, speed and agility are key. Brands that can anticipate demand can secure production capacity with suppliers earlier, often at better prices. They can plan marketing campaigns with confidence, knowing the stock will be there to meet the demand they create. Brands that fail to forecast are constantly in a reactive mode, paying rush fees for shipping and missing sales during peak demand. This is not a sustainable way to operate an e-commerce business.
How to Get Started
Starting with inventory forecasting does not require a degree in statistics. It requires a methodical approach to using the sales data you already have inside Shopify. The process can be broken down into five distinct steps, moving from basic data collection to an automated reordering system.
Step 1: Consolidate Your Historical Sales Data
The foundation of any forecast is clean, historical data. You need to know what you sold, when you sold it, and in what quantity. Export your sales data from Shopify for at least the last 12 months, if available. A longer time frame is better as it helps identify seasonal patterns more clearly.
Focus on sales per SKU per day. Your export should include:
- Order Date: The exact day the order was placed.
- SKU: The specific product variant sold.
- Quantity: The number of units of that SKU sold in the order.
Before you calculate anything, you must clean this data. Remove any outlier events that do not represent typical customer demand. For example, if you had a "buy one, get one free" sale that cleared out a specific SKU, or if a single wholesale order accounted for 500 units in one day, these events will skew your averages. You can either remove them from the dataset or make a note to adjust for them. The goal is to get a clear picture of your standard sales velocity.
Step 2: Choose a Forecasting Model
Once you have your data, you need a model to interpret it. For most Shopify merchants, a few simple models provide a great starting point. You do not need a complex algorithm to see immediate benefits.
Here are three common methods, from simplest to most involved:
- Moving Average: This method uses the average sales over a recent period (e.g., the last 30, 60, or 90 days) to predict future sales. It is easy to calculate but can be slow to react to changes in trend or seasonality. For a product with stable, year-round demand, a 90-day moving average is a reliable starting point.
- Seasonal Average: This method compares sales from the same period in the previous year. For example, to forecast for November 2026, you would look at your sales from November 2025. This is effective for products with clear seasonal demand, like holiday items or summer apparel. Its weakness is that it ignores recent growth trends.
- Trend-Adjusted Forecasting: This model builds on the others by incorporating a growth or decline factor. For example, you might find that your sales in the last quarter were 15% higher than the same quarter last year. You would then apply that 15% growth factor to last year's seasonal data to create a more accurate forecast for the upcoming season.
A comparison can help you decide where to start.
| Forecasting Method | Best For | Calculation Example | Primary Weakness |
|---|---|---|---|
| Moving Average | Stable, non-seasonal products. | (Last 30 days of sales) / 30 = Daily Sales Velocity | Ignores seasonality and sudden trends. |
| Seasonal Average | Products with predictable annual peaks and troughs (e.g., swimwear, holiday decor). | Sales from Oct 2025 are used to forecast sales for Oct 2026. | Does not account for recent business growth or decline. |
| Trend-Adjusted | Growing businesses with seasonal products. | (Sales from Q3 2025) * (1 + Year-over-Year Growth %) = Forecast for Q3 2026 | Requires more data and slightly more complex calculations. |
Step 3: Calculate Lead Time and Safety Stock
Your forecast tells you what you will sell. Your lead time and safety stock calculations tell you when to order it. This is where many merchants make costly mistakes.
Lead Time is the total time from when you place a purchase order with your supplier to when the inventory is checked into your warehouse and available for sale. You must be precise. This includes:
- Production Time: How long it takes your supplier to make the goods.
- Transit Time: How long the goods are in transit (ocean freight, air freight, trucking).
- Receiving Time: How long it takes your 3PL or warehouse team to receive, inspect, and shelve the inventory.
Sum these components to get your total lead time in days. For example: 30 days production + 40 days ocean freight + 5 days receiving = 75-day lead time.
Safety Stock (or buffer stock) is the extra inventory you hold to protect against variability in demand or lead time. What if your sales suddenly spike? What if your container gets stuck at port for two weeks? Safety stock prevents a stockout in these scenarios.
A standard formula for safety stock is:
(Max Daily Sales * Max Lead Time) - (Average Daily Sales * Average Lead Time)
Let's walk through an example. You sell an average of 10 units per day, but on a busy day, you might sell 15. Your average lead time is 75 days, but you have experienced delays of up to 90 days.
- Max Daily Sales = 15 units
- Max Lead Time = 90 days
- Average Daily Sales = 10 units
- Average Lead Time = 75 days
Calculation: (15 * 90) - (10 * 75) = 1350 - 750 = 600 units.
Your safety stock for this SKU is 600 units. This is the minimum level your inventory should ever reach.
Step 4: Set Your Reorder Point
The reorder point is the inventory level that triggers a new purchase order. When your stock on hand for an SKU hits this number, it is time to reorder. The formula combines your lead time demand and your safety stock.
Reorder Point = (Lead Time in Days * Average Daily Sales) + Safety Stock
Using our previous example:
- Lead Time = 75 days
- Average Daily Sales = 10 units
- Safety Stock = 600 units
Calculation: (75 * 10) + 600 = 750 + 600 = 1350 units.
When your inventory for this SKU drops to 1,350 units, you must place a new purchase order. This ensures that your new shipment will arrive just as you are selling through your safety stock, preventing a stockout.
Step 5: Automate and Refine
Manually performing these calculations in a spreadsheet for every SKU is time-consuming and prone to error. As your business grows, it becomes impossible to manage. This is the point where you should adopt a dedicated tool.
Forthcast, one of the five separate apps Forthsuite draws on, connects directly to your Shopify store's data. This app automates the entire forecasting process. It pulls your sales history, calculates sales velocity, and uses your configured lead times and safety stock levels to generate purchase order recommendations. Instead of checking spreadsheets daily, you get an alert: "It's time to reorder 500 units of SKU-123."
Automation also allows for continuous refinement. Your forecasting tool can track its own accuracy. Did you sell through the inventory faster or slower than predicted? This feedback loop helps you adjust your model, update lead times, and make your safety stock calculations more precise over time. Your forecast gets smarter with every sales cycle.
Common Pitfalls
Implementing a forecasting system can expose weaknesses in your operations. Being aware of common pitfalls helps you avoid them from the start and build a more resilient supply chain.
Ignoring Seasonality and Promotions
The most common error is using a simple moving average for a seasonal product. If you sell sandals, using your January sales data to forecast for June will result in a massive stockout. You must use a seasonal model or a year-over-year comparison.
Similarly, you must manually adjust your forecast for planned marketing events. If you are planning a Black Friday sale where a specific product will be 50% off, you cannot expect normal sales volume. You need to create a specific forecast for that promotional period based on past sale performance and your marketing budget. A good practice is to tag promotional sales in Shopify so you can filter them out of your standard demand calculations later.
Using Unclean Data
Garbage in, garbage out. If your forecast is based on bad data, it will produce bad results. We mentioned removing one-off bulk orders, but other data hygiene issues can cause problems. For example, if a product was out of stock for two weeks last year, your historical data will show zero sales for that period. A naive calculation would interpret this as zero demand. You must adjust for stockout periods to reflect the true demand you could have met.
Miscalculating True Lead Time
Many merchants only consider the transit time from their supplier. They forget to include the supplier's production time and the warehouse's receiving time. A 30-day transit time can easily become a 60-day total lead time. Always confirm production schedules with your supplier (which you can manage with a tool like Forthsource) and get realistic receiving timelines from your 3PL (which you can track with Forthmatch). Underestimating lead time is a direct path to a stockout.
Setting and Forgetting Forecasts
A forecast is not a one-time project. It is a living document. Consumer trends change, new competitors emerge, and your own marketing becomes more or less effective. You should review your forecast accuracy at least quarterly. Compare your predicted sales to your actual sales. If there is a large variance, investigate why. Was there an unexpected supplier delay? Did a marketing campaign perform better than expected? Use this information to refine your model, safety stock levels, and lead time assumptions.
Failing to Segment SKUs
Not all products are created equal. Applying the same forecasting model and safety stock rules to every SKU is inefficient. A better approach is to use an ABC analysis to segment your products:
- A-Items: Your top 20% of products that generate 80% of your revenue. These deserve the most attention. Use a sophisticated forecasting model and maintain a higher level of safety stock to protect against stockouts.
- B-Items: The next 30% of products that generate ~15% of revenue. A standard forecasting model and moderate safety stock are usually sufficient.
- C-Items: The bottom 50% of products that only generate ~5% of revenue. These are your slow-movers. Use a simple forecast, hold minimal or zero safety stock, and consider a "make-to-order" or "order-on-demand" model if possible. Forcing a forecast on these items can lead to overstocking and dead inventory, which you might later need to liquidate through a service like Forthclear.
Frequently Asked Questions
How do I forecast inventory on Shopify?
You can start by exporting your order history from Shopify into a spreadsheet. Calculate your average daily sales for each SKU. Then, factor in your supplier's lead time and a safety stock buffer to determine your reorder point. For more accuracy and less manual work, use a dedicated app like Forthsuite's Forthcast, which connects to your store and automates these calculations.
Does Shopify have a built-in forecasting tool?
Shopify's core platform provides inventory tracking and basic reports on sales velocity. However, it does not have a built-in, forward-looking demand forecasting tool that automatically calculates reorder points or generates purchase orders. For that functionality, merchants use third-party applications from the Shopify App Store that specialize in supply chain management.
What is a good inventory forecasting accuracy?
An accuracy rate of 80-85% is a good benchmark for many e-commerce businesses. This means your forecast is within 15-20% of your actual sales. For top-selling, stable products (your A-Items), you should aim for 90% or higher. It is unrealistic to expect 100% accuracy, which is why holding safety stock is a necessary part of inventory management.
How do I calculate safety stock for Shopify?
A common formula is: (Maximum Daily Sales × Maximum Lead Time) – (Average Daily Sales × Average Lead Time). First, analyze your Shopify sales data to find the average and peak daily sales for an SKU. Then, get the average and maximum total lead time from your supplier. The result is the buffer stock needed to prevent stockouts from demand spikes or shipping delays.
What is the best forecasting method for e-commerce?
There is no single "best" method; it depends on the product. For new products with no history, a qualitative forecast based on market research is necessary. For stable products, a moving average works well. For seasonal goods, a trend-adjusted seasonal model is most effective. The best strategy is to use an ABC analysis to segment your products and apply the appropriate model to each category.
How far out should I forecast inventory?
Your forecasting horizon should be at least as long as your longest lead time, plus a buffer. If your longest supplier lead time is 90 days, you need to be forecasting at least 90-120 days into the future. This ensures you have enough time to place an order and receive it before you run out of stock. For long-term capacity planning with suppliers, you might create a higher-level forecast 6-12 months out.
How do I handle forecasting for new products?
Forecasting for a new product with no sales history requires a different approach. Use market data and sales figures from comparable products in your catalog as a proxy. Look at the performance of a similar item you launched previously. Be conservative with your initial purchase order, and plan to place a follow-up order quickly if demand is stronger than expected. It is often better to sell out of the first run than to be stuck with a large volume of a failed product.
Stop guessing your inventory needs and start making data-driven decisions. Forthsuite builds custom supply-chain systems for Shopify merchants, drawing on five separate apps — Forthcast for forecasting, Forthroute for returns, and Forthsource for supplier management. Get started with our free core tools, and add demand forecasting with Forthcast from just $19.99/month to automate your reordering process.
About the Author
Hylke Reitsma is co-founder of Forthsuite and a supply chain specialist with 8+ years of hands-on experience at Shell, Verisure, and Stryker. He holds an MSc in Supply Chain Management from the University of Groningen and writes practical guides to help e-commerce teams run leaner, faster supply chains. Selected by Replit as 1 of 20 founders for the inaugural Race to Revenue Cohort #1 (2026) and certified as a Replit Platform Builder.
LinkedIn