Center of Mass Calculator
Calculate the center of mass for a system of point masses in 2D. Get COM coordinates, moment of inertia, and radius of gyration.
Center of Mass Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: x_com = Sum(m_i * x_i) / Sum(m_i) | y_com = Sum(m_i * y_i) / Sum(m_i)
Worked example โ COM = (3.667, 3.833) | Total mass = 12 kg
Formula
x_com = Sum(m_i * x_i) / Sum(m_i) | y_com = Sum(m_i * y_i) / Sum(m_i)
The center of mass is the weighted average position of all point masses. Each coordinate is calculated by summing the product of each mass and its position, then dividing by the total mass. This gives the balance point of the entire system.
Worked Examples
Example 1: Three-Mass System
Problem:Find the center of mass of three point masses: 5 kg at (2, 3), 3 kg at (6, 1), and 4 kg at (4, 7).
Solution:Total mass: 5 + 3 + 4 = 12 kg x_com = (5*2 + 3*6 + 4*4) / 12 = (10 + 18 + 16) / 12 = 44/12 = 3.667 y_com = (5*3 + 3*1 + 4*7) / 12 = (15 + 3 + 28) / 12 = 46/12 = 3.833 Center of mass: (3.667, 3.833) Moment of inertia about the COM: 5(3.472) + 3(13.472) + 4(10.139) = 98.33 kg*m^2
Result:COM = (3.667, 3.833) | Total mass = 12 kg
Example 2: Balanced Beam Problem
Problem:A beam has masses of 10 kg at x=0, 5 kg at x=3, and 15 kg at x=8 (all at y=0). Where is the center of mass?
Solution:Total mass: 10 + 5 + 15 = 30 kg x_com = (10*0 + 5*3 + 15*8) / 30 = (0 + 15 + 120) / 30 = 135/30 = 4.500 y_com = (10*0 + 5*0 + 15*0) / 30 = 0 Center of mass: (4.500, 0.000) The fulcrum should be placed at x = 4.5 to balance the beam
Result:COM = (4.500, 0.000) | Balance point at x = 4.5 m
Frequently Asked Questions
What is the center of mass and why is it important?
The center of mass (COM), also called the centroid or center of gravity in uniform gravitational fields, is the weighted average position of all the mass in a system. It is the unique point where the weighted position vectors of all parts sum to zero. The center of mass is critically important in physics and engineering because it is the point where an object can be balanced, where gravity effectively acts on the entire body, and around which rotational motion naturally occurs. In aerospace engineering, the COM determines aircraft stability. In structural engineering, it affects load distribution. In robotics, maintaining the COM over the support base prevents tipping. Understanding COM is fundamental to mechanics, dynamics, and virtually every branch of physical science.
How is the center of mass calculated for a system of discrete point masses?
For a system of discrete point masses, the center of mass coordinates are calculated as weighted averages. In two dimensions, the x-coordinate of the COM is the sum of each mass times its x-position divided by the total mass: x_com = (m1*x1 + m2*x2 + ... + mn*xn) / (m1 + m2 + ... + mn). Similarly, y_com uses the y-positions. This extends naturally to three dimensions by adding a z-component. The formula ensures that heavier masses pull the center of mass closer to their positions. For two equal masses, the COM is exactly at the midpoint between them. For unequal masses, the COM is closer to the heavier mass, proportional to the mass ratio. This discrete formula is the foundation for understanding the continuous case used with solid objects.
What is the moment of inertia and how does it relate to the center of mass?
The moment of inertia is a measure of an object's resistance to rotational acceleration about a given axis, analogous to how mass resists linear acceleration. For a system of point masses, the moment of inertia about the center of mass is calculated as I = sum of (m_i x r_i^2), where r_i is the distance from each mass to the center of mass. The parallel axis theorem states that the moment of inertia about any axis equals the moment about a parallel axis through the COM plus the total mass times the square of the distance between axes: I = I_com + M*d^2. This means the moment of inertia is always minimized about the center of mass, which is why objects naturally rotate about their COM when no constraints are applied.
How does the center of mass differ from the centroid and center of gravity?
These three concepts are related but distinct. The centroid is a purely geometric concept representing the average position of all points in a shape, calculated without considering mass or density variations. The center of mass accounts for mass distribution and equals the centroid only when density is uniform throughout the object. The center of gravity is the point where gravitational torque is zero, and it equals the center of mass only in a uniform gravitational field. On Earth, for objects smaller than a few kilometers, the gravitational field is essentially uniform, so the center of mass and center of gravity are practically identical. In space or for very large objects, gravitational field variations can cause these points to differ slightly.
What are practical applications of center of mass calculations?
Center of mass calculations have extensive real-world applications across many fields. In automotive engineering, the COM height determines rollover risk and cornering stability. In architecture, knowing the COM of structural elements ensures proper load bearing and prevents toppling. Sports biomechanics uses COM analysis to optimize athletic techniques such as high jump (the Fosbury Flop exploits COM physics to clear higher bars), diving, and gymnastics. In aerospace, precise COM calculations are critical for satellite attitude control and rocket stability. Manufacturing uses COM to design balanced rotating machinery. Even in everyday activities like carrying groceries or riding a bicycle, your body instinctively adjusts to keep the combined COM within your support base to maintain balance.
What does the radius of gyration tell you about a mass system?
The radius of gyration k is defined by k = sqrt(I / M), where I is the moment of inertia about the center of mass and M is the total mass. It is the single distance at which the whole mass could be concentrated as one ring or point pair and still produce the same rotational inertia, so it compresses the entire spatial spread of the system into one length. For the beam with 10 kg at x=0, 5 kg at x=3 and 15 kg at x=8, the COM sits at x = 4.5, I = 397.5 kg*m^2 and M = 30 kg, so k = sqrt(13.25) = 3.640 m.
Can the center of mass fall outside the object or outside every point mass?
Yes for a continuous body, no for the individual masses in a discrete system. A uniform ring, a horseshoe, and an L-shaped bracket all have a center of mass located in empty space, which is why a high jumper using the Fosbury Flop can pass over a bar that the COM never crosses. For a set of point masses, however, the COM is a weighted average with positive weights, so it always lies inside the convex hull of the points: never beyond the outermost mass in any direction.
Does the result change if I move the coordinate origin or rotate the axes?
The center of mass is a physical location, not an artifact of your coordinate choice. Because x_com is linear in the positions, shifting every x by a constant c shifts x_com by exactly c, and rotating the axes rotates the COM with them, so the point stays attached to the same spot in the body. Quantities measured relative to the COM, such as the moment of inertia about it and the radius of gyration, are unchanged entirely. Choose whichever origin makes your data easiest to enter, often a corner or one of the masses.
How do I find the center of mass of a plate that has a hole cut in it?
Use the negative-mass method. Treat the solid shape as one positive mass at its own centroid and the removed hole as a negative mass at the centroid of the hole, then apply the same weighted average: x_com = (M1*x1 - M2*x2) / (M1 - M2). For a uniform sheet the masses are proportional to areas, so you can substitute areas directly. The same trick handles several holes and composite assemblies of different materials, provided you weight each piece by its own density times its volume rather than by volume alone.
How does the center of mass move when the parts of a system are moving?
Its velocity is the mass-weighted average of the individual velocities, v_com = sum(m_i * v_i) / M, so the total momentum of the whole system is simply p = M * v_com. Newton's laws then apply to that single point: with no net external force the COM travels in a straight line at constant velocity no matter how violently the parts interact. That is why an exploding firework's fragments still straddle a smooth parabolic path, and why internal motion alone can never shift a system's overall trajectory.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎMass Converter
Calculate mass converter with inputs, formulas, and instant results.
โ๏ธMass Calculator
Calculate mass from density and volume
๐๏ธWeight Calculator
Convert between weight units
๐งฎAnnulus Area Calculator
Calculate annulus area with inputs, formulas, and instant results.
๐งฎArea Calculator
Calculate area with inputs, formulas, and instant results.
๐งฎArea of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.
๐งฎArea of Crescent Calculator
Calculate area of crescent with inputs, formulas, and instant results.
๐งฎCentroid Calculator
Calculate centroid with inputs, formulas, and instant results.