To assess the potential of amorphous Si (a-Si) as an anode for Li, Na, and Mg-ion batteries, the energetics of Li, Na, and Mg atoms in a-Si are computed from first-principles and compared to those in crystalline Si (c-Si). It is shown that Si preamorphization increases the average anode voltage and reduces the volume expansion of the anode during the insertion of the metal atoms.Analysis of computed formation energies of Li, Na, and Mg defects in a-Si and c-Si suggests that the energetics of the single atoms into a-Si are thermodynamically more favorable. For instance, defect formation energies of Li, Na, and Mg defects in a-Si are respectively 0.71, 1.72, and 1.82 eV lower compared to those in c-Si. Moreover, the defect formation energies of Li, Na, and Mg defects (vs. vacuum reference states) in a-Si are comparable with the metal cohesive energies and consequently the insertion of the metal atoms might be possible with appropriate control of charging process. This is in contrast to c-Si, where the storage of Na and Mg atoms is limited due to high energy cost of Na and Mg insertion into c-Si.