Economic Order Quantity: Formula & Examples
- What is the economic order quantity?
- The EOQ formula
- A worked example for an online store
- Why the result is more robust than it looks
- EOQ and MOQ: when the supplier sets the minimum
- Volume discounts: how to calculate them properly
- Where EOQ breaks in e-commerce
- How to use EOQ in practice
- Frequently asked questions about the economic order quantity
- Conclusion
- Sources
The key points in 50 seconds
Summary
The economic order quantity is the order size at which ordering costs and holding costs together are at their lowest. The formula is EOQ equals the square root of 2DS divided by H, with D as annual demand, S as the cost per order, and H as the holding cost per unit and year.
- Holding cost is where most calculations go wrong. Some sources define H as an absolute amount per unit, others as a percentage of the purchase price. Both are correct and convert into each other, but mixing them produces nonsense.
- The result is more robust than it looks. Ordering 30 percent below or 40 percent above the optimum raises the relevant costs by less than 7 percent, so imprecise input data is not a reason to skip the calculation.
- Supplier minimums usually override the result. When the minimum order quantity exceeds the EOQ, the minimum wins. The value of the calculation then shifts to quantifying what that minimum costs you per year.
- Volume discounts beat holding cost savings. A few percent off the goods value often outweighs the storage cost of a larger order. Calculate both, do not assume.
- EOQ is a tuning tool, not a starting point. It says how much to order. Your reorder point says when. Neither works without the other.
Order more often and you pay for every order. Order in larger batches and you pay to store what you are not selling yet. The economic order quantity is the point where those two cost curves cross, and it has been the standard answer to that trade-off for more than a century.
What most explanations leave out is everything that happens after the formula. Suppliers impose minimum quantities, freight comes in steps rather than smoothly, storage fees rise in the fourth quarter, and working capital is finite. This guide covers the calculation and those constraints, because the second part is what decides whether the number is usable.
What is the economic order quantity?
The economic order quantity is the order size that minimizes the sum of ordering costs and inventory holding costs over a period. It answers one question only, namely how much to order at a time, and it assumes you already know when to order.
The cost trade-off behind the formula
Two cost blocks move in opposite directions as order size changes. Ordering costs are incurred per purchase order regardless of its size: supplier communication, order processing, inbound handling, quality checks, and invoice processing. Order twice as often and this block roughly doubles.
Holding costs work the other way. They scale with average inventory, which is roughly half the order quantity, and they include tied up capital, storage space, insurance, shrinkage, and the risk of having to mark goods down. Order in larger batches and this block grows. The economic order quantity is the size at which the two blocks are equal, which is also where their sum is lowest.
What EOQ does not tell you
The formula contains no lead time and no demand variance, so it says nothing about timing. That decision belongs to your reorder point, which defines the stock level that triggers the order, and to your safety stock, which buffers the variance in between.
The practical consequence is that EOQ optimized in isolation achieves very little. A perfectly sized order that arrives two weeks late still produces a stockout. Treat the three figures as one system: safety stock sets the floor, the reorder point sets the trigger, and the economic order quantity sets the batch size on top.
The EOQ formula
The EOQ formula divides twice the product of annual demand and cost per order by the annual holding cost per unit, and takes the square root of the result. It was first published by Ford W. Harris in 1913 and is also known as the Wilson formula, or in German literature as the Andler formula.
The formula and its three variables
- EOQ = √(2DS ÷ H)
D is annual demand in units, taken from actual sales rather than from a purchasing plan. S is the cost per purchase order, meaning everything that is triggered once per order regardless of quantity. H is the cost of holding one unit in stock for one year.
For S, a useful reference point exists: across more than 4,600 organizations, the median total cost of the order materials and services process is 55 US dollars per order.1 For a small store with a lean process the figure is lower, for an importer with quality inspection and customs handling it is considerably higher. Measure your own before using a benchmark.
Holding cost: absolute amount or percentage?
Two definitions of H circulate side by side, and they are the same thing expressed differently. Mixing them up is a frequent source of wrong results.
- Absolute version: H = holding cost in currency per unit and year
- Percentage version: H = C × I, with C as the purchase price per unit and I as the annual holding cost rate
Both versions are in common use, and both produce identical results as long as you convert consistently. A unit costing 18 dollars at a holding cost rate of 22 percent has an H of 3.96 dollars. What you must not do is put a percentage into a formula that expects an absolute amount, which turns a holding cost of 22 percent into 22 cents and inflates the order quantity by a factor of about four.
How to derive a realistic holding cost rate
The holding cost rate is not a single number you look up, it is a sum of five components. Capital cost is the largest and the easiest to anchor: the US bank prime loan rate stood at 7.00 percent in November 2026, which is a defensible floor for the cost of capital tied up in stock.2 On top of that come storage and handling, insurance, shrinkage, and the expected markdown rate.
The last component is the one most calculations omit and the one that dominates in fashion, electronics, and anything with a shelf life. If you expect to clear ten percent of a category at half price, that alone adds five percentage points to the rate. Whatever total you arrive at, treat it as a lower bound for stable, non-perishable goods and expect a clearly higher rate for seasonal assortments.
A worked example for an online store
The following product sells 12,000 units per year at a purchase price of 18 dollars. Ordering costs 55 dollars per purchase order, and the holding cost rate is 22 percent, so H equals 18 times 0.22, which is 3.96 dollars per unit and year.
- EOQ = √(2 × 12,000 × 55 ÷ 3.96) = √333,333 = 577 units
- Orders per year: 12,000 ÷ 577 = about 21, so roughly one order every 17 days
- Ordering costs per year: (12,000 ÷ 577) × 55 = 1,144 dollars
- Holding costs per year: (577 ÷ 2) × 3.96 = 1,142 dollars
- Relevant total costs: about 2,286 dollars per year
Note that both cost blocks come out nearly identical. That is not a coincidence, it is the defining property of the optimum and a useful way to sanity check any EOQ result. If your two blocks differ by a factor of three, the calculation contains an error.
Why the result is more robust than it looks
The total cost curve around the economic order quantity is very flat, which means moderate errors in the input data barely affect the outcome. This is the strongest practical argument for running the calculation even when your holding cost rate is an estimate.
Take the example above. Ordering 400 units instead of 577 raises relevant costs to 2,442 dollars, an increase of 6.8 percent for an order quantity that is 31 percent too low. Ordering 800 units raises them to 2,409 dollars, an increase of 5.4 percent for a quantity 39 percent too high. The formula is a square root, so errors in the inputs are dampened rather than amplified.
Two conclusions follow. First, do not delay the calculation until your cost data is perfect, because an approximate EOQ is far better than none. Second, do not fine tune. Rounding the result to a practical packaging or pallet quantity costs almost nothing and saves handling effort.
EOQ and MOQ: when the supplier sets the minimum
The minimum order quantity is the smallest amount a supplier will ship, and where it exceeds the economic order quantity, the minimum decides. This is the most frequent real world case and the one that standard explanations skip entirely.
What a minimum order quantity actually costs
The calculation does not become useless in that situation, its purpose changes. Instead of setting the order size, it quantifies the penalty. Continuing the example, assume the supplier requires 1,000 units per order rather than the optimal 577.
- Ordering costs: (12,000 ÷ 1,000) × 55 = 660 dollars
- Holding costs: (1,000 ÷ 2) × 3.96 = 1,980 dollars
- Relevant total costs: 2,640 dollars, or 354 dollars more per year than the optimum
That figure of 354 dollars is what the minimum order quantity costs you annually for this one product. It is also the number to take into a supplier conversation, because a concrete cost is a stronger argument than a request for flexibility. Run it across your assortment and it tells you which supplier relationships are worth renegotiating.
Rounding to packaging units
A second constraint works in the same direction. Goods arrive in cartons, layers, and pallets, and ordering 577 units when the carton holds 48 means ordering 12 cartons, so 576 units. That rounding is free given the flat cost curve. Rounding from 577 to a full pallet of 960, on the other hand, is a real decision and should be checked against the cost calculation above rather than made for convenience.
Volume discounts: how to calculate them properly
A volume discount changes the purchase price, and since holding cost is derived from that price, it changes both sides of the equation at once. The correct method is not to adjust the formula but to compare total costs at the economic order quantity against total costs at each discount threshold.
Suppose the supplier offers three percent off at 1,000 units. The unit price drops from 18.00 to 17.46 dollars, so H falls to 3.84 dollars.
- Goods savings: 0.54 dollars × 12,000 units = 6,480 dollars per year
- Additional ordering and holding costs at 1,000 units: 660 + 1,920 = 2,580 dollars, against 2,286 at the optimum, so 294 dollars more
- Net benefit: about 6,186 dollars per year
The ratio here is typical. A discount of a few percent on the goods value often outweighs the additional holding cost, because the discount applies to the full annual volume while the extra holding cost applies only to the additional average stock. The reflex to reject a discount because it means more inventory is usually wrong, and it is worth checking against your price calculation which thresholds are within reach.
Two limits apply. The savings must be real, so a discount that pushes you into goods you later mark down is not a saving. And the capital has to be available, which is the subject of the next section.
Where EOQ breaks in e-commerce
The EOQ model assumes constant demand, constant costs, unlimited capital, and immediate delivery. An online store violates all four, and four effects in particular distort the result enough to matter.
Ordering costs are a step function
The formula treats S as a constant, but for anyone importing goods it is a staircase. Below a certain volume you pay for less than container load shipping, then a twenty foot container becomes cheaper per unit, then a forty foot container. Freight cost per unit drops sharply at each threshold and stays flat in between.
In that situation the optimal order quantity is frequently the container rather than the formula result. The practical approach is to calculate EOQ first, identify which freight tier it falls into, and then compare total costs at the tier boundaries the same way you would compare discount thresholds.
Marketplace storage fees make holding cost seasonal
If your stock sits in a marketplace fulfillment center, H is not an annual constant. Storage fees typically rise in the fourth quarter, aged inventory surcharges apply progressively, and capacity limits can cap the order quantity regardless of what the formula says.
Two adjustments follow. Calculate with a higher holding cost rate for the peak months, and time the inbound so that goods do not enter the expensive window earlier than necessary. A larger order that arrives in September and is stored until December can easily cost more than two smaller orders.
Working capital is shared across the assortment
EOQ optimizes each product in isolation and implicitly assumes unlimited funds. In reality one purchasing budget covers the whole assortment, so ordering the optimal quantity of every item at once is not possible.
Where the budget binds, priority should follow contribution rather than order size. Products with high margin and high inventory turnover earn their capital back fastest and deserve the full quantity, slow movers get the minimum. A related effect works in your favor: several products ordered from the same supplier share the ordering cost S, so calculating EOQ per item in isolation systematically understates the sensible batch size for a joint order.
Seasonality and product life cycle
Annual demand as a single number assumes the year is flat. For a seasonal assortment it is not, and using last year’s total for next year’s ordering compounds the error. Calculate EOQ on forward looking demand for the next twelve months, and for strongly seasonal items calculate separately per season.
For products at the start or the end of their life cycle, the model is simply the wrong tool. A launch has no demand history, and a phase-out should be ordered down to zero rather than optimized. Returns add a further distortion, because a portion of shipped units comes back and reenters stock, so demand for ordering purposes should be net of returns rather than gross. Effective return management reduces that gap.
How to use EOQ in practice
The economic order quantity works best as a tuning instrument for an existing purchasing process, not as the starting point of one. The following sequence puts it in the right place.
- Measure your ordering cost and holding cost rate once, properly. Both are used across the entire assortment, so an hour spent on them pays off everywhere. Include the expected markdown rate in the holding cost, otherwise the result is systematically too high.
- Calculate EOQ for your top items first. A small share of products accounts for most of the purchasing volume, and that is where the money is. Long tail items can run on fixed order quantities.
- Check the result against the real constraints. Minimum order quantity, packaging units, freight tiers, shelf life, and available capital. Whichever binds first determines the actual quantity.
- Compare discount thresholds explicitly. Total cost at the optimum against total cost at each threshold, including the changed holding cost. Do not decide by feel.
- Combine it with reorder point and safety stock. The three figures form one replenishment rule. Reviewing them together quarterly is more valuable than recalculating any one of them monthly.
- Do not let purchasing optimization substitute for demand work. A perfectly sized order still ties up capital if the products do not sell. Where visitors reach the product page and leave without buying, the fix is on the demand side, which is where uptain (uptain.de/en), a software for data-driven e-commerce marketing and shopping cart abandonment reduction, works: exit intent popups and abandoned cart emails convert existing traffic instead of adding more stock.
Do you already know our plugin?
uptain prevents cart abandonment and increases the conversion rate and repeat purchase rate. No risk with performance-based commission.
Frequently asked questions about the economic order quantity
How do I calculate the EOQ?
Multiply annual demand by the cost per order, double the result, divide it by the holding cost per unit and year, and take the square root. If your holding cost is a percentage, multiply it by the purchase price first to convert it into an absolute amount per unit.
Is EOQ still relevant today?
Yes, as a tuning tool rather than as a rule. Its assumptions of constant demand and constant costs rarely hold, but the underlying trade-off between ordering and holding costs is unchanged. Used to check existing order quantities and to quantify supplier minimums, it remains useful.
What is EOQ vs MOQ?
EOQ is the quantity that is cheapest for you, MOQ is the smallest quantity your supplier will ship. Where the minimum exceeds the economic quantity, the minimum applies. The calculation then serves to quantify what that constraint costs per year, which is a concrete argument in supplier negotiations.
What is an example of economic order quantity?
At an annual demand of 12,000 units, ordering costs of 55 dollars per order, and holding costs of 3.96 dollars per unit and year, the economic order quantity is 577 units. That corresponds to about 21 orders per year and relevant total costs of roughly 2,286 dollars.
Conclusion
The economic order quantity is quick to calculate, and the flat shape of its cost curve means an approximate answer is worth far more than no answer. The two things that actually decide its usefulness are a properly derived holding cost rate, including expected markdowns, and the discipline to check the result against minimum order quantities, packaging units, freight tiers, and available capital.
Used that way, EOQ stops being a textbook formula and becomes a negotiation and prioritization tool. It tells you what a supplier constraint costs, whether a discount is worth taking, and where your purchasing capital earns the most. Combined with a reorder point and a safety stock figure, it completes the replenishment rule for a product.
Orders that exceed what demand can absorb are also how obsolete inventory builds up.
Sources
1 APQC: Total cost to perform the process order materials and services per purchase order, Open Standards Benchmarking, https://www.apqc.org/resources/benchmarking/open-standards-benchmarking/measures/total-cost-perform-process-order-1 (last accessed: 11/26/2026)
2 Board of Governors of the Federal Reserve System: Bank Prime Loan Rate, H.15, observation of November 23, 2026, https://fred.stlouisfed.org/series/DPRIME (last accessed: 11/26/2026)
-
Safety Stock Formula: How to Calculate It
Four safety stock formulas produce four very different numbers for the same product. This guide shows which formula fits which situation, how service level and Z-score drive the result, how minimum and maximum stock levels relate to safety stock, and where the standard math fails in e-commerce.
-
Reorder Point Formula: How to Calculate It
The reorder point decides when to place an order. This guide covers both formula variants and proves they are the same equation, works through a realistic example, and explains why comparing the reorder point against physical stock instead of inventory position causes double ordering.
-
How to Calculate Your Inventory Turnover Ratio
The inventory turnover ratio shows how often you sell and replace your stock. This guide explains the standard COGS formula, why a sales-based calculation gives you a very different number, what benchmarks apply to online retail, and which levers actually move the ratio in an e-commerce operation.