The study of the seismic vulnerability of masonry buildings requires structural properties of walls such as stiffness, ultimate load capacity, etc. In this article, a method is suggested for modeling the masonry walls under in-plane loading. At the outset, a set of analytical equations was established for determining the elastic properties of an equivalent homogeneous material of masonry. The results for homogenized unreinforced brick walls through detailed modeling were compared in different manners such as solid and perforated walls, in-plane and out-of-plane loading, etc, and it was found that this method provides suitable accuracy in estimation of the wall linear properties. Furthermore, comparison of the results of proposed modeling with experimental out coming indicated that this model considers the non linear properties of the wall such as failure pattern, performance curve and ultimate strength, and would be appropriate to establish a parametric study on those prone factors. The proposed model is complicated; therefore, efforts need to be made in order to overcome the convergency problems which will be included in this study. The nonlinear model is basically semi-macro but through a series of actions, it can be simplified to a macro model.