Abstract Composite foundations have been widely used and promoted in practical engineering applications. However, research on the joint-bearing mechanism of piles and soil within composite foundations is still not comprehensive enough. This paper proposes a method for calculating the additional internal forces of piles and soil within composite foundations. Based on a three-dimensional finite element analysis, this study investigates the variation patterns of the stress, displacement, and additional internal forces of piles and soil in the depth direction under the action of upper loads when using friction piles and end-bearing piles. This research aims to reveal the bearing performance of piles and soil. The results showed that, under the same conditions and due to the presence of end-bearing effects, the internal forces experienced by the entire pile body of the end-bearing piles were more uniform, exhibiting significant advantages in resisting deformation and being able to withstand larger loads. Additionally, the diffusion mechanism of the vertical forces, stresses, and displacements of piles and soil is discussed. Due to the negative frictional resistance of soil and the influence of pile end-bearing effects, the distribution of internal forces and the displacements of piles and soil exhibited different characteristics. This study provides a scientific reference for the theoretical analysis and design of composite foundations. Keywords: composite foundation; friction pile; end-bearing friction pile; finite element; bearing characteristics