Structures

How far does a beam bend?

The classic formula for a loaded beam, checked with a few lines of code.

· 1 min read

Put a weight in the middle of a plank resting on two bricks and it sags. How much it sags depends on four things: the load FF, the span LL, the stiffness of the material EE, and the shape of the cross-section II.

The formula

A horizontal beam resting on a pin support at the left end and a roller at the right, with a downward force F at the centre. A dashed curve shows the beam sagging by a distance delta in the middle; the span between the supports is marked L.
Figure 1. A simply supported beam with a point load at mid-span. The sag is exaggerated.

For a simply supported beam with a point load at mid-span, the deflection at the centre is1

δ=FL348EI\delta = \frac{F L^3}{48 E I}

The cube on LL is the surprise: double the span and the beam sags eight times as much. For a rectangular section of width bb and depth hh, the second moment of area is I=bh312I = \tfrac{b h^3}{12}, so depth matters far more than width.2

Checking it in code

// Deflection (m) of a simply supported beam with a central point load.
function deflection(F: number, L: number, E: number, I: number): number {
  return (F * L ** 3) / (48 * E * I);
}

const I = (0.1 * 0.02 ** 3) / 12; // 100 mm × 20 mm pine plank, laid flat
console.log(deflection(500, 1.0, 10e9, I)); // ≈ 0.0156 m: about 16 mm

Stand the same plank on its edge and hh becomes 100 mm. The deflection drops by a factor of 25.

Notes

  1. See any mechanics of materials textbook, for example J. M. Gere and B. J. Goodno, Mechanics of Materials, 9th ed., Cengage, 2018, Appendix H. ↩

  2. This is why floor joists are installed on edge, never flat. ↩