In economics, Reilly's law of retail gravitation is a heuristic developed by William J. Reilly in 1931. According to Reilly's "law," customers are willing to travel longer distances to larger retail centers given the higher attraction they present to customers. In Reilly's formulation, the attractiveness of the retail center becomes the analogy for size (mass) in the physical law of gravity.
The law presumes the geography of the area is flat without any rivers, roads or mountains to alter a consumer's decision of where to travel to buy goods. It also assumes consumers are otherwise indifferent between the actual cities. In analogy with Newton's law of gravitation, the point of indifference is the point at which the "attractiveness" of the two retail centres (postulated to be proportional to their size and inversely proportional to the square of the distance to them) is equal:
Where is the distance of the point of indifference from A, is its distance from B, and is the relative size of the two centres. If the customer is on the line connecting A and B, then if D is the distance between the centres, the point of indifference as measured from A on the line is