Skip to content

Moment of Inertia Calculator

Pick a shape or build your own from rectangles, enter the sizes, and read the moment of inertia (second moment of area) about both axes, with the area, centroid, section modulus and radius of gyration.

  • Moment of inertia and section modulus
  • 8 standard shapes
  • Build your own section (up to 6 parts)
  • Parallel axis distance
  • US and metric

Enter your section

Units
in

Overall width, flange width or triangle base.

in

Overall height of the section.

in

Leave blank to skip. Distance from the centroidal x-axis to another parallel horizontal axis.

Moment of inertia about the horizontal centroidal axis (Ix)

170.67 in⁴

Iy (vertical centroidal axis)
42.67 in⁴
Ix in the other unit system
71,036,830 mm⁴
Ix in cm⁴
7,103.68 cm⁴
Area (A)
32.000 in²
Centroid height above the bottom
4.000 in
Centroid distance from the left edge
2.000 in
Section modulus Sx (Ix ÷ farthest fibre)
42.67 in³
Section modulus Sy
21.33 in³
Radius of gyration rx
2.309 in
Radius of gyration ry
1.155 in
Polar moment of area (Ix + Iy), not the torsion constant
213.33 in⁴
Ix about the parallel axis (only with a distance)
Enter a distance to see it

Ix = 170.67 in⁴ about the horizontal axis through the centroid, which sits 4.000 in above the bottom. Iy = 42.67 in⁴ about the vertical axis. This is the area (second) moment of inertia of the cross-section, not the mass moment of inertia of a rotating body.

Cross-section drawn to scale The selected cross-section with the horizontal x-axis and the vertical y-axis crossing at its centroid. x y
The section drawn to scale. The dashed lines are the x-axis and y-axis through the centroid (dot).
How the section is built from its parts (a minus sign is a void)
PartAreaCentroid heightOwn IxA·d²
Rectangle32.000 in²4.000 in170.67 in⁴0.00 in⁴

Show the working

  1. Area of the section from its dimensions = 32.000 in²
  2. Centroid height above the bottom = Σ(part area × its centroid height) ÷ area = 4.000 in
  3. Ix = Σ(own Ix + A × d²) by the parallel axis theorem: (170.67 + 0.00) in⁴ = 170.67 in⁴
  4. Iy = Σ(own Iy + A × d²) about the vertical axis through the centroid = 42.67 in⁴
  5. Section modulus Sx = Ix ÷ 4.000 in (distance to the farthest edge) = 42.67 in³
  6. Radius of gyration rx = √(Ix ÷ area) = 2.309 in

What you can do with this calculator

  1. Use it as a moment of inertia calculator. Pick the shape, enter the sizes, read Ix and Iy.
  2. Find the second moment of inertia (second moment of area) of a section. The same numbers in in⁴, cm⁴ or mm⁴.
  3. Work out the moment of inertia of an I-beam. Flange and web sizes in; Ix, Iy and section modulus out.
  4. Get the section moment of inertia with the section modulus and radius of gyration beside it. All from one set of sizes.
  5. Build your own section. Up to 6 rectangles, solid or holes, for built-up and unequal shapes.

How to read the result

The calculator gives the area moment of inertia, also called the second moment of area. It describes how a cross-section's area is spread away from an axis. It is not the mass moment of inertia of a spinning body, and no mass or density is used.

  • Ix is about the horizontal axis through the centroid. It is the one that governs bending when the load acts along the depth, so depth enters as a cube (a section twice as deep is eight times as stiff).
  • Iy is about the vertical axis through the centroid, for bending sideways.
  • Section modulus (Sx, Sy) is I divided by the distance to the farthest edge. On an unsymmetrical section such as a T, the farthest edge gives the smaller value.
  • Radius of gyration (rx, ry) is √(I ÷ A), used for slenderness.
  • Polar moment of area is Ix + Iy. It is not the torsion constant of a non-circular section.
  • Parallel axis: enter a distance to get Ix about another horizontal axis, using I = Ī + A·d².
  • Build my own section: up to 6 rectangles, each placed by its centre, and any of them can be a hole. Use it for built-up plates, unequal flanges or a beam with a hole in it. For a shape that is not symmetric, such as an angle, Ix and Iy are about the horizontal and vertical axes through the centroid, not the principal axes.

