This paper aims to study the bearing capacity of a shallow foundation on rock mass, considering the most usual bridge footing width and adopting a Hoek–Brown material. The dimension of the foundation has been shown to be very significant in soils with linear failure criteria (Mohr–Coulomb envelope), and its study is necessary in the case of non-linear failure criteria, typical of rock masses. Analytical solutions do not allow incorporating this effect. A parametric study by a finite difference method was carried out, studying a wide variety of rock mass through sensitivity analysis of three geotechnical parameters: geological origin of the rock mass (mi), uniaxial compressive strength, and geological strength index. The results obtained by the numerical solution for the Hoek–Brown failure criterion were compared with the analytical results by adopting the classical hypotheses of plane strain conditions, associated flow rule, and weightless rock mass. The variation of the numerical bearing capacity due to the consideration of the self-weight of the rock mass was also analyzed since its influence is conditioned by the volume of ground mobilized and therefore by the width of the foundation. Considering the similarities observed between the numerical and analytical results, a correlation factor function of the self-weight is proposed. It can be used in conjunction with the analytical method, to estimate in a semi-analytical way the bearing capacity of a bridge foundation.