Figure 17.9Porosity in rocks depends on several factors. In sandstones, the extent of cementation and the degree of grain sorting are both important. In shales, porosity is limited due to the small spaces between the tiny grains, but can be enhanced by fracturing.