To calculate the economic order quantity, you will need the following variables: demand rate, setup costs, and holding costs. The formula is: EOQ = square root of: [2(setup costs)(demand rate)] / holding costs.