<p><strong>Abstract.</strong> We calculate the variation of spectral solar irradiance in the umbral shadow of the total solar eclipse of August 21, 2017 and compare it to observations. Starting from the sun's and moon's positions, we derive a realistic profile of the lunar shadow at the top of the atmosphere, including the effect of solar limb darkening. Subsequently, the Monte-Carlo model MYSTIC is used to simulate the transfer of solar radiation through the earth's atmosphere. Among the effects taken into account are the atmospheric state (pressure, temperature), concentrations of major gas constituents and the curvature of the earth, as well as the reflectance and elevation of the surrounding area. We apply the model to the total solar eclipse on August 21, 2017 at a position located in Oregon, where irradiance observations were performed for wavelengths between 306&#8201;nm and 1020&#8201;nm. The influence of the surface reflectance, the ozone profile and mountains surrounding the observer is investigated. An increased sensitivity during totality is found for the reflectance and topography, compared to non-eclipse conditions. During the eclipse, the irradiance at the surface does not only depend on the total ozone column (TOC) but also the vertical ozone distribution, which in general complicates derivations of the TOC from spectral surface irradiance. The findings are related to an analysis of the prevailing photon path and its difference compared to non-eclipse conditions. Using the most realistic estimate for each parameter, the model is compared to the irradiance observations. During totality, the relative difference between model and observations is less than 10&#8201;% in the spectral range from 400&#8201;nm to 1020&#8201;nm. Slightly larger deviations occur in the ultraviolet range below 400&#8201;nm and at 665&#8201;nm.</p>