ThisCalculator

Everyday

Center of Mass Calculator & Formula

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Center of Mass Calculator & Formula

A center of mass calculator finds the balance point of a system of objects or a continuous shape, returning the coordinates (x, y) where the total mass can be considered concentrated. You enter the masses and positions of individual particles (or choose a simple shape like a triangle or semicircle), and the calculator outputs the weighted average position. This is the same point used in physics to predict motion, stability, and collisions.

Formula

For a set of point masses, the center of mass coordinates are the mass-weighted averages of the individual positions:

Xcm = (m�x� + m₂x₂ + … + mₙxₙ) / (m� + m₂ + … + mₙ)

Ycm = (m�y� + m₂y₂ + … + mₙyₙ) / (m� + m₂ + … + mₙ)

Where:

  • mi = mass of the i-th particle (kg, g, or any consistent unit)
  • xi, yi = coordinates of the i-th particle (m, cm, etc.)

For a continuous object, the sums become integrals: rcm = (1/M) ∫ r dm, where M is total mass and r is the position vector. In practice, you can break a complex shape into simple pieces (rectangles, triangles, circles) and use the formula above with each piece’s center and mass.

Worked Example

Using the default values from the calculator above:

  1. Particle 1: m = 2 kg at (0, 0)
  2. Particle 2: m = 3 kg at (4, 0)
  3. Particle 3: m = 5 kg at (2, 3)

Total mass = 2 + 3 + 5 = 10 kg.

Xcm = (2×0 + 3×4 + 5×2) / 10 = (0 + 12 + 10) / 10 = 22 / 10 = 2.20 m

Ycm = (2×0 + 3×0 + 5×3) / 10 = (0 + 0 + 15) / 10 = 15 / 10 = 1.50 m

The center of mass is at (2.20 m, 1.50 m), closer to the heavier 5 kg particle, as expected.

When to Use a Center of Mass Calculator

Use this tool whenever you need to find the balance point of a system:

  • Physics homework: calculating the motion of a two-body system, such as binary stars or colliding carts.
  • Engineering: determining the centroid of a bracket or beam cross-section for stress analysis.
  • Everyday life: balancing a see-saw with children of different weights, or finding the center of gravity of a loaded truck.
  • Astronomy: locating the barycenter of a planet-moon system (the point both bodies orbit around).

The center of mass is the point where a single force can act to produce pure translation without rotation. If you support an object exactly at its center of mass, it will balance in any orientation (in a uniform gravitational field).

How to Read the Result

The output coordinates are relative to the origin you chose. If you place your coordinate system at the left edge of an object, the x-coordinate of the center of mass tells you how far from that edge the balance point lies. The y-coordinate gives the vertical position.

Key insights:

  • If all masses are equal, the center of mass is simply the average of the positions (the centroid).
  • A heavier mass pulls the center of mass closer to itself.
  • If the center of mass lies outside the object’s physical boundaries (e.g., a donut or a boomerang), the object can still balance—it just needs a support that reaches that point.

Common Mistakes and Limitations

  • Unit mismatch: Mixing grams and kilograms, or meters and centimeters, will give wrong results. Convert all values to the same unit before entering.
  • Ignoring negative coordinates: The formula works fine with negative positions; just be careful with signs.
  • Assuming center of mass equals center of gravity: They coincide only in a uniform gravitational field. For very tall objects, gravity varies slightly, but for everyday calculations the difference is negligible.
  • Continuous shapes: The point-mass formula only works for discrete particles. For a solid object, you must integrate or break it into simpler shapes whose centers you know (e.g., a rectangle’s center is at its midpoint).

Also note: the center of mass is not always at the geometric center. A solid sphere’s center of mass is at its center, but a hollow sphere’s center of mass is also at its center (even though there’s no mass there). For a crescent-shaped object, the center of mass may lie in the empty space.

Alternatives and Related Concepts

If you need the center of mass of a continuous shape, there are a few options:

  • Centroid of a triangle: The average of the three vertices’ coordinates.
  • Centroid of a semicircle: Located at 4r/(3Ï€) from the flat edge along the symmetry axis.
  • Compound shapes: Divide into rectangles, triangles, circles, etc., find each piece’s center and area (as a proxy for mass if density is uniform), then use the weighted average formula.

For objects with non-uniform density, you need the density function and integration. In engineering software, finite element analysis computes centers of mass for complex parts automatically.

Frequently Asked Questions

What is the difference between center of mass and center of gravity?
In a uniform gravitational field, they are the same point. Center of mass is a purely geometric property of mass distribution; center of gravity is the point where the total weight acts. For objects small compared to Earth’s radius, the difference is negligible.

Can the center of mass be outside the object?
Yes. For a ring, a horseshoe, or a boomerang, the center of mass lies in the empty space. The object can still balance if supported at that point—think of a ring balancing on a pencil tip at its center.

How do I find the center of mass of a triangle?
For a uniform triangular plate, the center of mass (centroid) is at the average of the three vertices’ coordinates: ((xâ‚�+xâ‚‚+x₃)/3, (yâ‚�+yâ‚‚+y₃)/3). It is also the intersection of the medians, located 2/3 of the way from each vertex to the midpoint of the opposite side.

Does the center of mass change if I rotate the object?
No. The center of mass is a fixed point relative to the object’s geometry. Rotating the object moves the point in space along with it, but its position within the object remains the same.

What if I have more than three particles?
The calculator above handles up to three for simplicity, but the formula extends directly: add more terms in the numerator and denominator. For many particles, you can group them or use a spreadsheet.

Why is the center of mass important for stability?
An object is stable if its center of mass lies above its base of support. If you tilt an object and the center of mass passes outside the base, it will tip over. This is why a car with a low center of mass is less likely to roll than a tall SUV.

Related

Formula used
in n | Number of particles | - | 3 | 1
in m1 | Mass 1 | kg | 2 | 0
in x1 | x1 | m | 0 | 0
in y1 | y1 | m | 0 | 0
in m2 | Mass 2 | kg | 3 | 0
in x2 | x2 | m | 4 | 0
in y2 | y2 | m | 0 | 0
in m3 | Mass 3 | kg | 5 | 0
in x3 | x3 | m | 2 | 0
in y3 | y3 | m | 3 | 0
out cmx | Center of mass x | m | (m1*x1 + m2*x2 + m3*x3) / (m1 + m2 + m3) | 2
out cmy | Center of mass y | m | (m1*y1 + m2*y2 + m3*y3) / (m1 + m2 + m3) | 2
out total | Total mass | kg | m1 + m2 + m3 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.