Center of Gravity Method Calculator (Facility Location)

Operations

Centre of gravity (Cx, Cy)6.00, 6.25
Total shipped volume (all points)400
Centre of gravity, x coordinate6.00
Centre of gravity, y coordinate6.25
How this was calculated
  1. The centre-of-gravity method places a facility at the volume-weighted average of the points it serves: each coordinate is weighted by the load shipped to or from that point.
  2. The three points ship 400 units in total, and weighting the x coordinates by those volumes gives Cx = 6.00.
  3. The same weighting on the y coordinates gives the north-south balance point of the network.
  4. The centre of gravity is (6.00, 6.25) - the location that minimises volume-weighted distance before real-world constraints move the final site.

Where should the warehouse go? The centre-of-gravity method gives the classic first answer: treat each market or supply point as a weight - its shipped volume - and find the balance point of the map. The facility placed there minimises the volume-weighted distance to everything it serves, at least as the crow flies, and the method's job is to turn a wall of opinions about location into one defensible coordinate to start from.

Enter three points with their x and y coordinates and the volume shipped to or from each, and this calculator returns the weighted centre (Cx, Cy) and the total volume. Three points keep the arithmetic transparent - every pull on the centre can be traced to a named market - which is exactly what a first-pass location screen needs.

Worked examples

Three markets, centre (6.00, 6.25)

(2 · 3 · 100 · 6 · 9 · 200 · 10 · 4 · 100)

Centre of gravity (Cx, Cy)6.00, 6.25
Total shipped volume (all points)400
Centre of gravity, x coordinate6.00
Centre of gravity, y coordinate6.25

One dominant market

(1 · 1 · 50 · 4 · 8 · 150 · 9 · 2 · 300)

Centre of gravity (Cx, Cy)6.70, 3.70
Total shipped volume (all points)500
Centre of gravity, x coordinate6.70
Centre of gravity, y coordinate3.70

Equal volumes, plain centroid

(0 · 0 · 10 · 5 · 5 · 10 · 10 · 0 · 10)

Centre of gravity (Cx, Cy)5.00, 1.67
Total shipped volume (all points)30
Centre of gravity, x coordinate5.00
Centre of gravity, y coordinate1.67

The weighted-centroid formulas

Cx = sum(volume x x) / sum(volume), and Cy the same with y. The first worked example balances three markets - (2, 3) shipping 100, (6, 9) shipping 200 and (10, 4) shipping 100: the x-centre is (200 + 1,200 + 1,000) / 400 = 6.00 and the y-centre (300 + 1,800 + 400) / 400 = 6.25. The big market at (6, 9) pulls the centre toward itself, exactly as a balance point should - note Cy (6.25) sits well above Cx's relative position because the heavy point is also the northern one.

The third example is the degenerate case that proves the weighting: three equal volumes of 10 at (0, 0), (5, 5) and (10, 0) give the plain centroid (5.00, 1.67) - the simple average of the coordinates. Equal weights switch the method's judgement off; it is the inequality of volumes that moves the answer, which is why the volume figures deserve more care than the coordinates.

  • Cx = sum(w x) / sum(w); Cy = sum(w y) / sum(w), w = shipped volume
  • Three markets, volumes 100/200/100: centre (6.00, 6.25)
  • Equal volumes reduce the centre to the plain centroid
  • No transport rates or cost proxy in this model - volumes only

Worked example two: one market dominates

The second example shows a lopsided network: volumes 50 at (1, 1), 150 at (4, 8) and 300 at (9, 2), a total of 500. The centre lands at (6.70, 3.70) - dragged east toward the 300-volume point, which alone holds 60 percent of the network's weight, but visibly pulled north by the 150-volume point at y 8. A map of the three points and the centre makes the politics of the decision legible: serving the dominant market from close in is worth more than geographic symmetry, and the western 50-volume point will simply have to accept the longer haul.

That legibility is the method's mature use. Nobody builds at the raw centroid - it may sit in a lake, a rival's car park or a labour desert - but every real candidate can be compared against it: a candidate far from (6.70, 3.70) owes the committee an explanation denominated in something else - rent, wages, service time, risk. The centre is the benchmark the explanation must beat.

CaseVolumesTotalCentre
Three markets100 / 200 / 100400(6.00, 6.25)
One dominant market50 / 150 / 300500(6.70, 3.70)
Equal volumes10 / 10 / 1030(5.00, 1.67)

What the method assumes - and omits

The centroid minimises weighted straight-line distance under a stack of simplifications: transport cost proportional to distance and volume, demand fixed at points, one facility, no capacity limits, no fixed costs, and a map without rivers, borders or one-way systems. Every one of those is false somewhere. The method survives because its output is a starting coordinate and a comparison metric, not a site selection - the search begins at the centroid and walks outward into reality.

