Center of Mass Calculator
Written by Thierno Sadou Diallo, formula verified per our methodology • Last checked on 12/5/2026
The center of mass is the mass-weighted average of positions: xG = (m1·x1 + m2·x2 + m3·x3) ÷ (m1 + m2 + m3), and likewise for y. For 70 kg and 30 kg 3 m apart, it lies 0.9 m from the heavier mass.
Explanation
A system's center of mass is the point where all its mass can be considered concentrated when describing its overall motion. Throw a hammer so it spins: its path looks complicated, but its center of mass follows a perfectly regular parabola. For a set of point masses, its position is a weighted average: multiply each coordinate by the matching mass, add them up, then divide by the total mass. The result always lies closer to the heavier masses. Two people of 70 kg and 30 kg sitting at the ends of a 3 m plank have their shared center of mass 0.9 m from the heavier one and 2.1 m from the lighter: exactly where a seesaw pivot must go for them to balance, as the law of the lever states, since 70 × 0.9 = 30 × 2.1. In a uniform gravitational field, which is the case at human scale, the center of mass coincides with the center of gravity, the point where weight acts. It decides stability: an object stays upright as long as the vertical line through its center of gravity falls inside its base of support. Applications are everywhere: load distribution in a truck or aircraft, balancing a mobile, a satellite's position relative to a planet, structural design. The calculator handles three masses in a plane; set one mass to 0 to use only two. For an extended object, split it into simple parts whose centers you know, and treat each part as a point mass at its center. To find the balancing force on a bar, use the lever calculator; for a rod's resistance to rotation about its center, the rod moment of inertia calculator.
Example: three masses in a plane
Inputs
2 kg at (0, 0), 3 kg at (4, 0), 5 kg at (1, 6).
Calculation
Total mass = 10 kg. xG = (2 × 0 + 3 × 4 + 5 × 1) ÷ 10 = 17 ÷ 10 = 1.7 m. yG = (2 × 0 + 3 × 0 + 5 × 6) ÷ 10 = 30 ÷ 10 = 3 m.
Result
The center of mass is at (1.7, 3), pulled toward the 5 kg mass.
Frequently asked questions
Are center of mass and center of gravity the same thing?
In practice yes, as long as gravity is uniform, which is always the case for human-scale objects. They differ only for huge bodies, such as a mountain or a very long satellite.
Can the center of mass lie outside the object?
Yes: for a ring, a boomerang or a horseshoe it lies in empty space. High jumpers use this: by arching over the bar, their center of mass can pass beneath it.
What about more than three masses?
Group them: find the center of mass of three, replace them with a single mass equal to their sum at that point, then repeat with the next ones.