Center of Mass Calculator (2D)

Center of mass (x̄, ȳ)(6.20, 1.80)
Total mass10.00
x-bar6.20
y-bar1.80
How this was calculated
  1. The center of mass is the mass-weighted average position: each coordinate is averaged with the masses as weights, so heavy particles pull the point toward themselves.
  2. Total mass M = 10.00 — the sum of the 3 masses in play.
  3. Sum of m x = 62.00, so x-bar = 62.00 / 10.00 = 6.20.
  4. Sum of m y = 18.00, so y-bar = 18.00 / 10.00 = 1.80.
  5. Balance the system on a point and it rests level exactly here; in projectile motion the center of mass follows the clean parabola even while the parts tumble around it.

This center of mass calculator finds the balance point of a set of point masses in two dimensions. Enter each mass and its x and y coordinates, and the tool returns the coordinates of the center of mass. The method is the mass-weighted average position: x-bar = sum(m x) / sum(m), and likewise for y. Heavier particles pull the balance point toward themselves in exact proportion to their mass, so a single heavy object can outweigh several light ones. As a worked check, masses 2, 3 and 5 at (0, 0), (4, 1) and (10, 3) balance at (6.20, 1.80). With equal masses the formula reduces to the ordinary average of the positions (the centroid).

This mass-weighted average is the accepted standard for locating a system's balance point, and it matches what physics predicts for real objects. For a system in free flight, the center of mass follows a clean parabolic trajectory even while the parts rotate or tumble, which is why the quantity matters in mechanics and engineering. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow every calculation and check the result yourself rather than trusting a black box.

Worked examples

Primary result: (6.20, 1.80)

Primary result: (6.20, 1.80) — The heavy mass at (10, 3) drags the balance point to (6.20, 1.80). (3 masses · 2 · 0 · 0 · 3 · 4 · 1 · 5 · 10 · 3 · 4 · 7 · 6)

Center of mass (x̄, ȳ)(6.20, 1.80)
Total mass10.00
x-bar6.20
y-bar1.80

Primary result: (2.40, 0.60)

Primary result: (2.40, 0.60) — Two masses settle at (2.40, 0.60), closer to the heavier one. (2 masses · 2 · 0 · 0 · 3 · 4 · 1 · 5 · 10 · 3 · 4 · 7 · 6)

Center of mass (x̄, ȳ)(2.40, 0.60)
Total mass5.00
x-bar2.40
y-bar0.60

Primary result: (6.43, 3.00)

Primary result: (6.43, 3.00) — Four masses balance at (6.43, 3.00). (4 masses · 2 · 0 · 0 · 3 · 4 · 1 · 5 · 10 · 3 · 4 · 7 · 6)

Center of mass (x̄, ȳ)(6.43, 3.00)
Total mass14.00
x-bar6.43
y-bar3.00

What the center of mass is

The center of mass is the single point at which you could balance a system of masses, and it is defined as the mass-weighted average position. In symbols, x-bar = sum(m x) / sum(m), and likewise for y. Each particle's position is multiplied by its mass, those products are added up, and the total is divided by the total mass. A center of mass calculator simply performs that arithmetic for every mass you enter, which is why it can handle a dozen particles as easily as two.

A worked check makes the idea concrete. Take masses 2, 3 and 5 at the points (0, 0), (4, 1) and (10, 3). The x-bar is (2×0 + 3×4 + 5×10) / 10 = 62 / 10 = 6.20, and the y-bar is (2×0 + 3×1 + 5×3) / 10 = 18 / 10 = 1.80. The system balances at (6.20, 1.80). Notice that the answer sits far closer to the 5-unit mass at (10, 3) than to the 2-unit mass at the origin: heavier particles pull the balance point toward themselves in exact proportion to their mass. Doubling one mass doubles its pull on the result.

This is why the center of mass matters beyond a balancing trick. For a system in free flight, the center of mass follows a clean parabolic trajectory even while the parts rotate or tumble. A tossed wrench spins end over end, yet its center of mass traces the same smooth arc a thrown ball would. For describing the translational motion of the whole system, you can treat all the mass as if it were concentrated at that one point, and the internal spinning and wobbling drop out of the calculation entirely.

One special case is worth remembering. With equal masses the formula reduces to the ordinary average of the positions, which is the centroid. So a symmetric arrangement of identical particles balances at its geometric middle, and the mass-weighted formula and the plain average give the same answer. When the masses differ, the weighted version takes over and the balance point shifts toward the heavier side.

The center of mass is the mass-weighted average position: x-bar = sum(m x) / sum(m), and likewise for y. For translational motion, a system behaves as if all its mass sat at that point.

