Car Center of Mass Calculator

Calculate the 3D center of gravity (CG) of any vehicle by adding components with their masses and coordinates — essential for handling, safety, and motorsport engineering.

Add vehicle components (engine, driver, fuel, cargo, ballast) with their mass and (X, Y, Z) coordinates relative to your chosen origin. Click Calculate to find the total mass and centre of gravity.

Car Center of Mass Calculator
Calculate the 3D center of gravity (CG) of any vehicle by adding components with their masses and coordinates — essential for handling, safety, and motorsport engineering.
Mass (kg)X (m)Y (m)Z (m)

Worked Examples

Click an example to load a pre-defined vehicle configuration.

Vehicle ModelCenter of GravityInterpretation
Sedan: chassis 1200 kg @ (1.2, 0, 0.5), driver 75 kg @ (1.5, −0.4, 0.9), passenger 75 kg @ (1.5, 0.4, 0.9), luggage 25 kg @ (2.8, 0, 0.7)Total = 1375 kg, CG ≈ (1.26, 0, 0.55) mCG is forward and low, typical of front-heavy sedans. Slightly forward of mid-wheelbase promotes understeer and stable everyday handling.
Race car: chassis 500 kg @ (1.0, 0, 0.25), driver 70 kg @ (1.3, 0.1, 0.6), rear ballast 50 kg @ (2.5, 0, 0.2)Total = 620 kg, CG ≈ (1.15, 0.01, 0.29) mVery low CG height (0.29 m) and near-central X position optimise cornering stability. Rear ballast shifts weight balance toward neutral.
Cargo truck: cab 2000 kg @ (1.5, 0, 1.0), driver 80 kg @ (1.0, −0.5, 1.5), cargo 1500 kg @ (4.0, 0.5, 1.2)Total = 3580 kg, CG ≈ (2.54, 0.20, 1.09) mHigh CG (1.09 m) and rearward X (2.54 m) reflect a loaded truck. High CG reduces rollover threshold; off-centre Y suggests asymmetric load.
Sports car: body 1300 kg @ (1.4, 0, 0.4), driver 60 kg @ (1.5, −0.3, 0.7), fuel 40 kg @ (2.2, 0, 0.3)Total = 1400 kg, CG ≈ (1.43, −0.01, 0.41) mLow CG (0.41 m) and nearly symmetric Y indicate a well-balanced sports car. CG close to geometric centre improves turn-in response.

About the Car Center of Mass Calculator

