Electrochemical sodiation is performed in crystalline Sn foil using in situ scanning electron microscopy (SEM) to simultaneously measure the changes in the electrical resistivity and volume of the Sn anode in a Na-Sn battery. We observe that sodiation causes an increase in the Sn anode resistivity by six orders of magnitude. Ab initio molecular dynamics simulations of the Na-Sn alloy system demonstrate that the increased resistivity of the anode is caused by the formation of an electrically resistive amorphous NaSn phase (a-NaSn) with a pseudogap. It is also observed that the formation of a-NaSn is always accompanied by a large volume expansion of ∼200%, causing the development of residual tensile stress. The residual stress in turn alters the electronic structure of the a-NaSn phase, further increasing the resistivity of a-NaSn and thus decreasing the energy efficiency of the Na-Sn battery.