Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Truss solver

Learn statics: solve a pin-jointed 2D truss by the method of joints and see every member's force, tension or compression, and the support reactions.

Teaching tool only. It solves an ideal truss on paper. It does not check buckling, member sizes, joints, materials, wind, snow or safety factors, and must never be used to design or check a real bridge, roof, shelf or any structure people rely on. That is a job for a qualified engineer.

Thick teal lines with T are in tension (pulled), thick ochre lines with C are in compression (squashed), dashed grey lines with 0 carry no force under these loads. Red arrows are loads.

How to use

  1. Pick an example truss, or write your own. Name each joint and give its position in metres (or any length unit): joint A 0 0.
  2. Join the joints with members: member A B.
  3. Add supports: pin A holds a joint both ways; roller E holds it only up and down (roller E x holds it only sideways).
  4. Add loads at joints: load C 0 -10 means 0 sideways and 10 down (minus is down, plus is up).
  5. Press Solve. Each member shows its force and whether it is pulled (tension) or squashed (compression); the tables list every force and the support reactions.

Keyboard and touch

TabMove between the lists, the text box and the Solve button
Enter on SolveSolve the truss
Picking an exampleLoads it and solves it straight away

Tips

  • A simple truss that the method of joints can solve has members + support reactions = 2 × joints. A pin counts as 2 reactions and a roller as 1.
  • Try the Pratt and Howe examples: the same shape with the diagonals flipped. In a Pratt truss the diagonals are in tension; in a Howe truss they are in compression.
  • Zero-force members are not useless: they hold other members straight and carry load when the loads move.
  • Long members in compression can buckle (bow sideways) long before the material breaks. This tool does not check that, one of the reasons it is for learning only.
  • Move a load to a different joint and watch which members switch between tension and compression.

About this solver

It uses the method of joints: at every joint, the sum of horizontal forces and the sum of vertical forces must be zero. With J joints that gives 2J equations, one unknown for each member force and each support reaction. All equations are solved together by Gaussian elimination with partial pivoting. Tension is counted positive. If the count does not match, or the equations have no single answer, the truss is reported as indeterminate, a mechanism or unstable instead of giving numbers.

The model is an ideal plane truss: straight, weightless members joined by frictionless pins, loads only at the joints, small deflections. Real structures add self-weight, bending, buckling, joint design, material limits and safety factors set by building codes. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product