Procurement, inventory, and stockholding strategies are important functions for agricultural commodity processing and trading. This paper's purpose is to develop an optimal inventory strategy for wheat in flour milling by considering the risks in margins and demand. We develop a model that views buffer stocks as real options for future sales. The model was applied to a representative wheat flour mill in the Upper Midwest and used prices for inputs, outputs, margins, and associated distributions and correlations. The base case results indicated that the optimal buffer stocks should be 20% more than expected demand in the base case, and vary in a logical way with changes in demand, market carry, and stockout penalties. Implications from these results illustrate that stockholding is an important element of agricultural processing. This approach indicates that managers should strategically manage inventory positions and purchases that result in buffer stocks. [EconLit citations: C6, L1, L7, L9, Q12, Q14]