Works on this device
Center of Mass Calculator
The centre of mass is the one point where an object or a group of objects balances. Enter the masses and their positions, or choose a shape, and get the point with the formula and your numbers.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to calculate. For separate masses, choose on a line, in a plane or in space, by how many coordinates each mass has.
- Type each mass and its position in a row. Choose Add a mass for more rows. You can give each mass a short name.
- Pick the unit for the masses and the unit for the positions above the rows. Positions may be below 0.
- Choose Calculate. The result gives each coordinate of the centre of mass, the total mass and a table with the moment of each mass.
- For a shape such as a triangle, a half disc or a cone, choose Centre of mass of a standard shape. For a density formula or a region between two curves, choose one of the two calculus options.
The formulas
- Point masses: x̄ = Σ(m × x) ÷ Σm. Multiply each mass by its position, add the products, and divide by the total mass. Do the same with y and z for the other coordinates.
- Two masses: the centre of mass lies on the line between them, nearer to the heavier one. Its distance from the first mass is d × m₂ ÷ (m₁ + m₂).
- Rod with a density λ(x): x̄ = ∫ x × λ(x) dx ÷ ∫ λ(x) dx.
- Flat region between y = f(x) above and y = g(x) below: A = ∫ (f − g) dx, x̄ = ∫ x × (f − g) dx ÷ A and ȳ = ∫ ½ × (f² − g²) dx ÷ A.
- Centre of gravity: the same point as the centre of mass when gravity is the same for every part. So the same equation works with weights in place of masses.
Centre of mass of standard shapes
Each shape is made of one even material. The distance is measured along the line of symmetry.
| Shape | Distance of the centre of mass | Measured from |
|---|---|---|
| Triangle (plate) | h ÷ 3 | the base |
| Half disc (plate) | 4 × r ÷ (3 × π), about 0.4244 × r | the straight edge |
| Quarter disc (plate) | 4 × r ÷ (3 × π) | each straight edge |
| Sector of a disc with the angle θ | 4 × r × sin(θ ÷ 2) ÷ (3 × θ) | the centre of the circle |
| Trapezoid with bottom side a and top side b | h × (a + 2 × b) ÷ (3 × (a + b)) | the bottom side |
| Half ring (wire) | 2 × r ÷ π, about 0.6366 × r | the centre of the circle |
| Arc of a circle with the angle θ (wire) | 2 × r × sin(θ ÷ 2) ÷ θ | the centre of the circle |
| Solid half ball | 3 × r ÷ 8 | the flat face |
| Hollow half ball (thin shell) | r ÷ 2 | the open flat side |
| Solid cone or pyramid | h ÷ 4 | the base |
| Hollow cone (thin side wall) | h ÷ 3 | the open base |
Worked examples
Three masses are on a line: 2 kg at 0 m, 3 kg at 4 m and 5 kg at 10 m. x̄ = (2 × 0 + 3 × 4 + 5 × 10) ÷ (2 + 3 + 5) = 62 ÷ 10 = 6.2 m.
Three masses are in a plane: 2 kg at (0, 0), 3 kg at (4, 0) and 5 kg at (0, 3), in metres. x̄ = 12 ÷ 10 = 1.2 m and ȳ = 15 ÷ 10 = 1.5 m.
A half disc has a radius of 10 cm. Its centre of mass is 4 × 10 ÷ (3 × π) = 4.24413 cm from the straight edge.
A rod from x = 0 to x = 4 has the density λ(x) = 3 + 2x. Its mass is 28 and its first moment is 66.6667, so x̄ = 66.6667 ÷ 28 = 2.38095. The rod is heavier at the far end, so this is past the middle at 2.
The region between y = x and y = x² from x = 0 to x = 1 has an area of 0.166667. Its centre of mass is at x̄ = 0.5 and ȳ = 0.4.
A car stands on four scales: 420 kg and 400 kg at the front, 340 kg and 340 kg at the rear. The wheelbase is 2,700 mm. The centre of gravity is 2,700 × 680 ÷ 1,500 = 1,224 mm behind the front axle, and the front axle carries 54.67% of the weight.
Limits you should know
- Each mass in a row is treated as a point. For a large part, enter the position of its own centre of mass.
- For a flat plate made of simple pieces, enter each piece as one row with the position of its own centre. For a hole, enter the missing part with a minus sign.
- The shapes in the list are made of one even material. A shape with heavier and lighter parts needs the rows or the density option.
- The two calculus options work the integrals out with numbers, not with symbols, so they give decimals and not exact fractions. They do not read a density formula in two variables.
- When a formula grows without limit inside the limits, the page tells you and gives no number.
- The car option gives the place of the centre of gravity along and across the car. It does not give its height.
- The shear centre of a beam section is a different point. This page does not find it.