Center of Mass Calculator - Multi-Point Mass System
Calculate the center of mass (centroid) for any number of point masses in 2D using the weighted average formula.
Enter masses and their x,y coordinates to find the center of mass. Add as many mass points as needed.
Center of Mass Calculator - Multi-Point Mass System
Calculate the center of mass (centroid) for any number of point masses in 2D using the weighted average formula.
Mass (kg)X Position (m)Y Position (m)
About the Center of Mass Calculator
The center of mass (also called the centroid or center of gravity in uniform gravitational fields) is the unique point in a system where the total mass can be considered to be concentrated for the purposes of analyzing translational motion. For a collection of point masses, the center of mass is computed as a weighted average of positions, with each mass weighted by its own value.
For a set of n point masses m₁, m₂, ..., mₙ located at coordinates (x₁, y₁), (x₂, y₂), ..., (xₙ, yₙ), the center of mass coordinates are:
x_cm = (m₁x₁ + m₂x₂ + ... + mₙxₙ) / (m₁ + m₂ + ... + mₙ)
y_cm = (m₁y₁ + m₂y₂ + ... + mₙyₙ) / (m₁ + m₂ + ... + mₙ)
This formula generalizes naturally to three dimensions by adding a z_cm component. For continuous mass distributions (rods, plates, volumes), integration replaces the discrete sums, but the principle — weighted average of position — remains the same.
The center of mass is fundamental in classical mechanics. Newton's laws for a system of particles can be written in terms of the center-of-mass motion: the total external force on the system equals the total mass times the acceleration of the center of mass. This means the center of mass moves exactly as a single particle of total mass under the net external force, regardless of internal forces.
In engineering, center of mass calculations are critical for structural stability, vehicle dynamics, and spacecraft attitude control. A structure is stable if its center of mass lies directly above its base of support. Aircraft and spacecraft require careful mass balancing to maintain controllable flight — shifting cargo or fuel changes the center of mass and thus the vehicle's response to control inputs.
In robotics, center of mass tracking is essential for balance and locomotion. Walking robots must continuously predict and adjust their center of mass trajectory to avoid falling. In sports science, understanding an athlete's center of mass path helps optimize technique in jumping, gymnastics, and throwing.
This calculator supports any number of mass points in two dimensions, with selectable units for both mass and position. Results are computed using full floating-point precision and displayed to 8 significant digits.
Center of Mass Examples
Sample center of mass calculations for common configurations of point masses.
| Mass System | Center of Mass | Notes |
|---|---|---|
| 2 kg at (0,0), 2 kg at (4,0) | x_cm = 2, y_cm = 0 | Equal masses symmetrically placed — center is midpoint |
| 1 kg at (0,0), 3 kg at (4,0) | x_cm = 3, y_cm = 0 | Heavier mass at x=4 pulls center of mass toward it |
| 5 kg at (1,1), 5 kg at (3,1), 5 kg at (2,3) | x_cm = 2, y_cm = 1.667 | Equilateral triangle of equal masses — centroid at geometric center |
| 10 kg at (0,0), 20 kg at (6,0), 30 kg at (3,6) | x_cm = 3.5, y_cm = 3 | x_cm = (0+120+90)/60 = 3.5; y_cm = (0+0+180)/60 = 3 |
How to Use the Center of Mass Calculator
- Select the unit for mass (kg, g, lb, or oz) and the unit for position (m, cm, mm, ft, or in).
- Enter the mass and x, y coordinates for each mass point in the table rows.
- Click '+ Add Mass Point' to include additional masses in the system.
- Click Calculate to compute the center of mass coordinates x_cm and y_cm, plus the total mass.
- Click Reset to clear all fields and return to the default two-point layout.
Center of Mass FAQ
What is the center of mass?
The center of mass is the point where the total mass of a system can be considered concentrated for the purpose of analyzing external forces and translational motion. It is computed as the weighted average of all mass positions: x_cm = Σ(mᵢ·xᵢ) / Σmᵢ. In a uniform gravitational field, the center of mass coincides with the center of gravity.
How is center of mass calculated for multiple point masses?
Multiply each mass by its coordinate, sum those products, then divide by the total mass. For x: x_cm = (m₁x₁ + m₂x₂ + ... + mₙxₙ) / (m₁ + m₂ + ... + mₙ). Apply the same formula for y_cm using y coordinates. This calculator automates those sums for any number of masses.
What is the difference between center of mass and centroid?
The centroid is a purely geometric concept — the average position of a shape's boundary or area without regard to density. The center of mass accounts for the actual mass distribution. For a uniform-density object, the centroid and center of mass coincide. For non-uniform density, they differ.
Does the center of mass have to be inside the object?
No. For objects with holes, cavities, or concave shapes, the center of mass can lie outside the physical material. A ring's center of mass is at its geometric center — in the empty space inside. A horseshoe-shaped object also has its center of mass in air, at the midpoint of the opening.
Can I use this calculator for 3D systems?
This calculator handles 2D point masses (x and y coordinates). For 3D systems, you would also compute z_cm = Σ(mᵢ·zᵢ) / Σmᵢ using the same formula applied to z coordinates. The x and y results from this calculator remain valid for the corresponding components of a 3D calculation.
Why must the mass values be positive?
Physical mass is always positive, so the calculator requires positive values. Negative mass has no physical meaning in classical mechanics. If you enter zero mass for a point, that point contributes nothing to the center of mass calculation and is effectively ignored.