The weighted-average formula

The center of mass is the mass-weighted average position of a system. In two dimensions it is given by two sums: x-bar = sum(m x) / sum(m), and likewise for y, y-bar = sum(m y) / sum(m). Read the x formula term by term and the rest follows. The numerator, sum(m x), adds up each particle's mass multiplied by its x-coordinate, so a particle far out on the x-axis contributes more than a nearby one of the same mass. The denominator, sum(m), is simply the total mass. Dividing the weighted sum of positions by the total mass turns it into an average position, with the weights being the masses. The y formula is identical in structure, using each particle's y-coordinate in place of its x-coordinate. A center of mass calculator applies these two sums to every particle you enter and returns the pair (x-bar, y-bar).

A worked check makes the arithmetic concrete. Take masses 2, 3 and 5 at (0, 0), (4, 1) and (10, 3). The total mass is 2 + 3 + 5 = 10. For x, the weighted sum is 2 times 0, plus 3 times 4, plus 5 times 10, which is 0 + 12 + 50 = 62; dividing by 10 gives x-bar = 6.20. For y, the weighted sum is 2 times 0, plus 3 times 1, plus 5 times 3, which is 0 + 3 + 15 = 18; dividing by 10 gives y-bar = 1.80. The three masses balance at (6.20, 1.80). Notice that the answer sits closer to the heaviest particle, the mass of 5 at (10, 3), than to the mass of 2 at the origin. That is the weighting at work: heavier particles pull the balance point toward themselves in exact proportion to their mass.

The same two sums extend without modification to any number of particles. Whether you have three masses or thirty, you keep adding mass-times-position into each numerator and mass into the denominator, then divide. Nothing about the formula is special to three points. The pattern also carries into three dimensions: add a z-bar = sum(m z) / sum(m) alongside the x and y versions, and the balance point becomes a single point in space rather than a point on a plane.

One special case is worth keeping in mind. With equal masses the formula reduces to the ordinary average of the positions, which is the centroid. If every mass is the same value m, the m cancels from numerator and denominator, and you are left averaging coordinates directly. The distinction matters when masses differ: the centroid is a purely geometric average, while the center of mass accounts for how much matter sits at each location. A related property explains why the concept earns its keep: for a system in free flight, the center of mass follows a clean parabolic trajectory even while the parts rotate or tumble. The internal motion of the pieces does not disturb the path of the balance point.

  • Write the x numerator as sum(m x) and the y numerator as sum(m y), multiplying each mass by its own coordinate.
  • Add all masses for the denominator, sum(m), the same total for both coordinates.
  • Divide each numerator by the total mass to get x-bar and y-bar.
  • Check: masses 2, 3 and 5 at (0, 0), (4, 1) and (10, 3) balance at (6.20, 1.80).
Heavier particles pull the balance point toward themselves in exact proportion to their mass. With equal masses, the formula reduces to the ordinary average of the positions, the centroid.

Center of mass vs centroid vs center of gravity

The center of mass is the mass-weighted average position: x-bar = sum(m x) / sum(m), and likewise for y. That single idea sits underneath three terms people often use interchangeably — center of mass, centroid, and center of gravity — and a good center of mass calculator will make the differences visible in the numbers it returns. Here is how the three relate, and when the distinctions actually matter.

The centroid is the pure-geometry cousin. With equal masses, the formula reduces to the ordinary average of the positions (the centroid), because every weight in the sum is the same and simply divides out. So if you are averaging the corners of a shape, or a set of identical particles, the centroid and the center of mass land on the same point. The moment the masses differ, they part ways: heavier particles pull the balance point toward themselves in exact proportion to their mass. A quick worked check makes this concrete — masses 2, 3 and 5 at (0, 0), (4, 1) and (10, 3) balance at (6.20, 1.80). The plain average of those three positions would sit elsewhere, so the 5-unit mass is clearly doing the pulling.

Center of gravity is the same point again, provided gravity is uniform across the system. When every part of the object feels the same gravitational acceleration, the weight of each piece is proportional to its mass, the proportionality cancels, and the center of gravity coincides with the center of mass. That is why the two are used as synonyms in most everyday problems — a wrench on a bench, a book on a desk, a bracket on a wall. The distinction only becomes real when gravity varies noticeably across the object's extent, which for ordinary-sized objects on Earth it does not.

