A little context. A clearer answer.
When this calculator is useful
Sum the masses, then form the mass-weighted average of each coordinate. The same masses enter every denominator, including objects at the origin. Distance is measured from that origin. A plane projection changes only the picture. For a related calculation, try Linear momentum and impulse calculator.
What to enter
| Input | What it means | Example value |
|---|---|---|
| m (kg); x (m); y (m); z (m) | m (kg); x (m); y (m); z (m): Use one row per line and semicolons between columns; use decimal dots and stay within the stated row limits. | 2;0;0;0 3;4;0;0 5;0;2;0 |
| Projection | Projection: x–y / x–z / y–z | x–y |
How the calculation works
- Change the inputs to explore your own scenario. m (kg); x (m); y (m); z (m): Use one row per line and semicolons between columns; use decimal dots and stay within the stated row limits.; Projection: x–y / x–z / y–z.
- M=Σmᵢ; (x̄,ȳ,z̄)=Σmᵢ(xᵢ,yᵢ,zᵢ)/M
- Each line is mass in kg; x in m; y in m; z in m, with a dot decimal separator. Use one common origin and axes. Point masses must be positive. The plot is a selected planar projection; it does not calculate the centroid of a continuous solid or certify balance or stability.
M=Σmᵢ; (x̄,ȳ,z̄)=Σmᵢ(xᵢ,yᵢ,zᵢ)/MA worked example
Place 2 kg at (0, 0, 0), 3 kg at (4, 0, 0) and 5 kg at (0, 2, 0), with positions in metres. The x coordinate is (3 × 4) ÷ 10 = 1.2 m and the y coordinate is (5 × 2) ÷ 10 = 1 m. All the masses lie at z = 0, so the centre is (1.2, 1, 0) m. Using the displayed Earth–Moon data from OpenStax gives about 4.65 million metres from Earth’s centre.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Each line is mass in kg; x in m; y in m; z in m, with a dot decimal separator. Use one common origin and axes. Point masses must be positive. The plot is a selected planar projection; it does not calculate the centroid of a continuous solid or certify balance or stability.
Frequently asked questions
Do zero coordinates remove a mass?
No. An object at the origin still contributes to total mass.
Is the diagram three dimensional?
It shows the selected x–y, x–z or y–z projection. All three coordinates are calculated.
Can I enter a continuous density profile?
No. This model accepts discrete point masses or lumped masses with known centers.