The centre of mass (CoM) — also called the centre of gravity (CG) in the context of uniform gravitational fields — is the single point in a body where the entire mass can be considered to act for the purpose of translational dynamics. For a complex assembly such as a vehicle, it is calculated as the mass-weighted average position of all its components. The mathematical formula is straightforward: CG_x = (Σ m_i × x_i) / M_total, and similarly for the Y and Z axes, where m_i is the mass of each component, (x_i, y_i, z_i) is its position relative to the chosen reference origin, and M_total is the sum of all masses. This calculator performs all three equations simultaneously. The choice of coordinate system is up to you. A common convention for vehicles is: origin at the centre of the front axle at ground level; X pointing toward the rear; Y pointing to the right (driver's perspective); Z pointing upward. This makes CG height (Z) and front-to-rear balance (X relative to wheelbase) immediately readable. The longitudinal position of the CG (X coordinate relative to wheelbase) determines the static axle load distribution. A CG positioned at 40 % of the wheelbase from the front axle means 60 % of weight sits on the front wheels — typical for a front-engine, front-drive car. Race engineers often target 50/50 distribution or adjust it intentionally for desired handling balance. The height of the CG (Z coordinate) is arguably the most safety-critical dimension. A lower CG reduces the tendency to roll over in cornering and reduces the amount of weight that transfers between the inner and outer wheels during a turn. This is why supercars have flat floors and racing cars mount heavy components (battery packs, fuel tanks) as low as possible. The lateral position of the CG (Y coordinate) affects left-right weight distribution. Race teams measure this precisely using corner weight scales and add ballast to equalise left and right tyre loads, improving consistent handling in both left and right corners. Road vehicles are designed to be as laterally symmetric as possible, though driver position and fuel tank asymmetry can introduce small offsets. Beyond passenger cars, CG calculation is critical for: commercial trucks and buses (rollover prevention, load limits); aircraft (longitudinal stability — CG must remain within the flight envelope); ships (metacentric height determines roll stability); and machinery (cranes, forklifts need CG below the tipping line).

How to Use the Car Center of Mass Calculator

  1. Define a coordinate system origin before entering data. A convenient choice: origin at the front axle centre at ground level, X toward the rear, Y toward the right, Z upward.
  2. For each major vehicle component (engine, chassis/body, transmission, driver, passengers, fuel, cargo, battery, ballast), enter its mass in kilograms and its estimated centre-of-mass position (X, Y, Z) in metres relative to your origin.
  3. Click Add Component to add rows for additional parts. Aim for components that together account for at least 90 % of the total vehicle mass for an accurate result.
  4. Click Calculate CG. The results display total mass and the (X, Y, Z) coordinates of the overall centre of gravity. The Z value is your CG height; X divided by the wheelbase gives the rear axle weight percentage.
  5. Use the example buttons to load pre-defined sedan, race car, and truck configurations to understand how changing mass distribution shifts the CG. Try removing the rear ballast from the race car example to see how the CG moves forward.

Frequently Asked Questions

What is the difference between centre of mass and centre of gravity?
The centre of mass is defined purely by mass distribution. The centre of gravity is the point where the net gravitational torque is zero. In a uniform gravitational field — which is a valid approximation for any vehicle on Earth — these two points are identical. The terms are used interchangeably in vehicle dynamics. They only differ in strongly non-uniform fields, such as near very massive objects in orbital mechanics.
How accurate does my component mass data need to be?
The accuracy of the calculated CG directly reflects the accuracy of your input data. For major components such as the engine block, chassis, or battery pack, manufacturer specifications are usually available and accurate to within a few percent. For distributed masses like wiring harnesses or interior trim, use estimated averages. In practice, an overall accuracy of ±5 % in component masses typically yields a CG position accurate to within a few centimetres — sufficient for most engineering decisions.
How does CG height affect vehicle rollover resistance?
The rollover threshold — the lateral acceleration at which a vehicle begins to tip — is approximately equal to half the track width divided by the CG height (g × T / (2h), where T is track width and h is CG height). A lower CG or wider track increases this threshold. Reducing CG height by 10 cm in a vehicle with a 1 m CG height and 1.6 m track raises the rollover threshold by about 10 %, a significant safety improvement.
Why do race engineers add ballast to adjust the CG?
Modern racing regulations specify a minimum car weight, and race cars are often built lighter than this minimum. The resulting weight surplus is added as strategically placed ballast — dense metal blocks bolted to specific locations. By adjusting ballast placement, engineers can shift the CG precisely to optimise front-to-rear weight distribution (for balance in acceleration, braking, and cornering) and minimise CG height (for maximum lateral stability).
How do I establish a good coordinate system origin?
The choice of origin does not affect the physical result — only the numerical values of the coordinates change. However, a practical origin simplifies data entry. For cars, placing the origin at the centre of the front axle at ground level is common because: (1) wheelbase and track measurements are directly readable; (2) CG height is simply the Z value; (3) front-to-rear weight distribution is immediately obvious as CG_X / wheelbase. Symmetric placement of the Y origin (vehicle centreline) means positive and negative Y values indicate left and right.
Can I use this calculator for non-vehicle applications?
Yes — the weighted average formula applies to any system of point masses. You can use it for aircraft load planning (determining CG relative to the neutral point), crane stability (ensuring CG stays within the base of support), robotic arm balance, or any engineering problem requiring the mass-weighted average position of a set of components. Simply define a coordinate system appropriate to your application and enter mass and position data for each component.