Reference & calculator Strength of materials ~6 min read
Size a beam, a profile, a shaft

Area moment of inertia: section formulas and calculator

Published October 12, 2026 — the area moment of inertia and section modulus of common sections (rectangle, round, tubes, I-section, triangle), worked examples, the parallel axis theorem, unit conversions and a calculator.

b·h³/12 The rectangle
π·D⁴/64 The solid round
σ = M/W The bending stress

In short: the area moment of inertia I (in mm⁴) measures a section's bending stiffness; it depends only on its shape. Rectangle: I = b·h³/12, with h in the bending direction. Solid round: I = π·D⁴/64. The section modulus W = I / c (in mm³) gives the stress: σ = M / W. Doubling the depth of a rectangular beam makes it 8 times stiffer.

1. Area moment of inertia calculator

Pick the section and enter its dimensions in millimetres. x axis: horizontal centroidal axis, bending acting in the direction of H (or h, D).

Area A
—
Moment of inertia Ix
—
Section modulus Wx
—
Moment of inertia Iy
—

2. Formulas for common sections

Moments of inertia about the centroidal x axis (through the centroid), bending acting in the direction of h, H or D. W = I / c, c being the distance from the axis to the extreme fibre. J: polar moment of inertia, for the torsion of round sections.

SectionArea AMoment of inertia IxSection modulus WxPolar J
Solid rectangle b × hb·hb·h3 / 12b·h2 / 6—
Square, side aa2a4 / 12a3 / 6—
Rectangular tube B × H, inside b × hB·H − b·h(B·H3 − b·h3) / 12I / (H / 2)—
Solid round, diameter Dπ·D2 / 4π·D4 / 64π·D3 / 32π·D4 / 32
Round tube D × dπ·(D2 − d2) / 4π·(D4 − d4) / 64π·(D4 − d4) / (32·D)π·(D4 − d4) / 32
Symmetric I-section B × H, web tw, flanges tf2·B·tf + (H − 2·tf)·tw(B·H3 − (B − tw)·(H − 2·tf)3) / 12I / (H / 2)—
Triangle, base b, height hb·h / 2b·h3 / 36b·h2 / 24 (apex)—
xneutral axiscompressiontensionbhh/2σmaxσmaxσmax = M / W
In bending about x, stress is zero on the neutral axis and grows linearly to the extreme fibres, at h/2: σmax = M / W, with W = I / (h/2) = b·h²/6 for the rectangle.

3. Worked examples

Dimensions in millimetres. The same 20 × 40 rectangle is four times stiffer on edge than flat: the moment of inertia varies with the cube of the depth.

SectionA (mm2)Ix (cm4)Wx (cm3)
Rectangle 20 × 40 on edge (h = 40)800.010.675.33
The same, flat (h = 20)800.02.672.67
Solid round Ø 20314.20.790.79
Round tube Ø 40 × 2238.84.322.16
Square tube 40 × 40 × 2304.07.343.67
I-section 100 × 200, web 5.6, flanges 8.5 (no fillets)2 724.81 845.59184.56

Rolled profiles (IPE, HEA…) have root fillets between web and flanges, which the formula ignores: their actual moment of inertia is slightly higher. Use the manufacturer's catalogue value.

4. Using I and W: stress, deflection, parallel axis

  • Bending stress: σ = M / W, with M the bending moment (N·mm) and W in mm³; σ in MPa. Compare it with the material's yield strength, see S235, S275, S355 steels.
  • Deflection: it is inversely proportional to E·I. Cantilever with an end load: f = F·L³ / (3·E·I); simply supported beam with a mid-span load: f = F·L³ / (48·E·I). E is 210,000 MPa for steel, about 70,000 MPa for aluminium. The 6 common cases and a calculator: beam deflection.
  • Parallel axis theorem: about an axis parallel to the centroidal axis, at distance d, I = Ic + A·d². This is how a built-up section (several rectangles) is calculated: add the I of each part, moved to the common axis.
  • Orientation: depth counts cubed. For the same mass, a tube or an I-section is much stiffer than a solid round, because the material is far from the axis.
  • In SOLIDWORKS, Tools → Evaluate → Section Properties gives the area, centroid and moments of inertia of a planar face or sketch: handy for any section.
