A computer-implemented method for calculating or optimizing a spectacle lens for at least one eye of a spectacle wearer. Refraction data of the at least one eye of the spectacle wearer is collected. An individual eye model is defined, wherein the eye model defines at least the topography of a corneal front surface of the at least one eye, position and power of a lens of the eye, and a retina position of the eye such that the eye exhibits the collected refraction data. A first surface and a second surface for the spectacle lens to be calculated or optimized is specified. The path of a main ray through at least one visual point of at least one spectacle lens surface to be calculated or optimized is determined. A spherical wavefront incident on the first surface of the spectacle lens along the main ray is specified. A wavefront in the at least one eye, which results from the spherical wavefront in a surrounding of the main ray due to the power of at least the first and second surfaces of the spectacle lens, the corneal front surface, and the lens of the at least one eye is determined. The at least one spectacle lens surface to be calculated or optimized is iteratively varied until an aberration of the resulting wavefront corresponds to a specified target aberration.