We study the implications of a stockout constraint in a dynamic general equilibrium model, which can explain both standard business cycle and inventory facts. Under this constraint, inventories and demand are complements in generating sales, and hence the optimal level of inventories increases in expected demand. We show that the inventory to sales ratio is both persistent and countercyclical because the cost of carrying inventories is mainly determined by the interest rate. We use this model to disentangle output and sales, by matching the key inventory moments, and find that preference and productivity shocks are equally important in the data. Finally, we assess whether improvements in inventory management can explain the Great Moderation...