This tool gives geometric properties only. It does not check stress, deflection, buckling or capacity, and it is not a beam design. A rolled steel section has rounded root fillets; for one, use the table of the maker or the steel code.

If you also need the weight per length of the same section, the Steel Weight Calculator gives it from the shape and size.

Worked example

A rectangle 4 in wide and 8 in deep. Find Ix, Iy, the section modulus and radius of gyration, then Ix about an axis 5 in from the centroid.

  1. Area = b × h = 4 × 8 = 32.000 in²
  2. Ix = b·h³ ÷ 12 = 4 × 8³ ÷ 12 = 170.67 in⁴
  3. Iy = h·b³ ÷ 12 = 8 × 4³ ÷ 12 = 42.67 in⁴
  4. Sx = Ix ÷ (h ÷ 2) = 170.67 ÷ 4 = 42.67 in³
  5. rx = √(Ix ÷ A) = √(170.67 ÷ 32) = 2.309 in
  6. Parallel axis 5 in away: I = Ix + A·d² = 170.67 + 32 × 5² = 970.67 in⁴
  7. In other units: 170.67 in⁴ × 25.4⁴ = 71,036,830 mm⁴ = 7,103.68 cm⁴

These are the same numbers the calculator shows when it first loads.

Example: moment of inertia of an I-beam built from its parts

I-section 4 in wide and 8 in deep, flanges 0.5 in thick, web 0.3 in thick. The section is symmetric, so the centroid is at mid-depth (4.00 in).

  1. Each flange: area 2.00 in², own Ix = b·tf³ ÷ 12 = 0.0417 in⁴, centroid -3.75 in from the section centroid, so A·d² = 28.125 in⁴
  2. Web: area 2.10 in², own Ix = tw·(h−2tf)³ ÷ 12 = 8.5750 in⁴, centroid on the axis, so A·d² = 0
  3. Ix = 2 × (0.0417 + 28.125) + 8.5750 = 64.91 in⁴
  4. Sx = Ix ÷ 4 in = 16.23 in³

Pick "I-section" in the calculator and enter these sizes to see the same parts table.

Example: a T-section built from two rectangles

Choose "Build my own section". Rectangle 1 is a flange 6 in wide and 1 in high, centred 5.5 in above the bottom. Rectangle 2 is a web 1 in wide and 5 in high, centred 2.5 in up. Both are centred 3 in from the left.

  1. Area = 6 + 5 = 11.000 in²
  2. Centroid = (6 × 5.5 + 5 × 2.5) ÷ 11 = 4.1364 in above the bottom
  3. Flange: own Ix 0.500 + A·d² 11.157; web: own Ix 10.417 + A·d² 13.388
  4. Ix = 35.462 in⁴, the same as the T-section shape with these sizes

Method and formulas

Rectangle: A = b·h; Ix = b·h³ ÷ 12; Iy = h·b³ ÷ 12
Circle: A = π·D² ÷ 4; Ix = Iy = π·D⁴ ÷ 64
Isosceles triangle: A = b·h ÷ 2; Ix = b·h³ ÷ 36; Iy = h·b³ ÷ 48
Hollow shapes = outer shape minus the void
Composite: ȳ = Σ(Aᵢ·ȳᵢ) ÷ ΣAᵢ; I = Σ(Īᵢ + Aᵢ·dᵢ²)
Your own section: the same sum over your rectangles, with holes counted as negative areas
Parallel axis: I = Ī + A·d²
S = I ÷ c; r = √(I ÷ A); polar = Ix + Iy
1 in = 25.4 mm (exact)

b, h
Width and depth of the section
D, t
Outer diameter and wall thickness
tf, tw
Flange thickness and web (or stem) thickness
d
Distance between the centroid of a part and the axis
c
Distance from the axis to the farthest edge of the section

An I-section, T-section and channel are built from rectangles; the calculator finds the centroid of the group, then adds each rectangle's own Ix to its A·d² term. A section you build yourself is worked out the same way. Solid rectangles must not overlap (the overlap would count twice), each hole must sit inside one solid rectangle, and holes must not overlap. Each shape in the engine is re-calculated by a separate polygon integration (Green’s theorem) in the project tests.

