S-value and the single-event specific energy distribution for electrons are important quantities of the microdosimetry for understanding biological effects of ionizing radiation, both of which have close relation to other quantities of the microdosimetry. In this paper, these quantities of electrons were calculated by different codes from cell surface to nucleus or the whole cell. The properties of the low-energy electrons, such as δ particle equilibrium and the energy-loss straggling, were applied to Monte Carlo simulation codes including MOCA15, TRAX and Geant4, and these codes tracked the electrons until their energy was lower than our cutoff energy. The results of S-value and the single-event specific energy distribution in cell were compared to the results of the Penelope and MIRD.