# Center of Mass Calculator

With this center of mass calculator, you can quickly find out the **center of mass of up to 10 discrete masses**. What is more, the tool allows you to choose between 1-, 2- or 3-dimensional systems. Impressive, isn't it? Below you'll also find the center of mass definition, as well as information on how to find the center of mass of a triangle.

Apart from the physics lesson, the center of the mass equation may be useful in real-life applications:

- if you're wondering how to find the center of mass when swinging with your child on the seesaw, you can make quick calculations with our tool
- for the DIY enthusiast, the center of mass equation is super useful for making e.g., a crib or ceiling mobile
- for those interested in cars, we also have the unique calculator to find the car mass center

## Center of mass definition

The center of mass is the point at which the whole mass of the body or system can be considered to be concentrated. In other words, if you apply a force to that point, it will cause only linear acceleration and no angular acceleration. Don't forget that **if the object has uniform density, then the center of mass is located at the centroid of the object**. This fact can make your calculations way easier!

In one plane, you can imagine the center of mass as a lever or a seesaw, with a mass on each end:

If you have two objects with the same mass, the center of mass will be exactly half of the distance between them. But what happens if you have a more massive object at one end? Where's the pivot point? Intuitively, we know that the center of mass will be closer to a heavier object. Where exactly it lays, you can find out using the center of mass equation.

## How to find the center of mass? Center of mass equation

In this center of mass calculator, the center of mass equation we've used is:

`Center of mass = (m`

_{1}r_{1} + m_{2}r_{2} + ... + m_{N}r_{N}) / (m_{1} + m_{2} + ... + m_{N})

where

`N`

- number of masses `m`

`r`

- distance from the reference point_{i}

The center of mass equation can be also shortened to:

`Center of mass = 1/M * Σ m`

_{i}r_{i}

where M is the sum of the masses of all of the particles: `M = m`

_{1} + m_{2} + ... + m_{N}

That's the general formula, but you can also extend that center of the mass equation to 1,2 or 3 dimensions in the Cartesian coordinate system. For example, if you have N particles (up to 10 in our calculator) in 3D, you can calculate the center of mass using:

`x`

_{com} = 1/M * Σ m_{i}x_{i}

`y`

_{com} = 1/M * Σ m_{i}y_{i}

`z`

_{com} = 1/M * Σ m_{i}z_{i}

where `i = 1,2, ..., N`

The formulas above work perfectly for discrete masses. However, if you have a continuous object with variable density, the computation of its integrals is needed.

## Center of mass of a triangle

If you're searching for the center of mass of a triangle, we're pretty sure that you want to find the arithmetic mean of the vertex coordinates. Given A = (x_{1},y_{1}), B = (x_{2},y_{2}), C = (x_{3},y_{3}), the center of mass equation can be written as:

`G = [ (x`

_{1}+x_{2}+x_{3})/3 , (y_{1}+y_{2}+y_{3})/3 ]

To calculate the center of mass of a triangle with this tool, enter the coordinates of the points of the triangle and make sure that the masses are all the same (the specific mass value doesn't matter). Also, you can simply use our centroid calculator.

While that is the most often common case, we cannot exclude the other cases: what happens if you have three masses forming the vertices of a triangle, but they differ in mass?

Let's assume that the mass in point B is 3 times bigger than the mass in points A and C:

As you can see, the center of mass moved towards the heavier point.

## Center of mass vs. center of gravity

Center of mass and the center of gravity are **the same when the gravitational field is considered to be uniform.** So, if the gravity gradient effects are negligible (which is most cases), you can use both terms interchangeably. However, if you're looking at some large interstellar object, e.g., satellites and planets, a slight variation in the gravitational field may lead to torque, which would mean you need to differentiate between those two terms.