Math & Statistics

Moment of Inertia Calculator

Get the second moment of area Ix and Iy, the centroid, section modulus and radius of gyration for common beam sections, or build a composite section from rectangles with the parallel axis theorem. A third mode gives the mass moment of inertia of solid bodies.

Free, runs in your browserReviewed 21 November 2026By Talha Salman
What do you need?
Moment of inertia Ix (about the centroid)
–

Quick answer: A rectangle of width b and height h has a second moment of area Ix = bh³/12 about its centroid, and the parallel axis theorem, I = Ic + A·d², moves it to any parallel axis. For a T-section built from a 150 × 20 mm flange and 180 mm web, the moment of inertia calculator gives 26,183,636 mm⁴.

Moment of Inertia Calculator diagram: a 100 by 200 mm rectangle has Ix of 6.66667 × 10⁷ mm⁴
How the Moment of Inertia Calculator works: Ix, Iy, centroid and section modulus for beams, composites and solids

How Do You Find the Second Moment of Area for a Cross-Section?

How to use the Moment of Inertia Calculator: mode switch, shape menu, dimensions and the Ix result
Mode switch, shape menu, dimensions and the Ix result.
  1. Choose a standard cross-section, a composite of rectangles, or a solid body for mass moment.
  2. Pick the shape and the length unit.
  3. Enter the dimensions shown for that shape.
  4. Read Ix, then Iy, area, centroid, section modulus and radius of gyration.

Choose one of three modes. Cross-section gives the second moment of area of a standard shape: rectangle, box, solid circle, tube, triangle, I-beam, T-section, C-channel or angle. Composite section lets you build any shape from rectangles and subtract holes. Solid body gives the mass moment of inertia used in rotational dynamics.

Pick a length unit and enter the dimensions shown. The result panel gives Ix and Iy about the centroid, the area, the centroid position, the elastic section moduli, the radii of gyration and the polar moment, plus Ix in mm⁴ and in⁴. The sketch draws the shape to scale with the centroidal axes dashed.

In composite mode, describe each rectangle by its width, height and the position of its bottom left corner. The table lists every part’s own moment and its parallel axis term, so you can check the working line by line.

What Are the Formulas for Common Sections?

SectionIx about the centroidIy about the centroid
Rectangle b × hbh³/12hb³/12
Solid circle, diameter dπd⁴/64πd⁴/64
Tube, outer D, inner dπ(D⁴ − d⁴)/64same
Triangle, base b, height hbh³/36hb³/48 (isosceles)
Symmetric I-beam[BH³ − (B − tw)(H − 2tf)³]/12[2tf·B³ + (H − 2tf)tw³]/12

Section modulus is S = I ÷ c, where c is the distance from the centroidal axis to the extreme fiber. For unsymmetric sections such as a T, the calculator uses the larger distance, which gives the smaller modulus and the higher bending stress. The radius of gyration is r = √(I ÷ A).

Because height is cubed, the orientation of a section matters far more than its area. A 2 × 10 lumber joist measures 1.5 × 9.25 in. On edge, Ix = 1.5 × 9.25³/12 = 98.93 in⁴. Laid flat, Ix = 9.25 × 1.5³/12 = 2.60 in⁴. The same piece of wood is about 38 times stiffer on edge, which is the ratio (9.25 ÷ 1.5)².

What Is the Parallel Axis Theorem?

I = Iᶜ + A·d² (area)    I = Iᶜₘ + m·d² (mass)
Composite: ȳ = ΣAᵢȳᵢ ÷ ΣAᵢ, then Ix = Σ(Iᶜᵢ + Aᵢ(ȳᵢ − ȳ)²)

The theorem moves a moment of inertia from an axis through the centroid to any parallel axis a distance d away. To analyze a built-up section, find the overall centroid, then add each part’s own moment and its A·d² term. Holes are handled by subtracting both their area and their moment.

What Is the Moment of Inertia of a T-Section?

A T-section has a 150 × 20 mm flange on top of a 20 × 180 mm web, 200 mm deep overall. The flange area is 3,000 mm² with its centroid 190 mm from the bottom, and the web area is 3,600 mm² with its centroid at 90 mm.

  • Centroid: ȳ = (3,000 × 190 + 3,600 × 90) ÷ 6,600 = 135.4545 mm.
  • Flange: 150 × 20³/12 + 3,000 × (190 − 135.4545)² = 100,000 + 8,925,620 mm⁴.
  • Web: 20 × 180³/12 + 3,600 × (90 − 135.4545)² = 9,720,000 + 7,438,017 mm⁴.
  • Total: Ix = 26,183,636 mm⁴, or 2.6184 × 10⁷ mm⁴. The smaller section modulus is Ix ÷ 135.4545 = 193,302 mm³.

The default composite example builds exactly this T from two rectangles, and the T-section shape gives the same answer. For a 100 × 200 mm rectangle, bh³/12 = 6.6667 × 10⁷ mm⁴.

What Is the Mass Moment of Inertia?

In dynamics, the moment of inertia measures resistance to angular acceleration: torque = I × angular acceleration. It has units of kg·m². A solid disk of mass 2 kg and radius 0.1 m has I = ½ × 2 × 0.1² = 0.01 kg·m². Moving the axis 0.2 m away adds m·d² = 0.08, giving 0.09 kg·m². A 1.2 kg rod 1.5 m long, swung from one end, has I = ⅓ × 1.2 × 1.5² = 0.9 kg·m².

