Abstract. Solar coronal mass ejections can accelerate charged particles, mostly protons, to high energies, causing solar proton events (SPEs). Such energetic particles can precipitate upon the Earth's atmosphere, mostly in polar regions because of geomagnetic shielding. Here, SPE-induced chlorine activation due to ion chemistry can occur, and the activated chlorine depletes ozone in the polar middle atmosphere. We use the state-of-the-art 1D stacked-box Exoplanetary Terrestrial Ion Chemistry (ExoTIC) model of atmospheric ion and neutral composition to investigate such events in the Northern Hemisphere (NH). The Halloween SPE that occurred in late October 2003 is used as a test field for our study. This event has been extensively studied before using different 3D models and satellite observations. Our main purpose is to use such a large event that has been recorded by the Michelson Interferometer for Passive Atmospheric Sounding (MIPAS) on the Environmental Satellite (ENVISAT) to evaluate the performance of the ion chemistry model. Sensitivity tests were carried out for different model settings with a focus on the chlorine species of HOCl and ClONO2 as well as O3 and reactive nitrogen, NOy. The model simulations were performed in the Northern Hemisphere at a high latitude of 67.5∘ N, inside the polar cap. Comparison of the simulated effects against MIPAS observations for the Halloween SPE revealed rather good temporal agreement, also in terms of altitude range for HOCl, O3 and NOy. For ClONO2, good agreement was found in terms of altitude range. The model showed ClONO2 enhancements after the peak of the event. The best model setting was the one with full ion chemistry where O(1D) was set to photo-chemical equilibrium. HOCl and ozone changes are very well reproduced by the model, especially for nighttime. HOCl was found to be the main active chlorine species under nighttime conditions, resulting in an increase of more than 0.2 ppbv. Further, ClONO2 enhancements of 0.2–0.3 ppbv have been observed during both daytime and nighttime. Model settings that compared best with MIPAS observations were applied to an extreme solar event that occurred in AD 775, presumably once in a 1000-year event. With the model applied to this scenario, an assessment can be made about what is to be expected at worst for the effects of a SPE on the middle atmosphere, concentrating on the effects of ion chemistry compared to crude parameterizations. Here, a systematic analysis comparing the impact of the Halloween SPE and the extreme event on the Earth's middle atmosphere is presented. As seen from the model simulations, both events were able to perturb the polar stratosphere and mesosphere with a high production of NOy and HOx. Longer-lasting and stronger stratospheric ozone loss was seen for the extreme event. A qualitative difference between the two events and a long-lasting impact on HOCl and HCl for the extreme event were found. Chlorine ion chemistry contributed to stratospheric ozone losses of 2.4 % for daytime and 10 % for nighttime during the Halloween SPE, as seen with time-dependent ionization rates applied to the model. Furthermore, while comparing the Halloween SPE and the extreme scenario, with ionization rate profiles applied just for the event day, the inclusion of chlorine ion chemistry added ozone losses of 10 % and 20 % respectively.