The energy dependence of alanine/EPR dosimetry for 8, 12, 18 and 22 MeV clinical electron beams was investigated by experiment and by Monte Carlo simulations. Alanine pellets in a waterproof holder were irradiated in a water phantom using an Elekta Precise linear accelerator. The dose rates at the reference point were determined following the TG-51 protocol using an NACP-02 parallel-plate chamber calibrated in a (60)Co beam. The EPR spectra of irradiated pellets were measured using a Bruker EMX 081 EPR spectrometer. Experimentally, we found no significant change in alanine/EPR response to absorbed dose-to-water over the energy range 8-22 MeV at an uncertainty level of 0.6%. However, the response for high-energy electrons is about 1.3 (+/-1.1)% lower than for (60)Co. The EGSnrc Monte Carlo system was used to calculate the ratio of absorbed dose-to-alanine to absorbed dose-to-water and it was shown that there is 1.3 (+/-0.2)% reduction in this ratio from the (60)Co beam to the electron beams, which confirms the experimental results. Alanine/EPR response per unit absorbed dose-to-alanine was also investigated and it is the same for high-energy electrons and (60)Co gamma-rays.