Abstract. A possible impact of an extreme solar particle event (ESPE) on the middle atmosphere is studied for present-day climate and geomagnetic conditions. We consider an ESPE with an occurrence probability of about 1 per millennium. In addition, we assume that the ESPE is followed by an extreme geomagnetic storm (GMS), and we compare the contribution of the two extreme events. The strongest known and best-documented ESPE of 774/5 CE is taken as a reference example and established estimates of the corresponding ionization rates are applied. The ionization rates due to the energetic particle precipitation (EPP) during an extreme GMS are upscaled from analyzed distributions of electron energy spectra of observed GMSs. The consecutive buildup of NOx and HOx by ionization is modeled in the high-top 3D chemistry circulation model KArlsruhe SImulation Model of the middle Atmosphere (KASIMA), using specified dynamics from ERA-Interim analyses up to the stratopause. A specific dynamical situation was chosen that includes an elevated stratosphere event during January and maximizes the vertical coupling between the northern polar mesosphere–lower thermosphere region and the stratosphere; it therefore allows us to estimate a maximum possible impact. The particle event initially produces about 65 Gmol of NOy, with 25 Gmol of excess NOy even after 1 year. The related ozone loss reaches up to 50 % in the upper stratosphere during the first weeks after the event and slowly descends to the mid-stratosphere. After about 1 year, 20 % ozone loss is still observed in the northern stratosphere. The GMS causes strong ozone reduction in the mesosphere but plays only a minor role in the reduction in total ozone. In the Southern Hemisphere (SH), the long-lived NOy in the polar stratosphere, which is produced almost solely by the ESPE, is transported into the Antarctic polar vortex, where it experiences strong denitrification into the troposphere. For this special case, we estimate a NO3 washout that could produce a measurable signal in ice cores. The reduction in total ozone causes an increase of the UV erythema dose of less than 5 %, which maximizes in spring for northern latitudes of 30∘ and in summer for northern latitudes of about 60∘.