We present a general approximate analytical solution for the normal contact of layered and functionally graded elastic materials for almost axisymmetric contact profiles. The solution only requires knowledge of the corresponding contact solution for indentation using a rigid cylindrical flat punch. It is based on the generalizations of Barber’s maximum normal force principle and Fabrikant’s approximation for the pressure distribution under an arbitrary flat punch in an inhomogeneous case. Executing an asymptotic procedure suggested recently for almost axisymmetric contacts of homogeneous elastic media results in a simple approximate solution to the inhomogeneous problem. The contact of elliptical paraboloids and indentation using a rigid pyramid with a square planform are considered in detail. For these problems, we compare our results to rigorous numerical solutions for a general (bonded or unbonded) single elastic layer based on the boundary element method. All comparisons show the quality and applicability of the suggested approximate solution. Based on our results, any compact axisymmetric or almost axisymmetric contact problem of layered or functionally graded elastic materials can be reduced asymptotically to the problem of indenting the material using a rigid cylindrical flat punch. The procedure can be used for different problems in tribology, e.g., within the framework of indentation testing or as a tool for the analysis of local features on a rough surface.