Moment Of Inertia - Ix, Iy, and J in m^4
Use this moment of inertia calculator to get Ix and Iy in m^4 for triangle, rectangle, circle, semicircle, ellipse, and regular hexagon, in any linear unit.
Moment Of Inertia
Results
What Is the Moment of Inertia Calculator?
The moment of inertia calculator returns the centroidal second moment of area Ix and Iy in m^4 for six common cross-sections, plus the polar J = Ix + Iy. Pick a triangle, rectangle, circle, semicircle, ellipse, or regular hexagon, type the size, and read the closed-form result in the same unit raised to the fourth power.
- • Beam and shaft design: Pull Ix and Iy for a rectangular bar, solid round shaft, or hexagonal stand-in so bending stress and torsion checks can be read off the same number.
- • Cross-section comparison: See how much stiffer a hexagon or a circle is than a rectangle of the same bounding dimension, without rederiving the inertia by hand.
- • Sensitivity tests: Re-enter one dimension to see how rapidly the centroidal inertia scales with the third or fourth power of size, the rule of thumb behind beam depth changes.
Every cross-section has its own closed-form expression, a shape constant multiplied by the linear dimension raised to the third or fourth power. The same form returns Ix and Iy for all six shapes in m^4 without changing units.
Centroidal means the formulas assume the x and y axes both pass through the geometric centroid, the point where the area would balance on a pin. For a different axis, apply the parallel-axis theorem I_parallel = I_centroidal + A * d^2 and use the result in the next beam or shaft equation.
The shape selector is the same kind used in the Cross Sectional Area Calculator, so any cross-section area you already trust for weight or paint can be paired with the matching Ix and Iy here.
How the Moment of Inertia Calculator Works
The moment of inertia calculator reads the shape selector and the dimension fields, validates the inputs, and returns the centroidal Ix and Iy from the closed-form expression for the selected shape. The same step also computes the cross-section area in m^2 and the polar J = Ix + Iy in m^4, so the next calculation in a beam or shaft design has every number it needs.
- b, a (rectangle or triangle): Width and height in metres. Ignored for circle, semicircle, ellipse, and hexagon.
- r (circle or semicircle): Radius in metres. Ignored for every other shape.
- a, b (ellipse): Horizontal and vertical semi-axes in metres. Only used when the ellipse is selected.
- s (hexagon): Side length in metres. Only used when the hexagon is selected.
For a circle, the closed-form expression collapses to Ix = Iy = pi * r^4 / 4, so the polar J = pi * r^4 / 2. This is the textbook shaft design formula for a solid round bar.
Worked example: Rectangle 0.12 m by 0.08 m
Ix = 0.12 * 0.08^3 / 12 = 5.12e-6, Iy = 0.08 * 0.12^3 / 12 = 1.152e-5, J = 1.664e-5, area = 0.0096
Ix = 5.12e-6 m^4, Iy = 1.152e-5 m^4, J = 1.664e-5 m^4
Iy is larger than Ix because the bar is wider than it is tall, so more area sits far from the y-axis.
According to Omni Calculator, the second moment of area of a rectangle of width b and height a about the centroidal x-axis is b * a^3 / 12, and the same family of closed-form formulas covers triangle, circle, semicircle, ellipse, and regular hexagon.
The Ix and Iy returned here are exactly the inputs the Beam Deflection Calculator expects, so a rectangular bar sized in this tool can be dropped into a deflection calculation without unit changes.
Key Concepts Explained
Four terms show up in every cross-section problem. Keeping them straight is the difference between a clean answer and a wrong one by a factor of four.
Centroidal second moment of area
Ix and Iy are integrals of y^2 dA and x^2 dA, with the squared distance measured from the centroid. The closed-form formulas below are the centroidal ones.
Why Ix and Iy are not the same
Ix depends on the squared distance from the x-axis and Iy from the y-axis. A 0.12 by 0.08 m rectangle has Iy about 2.25 times Ix because the wider side spreads more area away from the y-axis.
Polar second moment J = Ix + Iy
J is the integral of r^2 dA, exactly Ix + Iy for any shape symmetric about the centroid. Shaft designers read J directly.
Centroidal vs parallel-axis
If the bending axis is not the centroid, apply I_parallel = I_centroidal + A * d^2. The closed-form numbers here are the centroidal ones.
When Ix and Iy match, the shape has at least one axis of symmetry about both axes, which is the case for the circle, the regular hexagon, the square, and a symmetric rectangle. For an asymmetric triangle with a non-zero top-vertex offset, the two answers diverge and the difference tells a structural engineer how much the bar will twist under an off-centre load.
The bending stress sigma = M * c / I uses the same Ix or Iy this tool returns, so the Bending Stress Calculator is the natural next step once the cross-section is fixed.
How to Use the Moment of Inertia Calculator
Pick a cross-section, type the matching dimensions in any linear unit, and read Ix, Iy, J, and the cross-section area in the same unit raised to the fourth power or squared.
- 1 Choose the cross-section: Open the Cross-Section Shape menu and pick triangle, rectangle, circle, semicircle, ellipse, or regular hexagon. The closed-form formula switches to match the choice.
- 2 Enter the matching dimensions: Type width and height for a rectangle or triangle, radius for a circle or semicircle, the two semi-axes for an ellipse, or a single side length for the hexagon.
- 3 Adjust the triangle offset if needed: For a triangle, slide the top-vertex offset between -width/2 and width/2. Zero keeps the triangle symmetric and gives the textbook Ix and Iy.
- 4 Read Ix, Iy, J, and the area: The result row prints Ix, Iy, J, and the cross-section area. Ix and Iy are the centroidal second moments, J = Ix + Iy is the polar moment for torsion.
- 5 Reuse the result in a beam or shaft calculation: Take Ix and Iy straight into a bending stress, beam deflection, or shaft torsion equation. The result is already in m^4 as long as the input was in metres.
A 50 mm by 25 mm steel bar for a small bracket: pick rectangle, enter 0.05 for width and 0.025 for height, and read Ix = 6.51e-8 m^4 and Iy = 2.6e-7 m^4. The same numbers feed the next beam check.
The Ix and Iy just printed in the result row are the same dimensions a beam check reads, so the Beam Load Calculator picks up the same bar and returns the supported load without retyping the size.
Benefits of Using the Moment of Inertia Calculator
Reading the centroidal Ix and Iy for six common cross-sections in one tool keeps beam sizing, shaft design, and textbook checks on a single page.
- • Six cross-sections, one tool: Cover the most common centroidal Ix and Iy problems in a single calculator so a switch from a rectangle to a circle or a hexagon does not require a new tool or unit system.
- • Centroidal Ix and Iy together: Return both Ix and Iy in the same response so a comparison between the two axes does not require a second tool.
- • Polar J without retyping: Add Ix and Iy automatically and show the polar J as a derived row, so a shaft torsion calculation does not have to repeat the addition by hand.
- • Visible closed-form formula: Show the active shape and the closed-form Ix and Iy expression in a formula box, so the answer is auditable against a textbook or Wolfram MathWorld entry.
- • Built-in area sanity check: Print the cross-section area in m^2 alongside Ix and Iy, so a typo in a single dimension is visible before the inertia number is fed into a beam equation.
The same form runs the closed-form lookup for all six shapes, so the only thing that changes is which dimension fields are read.
For a generic rectangle, triangle, or parallelogram that is not one of the six cross-sections here, the Area Calculator covers the same shape family in plain square units.
Factors That Affect Your Moment of Inertia Results
Three things move the Ix and Iy numbers more than anything else, plus the unit system. Knowing which lever to pull keeps a beam or shaft result defensible.
Cross-section shape
A circle of the same radius as a square side has a larger polar J, and a regular hexagon of the same side is intermediate. Swapping shapes is a one-line change.
Linear dimensions
The second moment scales with the dimension to the third or fourth power, so a 10% larger width produces 33% to 46% more Ix or Iy. This is the dominant lever in any beam design.
Axis choice
Centroidal Ix and Iy are the smallest answers for that shape. A parallel-axis evaluation off the centroid adds A * d^2 to the inertia.
Unit choice
The output is always in m^4 if the input is in metres. A bar sized in millimetres gives the same number with a factor of 1e-12 folded in.
- • Centroidal only. If the bending axis is not the centroid, apply the parallel-axis theorem I_parallel = I_centroidal + A * d^2 by hand in the next step.
- • Single closed shape only. Composite sections, hollow shapes, and built-up beams are out of scope; for a hollow tube, subtract the inner moment of area from the outer one.
For most beam and shaft work, the centroidal Ix and Iy are exactly the inputs the next formula needs, and the polar J is the input the shaft torsion equation needs.
According to Wikipedia, the second moment of area is the integral of the squared distance from an axis over the area of the cross-section, and its SI unit is the metre to the fourth power (m^4).
When the cross-section is an ellipse and the next step is the area in plain square units, the Ellipse Area Calculator returns the same pi * a * b from the same two inputs.
Frequently Asked Questions
Q: What is the moment of inertia of a cross-section?
A: The moment of inertia of a cross-section, also called the second moment of area, is the integral of the squared distance from an axis over the area of the shape. Ix is the integral of y^2 dA about the x-axis, Iy is the integral of x^2 dA about the y-axis, and the polar J = Ix + Iy is the integral of r^2 dA about the centroid.
Q: How do you calculate the area moment of inertia of a rectangle?
A: For a rectangle of width b and height a, the centroidal Ix = b * a^3 / 12 and the centroidal Iy = a * b^3 / 12, both in m^4 when the inputs are in metres. The cross-section area is b * a in m^2, and the polar J = Ix + Iy is the number that feeds a shaft torsion equation.
Q: What is the difference between Ix and Iy?
A: Ix is the second moment of area about the horizontal centroidal x-axis, and Iy is the second moment of area about the vertical centroidal y-axis. For a symmetric shape like a circle or a regular hexagon, Ix = Iy. For a rectangle that is wider than it is tall, Iy is larger than Ix because more area sits far from the y-axis.
Q: What units are used for the second moment of area?
A: The SI unit of the second moment of area is the metre to the fourth power, m^4. The imperial unit is the inch to the fourth power, in^4, and the cgs unit is the centimetre to the fourth power, cm^4. Mixing units gives a meaningless answer, so always convert the linear inputs to the same unit system before reading the result.
Q: How do you find the polar moment of inertia?
A: The polar second moment of area is J = Ix + Iy for any cross-section that is symmetric about both the x and y axes, and it is the value a shaft torsion equation reads. The moment of inertia calculator returns J directly as a derived row so a torsion or shear calculation does not have to add Ix and Iy by hand.
Q: When does the second moment of area matter in practice?
A: The second moment of area matters whenever a beam, shaft, or thin-walled section bends or twists. The bending stress sigma = M * c / I, the beam deflection delta = P * L^3 / (3 * E * I), and the shaft torsion theta = T * L / (J * G) all use Ix, Iy, or J directly, which is why the closed-form numbers here feed straight into the next step of a structural calculation.