Economic order quantity

Also known as: EOQ

On this page 8

Economic order quantity (EOQ) is the order size that minimizes total annual inventory cost, balancing the cost of placing replenishment orders against the cost of holding stock. In e-commerce inventory planning, EOQ tells a merchant how many units to buy each time a product is replenished, so that the business neither pays for constant small purchase orders nor ties up cash and warehouse space in excess stock.

The model dates back to Ford W. Harris in 1913 and remains one of the most widely taught tools in inventory management. Its value for online retailers lies less in its precision than in the discipline it imposes: it forces a planner to quantify ordering and carrying costs explicitly instead of ordering by habit or supplier suggestion.

How the EOQ formula balances two opposing costs

EOQ works by finding the point where annual ordering cost equals annual holding cost. Larger orders mean fewer purchase orders per year, so ordering cost falls, but average stock rises, so carrying cost grows. Smaller orders reverse the effect. The sum of both curves has a single minimum, and that minimum is the economic order quantity.

The classic formula is EOQ = sqrt(2DS / H), where D is annual demand in units, S is the fixed cost per order and H is the annual holding cost per unit. Holding cost is often expressed as a percentage of unit cost, typically 20-30% per year for consumer goods, which covers capital, storage, insurance, obsolescence and shrinkage.

The table below lists the inputs of the basic model and what drives each one in an online store.

InputSymbolTypical components in e-commerceEffect of an increase on EOQ
Annual demandDForecast unit sales across all channelsEOQ rises with the square root
Ordering costSPurchase order processing, freight minimums, receiving labor, inspectionEOQ rises
Holding costHCost of capital, 3PL storage fees, insurance, obsolescenceEOQ falls
Unit costCSupplier price per unitEOQ falls when H is set as a percentage of C
Inputs of the basic EOQ model

Because demand sits under a square root, doubling demand raises EOQ by only about 41%. This explains why fast-growing stores often find their order sizes grow more slowly than their sales, and why order frequency rises with volume.

Assumptions behind the model and where they break

The basic EOQ model rests on strict simplifying assumptions that rarely hold exactly in online retail. Knowing which assumption fails tells a planner which adjustment to make.

AssumptionE-commerce realityPractical consequence
Constant, known demandSeasonal peaks, promotions, viral spikesRecalculate EOQ per season or use forecasts
Fixed ordering costTiered freight and container ratesRound EOQ to pallet or carton multiples
Constant unit priceQuantity discounts from suppliersCompare total cost at each price break
Instant, complete deliveryVariable lead time, partial shipmentsAdd safety stock and a reorder point
No stockouts allowedBackorders sometimes acceptedUse the planned backorder variant
Single independent itemShared container space and supplier minimumsCoordinate orders across SKUs
EOQ assumptions compared with typical e-commerce reality

Despite these gaps, the total cost curve is flat near its minimum. Ordering 20% more or less than the calculated EOQ typically raises total ordering and holding cost by only about 2%. This robustness is the main reason the model survives in practice: approximate inputs still produce a sensible order size.

Extended EOQ variants

Several extensions of the basic model relax individual assumptions while keeping the same cost-balancing logic. Choosing the right variant depends on how the supplier prices goods and how the store tolerates shortages.

VariantWhat it addsWhen to use it
Quantity discount EOQEvaluates total cost including purchase price at each price breakSupplier offers lower unit prices for larger orders
Economic production quantityStock arrives gradually during a production runPrivate-label goods made in-house or by a dedicated plant
Planned backorder modelAllows deliberate shortages at a backorder costPre-orders or made-to-order items where customers accept waiting
Multi-item joint replenishmentShares one ordering cost across several SKUsMany products bought from the same supplier in one shipment
Common EOQ variants and when they apply

For marketplaces and online stores importing by sea, joint replenishment is often the most realistic variant, because the dominant fixed cost is the container shipment, not the individual product line.

EOQ answers how much to order, while neighboring concepts answer when to order and how much buffer to keep. Confusing them is a frequent source of planning errors.

ConceptQuestion it answersRelationship to EOQ
Reorder pointWhen should the next order be placedTriggers an order of EOQ size
Safety stockHow much buffer covers demand and lead time variabilityAdded on top of cycle stock, independent of EOQ
Just-in-time inventoryCan stock be minimized by frequent small deliveriesReduces ordering cost so EOQ becomes small
Inventory turnoverHow often stock is sold and replacedSmaller EOQ generally raises turnover
ABC analysisWhich items deserve the most controlPrioritizes where EOQ precision matters
How EOQ relates to neighboring inventory terms

Average cycle stock under EOQ equals half the order quantity, so total average inventory is approximately EOQ divided by two plus safety stock. This identity links the order size directly to warehouse space and working capital.

Applying EOQ in an online store

Applying EOQ well starts with realistic cost inputs, not with the formula. Many merchants underestimate holding cost because they count only storage fees and ignore the cost of capital and obsolescence risk for trend-driven products.

  1. Estimate annual demand per SKU from sales history and the demand forecast.
  2. Calculate the true cost per purchase order, including freight minimums and receiving labor.
  3. Set holding cost as a percentage of unit cost that reflects capital, storage and markdown risk.
  4. Compute EOQ, then round to carton, pallet or minimum order quantities.
  5. Check the result against shelf life, cash budget and warehouse capacity before ordering.

Inventory software and warehouse management systems often compute EOQ automatically, but the output is only as good as the cost parameters entered. Reviewing those parameters at least annually, and after any change in freight or storage contracts, keeps the recommendation meaningful.

Limitations and common mistakes

The most serious mistake is applying EOQ to products with short life cycles or volatile demand, such as fashion or seasonal items, where unsold units become dead stock long before the holding-cost assumptions catch up. Other frequent errors include:

  • Treating supplier minimum order quantities as irrelevant instead of as hard constraints.
  • Ignoring quantity discounts, which can justify orders well above the basic EOQ.
  • Using one EOQ for the whole year despite strong seasonality.
  • Forgetting that EOQ excludes safety stock, which leads to recurring stockouts.

The short version

Every time a shop orders more stock, it pays a fixed amount per order for the paperwork, shipping and unpacking. Every unit sitting on a shelf also costs money, because it uses space and ties up cash. Economic order quantity finds the order size where these two costs together are as low as possible.

Think of grocery shopping. Going to the store every day wastes time, while buying a whole year of food at once fills the house and some of it spoils. EOQ is the sensible middle amount for each trip, worked out with numbers instead of guesswork.

Where it makes a difference

An online store selling stainless steel water bottles expects to sell 6,000 units per year. Each purchase order costs about 150 dollars once processing, inbound freight minimums and receiving labor are counted. A bottle costs 8 dollars, and the store estimates holding cost at 25% of unit cost per year, or 2 dollars per unit.

The formula gives sqrt(2 x 6,000 x 150 / 2), or roughly 949 units per order. The supplier ships in cartons of 48, so the planner rounds to 960 units, about six orders per year. Previously the store ordered 3,000 units twice a year. The new policy cuts average cycle stock from 1,500 to 480 units and lowers combined ordering and holding cost by roughly 40%, freeing several thousand dollars of working capital for other products.