Skip to content

Guide · Trusses

Truss calculator: member forces, tension and compression

Model a plane truss in your browser, solve it, and read the force in every member, the support reactions and the deflected shape.

Quick answer. To solve a truss, define the joints (nodes), the bars between them (members), a pin and a roller (or other supports), and the loads at the joints. StiffStruct solves the whole truss with the stiffness method and lists the axial force in each member: positive is tension, negative is compression. A free account shows every value for 2D trusses of up to 21 members.

1. What the truss calculator gives you

Truss bars are pin-jointed and loaded at the joints, so each carries only axial force. For a plane truss the calculator returns:

For space trusses, use the 3D truss analysis calculator instead.

2. How to model a truss in StiffStruct

  1. Create the model. Choose New model, pick Truss in 2D, then start from a blank model or from the parametric Pratt or Howe template. Set the units (SI, MKS or US) and a name, and press Create. The link app.html?new=truss2d opens a new plane truss directly.
  2. Add the nodes. With the Node tool (key N) click on the canvas. For exact geometry, type X and Y into the Nodes table on the left. Cells accept expressions and units, like 3*1.5 or 8 ft.
  3. Connect the members. The Member tool (M) draws a bar from a start point to an end point and keeps chaining from the last node; press Esc to stop. A material and a section give each member its \(E\) and \(A\).
  4. Add the supports. With the Support tool (S) pick a type and click a node. The usual choice is a pin at one end (restrains X and Y) and a roller at the other (restrains Y only). Inclined rollers and springs are also available.
  5. Apply the loads. With the Load tool (L) click a node and enter the components Fx and Fy along the global axes. Gravity acts in the −Y direction, so a downward load is a negative Fy.
  6. Analyse. Press Ctrl + Enter or choose Analyze, then open the results and choose the Axial view.

3. Reading tension and compression

Axial force is positive in tension (the bar is pulled apart) and negative in compression (the bar is pushed together). On the Axial view the members are coloured by sense:

How StiffStruct shows the sense of a member force
Member stateSign of \(N\)Colour on the Axial view
Tensionpositiveblue
Compressionnegativeorange
Zero forcezerogrey, dashed

Compression members matter most in design, because a long slender bar in compression can buckle well below its yield load. Zero-force members still brace other bars and carry load when the loading changes.

4. Stability and determinacy: check m + r against 2j

Each joint of a plane truss gives two equilibrium equations, so a truss with \(j\) joints has \(2j\) equations. The unknowns are the \(m\) member forces and the \(r\) reaction components. Compare them before you solve:

The count is necessary but not sufficient. Three parallel reactions, or a square panel without a diagonal, can satisfy the count and still collapse. If that happens, StiffStruct reports an unstable model and names the node and the direction that is free to move.

5. Common truss types, with an example of each

Every example below is statically determinate (\(m + r = 2j\)). The forces quoted come from the solver and agree with a hand check by joints and sections.

Truss types available as worked examples in StiffStruct
TypeExamplej, m, rWhat to notice
Pratt24 m bridge, six 4 m panels12, 21, 3Diagonals in tension, centre vertical carries zero force
Howe48 ft pitched roof12, 21, 3Bottom-chord force drops from 10 to 6 kip towards midspan
Warren with verticals18 m span, 3.5 m deep12, 21, 3Diagonals alternate between tension and compression
Fink36 ft compound roof truss7, 11, 3Two simple trusses joined by a 6 kip middle tie
Cantilever6 m wall bracket7, 10, 4Top chord in tension, bottom chord in compression

Pratt bridge. Five loads of 60 kN act at the bottom-chord joints, so each support takes 150 kN. The end posts carry −212.1 kN, the top chord reaches −270 kN at midspan and the bottom chord 240 kN. All four diagonals are in tension (127.3 kN in the end panels, 42.4 kN next to the centre); the long diagonals are pulled, so they cannot buckle. The outer verticals are in tension (60 kN), the next ones in compression (−30 kN).

Live result: the Pratt bridge truss solved in your browser

Solving the example in your browser…

Axial forces, deformed shape and reactions of the 24 m Pratt truss under five 60 kN deck loads, drawn by the same solver as the calculator.

Howe roof. The roof load is 2 kip at each of the five top-chord joints and 1 kip at each eave, 12 kip in total, so each support takes 6 kip. The end rafters carry −11.18 kip and the bottom chord falls from 10 kip at the ends to 6 kip in the middle panels. In this example the diagonals are in tension (2.83 and 3.61 kip), the outer verticals in compression (−2 and −3 kip), and the centre post carries no force. Units are US customary.

Live result: the Howe roof truss solved in your browser

Solving the example in your browser…

Axial forces in the 48 ft Howe roof truss: blue members are in tension, orange members in compression.

Both of these trusses have exactly 21 members, so they sit at the limit of the free plan and show every value with a free account. More trusses are in the examples library.

6. Method of joints, method of sections, stiffness method

All three give the same forces for a determinate truss; they differ in effort and reach.

Comparison of truss analysis methods
MethodHow it worksBest forLimits
Method of joints\(\sum F_x = 0\) and \(\sum F_y = 0\) at one joint at a time, starting where only two forces are unknownAll member forces of a small truss by handErrors carry forward; determinate only
Method of sectionsCut through at most three members and take moments about a point where two of them meetOne or two particular members, such as a midspan chordDeterminate only; needs a suitable cut
Stiffness methodAssemble \(\mathbf{K}\mathbf{u}=\mathbf{F}\) from every member, solve for joint displacements, then recover each \(N\)Any truss size, indeterminate trusses, deflections, settlementsLong by hand; needs \(E\) and \(A\)

The hand methods are explained step by step in method of joints and method of sections, and the stiffness method with its matrices in the 2D truss stiffness matrix solver. Checking two or three members by hand is a quick way to confirm your input.

Solve your own truss

Edit an example, or draw a plane truss from scratch.

Frequently asked questions

Is the truss calculator free?

Yes. With a free account StiffStruct shows every value (reactions, member forces, displacements) for 2D trusses of up to 21 members, with 15 analyses a month. Larger trusses show only the shape of the results unless you have a Semester pass, Student or Pro plan. See pricing.

How do I know if a truss member is in tension or compression?

StiffStruct reports axial force as positive in tension and negative in compression. On the Axial view, tension members are drawn in blue, compression members in orange, and zero-force members in grey.

Why does the calculator say my truss is unstable?

The truss can move as a mechanism: too few supports (a plane truss needs at least three independent restraints), a panel without a diagonal, or a loose node. The message names the node and the direction that is free to move.

Can it solve statically indeterminate trusses?

Yes. The solver uses the stiffness method, which does not need the truss to be determinate. Redundant members and supports need no special treatment, only realistic areas and moduli.

Does it design roof truss timber or steel sizes?

No. It analyses the truss: reactions, member axial forces and joint displacements for the geometry, sections and loads you enter. Member sizing, connection design and code checks remain your job.

Can I enter loads in kip and feet?

Yes. Choose SI, MKS or US units when you create the model, or change them later under Units. Switching units changes only the display, never the result. Fields also accept a typed unit such as 12 kN.

An educational tool: verify results independently before using them for design. All values on this page come from the same solver that powers the calculator.