We study an axially symmetric frictionless contact problem between a nonhomogeneous elastic half-space and a rigid base that has a small axisymmetric surface recess. We reduce the problem to solving Fredholm integral equations, solve these equations numerically, and establish a relationship between the applied pressure and the gap radius. We find and graph the effects of nonhomogeneity on the normal pressure, critical pressure and on the surface displacement.