AbstractThis paper considers the continuous and discontinuous contact problems of a functionally graded (FG) layer under the effect of gravity. A finite distributed load is applied to the beam from the top and the beam is placed to the top of a rigid foundation. It is assumed that the shear modulus and mass density of the beam vary exponentially whereas Poisson's ratio remains constant. The problem is solved for both continuous and discontinuous cases. In each case, the governing equations and boundary conditions of the problem are reduced to an integral equation by the help of Fourier integral transform. In the continuous contact, the integral equation solved analytically and critical load that causes initial separation between the layer and the rigid foundation, separation distance and contact pressures are investigated for various non‐homogeneity parameters that presents the change in the shear modulus and density and loadings. The singular integral equation in case of discontinuous contact is numerically solved by using corresponding Gauss–Chebyshev quadrature and an iterative scheme. The effect of non‐homogeneity parameters and loading on the separation distance between the layer and the foundation and contact pressures are analyzed. All the results are shown in tables and figures. It is seen that increasing stiffness and decreasing density at the top of the layer reduce maximum pressures but increase separation distances. This study aims to fill the deficiency in the mechanical behavior of the coatings under gravity.