Spatial porosity modeling is vital in static modeling, as variations in both lateral and vertical dimensions significantly influence reservoir quality and volumetric calculations. This study focuses on the spatial modeling of effective porosity in the mixed siliciclastic and carbonate Kazhdumi reservoir within a section of the Abadan Plain. Despite numerous studies on porosity distribution, a suitable model for the studied area has yet to be established. Here, electrofacies analysis is employed to distribute porosity more accurately. Petrophysical logs, including porosity and mineral volumes from eight drilled wells in the Abadan Plain, were analyzed. Electrofacies analysis revealed high porosity in sandy siliciclastic intervals, contrasting with shaly facies that exhibit poor reservoir characteristics. Additionally, two calcareous facies were identified. Data analysis linked porosity to facies codes, ensuring a better match between porosity and relevant facies distributions. The constructed porosity model of the Kazhdumi Formation is a significant outcome of this study. On average, carbonate intervals exhibit 6% porosity, while sandy intervals exhibit 8%. Notably, the northern and western parts of the studied area display increased porosity, reaching up to 9%. Siliciclastic intervals generally exhibit higher reservoir quality compared to carbonate intervals.