No ads, no sign-upChecked 2026-08-23

Center of Mass Calculator

Result

6.000m

Result: 6.000 m

The mass-weighted average of the two positions. Equal masses balance exactly halfway between them — the quickest sanity check there is — and any imbalance pulls the point toward the heavier one. Measure both positions from the same origin on the same axis; negative positions are fine.

The numbers at a glance

Held fixed: First mass 2.00 kg, Position of the first mass 0.00 m, Second mass 3.00 kg.

Position of the second mass (m)Result (m)
0.000.000
2.501.500
5.003.000
7.504.500
10.00Your value6.000
12.507.500
15.009.000
17.5010.500
20.0012.000

Worked examples

Case 1
First mass
2kg
Position of the first mass
0m
Second mass
3kg
Position of the second mass
10m

6.000m

Open with these values
Case 2
First mass
1kg
Position of the first mass
0m
Second mass
1kg
Position of the second mass
10m

5.000m

Open with these values
Case 3
First mass
2.5kg
Position of the first mass
1.25m
Second mass
7.5kg
Position of the second mass
4.75m

3.875m

Open with these values

How it's calculated

x = (m₁ × x₁ + m₂ × x₂) ÷ (m₁ + m₂)

  1. StepPick an origin anywhere on the line and keep it for both positions.
  2. StepEnter the first mass and where it sits.
  3. StepEnter the second mass and where it sits.
  4. ResultRead the balance point, measured from that same origin.

Reference table

m₁, x₁, m₂, x₂NoteBalance point (m)
1, 0, 1, 10Equal masses land on the midpoint5
5, 2, 5, 8Equal again, origin shifted5
10, -5, 10, 5Symmetric about the origin0
2, 0, 3, 10The heavier mass pulls it past 56
2, -4, 3, 6Negative positions are allowed2
2.5, 1.25, 7.5, 4.75Three quarters of the mass on the right3.875

Questions

How do I calculate the center of mass of two masses?

Take the mass-weighted average of the two positions: x = (m1 × x1 + m2 × x2) / (m1 + m2). For example, a 2 kg mass at 0 m and a 3 kg mass at 10 m give (2 × 0 + 3 × 10) / (2 + 3) = 30 / 5 = 6 m.

What is the center of mass?

The center of mass is the single point at which the whole system would balance — the average position of all the mass. For two point masses on a line it lies somewhere between them, and the system behaves, for many purposes, as if all the mass were concentrated there.

Does the center of mass sit closer to the heavier mass?

Yes. The heavier the mass, the more it weights the average, so the center of mass sits nearer to it. Only when the two masses are exactly equal does the point land precisely halfway between them.

What happens when both masses are equal?

When the masses are equal, the center of mass is simply the midpoint between the two positions. With equal weights, neither side pulls the average more than the other, so the balance point is the plain average of the two positions: (x1 + x2) / 2.

Can the positions be negative?

Yes. Positions are measured along an axis from an origin you choose, so anything to the left of that origin is negative. The masses themselves must be positive, but the positions — and the resulting center of mass — can be negative, zero, or positive.

What units should I use?

Use consistent units: kilograms for both masses and metres for both positions, which gives the center of mass in metres. The result depends only on the ratio of the masses and on the positions, so any consistent mass and length units work as long as you do not mix them.

Sources and last check

  1. en.wikipedia.org

Information, not professional advice.