The weight function method is applied to solving three-dimensional linear elastic fracture mechanics (LEFM) problems. Within the framework of the present approach the fundamental equations of LEFM are satisfied and the minimum of additional assumptions are used.The crack opening displacement field and stress intensity factors for a semi-elliptical surface crack in the nonuniform stress fields are obtained. Comparison of the calculated results with the numerical data from the literature confirms the efficiency of the proposed method for the solution of three-dimensional crack problems.