We report first-principles total-energy calculations for the GaAs(001) surface. Our results indicate that the 2[times]4 reconstruction corresponds to the [beta]2(2[times]4) structure, which exhibits two As dimers in the top layer and a third As dimer in the third layer. This structure has a lower surface energy than the [beta](2[times]4) model, which has three As dimers in the top layer. We also find that a model recently proposed by Skala [ital et] [ital al]. [Phys. Rev. B [bold 48], 9138 (1993)] for the structure of the Ga-rich 4[times]2 phase is energetically unfavorable. From our results we conclude that electrostatic interactions between the charged building blocks of polar semiconductor surfaces play an important role in determining the equilibrium structure. We introduce a simple model for estimating these interactions.