Assumptions and limits

  • Solid, homogeneous cross-section with sharp (square) corners; no root fillets, no rounded corners, no holes other than the hollow of the hollow shapes and the holes you enter when you build your own section.
  • A section you build yourself acts as one piece: the rectangles are fully joined (welded or bolted so they bend together).
  • Hollow rectangle and pipe have one uniform wall thickness.
  • I-section has equal flanges; T-section and channel are built from rectangles; triangle is isosceles (symmetric about the vertical axis).
  • The x-axis is the horizontal axis through the centroid and y is the vertical axis through the centroid; depth is measured vertically.
  • Moment of inertia here means the area (second) moment of the cross-section, not the mass moment of inertia of a rotating body.
  • Gives geometric properties of a cross-section only. It does not check stress, deflection, buckling or capacity, and it is not a beam design.
  • Gross section with square corners. A rolled steel section has rounded root fillets and a catalogue or mill table gives its published properties; for a rolled section use the table of the maker or the steel code, and treat this page as a check.
  • Standard shapes are doubly or singly symmetric. A section you build yourself can be any group of up to 6 rectangles (for example an unequal-flange I or an angle without fillets), but no product of inertia and no principal axes are given: for an unsymmetrical section Ix and Iy are about the horizontal and vertical centroidal axes only. No sloped, curved or polygon parts.
  • Elastic section modulus only: no plastic section modulus, shape factor, torsion constant or warping constant. The polar moment of area (Ix + Iy) is not the torsion constant of a non-circular section.
  • Local buckling, shear lag, effective width of thin plates and the cracked section of reinforced concrete are not considered.

Reference tables

Moment of inertia and section modulus of solid rectangles
Width × depthAreaIxIySx
2 × 4 in8.0 in²10.67 in⁴2.67 in⁴5.33 in³
3 × 6 in18.0 in²54.00 in⁴13.50 in⁴18.00 in³
4 × 8 in32.0 in²170.67 in⁴42.67 in⁴42.67 in³
4 × 12 in48.0 in²576.00 in⁴64.00 in⁴96.00 in³
6 × 12 in72.0 in²864.00 in⁴216.00 in⁴144.00 in³
8 × 16 in128.0 in²2,730.67 in⁴682.67 in⁴341.33 in³

Source: Calculated with the EngiFormula section engine (method v1.1) from Ix = b·h³ ÷ 12, Iy = h·b³ ÷ 12 and Sx = Ix ÷ (h ÷ 2).

Formulas for the area, Ix and Iy of each shape
ShapeAreaIxIy
Rectangle (b wide, h deep)b·hb·h³ ÷ 12h·b³ ÷ 12
Hollow rectangle (wall t)b·h − (b−2t)(h−2t)[b·h³ − (b−2t)(h−2t)³] ÷ 12[h·b³ − (h−2t)(b−2t)³] ÷ 12
Circle (diameter D)π·D² ÷ 4π·D⁴ ÷ 64π·D⁴ ÷ 64
Pipe (diameter D, wall t)π·[D² − (D−2t)²] ÷ 4π·[D⁴ − (D−2t)⁴] ÷ 64π·[D⁴ − (D−2t)⁴] ÷ 64
I-section (flange b × tf, web tw)2·b·tf + tw·(h−2tf)[b·h³ − (b−tw)(h−2tf)³] ÷ 12[2·tf·b³ + (h−2tf)·tw³] ÷ 12
Isosceles triangle (base b, height h)b·h ÷ 2b·h³ ÷ 36h·b³ ÷ 48

Source: Baker and Haynes, Engineering Statics: Open and Interactive, sections 7.5 and 10.3 (online edition, no edition number stated). The hollow, I-section and triangle rows follow from the same rules.

Converting moment of inertia and section modulus between in, cm and mm
FromIn mmIn cm
1 in⁴416,231.4256 mm⁴41.62314256 cm⁴
1 cm⁴10,000 mm⁴1 cm⁴
1 mm⁴1 mm⁴0.0001 cm⁴
1 in³ (section modulus)16,387.064 mm³16.387064 cm³

Source: Calculated from the exact definition 1 in = 25.4 mm, NIST Special Publication 811 (2008 edition), Appendix B; a fourth power is 25.4⁴.

