Area Moment of Inertia Calculator
Find the second moment of area, section modulus and area of a solid rectangle in metric or imperial units.
What it does
A ruler bends easily when it lies flat and hardly bends at all when it stands on edge. The material is the same, so the difference comes from how that material is arranged relative to the bending axis. The second moment of area, also called the area moment of inertia, is the number that captures this effect.
The definition is an integral of distance squared over the cross section: Ix is the integral of y squared dA and Iy is the integral of x squared dA. For a rectangle of width b and height h about axes through its centroid, those integrals evaluate to b h cubed over 12 and h b cubed over 12. The dimension that is cubed is always the one perpendicular to the axis.
Engineering LibreTexts derives both results by double integration and warns that the formula changes if the axis moves. About the base of the rectangle the value becomes b h cubed over 3, which is four times the centroidal result. The University of Illinois dynamics reference makes the same point and adds a warning not to confuse area moment, with units of length to the fourth, with mass moment of inertia, which has units of mass times length squared.
The section modulus follows directly. Divide Ix by the distance from the neutral axis to the extreme fibre, which is h over 2 for a rectangle, and you get S = b h squared over 6. Bending stress is then the bending moment divided by S. That is why structural tables list both numbers side by side.
This page handles a solid rectangle in either centimetres or inches. It reports Ix, Iy, area and section modulus from the same two inputs, so you can check a beam layout quickly before doing a full structural analysis.
How to use
- Pick centimetres or inches for the cross section.
- Enter the width b, which is the dimension parallel to the bending axis.
- Enter the height h, which is the dimension perpendicular to the bending axis.
- Read Ix, the second moment about the horizontal centroidal axis.
- Read Iy, the second moment about the vertical centroidal axis.
- Use the section modulus with your bending moment to estimate extreme fibre stress.
Formula
- Ix
- Second moment of area about the horizontal centroidal axis, in length to the fourth.
- Iy
- Second moment of area about the vertical centroidal axis, in length to the fourth.
- b
- Width of the rectangle, parallel to the x axis.
- h
- Height of the rectangle, perpendicular to the x axis.
- S
- Elastic section modulus about the x axis, in length cubed.
The results apply to axes passing through the centroid. If the axis runs along the base instead, the parallel axis theorem gives b h cubed over 3, which is four times larger. A hollow rectangle needs the outer value minus the inner value, and shapes such as I beams are handled by summing rectangular parts with the parallel axis theorem. This page does not make those adjustments, so use it only for a solid rectangular section about its centroid.
Worked example
Example: a 10 cm by 20 cm rectangular beam
Defaults: metric units, width b = 10 cm and height h = 20 cm about centroidal axes.
- The centroidal formula is Ix = b h cubed over 12.
- Height cubed: 20 x 20 x 20 = 8000 cm3.
- Ix = 10 x 8000 / 12 = 80,000 / 12 = 6,666.7 cm4.
- Iy uses the width cubed: 20 x 10 x 10 x 10 / 12 = 20,000 / 12 = 1,666.7 cm4.
- Area = 10 x 20 = 200 cm2.
- Section modulus = Ix / (h / 2) = 6,666.7 / 10 = 666.7 cm3.
- Turning the beam on edge gives Ix = 20 x 1000 / 12 = 1,666.7 cm4, four times smaller. The tool shows 6,666.7 cm4, 1,666.7 cm4, 200 cm2 and 666.7 cm3.
Reference table
| Width b (cm) | Height h (cm) | Area (cm2) | Ix (cm4) |
|---|---|---|---|
| 20 | 5 | 100 | 208.3 |
| 10 | 10 | 100 | 833.3 |
| 5 | 20 | 100 | 3,333.3 |
| 10 | 20 | 200 | 6,666.7 |
Limits
- Only solid rectangles are covered. Hollow sections and I beams need composite methods.
- The formula assumes the axis passes through the centroid, not along an edge.
- It gives a geometric property only. It does not check whether the beam is strong enough for a given load.
- Shear deformation, local buckling and material limits are outside the scope of this calculation.
Common mistakes
- Cubing the width instead of the height for Ix, which reverses the effect of beam orientation.
- Using the base axis value b h cubed over 3 when the axis is actually through the centroid.
- Mixing centimetres and inches in the two dimension boxes.
- Confusing area moment of inertia with mass moment of inertia, which have different units and different formulas.
- Reading section modulus as a stress when it is a geometric volume used to convert moment into stress.
Try it yourself
Quick checks. Answers sit tucked under each question.
A 5 cm by 10 cm rectangle. What are Ix and Iy?
Ix = 5 x 1000 / 12 = 416.7 cm4. Iy = 10 x 125 / 12 = 104.2 cm4. Area is 50 cm2 and section modulus is 83.3 cm3.
A 10 cm square section. Find Ix and the section modulus.
Ix = Iy = 10 x 1000 / 12 = 833.3 cm4. Area is 100 cm2 and section modulus is 833.3 / 5 = 166.7 cm3.
The imperial mirror uses 3.93701 in by 7.87402 in. What appears?
Those are exactly 10 cm and 20 cm, so Ix = 160.2 in4, Iy = 40.0 in4, area = 31 in2 and section modulus = 40.7 in3.
Questions
Why is the height cubed?
The definition integrates distance squared from the axis. Material far from the neutral axis contributes far more, and integrating that distance across a rectangle produces a cube of the perpendicular dimension.
What is the difference between Ix and Iy?
Ix is about the horizontal axis and uses height cubed. Iy is about the vertical axis and uses width cubed. Which one matters depends on the direction of bending.
What is a section modulus used for?
Divide the bending moment by the section modulus to get the maximum bending stress in the extreme fibres of the section.
Can I use millimetres instead of centimetres?
Not directly on this page. Convert to centimetres first, or convert the reported values. Units of length to the fourth scale by the conversion factor to the fourth power.
Is a larger second moment always better?
For bending stiffness yes, but it usually means more material or a deeper section, which affects weight, cost and clearance.
Does this replace a structural check?
No. It gives one geometric input to a design. You still need loads, material strength, deflection limits and the relevant building code.
Sources
- Engineering LibreTexts 10.2: Moments of Inertia of Common Shapes, rectangle derivation
- University of Illinois Dynamics Reference: area moments of inertia, rectangle about centroid
- MIT OpenCourseWare 16.003: Section Properties and Parallel Axis Theorem