The stress intensity factors and the electrical displacement intensity factor for functionally graded piezoelectric materials (FGPMs) are influenced by: (a) the spatial variation of the mechanical property and (b) the electrical and mechanical boundary conditions. In this work, a semi-analytical technique is proposed to study the fracture parameters of FGPMs subjected to far field traction and electrical boundary conditions. A scaled boundary finite element formulation for the analysis of functionally graded piezoelectric materials is developed. The formulation is linearly complete for uncracked polygons and can capture crack tip singularity for cracked polygons. These salient features enable the computation of the fracture parameters directly from their definition. Numerical examples involving cracks in FGPMs show the accuracy and efficiency of the proposed technique. © 2018 Elsevier Ltd