Zinc die casting alloys show varying material properties over the thickness in their final solid state, which causes a change in the mechanical response for specimens with different thicknesses. In this article, we propose a modeling concept to account for the varying porosity in the constitutive modeling. The material properties are effectively incorporated by combining a partial differential equation describing the distribution of the pores by a structural parameter with the Mori–Tanaka approach for linear elasticity. The distribution of the porosity is determined by polished cut images, for which the procedure is explained in detail. Finite element simulations of the coupled system incorporating the thickness dependence show the applicability of this approach.