This paper presents a new mathematical model to solve a facility layout problem in cellular manufacturing systems (CMSs) with stochastic demands. The objective is to minimize the total costs of inter and intra-cell movements in both machine and cell layout problems simultaneously.