In structural engineering, **deflection** is the degree to which a part of a structural element is displaced under a load (because it deforms). It may refer to an angle or a distance.

The deflection distance of a member under a load can be calculated by integrating the function that mathematically describes the slope of the deflected shape of the member under that load.

Standard formulas exist for the deflection of common beam configurations and load cases at discrete locations. Otherwise methods such as virtual work, direct integration, Castigliano's method, Macaulay's method or the direct stiffness method are used. The deflection of beam elements is usually calculated on the basis of the Euler–Bernoulli beam equation while that of a plate or shell element is calculated using plate or shell theory.

An example of the use of deflection in this context is in building construction. Architects and engineers select materials for various applications.

Beams can vary greatly in their geometry and composition. For instance, a beam may be straight or curved. It may be of constant cross section, or it may taper. It may be made entirely of the same material (homogeneous), or it may be composed of different materials (composite). Some of these things make analysis difficult, but many engineering applications involve cases that are not so complicated. Analysis is simplified if:

- The beam is originally straight, and any taper is slight
- The beam experiences only linear elastic deformation
- The beam is slender (its length to height ratio is greater than 10)
- Only small deflections are considered (max deflection less than 1/10 of the span).

In this case, the equation governing the beam's deflection () can be approximated as:

where the second derivative of its deflected shape with respect to ( being the horizontal position along the length of the beam) is interpreted as its curvature, is the Young's modulus, is the area moment of inertia of the cross-section, and is the internal bending moment in the beam.

If, in addition, the beam is not tapered and is homogeneous, and is acted upon by a distributed load , the above expression can be written as:

This equation can be solved for a variety of loading and boundary conditions. A number of simple examples are shown below. The formulas expressed are approximations developed for long, slender, homogeneous, prismatic beams with small deflections, and linear elastic properties. Under these restrictions, the approximations should give results within 5% of the actual deflection.

Cantilever beams have one end fixed, so that the slope and deflection at that end must be zero.

The elastic deflection and angle of deflection (in radians) at the free end in the example image: A (weightless) cantilever beam, with an end load, can be calculated (at the free end B) using:^{[1]}

where

- = force acting on the tip of the beam
- = length of the beam (span)
- = modulus of elasticity
- = area moment of inertia of the beam's cross section

Note that if the span doubles, the deflection increases eightfold. The deflection at any point, , along the span of an end loaded cantilevered beam can be calculated using:^{[1]}

Note: At (the end of the beam), the and equations are identical to the and equations above.

The deflection, at the free end B, of a cantilevered beam under a uniform load is given by:^{[1]}

where

- = uniform load on the beam (force per unit length)
- = length of the beam
- = modulus of elasticity
- = area moment of inertia of cross section

The deflection at any point, , along the span of a uniformly loaded cantilevered beam can be calculated using:^{[1]}

Simply supported beams have supports under their ends which allow rotation, but not deflection.

The deflection at any point, , along the span of a center loaded simply supported beam can be calculated using:^{[1]}

for

The special case of elastic deflection at the midpoint C of a beam, loaded at its center, supported by two simple supports is then given by:^{[1]}

where

- = force acting on the center of the beam
- = length of the beam between the supports
- = modulus of elasticity
- = area moment of inertia of cross section

The maximum elastic deflection on a beam supported by two simple supports, loaded at a distance from the closest support, is given by:^{[1]}

where

- = force acting on the beam
- = length of the beam between the supports
- = modulus of elasticity
- = area moment of inertia of cross-section
- = distance from the load to the closest support

This maximum deflection occurs at a distance from the closest support and is given by:^{[1]}

The elastic deflection (at the midpoint C) on a beam supported by two simple supports, under a uniform load (as pictured) is given by:^{[1]}

Where

- = uniform load on the beam (force per unit length)
- = length of the beam
- = modulus of elasticity
- = area moment of inertia of cross section

The deflection at any point, , along the span of a uniformly loaded simply supported beam can be calculated using:^{[1]}

The change in length of the beam is generally negligible in structures, but can be calculated by integrating the slope function, if the deflection function is known for all .

Where:

- = change in length (always negative)
- = slope function (first derivative of )
^{[2]}

If the beam is uniform and the deflection at any point is known, this can be calculated without knowing other properties of the beam.

The formulas supplied above require the use of a consistent set of units. Most calculations will be made in the International System of Units (SI) or US customary units, although there are many other systems of units.

- Force: newtons ()
- Length: metres ()
- Modulus of elasticity:
- Moment of inertia:

- Force: pounds force ()
- Length: inches ()
- Modulus of elasticity:
- Moment of inertia:

Other units may be used as well, as long as they are self-consistent. For example, sometimes the kilogram-force () unit is used to measure loads. In such a case, the modulus of elasticity must be converted to .

Building codes determine the maximum deflection, usually as a fraction of the span e.g. 1/400 or 1/600. Either the strength limit state (allowable stress) or the serviceability limit state (deflection considerations among others) may govern the minimum dimensions of the member required.

The deflection must be considered for the purpose of the structure. When designing a steel frame to hold a glazed panel, one allows only minimal deflection to prevent fracture of the glass.

The deflected shape of a beam can be represented by the moment diagram, integrated (twice, rotated and translated to enforce support conditions).