In most previous studies of sound radiation from railway rails, the rail has been regarded as located in free space, disregarding the influence of the ground. However, in order to predict the noise from the rail more precisely, the effect of the ground should be included in rolling noise predictions. In this study, the rail noise is investigated by means of a wavenumber domain numerical method, including the presence of the ground. For rails attached to a rigid ground or located at a certain distance above it, the influence of the ground is examined in terms of the radiation ratio and longitudinal directivity. From the prediction of radiated power, it is found that the vertical and lateral bending waves of the rail radiate most of the noise for the corresponding direction. Hence, a simplified calculation is proposed that only includes these waves, instead of a full three-dimensional analysis. An absorptive ground is also modelled by applying impedance boundary conditions at the ground surface to investigate the influence of the ground on the rail noise. Finally, for the vertical and lateral bending waves in the rail, the cross-sectional directivity of the noise is predicted for various surface impedances of the ground. It is found that the simplified calculation proposed in this study is valid for the prediction of noise from the rail. Also the presence of the ground and its impedance condition have considerable effects on the level and directivity patterns of the noise radiated from the rail.