Center of Gravity Calculator – Accurate & Instant Physics Tool


Center of Gravity Calculator


Select the unit system for all masses and coordinates.


Point Mass 1






Point Mass 2







Visual representation of point masses and their combined Center of Gravity.

What is a Center of Gravity Calculator?

A center of gravity calculator is a powerful tool used in physics and engineering to determine the unique point in an object or system of objects where the total weight is considered to act. This point, known as the Center of Gravity (CoG), is the balance point. If you could support the entire system on a single point, that point would be the CoG. For a uniform gravitational field, the center of gravity is identical to the center of mass.

This tool is essential for anyone from students learning mechanics to engineers designing complex structures like bridges, aircraft, and vehicles. Understanding the CoG is critical for ensuring stability. An incorrect calculation can lead to unstable and unsafe designs. For example, a crane’s stability depends entirely on its center of gravity remaining within its base of support. Our tool simplifies the process, allowing you to quickly find the CoG for a system of discrete point masses.

Center of Gravity Formula and Explanation

The center of gravity calculator finds the CoG by computing a weighted average of the positions of each mass in the system. The ‘weight’ for each position is the mass at that point. The formula is applied separately for each coordinate axis (X and Y for a 2D system).

The formulas are:

Xcg = Σ(mi * xi) / Σmi

Ycg = Σ(mi * yi) / Σmi

These equations are fundamental in mechanics. The numerator (e.g., Σ(mi * xi)) is called the first moment of mass about the axis, which is a measure of how mass is distributed in space. To go deeper into rotational forces, you might need a moment of inertia calculator.

Variables Explained

Variables used in the center of gravity calculation.
Variable Meaning Unit (Auto-Inferred) Typical Range
Xcg, Ycg The coordinates of the center of gravity. Length (e.g., m, ft) Depends on object positions
mi The mass of an individual point ‘i’ in the system. Mass (e.g., kg, lb) > 0
xi, yi The coordinates of the individual point ‘i’. Length (e.g., m, ft) Any real number
Σmi The total mass of the entire system. Mass (e.g., kg, lb) Sum of all individual masses

Practical Examples

Example 1: A Simple Dumbbell

Imagine a dumbbell with two masses connected by a massless rod. Let’s find its balance point.

  • Inputs:
    • Mass 1: 5 kg at position (x= -1 m, y= 0 m)
    • Mass 2: 5 kg at position (x= 1 m, y= 0 m)
  • Calculation:
    • Total Mass = 5 kg + 5 kg = 10 kg
    • X-Moment = (5 * -1) + (5 * 1) = -5 + 5 = 0 kg·m
    • Y-Moment = (5 * 0) + (5 * 0) = 0 kg·m
    • Xcg = 0 / 10 = 0 m
    • Ycg = 0 / 10 = 0 m
  • Result: The center of gravity is at (0, 0), exactly in the middle, as expected for a symmetrical object. You can use our center of gravity calculator to verify this instantly.

Example 2: An Unbalanced System

Now consider a more complex, unbalanced system. This shows why a centroid vs center of gravity distinction is important for non-uniform bodies.

  • Inputs (Imperial):
    • Mass 1: 20 lb at position (x= 2 ft, y= 5 ft)
    • Mass 2: 50 lb at position (x= 10 ft, y= 8 ft)
  • Calculation:
    • Total Mass = 20 lb + 50 lb = 70 lb
    • X-Moment = (20 * 2) + (50 * 10) = 40 + 500 = 540 lb·ft
    • Y-Moment = (20 * 5) + (50 * 8) = 100 + 400 = 500 lb·ft
    • Xcg = 540 / 70 ≈ 7.71 ft
    • Ycg = 500 / 70 ≈ 7.14 ft
  • Result: The CoG at (7.71, 7.14) is pulled much closer to the heavier 50 lb mass.

How to Use This Center of Gravity Calculator

