Abstract. Two Earth-directed coronal mass ejections (CMEs), which were most e ective in energetic ($1± 50 MeV) particle acceleration during the ®rst 18 months since the Solar and Heliospheric Observatory (SOHO) launch, occurred on April 7 and May 12, 1997. In the analysis of these events we have deconvoluted the injection spectrum of energetic protons by using the method described by Anttila et al. In order to apply the method developed earlier for data of a rotating satellite (Geostationary Operational Environmental Satellites, GOES), we ®rst had to develop a method to calculate the omnidirectional energetic particle intensities from the observations of Energetic and Relativistic Nuclei and Electrons (ERNE), which is an energetic particle detector onboard the three-axis stabilized SOHO spacecraft. The omnidirectional intensities are calculated by ®tting an exponential pitch angle distribution from directional information of energetic protons observed by ERNE. The results of the analysis show that, compared to a much faster and more intensive CMEs observed during the previous solar maximum, the acceleration e ciency decreases fast when the shock propagates outward from the Sun. The particles injected at distances <0.5 AU from the Sun dominate the particle¯ux during the whole period, when the shock propagates to the site of the spacecraft. The main portion of particles injected by the shock during its propagation further outward from the Sun are trapped around the shock, and are seen as an intensity increase at the time of the shock passage.