We propose to estimate gravity models by a Hausman and Taylor (1981) 2SLS error components approach. First, this allows to account for the possible correlation of some of the regressors with the unobserved effects, which has been ignored in previous research. Second and in contrast to the Within estimator, one obtains estimates for the time-invariant variables also in a framework with bilateral effects. We show that distance and country size are important sources of correlation. The properly estimated parameter of distance is about twice as high as its biased GLS counterpart and markedly higher than found by others.