The locations of atoms in a metallic alloy nanoparticle have been determined using a combination of electron microscopy and image simulation, revealing links between the particle’s structure and magnetic properties.