In masonry buildings without a box-type behaviour and subjected to seismic loadings, in-plane and out-of-plane failure mechanisms can take place where frictional resistances might play a predominant role. In this paper a detailed limit analysis of a simple out-of-plane failure mechanism is developed according to static force-based and displacement-based approaches. The main goal is to point out the great importance of the stabilizing role of friction between interlocked walls compared to other extrinsic or intrinsic loading capacities, e.g. the effect of tie-rods and simply supported horizontal diaphragms with frictional resistance. The sensitivity of the load multiplier to these strength parameters is investigated both at the onset of the rocking mechanism and after the hinge formation and a parametric analysis is carried out for the first condition. The results are obtained with reference to different combinations of loading conditions, including the detrimental effect of the static thrust of masonry vaults. Comparative results and pushover curves are developed to evaluate the loading and displacement capacities for each case analyzed and some experimental work is presented to validate the analytical results.