
How much idle capital do you have in your warehouse right now? And how many times have you run out of stock of your fastest-moving product?
Most businesses purchase inventory based on past orders or intuition: they order a large batch because "shipping was cheaper," or small, constant orders because "that way it doesn't accumulate."
Unfortunately, these types of decisions are not usually reflected in the short term or on an invoice, but rather in capital tied up in slow-moving inventory, in the warehouses needed for extra inventory.
The good news is: there's a formula over 100 years old that solves exactly this question. It's called EOQ (Economic Order Quantity) and in this guide, we show you what it is, how to calculate it step-by-step, and, most importantly, how much money you can save by applying it, with a real "before and after" case study.
The EOQ (Economic Order Quantity) is the exact quantity of units you should order in each purchase order to ensure your total inventory costs are as low as possible.
Simply put: it answers the question "How much should I order each time?" with a calculated number.
The model starts from a tension that every business owner knows, even if they haven't named it. There are two forces pulling in opposite directions:
The EOQ finds the exact equilibrium point between these two lines of reasoning: the lot size where the sum of both costs reaches its minimum.
EOQ defined in one sentence: the EOQ is the order quantity that minimizes the sum of ordering cost plus inventory holding cost. Not so much that capital gets tied up in the warehouse, nor so little that you're constantly placing purchase orders.
These are the benefits of calculating the EOQ and ordering inventory based on it:
Ultimately, EOQ transforms a decision typically made out of habit ('we've always ordered this way') into a data-driven decision. And in supply chain, data trumps narrative.

No model is perfect, and being honest about its limitations is part of using it well.
The classic EOQ operates within an idealized world. In practice, you need to understand its assumptions to know when to adjust it:
That's why EOQ is an excellent benchmark. It gives you the optimal number in a stable world; your business judgment adjusts it to the reality of your operation.
Here's the core of the model. Don't be intimidated by the square root: behind it are just three variables you already know from your business.
EOQ = √ (2 × D × S) / H

Where each acronym stands for:
It's the simplest: the total number of units of that SKU you move in a year. If your store sells 10,000 pairs of a shoe model per year, then D = 10,000.
It's what it costs you each time you generate a purchase order, regardless of whether you order 100 or 1,000 units. That's why it's considered a "fixed cost per order." This includes:
It's the cost of holding a unit in storage for one year. It's almost always the most underestimated cost, because a good portion of it is invisible:
At the EOQ point, the total ordering cost and the total holding cost end up being practically equal. When those two figures balance out, you've found your optimal lot size.
Theory is all well and good, but the true value of EOQ becomes clear when you apply it to real money.
A shoe store that sells a best-selling model, the "UrbanSport" sneakers. Here are its annual figures:
Before calculating the EOQ, let's see what happens when the owner orders haphazardly. For this, we'll use two simple formulas:
Where Q is the lot size she chooses. Let's look at the two most common mistakes.
Error A: "I order everything once a year" (Q = 10,000)
She buys all 10,000 pairs in one single giant order to save on shipping costs.
Almost no ordering cost, but an exorbitant storage cost: it has an average of 5,000 pairs tying up cash all year.
Error B: "Small, frequent orders" (Q = 100)
To avoid accumulation, it places small orders of 100 pairs.
The problem here is the opposite: it incurs almost no storage cost, but it places purchase orders 100 times a year, driving up the ordering cost.
What both cases demonstrate: neither the giant lot ($10,050) nor the micro-orders ($5,100) are efficient. Both are far from optimal.
Now let the formula decide. We apply the EOQ step-by-step:
EOQ = √ (2 × 10,000 × 50) / 2
The optimal order quantity is 707 pairs per order. Let's see how much this policy costs:
Notice the detail we mentioned earlier: the ordering cost ($707) and the holding cost ($707) ended up practically identical. That's the hallmark of the optimal point.
Let's put the three scenarios side by side:
Read that again: just by adjusting how much is ordered in each order, without selling an extra pair or changing suppliers, the store frees up between $3,686 and $8,636 annually. That's money that was hidden in a poor batch decision.
The classic EOQ is the foundation, but the reality of your operation sometimes requires more comprehensive models. These are the most common:
The point is this: the EOQ is the first building block, not the whole house. Once you master the optimal lot size for one SKU, scaling it to hundreds or thousands of products with variable demand is another story.
If you visualize your inventory over time under an EOQ policy, you'll see a pattern called "sawtooth": a series of triangles that go down and then back up.
It works like this:

Here's the question that confuses almost everyone: how do EOQ and ROP differ? They are two pieces of the same puzzle, but they answer different questions:
Working with both is what gives you a robust inventory policy: the EOQ tells you how much and the ROP tells you when. If you want to delve deeper into the second, we have a complete guide on how to calculate the reorder point (ROP).
EOQ is one of those tools that, with a pen, paper, and your business numbers, already starts saving you money. For a SKU, the calculation you saw above is sufficient and powerful.
But let's be honest about its limitations. Classic EOQ assumes constant demand, ignores seasonality, doesn't account for variable lead times or volume discounts. We know that calculating this manually in Excel, SKU by SKU, multiplies the risk of human error and becomes unmanageable when you have hundreds or thousands of products, each with its own demand, supplier, and behavior.
When you reach that point, it's no longer a formula problem: it's a problem of scale and up-to-date data.
At Datup , we dynamically calculate optimal order quantities by connecting directly to your ERP and WMS, and adjusting models with AI that learns your business: seasonality, real lead times, demand variability, and over 200 external variables like weather and inflation. Without external consultants and with results from the first few weeks.
Do you want to see how much capital you have tied up in inventory right now? Schedule a personalized demo with your own data and we'll show you the exact number, no obligation.
It was developed by Ford Whitman Harris, a Westinghouse production engineer, who first published the formula in 1913. It was one of the first scientific contributions to inventory management. Later, in 1934, consultant R. H. Wilson popularized it in industry and academia, making it a standard in industrial engineering.
EOQ answers how much to order (the optimal lot size). ROP answers when to order (the inventory level that triggers a new order, considering lead time and safety stock). They are complementary: together they form a complete replenishment policy.
EOQ is designed for physical products that are stored, so it doesn't directly apply to pure services. However, it is useful for any service company that handles supplies or materials (a mechanic's workshop with spare parts, a clinic with medical supplies, a restaurant with non-perishable ingredients). As long as there's an ordering cost and a holding cost, EOQ has something to tell you.
EOQ is not a number you calculate once and forget. It's advisable to review it when its variables change: if your demand goes up or down, if the supplier adjusts freight costs, or if warehousing and insurance costs increase. Recalculating it periodically keeps it a living tool, not a dead data point.