Common uses

  • Checking the stiffness of a beam or column section by hand.
  • Comparing two sections for the same bending stiffness.
  • Student homework and exam checking.
  • Section modulus and radius of gyration for a fabricated bar, tube or pipe.
  • Moving the moment of inertia to another axis.

Frequently asked questions

What is the moment of inertia of a rectangle?

About the horizontal axis through its centroid, Ix = b·h³ ÷ 12, and about the vertical axis, Iy = h·b³ ÷ 12. A 4 by 8 in rectangle has Ix = 170.67 in⁴ and Iy = 42.67 in⁴. Depth is cubed, so depth matters far more than width for bending along the depth.

What is the difference between area moment of inertia and mass moment of inertia?

The area moment of inertia is a geometric property of a cross-section, in length to the fourth power (in⁴, mm⁴), used for bending. The mass moment of inertia belongs to a rotating body and is in kg·m² or lb·ft². This page gives the first and has no mass or density input.

How do I calculate the moment of inertia of an I-beam?

Treat it as two flanges plus a web, find the centroid, and add each rectangle's own b·h³ ÷ 12 to its A·d² term. Equivalently, take the outer rectangle b·h³ ÷ 12 and subtract the two side voids. For the I-section 4 by 8 in with 0.5 in flanges and a 0.3 in web, Ix = 64.91 in⁴. Choose "I-section" to try your own sizes; this is also the second moment of area of an I-beam. For unequal flanges or a plate welded on, choose "Build my own section" and enter each plate as a rectangle.

Is the second moment of area the same as the moment of inertia?

For a cross-section, yes: "second moment of area" is the engineering name for the area moment of inertia. The numbers are the same Ix and Iy, in in⁴, cm⁴ or mm⁴.

What is the difference between Ix and Iy?

Ix is about the horizontal centroidal axis and governs bending when the load acts along the depth. Iy is about the vertical centroidal axis and governs bending sideways. The calculator shows both for every shape.

What is the parallel axis theorem and how do I use it?

I = Ī + A·d²: the moment of inertia about any axis parallel to the centroidal one is the centroidal value plus the area times the square of the distance. Enter the distance in the optional field. For the 4 by 8 in rectangle at 5 in, Ix becomes 970.67 in⁴.

What are the units of moment of inertia, and how do I convert in⁴ to mm⁴?

Length to the fourth power. Multiply in⁴ by 25.4⁴ = 416,231.4256 to get mm⁴, and divide mm⁴ by 10,000 to get cm⁴. The calculator shows Ix in the other unit system and in cm⁴ beside the main result.

Why does my answer differ from the steel table?

This page uses sharp corners. A rolled steel section has rounded root fillets that add a little area, so its published value can differ. Use the table from the maker or the steel code for a rolled section, and treat this result as a check.

Sources and references

  • Daniel W. Baker and William Haynes (open textbook, engineeringstatics.org; CC BY-NC-SA 4.0 on the LibreTexts copy), Engineering Statics: Open and Interactive (Baker and Haynes), Chapter 7 Centroids and Chapter 10 Moments of Inertia. Online edition, no edition number stated; the LibreTexts copy of section 10.3 was last modified 3 May 2023. Sections 7.5 (centroid of composite parts, holes as negative areas) and 10.3 (parallel axis theorem; rectangle, triangle and circle moments of inertia).
  • NIST Special Publication 811, Guide for the Use of the International System of Units (SI), 2008 edition, Appendix B (exact value for the inch).
  • Hollow, I, T and channel shapes and your own sections (methods MOI-HOLLOW-001, MOI-COMP-001, MOI-BUILD-001): built from the rules above, and re-calculated independently by polygon integration (Green’s theorem).

About this calculator

Method version: 1.1 Last technical update:

Scope and disclaimer

Calculates the area moment of inertia, section modulus, radius of gyration and polar moment of area of standard cross-sections, or of a section you build from up to 6 rectangles. It does not check stress, deflection or capacity, and is not a beam or column design. Sizes up to 100,000 in.

This calculator gives information and preliminary estimates only. It is not professional design advice and does not replace the governing code, product instructions or a qualified professional's judgement for your project.