Our tool is designed for ease of use and accuracy. Follow these simple steps to find the CoG of your system:

  1. Select Units: Start by choosing your preferred unit system (Metric or Imperial). This will apply to all mass and distance inputs.
  2. Enter Point Masses: The calculator starts with two point masses. For each point, enter its mass and its X and Y coordinates.
  3. Add More Masses (If Needed): If your system has more than two masses, click the “Add Point Mass” button to create a new input row.
  4. View Real-Time Results: The calculator automatically updates the results as you type. The final Center of Gravity (Xcg, Ycg) is prominently displayed. You can also see intermediate values like total mass and moments.
  5. Analyze the Chart: The visual chart plots each point mass (blue circles) and the calculated CoG (green circle), giving you an intuitive understanding of the result.
  6. Reset: Click the “Reset” button to clear all inputs and start a new calculation.

Knowing how to find the center of gravity is a key skill, and this tool helps visualize the process perfectly.

Key Factors That Affect Center of Gravity

The location of the center of gravity is not arbitrary; it’s governed by several key factors related to the system’s physical properties. Understanding them is crucial for anyone in engineering mechanics basics.

  • Mass Distribution: This is the most critical factor. The CoG will always be located closer to the regions with greater mass.
  • Object Geometry: The shape of an object dictates how its mass is distributed. A long, thin rod has a different CoG location than a flat, square plate of the same mass.
  • Adding or Removing Mass: Adding weight to a system will shift the CoG toward the added weight. Removing weight shifts it away. This is why fuel consumption changes an airplane’s CoG.
  • System Orientation: While the CoG is a fixed point relative to the object itself, its coordinates change if you rotate the coordinate system you are using for measurement.
  • Uniformity of Material: For a single object, if the material density is not uniform (e.g., a hammer with a steel head and wooden handle), the CoG will not be at the geometric center (the centroid). It will be closer to the denser part.
  • State of Matter: For flexible or fluid systems, the CoG can change as the shape changes. For instance, the CoG of a person changes when they raise their arms. Our center of gravity calculator is ideal for modeling these as simplified point mass systems.

Frequently Asked Questions (FAQ)

1. What’s the difference between Center of Gravity and Center of Mass?

For most practical purposes on Earth, they are the same point. Technically, the Center of Gravity is the balance point based on weight, while the Center of Mass is the balance point based on mass. They only differ in an extremely non-uniform gravitational field.

2. Can the center of gravity be outside the physical object?

Yes, absolutely. A classic example is a doughnut or a boomerang. The CoG is in the empty space in the middle. The same can happen for a system of separate objects, as our calculator shows.

3. What happens if I enter a mass of zero?

A mass of zero has no effect on the calculation, as it contributes nothing to the total mass or the moments. Our center of gravity calculator will simply ignore it.

4. Why is the center of gravity important for stability?

An object is stable as long as its center of gravity is above its base of support. A lower CoG generally leads to greater stability, which is why racing cars are built so low to the ground. This principle is vital in structural analysis software.

5. How does this calculator handle 3D objects?

This is a 2D calculator, designed for systems that can be simplified onto a plane (X-Y). For a 3D calculation, you would need an additional Z-coordinate for each mass and a corresponding formula for Zcg.

6. Can I use negative coordinates?

Yes. The coordinate system is relative. Negative values simply mean the mass is located to the left of the Y-axis or below the X-axis, relative to your chosen origin (0,0).

7. What does the “moment” in the results mean?

The “first moment of mass” (e.g., X-Moment) is a measure of the distribution of mass relative to an axis. It’s an intermediate value used to find the weighted average that gives us the final CoG. Analyzing moments is key to understanding how forces cause rotation, a concept also explored in a beam deflection calculator.

8. Is this the same as a centroid calculator?

It’s very similar. A centroid calculator finds the geometric center of a shape, assuming uniform density. A center of gravity calculator uses actual mass values, making it accurate for non-uniform and multi-object systems.

© 2026 Your Website Name. All rights reserved. For educational and illustrative purposes only.



Leave a Reply

Your email address will not be published. Required fields are marked *