StatGardenREF. DESK
Calculators/Physics/Centre of Mass Calculator
Physics

Centre of Mass Calculator

Balance point of a system of point masses from their positions and masses.

Published 26 August 2026 · Updated 21 September 2026

What this calculator does

The centre of mass of a system is the single balance point where the whole collection of masses behaves as if it were concentrated in one spot. For a set of point masses scattered around a plane, it is found with the centre of mass equation, a weighted average where each position is weighted by its own mass rather than counted equally.

This is a different calculation from a plain geometric centre. Three vertices of a triangle spaced evenly give a centroid, an unweighted average of position alone. Give those same three points different masses, and the balance point shifts toward whichever one is heaviest, which is exactly what this centre of mass calculator works out.

The formula

Formulax̄ = Σ(mᵢxᵢ)/Σmᵢ, ȳ = Σ(mᵢyᵢ)/Σmᵢ

For each mass, multiply its x position by its mass, and separately multiply its y position by its mass. Add those products up, then divide by the total mass. That gives the x and y coordinates of the point where the whole system balances, in both directions independently.

TermMeaning
x̄, ȳThe coordinates of the centre of mass in the x and y directions.
mᵢThe mass of point i in the system.
xᵢ, yᵢThe position of point i.

The inputs explained

FieldWhat to enter
Masses (comma separated)A comma-separated list of masses, in any consistent unit, one per point.
x positions (comma separated)The x position of each mass, in the same order as the mass list.
y positions (comma separated)The y position of each mass, in the same order as the mass list.

When to use it

Balancing an irregular load

Several weights bolted to a frame at different points need a single balance point worked out before the frame is lifted or mounted, so it does not tip.

Checking a two-body approximation

A system that is close to two dominant masses, such as a planet and a moon, can be checked against the simpler two-body centre of mass figure to see how close the two answers land.

Teaching the difference between centroid and centre of mass

Giving the same triangle vertices equal masses reproduces the plain centroid, then changing one mass shows exactly how the balance point moves toward the heavier point.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

Centre of mass for three points as one mass increases

The first two masses are held at 2 kg and 3 kg while the third mass, at (6,-1), increases.

Points at (0,0), (4,2) and (6,-1), masses 2 and 3 kg fixed on the first two points
Masses (kg)Centre of mass (x)Centre of mass (y)Total mass
2, 3, 13.0000.83336.000
2, 3, 33.7500.37508.000
2, 3, 54.2000.100010.000
2, 3, 84.615-0.153813.000
2, 3, 124.941-0.352917.000
2, 3, 205.280-0.560025.000
As the third mass grows, the centre of mass is pulled steadily toward its position at (6,-1), moving further from the other two points with each increase.

Centre of mass with all masses equal, versus the plain centroid

With every mass set to the same value, the weighted average collapses to the plain average of the positions, the same result as a triangle centroid.

Same three points, equal masses throughout
Equal mass (kg)Centre of mass (x)Centre of mass (y)
1, 1, 13.3330.3333
2, 2, 23.3330.3333
5, 5, 53.3330.3333
10, 10, 103.3330.3333
The centre of mass lands at the same point, (3.333, 0.333), no matter what the equal mass value is, because the mass cancels out of the average once every point carries the same weight.

Questions

How is this different from a triangle centroid?

A centroid, as used for a triangle, is an unweighted average of the vertex positions alone. Centre of mass weights each position by its own mass, so it only matches the centroid when every mass in the system happens to be equal.

Can I use this for more than three masses?

Yes. The formula extends to any number of point masses; enter as many values as needed in the masses, x and y lists, keeping the same order across all three.

What if my masses are along a single line rather than a plane?

Set every y value to the same number, such as 0, and the calculator will return that same value for the y coordinate, leaving the x coordinate as the one-dimensional balance point.

Does the unit of mass or distance matter?

Only that it stays consistent. Any mass unit and any distance unit will do, as long as every entry uses the same one, since the calculation is a ratio of weighted sums.

For the special case of a triangle with no masses involved, see the triangle centroid calculator. For a simpler two-mass system along a single line, see the two-body centre of mass calculator.