Quick answer. Find the support reactions, then walk along the beam from left to right. The shear force drops by every downward point load and falls linearly under a uniform load; the bending moment is the running area under the shear diagram, so it peaks where the shear crosses zero. In symbols, \(\mathrm{d}V/\mathrm{d}x=-w\) and \(\mathrm{d}M/\mathrm{d}x=V\). StiffStruct draws these diagrams for any beam, truss or frame and shows each matrix step of the solution.
1. How load, shear and moment are related
Cut a short slice \(\mathrm{d}x\) out of a beam carrying a downward load of intensity \(w\) per unit length. Vertical equilibrium of the slice and moment equilibrium about one of its faces give two differential relations:
$$\frac{\mathrm{d}V}{\mathrm{d}x}=-w,\qquad \frac{\mathrm{d}M}{\mathrm{d}x}=V.$$Integrated between two points they become area rules, which are what you use by hand:
$$V_2-V_1=-\int_{x_1}^{x_2}w\,\mathrm{d}x,\qquad M_2-M_1=\int_{x_1}^{x_2}V\,\mathrm{d}x.$$The change in shear equals minus the load between two sections, and the change in moment equals the area of the shear diagram between them. Each integration raises the polynomial degree by one: no load gives constant shear and linear moment, a uniform load gives linear shear and a parabolic moment, a triangular load gives parabolic shear and a cubic moment. Concentrated actions break the smooth curves: a point load \(P\) makes the shear jump by \(P\), and a couple \(M_0\) makes the moment jump by \(M_0\) while leaving the shear unchanged.
2. Diagram shapes for each load type
The table summarises what each kind of load does to the two diagrams over the segment where it acts. Directions assume downward loads and the sign convention in section 6.
| Load on the segment | Shear force diagram | Bending moment diagram |
|---|---|---|
| No load | Constant (horizontal line) | Linear (straight sloping line) |
| Point load \(P\) | Vertical step down by \(P\) | Kink (change of slope), no jump |
| Uniform load \(w\) | Linear, slope \(-w\) | Parabola, concave downwards |
| Triangular or trapezoidal load | Parabola | Cubic curve |
| Clockwise couple \(M_0\) | No change | Vertical step up by \(M_0\) |
| Pin or roller at the end of a beam | Step equal to the reaction | Zero moment |
An applied couple is the case students most often get wrong, because the shear diagram gives no hint of it. In the beam below, a 40 kN·m counter-clockwise couple acts 3.5 m along a 9 m simply supported span. The reactions are \(M_0/L=4.44\) kN, equal and opposite, so the shear is constant, while the moment rises to 15.6 kN·m just left of the couple and drops by 40 kN·m to −24.4 kN·m just right of it.
Solving the example in your browser…
3. How to draw shear and moment diagrams by hand
- Draw the free-body diagram. Replace each support by its reactions and note every load with its position.
- Find the reactions from \(\sum M=0\) about one support and \(\sum F_y=0\). For a cantilever you can skip this and start from the free end.
- Mark the key points: supports, point loads, couples, and the start and end of each distributed load. Between key points the diagrams are smooth.
- Draw the shear diagram from left to right: step by each reaction or point load, slope by \(-w\) under distributed loads, and close back to zero at the right end.
- Draw the moment diagram by adding the area of each shear segment to the moment at its left end, and add the step of any couple. The moment at a free end or a pinned end is zero.
- Locate the maximum moment at each point where the shear is zero or changes sign, and compute its value there.
- Check closure: the shear and the moment must both return to the end values (zero at a free or simply supported end). A diagram that does not close points to an arithmetic error in the reactions.
4. Worked example with solution
A simply supported beam of span 8 m has a pin at A (\(x=0\)) and a roller at B (\(x=8\) m). It carries a uniform load of 12 kN/m from A to \(x=5\) m and a point load of 20 kN at \(x=6.5\) m.
Reactions. The uniform load has a resultant of \(12\times5=60\) kN acting at 2.5 m. Moments about A give
$$R_B=\frac{60\times2.5+20\times6.5}{8}=\frac{150+130}{8}=35\ \text{kN},\qquad R_A=60+20-35=45\ \text{kN}.$$Shear force. Just right of A the shear is \(+45\) kN. It falls at 12 kN/m to \(45-60=-15\) kN at \(x=5\) m, stays at \(-15\) kN up to the point load, steps down by 20 kN to \(-35\) kN, and stays there until the reaction at B returns it to zero. The shear crosses zero inside the loaded length, at \(x_0=45/12=3.75\) m.
Bending moment. The moment starts at zero at A and is the running area of the shear diagram:
$$M_{\max}=M(3.75)=45\times3.75-\frac{12\times3.75^2}{2}=168.75-84.38=84.38\ \text{kN\,m}.$$From there the shear is negative, so the moment decreases: \(M(5)=45\times5-12\times5^2/2=75.0\) kN·m, then \(M(6.5)=75.0-15\times1.5=52.5\) kN·m, and finally \(M(8)=52.5-35\times1.5=0\), which closes the diagram as it must at a roller.
| Point | \(x\) (m) | Shear \(V\) (kN) | Moment \(M\) (kN·m) |
|---|---|---|---|
| Support A | 0 | +45.0 | 0 |
| Zero shear, maximum moment | 3.75 | 0 | 84.38 |
| End of uniform load | 5.0 | −15.0 | 75.0 |
| Point load (left / right) | 6.5 | −15.0 / −35.0 | 52.5 |
| Support B | 8.0 | −35.0 | 0 |
Two checks: the reactions add up to the total load (\(45+35=80\) kN), and the positive area of the shear diagram from A to 3.75 m (\(\tfrac12\times45\times3.75=84.38\)) equals the negative area from 3.75 m to B, so the moment returns to zero.
5. Cantilevers, propped cantilevers and trapezoidal loads
For a cantilever, start at the free end, where \(V=0\) and \(M=0\), and walk towards the wall; no reactions are needed. Under downward loads the moment is hogging along the whole length and largest at the wall, where it equals the moment of all the loads about the wall. The cantilever with a triangular load shows the parabolic shear and cubic moment of a linearly varying load.
A trapezoidal load from \(w_1\) to \(w_2\) is easiest to treat as a uniform load \(w_1\) plus a triangle rising to \(w_2-w_1\). The rectangle’s resultant acts at mid-length and the triangle’s at two-thirds of the length from its small end. A propped cantilever (fixed at one end, simply supported at the other) is statically indeterminate: equilibrium alone gives two equations for three unknowns, so one reaction comes from a compatibility condition. Once the prop force is known, the diagrams are drawn exactly as before.
In the beam below, a 7 m propped cantilever carries a load rising from 8 kN/m at the wall to 20 kN/m at the prop, 98 kN in total. Superposing \(3wL/8\) for the uniform part and \(11w_0L/40\) for the triangle gives a prop force of \(21.0+23.1=44.1\) kN, so the wall reaction is 53.9 kN and the fixed-end moment is \(44.1\times7-392=-83.3\) kN·m (hogging).
Solving the example in your browser…
6. Sign convention used by StiffStruct
Textbooks differ on signs, so it pays to know what a calculator plots. StiffStruct uses these definitions for every member (details in the theory notes):
- Bending moment is sagging-positive for a horizontal member: positive when the bottom fibre is in tension.
- Shear force is defined by \(V=\mathrm{d}M/\mathrm{d}x\), so a simply supported beam under gravity has positive shear at its left support and negative shear at its right support, as in the worked example.
- Axial force is positive in tension; gravity acts in the \(-Y\) direction.
- Plotting side. For beams, positive (sagging) moment is plotted upwards. For frames, the moment is drawn on the tension side of each member, which is the usual practice for portal frames. A display setting switches between tension side and compression side; it changes only the drawing, never the signs of the values.
7. Common mistakes
- Placing a partial load’s resultant at midspan. A partial uniform load acts at the middle of its loaded length, not at midspan.
- Putting the maximum moment under a load by habit. It lies where the shear is zero, which in the example is 3.75 m from A, not at the end of the uniform load.
- Forgetting the couple step. A couple leaves the shear unchanged but moves the moment by its full value.
- Mixing sign conventions between the shear and the moment, which makes \(\mathrm{d}M/\mathrm{d}x=V\) fail and the moment diagram not close.
- Drawing a straight moment line under a distributed load. Under any distributed load the moment diagram is curved.
Draw the diagrams for your own beam
Enter spans, supports and loads (point, uniform, triangular, trapezoidal or couples) and get the shear and moment diagrams with every matrix step. Frames and trusses work the same way.
Frequently asked questions
How are shear force and bending moment related?
The slope of the bending moment diagram equals the shear force, \(\mathrm{d}M/\mathrm{d}x=V\), and the slope of the shear force diagram equals minus the load intensity, \(\mathrm{d}V/\mathrm{d}x=-w\). So the change in moment between two points is the area of the shear diagram between them, and the change in shear is minus the load applied between them.
Where does the maximum bending moment occur?
Where the shear force is zero or changes sign, because the moment diagram has zero slope there. Also check the ends of the beam, fixed supports, points under concentrated loads where the shear crosses zero, and both sides of an applied couple, since the moment can jump there.
How do you draw the shear and moment diagram for a cantilever?
Start at the free end, where both shear and moment are zero, and work towards the wall. You do not need the reactions first. The shear at the wall equals the total load and the moment at the wall equals the moment of all loads about the wall, which is the largest moment in the cantilever under downward loads.
What do the diagrams look like under a trapezoidal load?
A trapezoidal load is a uniform part plus a triangular part. Under it the shear diagram is a parabola and the moment diagram is a cubic curve. For hand work, split the trapezoid into a rectangle and a triangle, find each resultant and its position, and superpose.
On which side does StiffStruct draw the bending moment diagram?
For beams, positive (sagging) moment is plotted upwards by default. For frames, the moment is drawn on the tension side of each member. A display setting lets you switch to tension side or compression side; the sign convention of the numbers does not change.
Can StiffStruct draw shear and moment diagrams for frames and trusses?
Yes. StiffStruct solves any 2D or 3D beam, truss or frame with the stiffness method and draws axial force, shear force and bending moment for every member, together with each matrix step of the solution: element matrices, assembly, the reduced system and the member end forces.