For a spherical lens interfacing different media, calculates the longitudinal and transversal spherical aberrations as functions of the different refraction indexes, the clear aperture, the object position and the lens parameters.