We develop a general-equilibrium model of inventories with explicit micro-foundations by embedding the production-cost-smoothing motive (e.g., Eichenbaum, AER 1989) into an otherwise standard DSGE model. We show that firms facing idiosyncratic cost shocks have incentives to bunch production and...