The Solid body mode uses these standard results for bodies of uniform density. Each value is about an axis through the center of mass unless the table says otherwise.

Body and axisMoment of inertia
Solid cylinder or disk, central axis½mr²
Hollow cylinder, central axis½m(r₁² + r₂²)
Thin ring or hoop, central axismr²
Solid sphere, about a diameter⅖mr²
Thin spherical shell, about a diameter⅔mr²
Thin rod, axis through the centermL²/12
Thin rod, axis through one endmL²/3
Rectangular plate, axis perpendicular through the centerm(a² + b²)/12
Solid cylinder, axis through the center across its lengthm(3r² + h²)/12
Solid cone, central axis(3/10)mr²

Note the plus sign in the hollow cylinder formula. The radii are added, not subtracted, because the mass m is already the mass of the hollow body. If you need the mass first, the density calculator gives it from the volume and the material density.

Units and Conversions

Second moments of area scale with the fourth power of length, so unit conversions grow quickly: 1 cm⁴ = 10,000 mm⁴, 1 in⁴ = 416,231 mm⁴, and 1 m⁴ = 10¹² mm⁴. The calculator shows Ix in both mm⁴ and in⁴ to avoid conversion slips. Large values are written in scientific notation, so 6.66667 × 10⁷ mm⁴ means 66,666,667 mm⁴. The scientific notation calculator converts such values both ways. The inch factor follows from the exact definition 1 in = 25.4 mm used in the NIST unit conversion tables: 25.4⁴ = 416,231.4256.

How Close Is the Result to a Steel Table Value?

The I-beam, T, channel and angle shapes are modeled as plain rectangles with sharp corners. Rolled steel has curved fillets where the web meets the flanges, and that extra material sits in the published properties but not in the formula. A W12×26 wide flange beam shows the size of the gap. Its listed dimensions are depth 12.2 in, flange width 6.49 in, flange thickness 0.38 in and web thickness 0.23 in, and the AISC shape table reprinted in an open strength of materials textbook gives the properties in the right-hand column.

PropertyThis calculator (no fillets)Table valueDifference
Area A7.56 in²7.65 in²1.1% low
Ix201.0 in⁴204 in⁴1.5% low
Iy17.32 in⁴17.3 in⁴Under 0.2%
Sx32.96 in³33.4 in³1.3% low

The calculator is slightly low on the strong axis, which is the safe direction for a rough check, but it is not a design value. For rolled sections, use the manufacturer or AISC table. Welded plate girders and timber sections have no fillets, so the plain rectangle model fits them directly.

Common Mistakes and Limits

  • Second moment of area (unit length⁴) governs beam bending and deflection. Mass moment of inertia (mass × length²) governs rotation. They are different quantities that share a name.
  • Ix resists bending about the horizontal x axis, which is the case for vertical loads on a beam. Using Iy by mistake for an I-beam under gravity load understates the stiffness many times over. For the default 300 × 150 mm I-beam, Ix is about 13 times Iy.
  • The circle formulas take the diameter and the solid body formulas take the radius. Entering a diameter as a radius makes the answer 16 times too large for an area moment and 4 times too large for a mass moment.
  • In composite mode, two solid rectangles that overlap are counted twice in the shared area. The result note warns when this happens. Holes must lie fully inside the solid parts, which the tool does not check.
  • Ix and Iy for the angle are about centroidal axes parallel to the legs, not the principal axes, and the product of inertia is not reported. An angle bends about its principal axes, so do not use these values alone for an unrestrained angle.
  • The polar moment J = Ix + Iy equals the torsion constant only for solid and hollow circular sections. For an I-beam or channel the true torsion constant is far smaller.
  • The section moduli are elastic. Plastic section modulus, shear area and warping properties are not calculated.

For the geometry behind the formulas, the area of a triangle calculator and the circumference calculator cover the triangle and circle sections, and the sig fig calculator helps when you round a result for a report.

Frequently asked questions

What is the moment of inertia of a rectangle?

About its centroidal axis parallel to the base, a rectangle has Ix = bh³/12, where b is the width and h is the height. About the base itself it is bh³/3, from the parallel axis theorem.

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

Subtract the two empty side rectangles from the outer rectangle: Ix = [BH³ − (B − tw)(H − 2tf)³] ÷ 12. The calculator also gives Iy, the section modulus and the radius of gyration.

What is the parallel axis theorem?

It moves a moment of inertia to a parallel axis: I = I꜀ + A·d² for areas, or I = I꜀ₘ + m·d² for masses, where d is the distance between the axes. It is the key to composite sections.

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

The second moment of area, in length to the fourth power, describes a beam's resistance to bending. The mass moment of inertia, in kg·m², describes a body's resistance to angular acceleration.

What is section modulus?

Section modulus S = I ÷ c, where c is the distance from the neutral axis to the extreme fiber. Bending stress equals moment divided by S, so a larger section modulus means lower stress.

How do I find the centroid of a composite shape?

Multiply each part's area by its centroid position, add them up and divide by the total area: ȳ = ΣAᵢȳᵢ ÷ ΣAᵢ. Holes count as negative areas. The calculator shows this for every part.

Can I calculate the moment of inertia of an irregular shape?

Yes, if you can split it into rectangles. Composite mode accepts up to eight rectangles, including rectangular holes, and combines them with the parallel axis theorem about the shared centroid. Curved or sloped edges have to be approximated with thin rectangles.