In this paper, the polynomial which is used to calculate the gradient refractive index profiles of gradient refractive index ball lenses is given, and the gradient refractive index profiles of gradient refractive index ball lenses can be measured using shearing interferometer rapidly, automatically and nondestructively. Comparing the measuring results with the previous reports, we find the gradient refractive index profiles of gradient refractive index ball lenses are precisely measured using the shearing interferometer.