AxΔdI(Δ) = I(x) + A·d²
Parallel axis theorem: about an axis Δ parallel to the centroidal axis x, at distance d, I = Ic + A·d². The A·d² term quickly dominates: that is why the flanges of an I-section, far from the axis, carry most of its stiffness.

Beam deflection Excel calculator: carry I and W into a workbook that checks 30 beams at once (simply supported, cantilever, fixed-fixed, point or uniform load), with deflection, moment, stress and a check against your limits. It also calculates I and W of common sections. mm or inches, no macros, English and French.

Get the workbook · $9

Secure checkout by Gumroad · instant download · standard Excel formulas, also checked in LibreOffice Calc · all Excel templates

5. Units and conversions

The moment of inertia is expressed in mm⁴ or cm⁴ (profile catalogues), the section modulus in mm³ or cm³. Exact conversions, 1 inch being 25.4 mm:

UnitEquals
1 cm410 000 mm4
1 in4416 231.4 mm4 = 41.62 cm4
1 cm31 000 mm3
1 in316 387.064 mm3 = 16.39 cm3

Printable version: the area moment of inertia formulas as a PDF (A4, no sign-up), to keep with your notes or in the design office.

6. Moment of inertia in Excel: formulas to copy

The formulas from section 2 can be typed into a spreadsheet as they are: one row per section, dimensions in mm in columns A to D, the moment of inertia in mm⁴ and the section modulus in mm³. The examples are the sections from section 3 (divide by 10,000 for cm⁴, by 1,000 for cm³):

SectionInputs (row 2)Formula for II (mm4)Formula for WW (mm3)
Rectangle b × hb = 20 in A2, h = 40 in B2=A2*B2^3/12106,666.67=A2*B2^2/65,333.33
Solid round DD = 20 in A2=PI()*A2^4/647,853.98=PI()*A2^3/32785.40
Round tube D × dD = 40 in A2, d = 36 in B2=PI()*(A2^4-B2^4)/6443,215.75=PI()*(A2^4-B2^4)/(32*A2)2,160.79
Rectangular tube B × H, inside b × hB, H, b, h = 40, 40, 36, 36 in A2 to D2=(A2*B2^3-C2*D2^3)/1273,365.33=(A2*B2^3-C2*D2^3)/(6*B2)3,668.27
I-section B × H, web tw, flanges tfB, H, tw, tf = 100, 200, 5.6, 8.5 in A2 to D2=(A2*B2^3-(A2-C2)*(B2-2*D2)^3)/1218,455,902.27=(A2*B2^3-(A2-C2)*(B2-2*D2)^3)/(6*B2)184,559.02

In inches, the same formulas give I in in⁴ and W in in³: a 1 × 2 in rectangle on edge has I = 0.6667 in⁴. To convert, 1 in⁴ = 416,231 mm⁴ and 1 in³ = 16,387 mm³. The PI() function has that name in both Excel and LibreOffice Calc.

I and W are only one step: deflection and stress depend on them. The beam deflection Excel calculator ($9) calculates I and W for these sections, then the deflection, moment, stress and a check against your limits for 30 beams, in mm or inches.

7. FAQ

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

The area moment of inertia (second moment of area) depends only on the shape of the cross-section and is expressed in mm⁴: it is used for bending and deflection. The mass moment of inertia is expressed in kg·m² and describes a body's resistance to angular acceleration.

What is the moment of inertia formula for a rectangle?

I = b·h³/12 about the centroidal axis parallel to b, where h is the dimension in the bending direction. A 20 × 40 bar on edge (h = 40) has I = 106,667 mm⁴, four times more than flat (26,667 mm⁴).

What is the formula for a round bar and a tube?

Solid round: I = π·D⁴/64 and section modulus W = π·D³/32. Tube: I = π·(D⁴ − d⁴)/64. The polar moment, used in torsion, is twice as much: J = π·D⁴/32 for a solid round. It is used to calculate a shaft in torsion.

What is the section modulus W?

It is the moment of inertia divided by the distance from the neutral axis to the extreme fibre: W = I / c, in mm³. The maximum bending stress is σ = M / W, where M is the bending moment.

How do you calculate the moment of inertia about another axis?

With the parallel axis theorem: I = Ic + A·d², where Ic is the moment of inertia about the centroidal axis, A the section area and d the distance between the two axes.

Read next