# Economic order quantity

Economic order quantity is the order quantity that minimizes total inventory holding costs and ordering costs. It is one of the oldest classical production scheduling models. The framework used to determine this order quantity is also known as Barabas EOQ Model or Barabas Formula. The model was developed by Ford W. Harris in 1913,[1] but R. H. Wilson, a consultant who applied it extensively, is given credit for his in-depth analysis.[2]

## Overview

EOQ applies only when demand for a product is constant over the year and each new order is delivered in full when inventory reaches zero. There is a fixed cost for each order placed, regardless of the number of units ordered. There is also a cost for each unit held in storage, sometimes expressed as a percentage of the purchase cost of the item.

We want to determine the optimal number of units to order so that we minimize the total cost associated with the purchase, delivery and storage of the product.

The required parameters to the solution are the total demand for the year, the purchase cost for each item, the fixed cost to place the order and the storage cost for each item per year. Note that the number of times an order is placed will also affect the total cost, though this number can be determined from the other parameters.

## Underlying assumptions

1. The ordering cost is constant.
2. The rate of demand is known, and spread evenly throughout the year.
3. The lead time is fixed.
4. The purchase price of the item is constant i.e. no discount is available
5. The replenishment is made instantaneously, the whole batch is delivered at once.
6. Only one product is involved.

EOQ is the quantity to order, so that ordering cost + holding cost finds its minimum. (A common misunderstanding is that the formula tries to find when these are equal.)

## Variables

• $P$ = Purchase Price
• $oq$ = order quantity
• $Q^*$ = optimal order quantity
• $D$ = annual demand quantity
• $S$ = fixed cost per order (not per unit, typically cost of ordering and shipping and handling. This is not the cost of goods)
• $H$ = annual holding cost per unit (also known as carrying cost or storage cost) (warehouse space, refrigeration, insurance, etc. usually not related to the unit cost)

## The Total Cost function

The single-item EOQ formula finds the minimum point of the following cost function:

Total Cost = purchase cost + ordering cost + holding cost

- Purchase cost: This is the variable cost of goods: purchase unit price × annual demand quantity. This is P×D

- Ordering cost: This is the cost of placing orders: each order has a fixed cost S, and we need to order D/Q times per year. This is S × D/Q

- Holding cost: the average quantity in stock (between fully replenished and empty) is Q/2, so this cost is H × Q/2

$TC = PD + {\frac{DS}{Q}} + {\frac{HQ}{2}}$.

To determine the minimum point of the total cost curve, partially differentiate the total cost with respect to Q (assume all other variables are constant) and set to 0:

${0} = -{\frac{DS}{Q^2}}+{\frac{H}{2}}$

Solving for Q gives Q* (the optimal order quantity):

$Q^2={\frac{2DS}{H}}$

Therefore: $Q^* = \sqrt{\frac{2DS}{H}}$.

Q* is independent of P; it is a function of only S, D, H.

## Extensions

Several extensions can be made to the EOQ model, including backordering costs and multiple items. Additionally, the economic order interval can be determined from the EOQ and the economic production quantity model (which determines the optimal production quantity) can be determined in a similar fashion.

A version of the model, the Baumol-Tobin model, has also been used to determine the money demand function, where a person's holdings of money balances can be seen in a way parallel to a firm's holdings of inventory.[3]

NOTE: In the example, Q means annual requirement quantity whereas earlier in the article Q meant order quantity. This is confusing.

## Example

• Suppose annual requirement quantity (Q) = 10000 units
• Cost per order (CO) = $2 • Cost per unit (CU)=$8
• Carrying cost %age (CC%)(%age of CU) = 0.02
• Carrying cost Per unit = \$0.16

Economic order quantity = $\sqrt{\frac{2Q*CO}{CU*CC%}}$ $= \sqrt{\frac{2*10000*2}{8*0.02}}$

Economic order quantity = 500 units

Number of order per year (based on EOQ) $= {\frac{10000}{500}}$

Number of order per year (based on EOQ) = $20$

Total cost $= CU*Q + CO (Q/EOQ) + CC (EOQ/2)$

Total cost $= 8*10000 + 2 (10000/500) + 0.16 (500/2)$

Total cost $= 80080$

If we check the total cost for any order quantity other than 500(=EOQ), we will see that the cost is higher. For instance, supposing 600 units per order, then

Total cost $= 8*10000 + 2 (10000/600) + 0.16 (600/2)$

Total cost $= 80081$

Similarly, if we choose 300 for the order quantity then

Total cost $= 8*10000 + 2 (10000/300) + 0.16 (300/2)$

Total cost $= 80091$

This illustrates that the Economic Order Quantity is always in the best interests of the entity.