MULTICALCI
Composite body method · mass-weighted average

Center of Gravity Calculator

Find the combined centre of gravity of an assembly from each component's mass and position. Returns total mass, weight, X and Y coordinates and a percentage contribution breakdown — with negative masses supported for holes and cut-outs.

Any number of components 2D X–Y Negative mass for cut-outs Contribution breakdown

Calculate assembly center of gravity

Component Masses & Positions
Component Mass (kg) X (mm) Y (mm)
Enter a negative mass for a hole or cut-out.
Enter your components and select Calculate.

Center of gravity formula

The centre of gravity of a group of bodies is the mass-weighted average of their positions. Each component's coordinate is weighted by how much mass it contributes, so a heavy part near the origin pulls the answer far more than a light part far away.

M = Σ mi — total mass, kg = Σ (mi · xi) / M — centre of gravity, X Ȳ = Σ (mi · yi) / M — centre of gravity, Y W = M × 9.81 — total weight, N %i = mi / M × 100 — contribution of each component

mi mass of component i (kg) · xi, yi its coordinates · M total mass · , Ȳ combined centre of gravity

Holes are negative mass. To handle a pocket, bore or cut-out, model the part as if solid and then add a second entry with negative mass at the centroid of the removed volume. This is the standard composite-body method and it works for any number of subtractions, provided the total mass stays positive.

Worked example

A pump skid carries a motor, gearbox and pump on a fabricated baseframe. Coordinates are measured from the bottom-left corner of the frame.

Given
Motor
120 kg at (300, 450)
Gearbox
85 kg at (750, 400)
Pump
60 kg at (1150, 380)
Baseframe
210 kg at (700, 100)
Step 1 — total mass
M = 120 + 85 + 60 + 210
475 kg
W = 475 × 9.81
4 659.8 N
Step 2 — first moments
Σ m·x = 36 000 + 63 750 + 69 000 + 147 000
315 750 kg·mm
Σ m·y = 54 000 + 34 000 + 22 800 + 21 000
131 800 kg·mm
Step 3 — centre of gravity
X̄ = 315 750 / 475
664.74 mm
Ȳ = 131 800 / 475
277.47 mm
CoG at (664.74, 277.47) mm · 475 kg · 4 659.8 N

The baseframe is 44 % of the mass and sits low at Y = 100, which is what pulls the combined height down to 277 mm despite the machinery sitting at 380–450 mm. Lifting lugs should straddle X = 665 mm, not the geometric middle of the frame — a common and expensive mistake when a skid tilts on first lift.

Units and conventions

QuantitySymbolUnitNotes
Component massmikgNegative for cut-outs
X positionximmAny consistent length unit
Y positionyimmAny consistent length unit
Total massMkgMust be non-zero
Total weightWNM × 9.81
Centre of gravityX̄, ȲmmSame unit as inputs

Coordinates are unit-agnostic — millimetres, metres or inches all work, provided every component uses the same unit and the same origin. The result comes back in that unit. Weight is the only output tied to a specific unit, since it assumes mass in kilograms.

Choosing a datum

ApplicationSuggested originWhy
Machine skidBottom-left of baseframeMatches fabrication drawings and lifting layout
Rotating assemblyShaft centrelineRadial offset is the imbalance
Vessel or tankBottom tangent lineHeight above support governs overturning
Transport loadFront axle or trailer kingpinDetermines axle load distribution

Frequently asked questions

How do you calculate the center of gravity of an assembly?

Multiply each component's mass by its coordinate, add those products together, and divide by the total mass. Doing this separately for the X and Y directions gives the coordinates of the combined centre of gravity. The result is a mass-weighted average position, so heavy components pull the answer toward themselves far more strongly than light ones.

Can I use negative mass for holes and cut-outs?

Yes. Entering a negative mass at the position of a hole, pocket or cut-out subtracts that material from the calculation, which is the standard composite-body method. Model the part as if it were solid, then add a negative entry for each removed volume at the centroid of that volume. The total mass must remain positive or the calculation has no physical meaning.

What is the difference between center of gravity, centroid and center of mass?

Centre of mass is the mass-weighted average position of a body. Centre of gravity is where the resultant weight acts, and it coincides with centre of mass whenever the gravitational field is uniform — which it effectively is for anything of engineering size. Centroid is the purely geometric average position of a volume or area, and it equals the centre of mass only when density is uniform throughout.

Why does center of gravity matter for lifting and transport?

Lifting points must straddle the centre of gravity or the load will tilt and swing when it leaves the ground. For road transport the position determines axle loading and the height determines rollover threshold. For a machine skid or a vessel the centre of gravity sets the tipping angle and governs how anchor bolts and supports are loaded.

What coordinate origin should I use?

Any origin works because the calculation is a weighted average, but choosing a physically meaningful datum makes the result easier to act on. Common choices are the bottom-left corner of a baseframe, the centreline of a shaft, or a machined reference face. Use the same origin and the same length unit for every component, and record which datum you used alongside the answer.

Related mechanical calculators

← All mechanical engineering calculators