Scientists found that crystal spacing better predicts magnetic states in complex alloys than electron count. This discovery could improve the design of advanced magnetic materials.