Where the differences matter most is in how you set up a problem. If you are given a shape with uniform density, you can work with the centroid and skip mass entirely. If you are given a list of particles with different masses, you need the mass-weighted formula — and the free-flight behavior of the system is a useful sanity check. For a system in free flight, the center of mass follows a clean parabolic trajectory even while the parts rotate or tumble. So if your calculated point does not trace that smooth path, check your arithmetic before trusting the result.

  • Equal masses: the mass-weighted formula collapses to the ordinary average, so the center of mass and the centroid are the same point.
  • Uniform gravity: weight is proportional to mass everywhere, so the center of gravity coincides with the center of mass.
  • Unequal masses: the balance point shifts toward the heavier particles in exact proportion to their mass, and the centroid no longer matches.
  • Free flight: the center of mass follows a clean parabolic trajectory even while the parts rotate or tumble — a good check on your numbers.
Rule of thumb: use the centroid for uniform shapes, the mass-weighted formula for mixed masses, and treat center of gravity as the same point unless gravity varies across the object.

Why engineers and athletes care

The center of mass is the mass-weighted average position: x-bar = sum(m x) / sum(m), and likewise for y. That single idea explains why a center of mass calculator earns its place in engineering offices and on the track. Heavier particles pull the balance point toward themselves in exact proportion to their mass, so the location of that point tells you how a body will behave when forces act on it. A quick worked check shows the arithmetic: masses 2, 3 and 5 at (0, 0), (4, 1) and (10, 3) balance at (6.20, 1.80). The heaviest mass sits far out at x = 10, and the balance point follows it most of the way.

Vehicle stability is the clearest everyday case. A car or truck stays upright as long as its center of mass stays inside the footprint of its wheels; raise that point, by loading a roof rack or lifting a suspension, and the vehicle tips sooner in a turn. Designers therefore track the mass-weighted average position as carefully as they track horsepower. Rocket design follows the same logic in three dimensions, though the brief here is the 2D version: propellant drains, stages separate, and the balance point migrates, so each configuration needs its own calculation to keep thrust and mass aligned.

Athletes care for a subtler reason. In the Fosbury flop, the high jumper arches so that the body passes over the bar while the center of mass passes under it. The bar is cleared by the body's shape, not by its balance point, and that is precisely why the technique beats a straight-legged jump at the same speed. Coaches who understand the mass-weighted average can see why the arch matters and why raising the hips alone does not achieve the same result.

Free flight adds one more fact worth keeping in mind. For a system in free flight, the center of mass follows a clean parabolic trajectory even while the parts rotate or tumble. A gymnast's limbs, a diver's twist, a tumbling satellite: the parts move in complicated ways, but the balance point traces a simple arc. That is why a center of mass calculator is useful for checking a model, whether you are balancing a chassis, planning a stage separation, or reviewing a jump.

With equal masses the formula reduces to the ordinary average of the positions, the centroid, so a symmetric arrangement always balances at its geometric middle.

FAQs

How do I calculate the center of mass?

Multiply each mass by its position, add the products, and divide by the total mass — once per coordinate. You do this separately for the x-coordinate and the y-coordinate. Each weighted sum is divided by the sum of all the masses, giving the balance point of the system.

Can the center of mass be outside the object?

Yes. A ring, a boomerang or a high jumper mid-flop all have balance points in empty space. The center of mass is a weighted average of positions, not a point that must lie on the material itself. It can sit in the hole of a ring or off the body entirely.

What is the difference between center of mass and centroid?

The centroid is the average position with equal weights; the center of mass weights positions by mass. They coincide when density is uniform. If some parts of an object are denser or heavier than others, the center of mass shifts toward that weight while the centroid stays at the plain geometric average.

Why does the center of mass follow a parabola?

External gravity acts on the total mass at that point, so its motion is the simple projectile path regardless of internal movement. Internal motions, like a diver twisting or a gymnast tucking, do not change the path of the balance point once the object is in the air.

How does center of mass affect car handling?

A lower, central balance point resists rollover and sharpens response. That is why sports cars sit low, and why mid-engined layouts balance weight. Keeping the mass low and centered reduces the leverage that tilting forces have on the car, improving stability and steering feel.

Does the formula work with negative coordinates?

Yes. Positions are measured from any origin you choose, so negative coordinates are fine. The weighted average lands correctly in the same coordinate system. Just keep all positions in the same frame, and the result will be expressed in that frame, including any negative values.

Sources

Related calculators

Momentum Calculator
Momentum from mass and velocity, the impulse needed to stop the object, and how momentum differs from the kinetic energy shown alongside.
Moment of Inertia Calculator
Rotational inertia for six standard shapes — spheres, cylinders and rods — with the radius of gyration alongside.
Torque Calculator
Torque from force, lever arm and angle — in newton-metres and pound-feet — showing why only the perpendicular part of your push does any turning.
Angular Momentum Calculator
Angular momentum two ways: a point mass circling a centre (m x v x r) or a rigid body spinning (I x w).