In this paper, the extended finite element method (XFEM) with only Heaviside function is proposed for the elastic–plastic fracture mechanics (EPFM) modeling. The proposed method removes tip enrichment functions depending on the polar coordinates at the crack front, and a step function only determined by the level set function is utilized to track the crack front. To alleviate the volumetric locking phenomena caused by the plastic incompressibility, the B-bar method is incorporated into the three dimensional (3D) XFEM program. Therefore, the fully integration scheme can be chosen to ensure the accuracy when addressing large plastic deformation in EPFM analysis. Additionally, the material tangent stiffness matrix of Ramberg-Osgood constitutive is given, and the local refinement technique using variable-node elements is adopted to reduce the number of elements and nodes for efficient analysis. A Newton-Raphson iterative algorithm is developed to solve the nonlinear algebraic equations caused by material nonlinearity. Several numerical examples including the determination of crack opening displacement, and the fully plastic J integral in the ductile materials are presented to test the performance of the proposed method. Comparisons with the results from the existing methodologies show that the new enrichment scheme can save computational cost and obtain sufficient accuracy even in the case of 3D curved crack.