Images of grain boundaries obtained in the scanning electron microscope operated in the electron beam‐induced current mode are calculated. Images of boundaries in semicrystalline silicon solar cells are measured in the experiment and agree within 2% with theory. The calculated profiles depend strongly on the diffusion length of the semiconductor, providing a new method for determining the diffusion length of the material.