Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
2. Need support? Ask a question to our Community Support category.
3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

# Moment of Inertia Calculations

Member Posts: 4 EDU
Hi everyone, I'm new to OnShape, and I have some questions on how the moment of inertia is calculated. My dimensions for this cube is 10 cm for each side length, with a diameter of 8 cm semi-sphere cut out of the top face of the cube. For example, as seen in the image, the moment of inertia along the X-axis is 84.61. Im extremely confused on how this calculation was made, as I thought the formula for moment of inertia was [(Distance from center of mass)^2] * Mass. Wouldn't this give (5^2) * 5.1546029? Is the error within my formula for the moment of inertia?

• Member Posts: 486 PRO

Your calculation (5^2 * 5.15) describes an object with 100% of the mass (5.15 lb) located 5cm from the axis.  In actuality this mass is distributed throughout the solid, with a good portion of it located closer to the axis, reducing the mass moment of inertia.  The hole in the center affects the result as well.

Start with much simpler geometry like a cylinder to correlate your hand calculations with the Onshape result.  Note that even for a simple cylinder, spinning about the axial centerline, the value of "R" is not the full radius of the cylinder.   Sketch a circle of radius "R".  Then sketch a smaller concentric circle of radius "r_0".  Set the area of the inner circle equal to the radius of the outer circle and solve for "r_0".  This is the value that you want to use to calculate the mass-moment-of-inertia:
• π*r_0^2       = (πR^2) - (π*r_0^2)
• r_0^2           = R^2 - r_0^2
• 2 * r_0^2      = R^2
• r_0^2           = R^2 / 2
• r_0              = (R^2 / 2)^(1/2)     {or just plug the previous line for r_0^2 into your mass-moment-of-inertia formula}
If I made any errors there, I'm certain that someone will edit this for me.  Good luck @a@abinand_palanisamy
• Member Posts: 297 PRO
As said above, the moment of inertia for a point mass is mr^2.  Any shape where the mass is not all a constant distance, r, from the axis of rotation will involve more math.  A lot of shapes are easy to look up in a table.  Like for a rectangular cube about its center, its 1/6 ML^2.  And for a sphere (and a hemisphere) it's 2/5 Mr^2.

Onshape takes the moment of inertia about the center of mass.  So, also as said above, it's easy to verifiy this using simple shapes like cubes, spheres, and cylinders.  The center of mass of those is easy.  For your shape, it will take a few steps.