Two refinements matter most in practice. First, use road distances (or a circuity factor, often 1.2-1.4 in grid cities, worse in mountains) when scoring candidates - the proxy on this card is Euclidean by design. Second, re-run the centroid with next year's volumes before committing: a centre computed on today's demand map can sit stubbornly in yesterday's market, and leases outlive forecasts.

One omission deserves emphasis because it changes real decisions: the method treats every unit shipped as equally valuable to serve well. A network whose eastern point is a flagship customer with a two-hour delivery promise and whose western point is a tolerant bulk buyer does not experience distance symmetrically, even at equal volumes. The practical patch is to weight the time-critical point's volume upward - an admitted fudge that encodes the service promise in the only language the formula reads - and to record that the weight was adjusted, so the next analyst does not mistake the fudge for demand. Every location model has a place where judgement enters; in this one it is the weights, and honesty about them is what separates a screen from a sales pitch.

Presenting a centroid to decision-makers? Always present the cost proxy of the top real candidate beside it - the gap between the two is the price of reality, and it should be a chosen price, not a discovered one.

Centre of gravity vs median and optimisation methods

The weighted centroid is a mean, with a mean's sensitivity to distant heavy points. The weighted median (the 1-median or Weber problem solved exactly) minimises total weighted distance itself rather than its squared cousin, and typically sits closer to the largest market. Full location-allocation optimisation handles many facilities, capacities and fixed costs - at the price of data and solver machinery the centroid never asks for. The methods form a ladder of effort: centroid for the first map, median for a refined single site, optimisation for network design.

Practitioners climb as far as the decision's stakes justify. A cross-dock serving three plants rarely needs more than this page; a national network redesign should not stop here. Knowing which rung you are on - and saying so - is most of location-method professionalism.

Coordinates in practice

The x and y inputs accept any consistent grid: kilometres on a projected map, a spreadsheet's arbitrary units, or longitude and latitude for regional problems (where the flat-map approximation is harmless at country scale and the centre reads directly off the result). What matters is consistency - all sites in the same grid, volumes in the same period, rates in the same currency per unit-distance.

A final practical note: the centroid of a network that will be served from an existing facility network is a marginal question, not a greenfield one. Run the method on the incremental demand the new site would actually take, not the whole map, or the answer will politely suggest building next door to the sites the existing warehouses already serve well.

Sensitivity: how wrong can the centre be?

A centroid computed from forecast volumes inherits the forecast's error, so the professional habit is to stress it: re-run the calculation with each point's volume moved by its plausible error and watch how far the centre travels. In the first worked example, raising the largest market's volume from 200 to 260 (a 30 percent demand surprise) moves the centre from (6.00, 6.25) to (6.00, 6.61) - a third of a grid unit north, well inside the same neighbourhood. Centroids of well-spread networks are usually this forgiving, because every point pulls against the others; the fragile cases are networks dominated by one point, where the centre is essentially that point's address and the method adds little.

The cost surface near the optimum is flat - that is what being an optimum means - so a candidate a modest distance from the computed centre typically costs only a few percent more in weighted distance than the centre itself. This flatness is the method's practical gift: it means the real-world constraints (a site that exists, a workforce that can be hired, a motorway junction) can be honoured at small transport cost, provided the deviation is measured rather than asserted to be small. Compute the centre, score the candidates against it, quote the gap - that is the whole professional ritual, and this page performs the first step of it.

FAQs

Where is the centre for points (2,3), (6,9), (10,4) with volumes 100, 200, 100?

Cx = 6.00 and Cy = 6.25, on a total shipped volume of 400.

What centre do volumes 50, 150 and 300 give?

(6.70, 3.70) - pulled strongly toward the 300-volume point at (9, 2), on a total of 500.

What happens with three equal volumes?

The centre is the plain centroid: (5.00, 1.67) for points (0, 0), (5, 5) and (10, 0).

Do transport rates enter the weights?

No - this calculator weights by shipped volume only; rate differences must be folded into the volumes beforehand if they are to count.

Does the method account for roads?

No - it is straight-line (Euclidean); score real candidates with road distances or a circuity factor.

Why is the y-centre in the first example 6.25 and not 6.00?

Because the y coordinates weight differently from x: the 200-volume point sits at y 9, pulling Cy above the x balance.

Sources

Related calculators

Economic Production Quantity (EPQ) Calculator
Economic production quantity for in-house manufacturing from setup cost, holding cost, production rate and demand rate, with maximum inventory and annual cost.
Reorder Point Calculator
The stock level that should trigger your next purchase order: lead-time demand plus safety stock, so the new shipment lands just as the buffer takes over.
Inventory Turnover Calculator
How many times a year your stock sells through — and how many days the average item sits on the shelf before it goes.