This paper presents two micromechanical and a multiscale two-dimensional finite element models for the analysis of masonry walls under out-of-plane instability effects. The micromechanical analysis are performed considering elastic beams to model the bricks and either nonlinear beams or interfaces to model the mortar layers. The beam finite elements rely on the force-based formulation and account for large displacements by making use of the corotational approach. This latter is properly formulated and extended to interface elements to include nonlinear geometry effects. The multiscale model is defined by applying a two-scale beam-to-beam homogenization procedure, developed for masonry elements with periodic bricks arrangements. Hence, a Uni...