Computer-implemented method for calculating or optimizing a spectacle lens for at least one eye of a spectacle wearer comprising the steps: - presetting an object distance model A 1( x, y), which assigns an object distance to each viewing point of a plurality of viewing points of the spectacle lens, where A 1 denotes the object distance and ( x, y) denotes the respective viewing point of the spectacle lens in a predetermined or prescribable viewing direction; - - prescribing a function r 0 = g ( A 1) which describes the dependence of a pupil size r 0 on the object distance A 1; - acquisition of refraction data of the at least one eye of the spectacle wearer; - determination of an individual eye model, which at least - the topography of a corneal anterior surface of the at least one eye, position and effect of a lens of the eye, and a retinal position ( L A) of the eye such that the eye has the detected refraction data; - presetting a first surface and a second surface for the eyeglass lens to be calculated and optimized, respectively; - determining the path of a respective principal ray through each viewing point (i) of the optimizing spectacle lens to be calculated; - determining a pupil size for the respective main beam on the basis of the object distance model A 1( x, y) and the predetermined function r 0 = g ( A 1); - presetting a spherical wavefront ( w 0) impinging on the first surface of the spectacle lens along the respective main beam, the curvature of which wavefront corresponds to the reciprocal value of the respective object distance according to the object distance model; - determining a wavefront ( w e) in the at least one eye resulting from the spherical wavefront in a vicinity of the main beam due to the action of at least the first and second surfaces of the spectacle lens, the corneal anterior surface and the lens of the at least one eye, wherein the vicinity of the respective main beam is selected according to the respective determined pupil size; - iteratively varying the at least one area (14; 16) of the spectacle lens to be calculated or optimized until an aberration of the resulting wavefront corresponds to a predetermined desired aberration. - presetting an object distance model A 1( x, y), which assigns an object distance to each viewing point of a plurality of viewing points of the spectacle lens, where A 1 denotes the object distance and ( x, y) denotes the respective viewing point of the spectacle lens in a predetermined or prescribable viewing direction; - - prescribing a function r 0 = g ( A 1) which describes the dependence of a pupil size r 0 on the object distance A 1; - - prescribing a function r 0 = g ( A 1) which describes the dependence of a pupil size r 0 on the object distance A 1; - acquisition of refraction data of the at least one eye of the spectacle wearer; - determination of an individual eye model, which at least - the topography of a corneal anterior surface of the at least one eye, position and effect of a lens of the eye, and a retinal position ( L A) of the eye such that the eye has the detected refraction data; - the topography of a corneal anterior surface of the at least one eye, position and effect of a lens of the eye, and a retinal position ( L A) of the eye position and effect of a lens of the eye, and a retinal position ( L A) of the eye - presetting a first surface and a second surface for the eyeglass lens to be calculated and optimized, respectively; - determining the path of a respective principal ray through each viewing point (i) of the optimizing spectacle lens to be calculated; - determining a pupil size for the respective main beam on the basis of the object distance model A 1( x, y) and the predetermined function r 0 = g ( A 1); - presetting a spherical wavefront ( w 0) impinging on the first surface of the spectacle lens along the respective main beam, the curvature of which wavefront corresponds to the reciprocal value of the respective object distance according to the object distance model; - determining a wavefront ( w e) in the at least one eye resulting from the spherical wavefront in a vicinity of the main beam due to the action of at least the first and second surfaces of the spectacle lens, the corneal anterior surface and the lens of the at least one eye, wherein the vicinity of the respective main beam is selected according to the respective determined pupil size; - iteratively varying the at least one area (14; 16) of the spectacle lens to be calculated or optimized until an aberration of the resulting wavefront corresponds to a predetermined desired aberration.