LONDON—To boost trade after Brexit, the U.K. will have to grapple with a powerful force: gravity.

Economists have for decades observed that the volume of trade between economies is tightly linked to their size and proximity. Countries export more to big economies than they do to small ones, and they trade more with neighbors than with markets further away.

For...