Math July 13, 2026 · 8 Min Read

Center of Mass Calculator – Guide & Formulas

Calculate the center of mass (centroid) of a system of point masses in 2D or 3D. Enter mass and position values for instant results.

The Center of Mass Calculator finds the balance point of a system of point masses in 2D or 3D space. Enter the mass and position coordinates of each object, and the calculator determines the exact center of mass using the weighted average formula.

Key Takeaway

Use the free Center of Mass Calculator to calculate the center of mass (centroid) of a system of point masses in 2d or 3d. enter mass and position values for instant results. Get instant results with step-by-step explanations.

How to Use the Center of Mass Calculator

  1. Select 2D or 3D mode depending on your problem.
  2. Enter the mass and position coordinates (x, y, and optionally z) for each object.
  3. Add or remove objects as needed using the buttons.
  4. Review the calculated center of mass coordinates and total system mass.

The Formula

X_cm = Σ(m_i × x_i) / Σ(m_i) | Y_cm = Σ(m_i × y_i) / Σ(m_i) | Z_cm = Σ(m_i × z_i) / Σ(m_i)

Variable Definitions

  • x_cm: X-coordinate of the center of mass
  • y_cm: Y-coordinate of the center of mass
  • m_i: Mass of the i-th object in the system
  • x_i: X-position of the i-th object
  • y_i: Y-position of the i-th object

Example: Three Masses in 2D

Find the center of mass of three objects: m₁=2 kg at (1,3), m₂=3 kg at (4,1), m₃=5 kg at (2,5).

  1. Step 1: Calculate the total mass: M = 2 + 3 + 5 = 10 kg.
  2. Step 2: Calculate Σ(m_i × x_i): (2×1) + (3×4) + (5×2) = 2 + 12 + 10 = 24.
  3. Step 3: Calculate Σ(m_i × y_i): (2×3) + (3×1) + (5×5) = 6 + 3 + 25 = 34.
  4. Step 4: X_cm = 24/10 = 2.4, Y_cm = 34/10 = 3.4.
  5. Step 5: The center of mass is at (2.4, 3.4).

Frequently Asked Questions

What is the center of mass?

The center of mass is the weighted average position of all mass in a system. It is the point where the entire mass of the system can be considered to be concentrated for translational motion analysis.

How is center of mass different from centroid?

Center of mass is weighted by mass distribution, while centroid is purely geometric (weighted by area/volume uniformly). For objects of uniform density, they are the same point.

Can the center of mass be outside the object?

Yes, for non-convex shapes or systems of separated masses, the center of mass can lie outside any individual object. A boomerang is a common example.

What happens to center of mass when an object splits?

If no external forces act, the center of mass of the system continues along the same trajectory regardless of how the parts move internally. This is conservation of momentum.

How does gravity affect center of mass?

Gravity acts at the center of mass for translational calculations. In a uniform gravitational field, the center of mass and center of gravity are the same point.

What is the center of mass of a uniform rectangle?

For a uniform rectangle, the center of mass is at the geometric center: (l/2, w/2) measured from a corner. This is also called the centroid.

How do I find center of mass of a composite shape?

Decompose the shape into simpler parts, find each part's center of mass and area/mass, then apply the weighted average formula across all parts.

What is the center of mass of a triangle?

The center of mass of a uniform triangle is at the centroid, located at 1/3 of the height from each base. Coordinates: ((x₁+x₂+x₃)/3, (y₁+y₂+y₃)/3).

Does center of mass change with rotation?

No, center of mass is an intrinsic property of the mass distribution. Rotation about the center of mass does not change its position.

How is center of mass used in engineering?

Engineers use center of mass for stability analysis (vehicles, buildings), balancing rotating machinery, calculating projectile trajectories, and structural load distribution.

What is the center of mass of a circular disk?

For a uniform circular disk, the center of mass is at the geometric center. For a disk with non-uniform density, the center of mass shifts toward the denser region.

How do negative masses affect center of mass?

Mathematically, negative masses can be included in the formula, but physically negative mass does not exist in classical mechanics. The formula still works for mathematical systems.

What is the center of mass of a semicircle?

For a uniform semicircle of radius R, the center of mass is at distance 4R/(3π) from the flat edge, measured perpendicular to the diameter along the axis of symmetry.

How is center of mass calculated in 3D?

In 3D, you calculate X, Y, and Z components separately: X_cm = Σ(m_i × x_i)/M, Y_cm = Σ(m_i × y_i)/M, Z_cm = Σ(m_i × z_i)/M.

What is the center of mass of a system of two equal masses?

For two equal masses, the center of mass is exactly at the midpoint between them, regardless of the distance separating them.

How does mass distribution affect center of mass?

Heavier objects pull the center of mass toward them. If one mass is much larger than the others, the center of mass will be very close to that dominant mass.

What is the center of mass of a hollow sphere?

For a uniform hollow sphere (shell), the center of mass is at the geometric center. This is true regardless of the shell thickness.

Can I use this calculator for rotational dynamics?

Yes, center of mass is essential for rotational dynamics. The moment of inertia is calculated about the center of mass, and torque analysis depends on it.

How is center of mass related to center of gravity?

In a uniform gravitational field, center of mass and center of gravity coincide. In non-uniform fields (like near a massive planet), they can differ slightly.

What is the center of mass of a thin rod?

For a uniform thin rod of length L, the center of mass is at L/2 from either end. For a non-uniform rod, you integrate: x_cm = (1/M)∫x dm.