2D Truss Analysis Calculator
Follow how forces travel through a pin-jointed structure. Edit joint coordinates, loads, supports and member stiffness, then inspect signed axial forces, support reactions and displacements in a linked diagram and complete tables. Compare metric and US units and export the full analysis.
See where the forces go.
Build an ideal pin-jointed truss, follow tension and compression, and compare its original and displaced geometry.
Joint forces only; positive X is right and positive Y is up. Supports restrain the checked axes. Members carry axial force only. This model does not check buckling, strength, connections or construction suitability.
Largest axial magnitude
62.5 kN
Signed member forces are listed below.
Largest displacement
2.4407 mm
Calculated displacement, before visual amplification.
Strain energy
118.75 J
Stored elastic energy in the entered axial members.
Force paths & deformation
Solid blue: tension. Dashed magenta: compression. Dotted slate: near numerical zero (≤ 10⁻¹⁰ of the largest member force). Exact computed numbers remain in the table and export. Arrowheads indicate load direction, not magnitude. Crossing lines connect only at an entered joint ID.
Triangle symbol: Y restrained. Vertical bars: X restrained. Joint coordinates and reactions are in the results table.
Member AC · Compression
Axial force -62.5 kN · stress -62.5 MPa · extension -1.5625 mm.
Joints, loads & supports
2–20 joints; 1–60 members. Coordinates within ±10,000 m; member lengths 0.001–10,000 m. Loads within ±1,000,000 kN. Modulus 0.001–1,000 GPa; area 0.001–10,000,000 mm² (or equivalent US values). Enter every number, including explicit zero loads. Material properties are your assumptions.
Members & axial stiffness
Connect two existing joints. Area and modulus determine EA; this is not a recommended member size.
Complete results
Positive axial force, stress and extension mean tension. Negative means compression. Reactions act on the truss at restrained directions. Zero in an unrestrained reaction column means no support acts there.
| Member | Length (m) | Axial (kN) | Stress (MPa) | Extension (mm) |
|---|---|---|---|---|
| 6 | 37.5 | 37.5 | 1.125 | |
| 5 | -62.5 | -62.5 | -1.5625 | |
| 5 | -62.5 | -62.5 | -1.5625 |
| Joint | X (m) | Y (m) | uX (mm) | uY (mm) | RX (kN) | RY (kN) |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 50 | |
| 6 | 0 | 1.125 | 0 | 0 | 50 | |
| 3 | 4 | 0.5625 | -2.375 | 0 | 0 |
Numerical diagnostics & assumptions
Scaled stiffness condition: 4.52063. Relative free-joint equilibrium residual: 0. Displacement / assembly diagonal: 0.000338465. These describe this linear solve, not structural safety. There are no bending, shear, buckling, connection, thermal or material strength checks. A nearly unstable system may be rejected rather than presented as a solved result.
Keep the complete analysis
CSV includes the original drafts and units, canonical metric inputs, every joint/member result, assumptions and solver diagnostics at full computed precision. Deformation amplification is visual only and does not change exported results.
How to use this calculator
- Start with the triangular truss or braced-frame example. Choose metric or US units; a unit change preserves valid entered quantities.
- Enter each joint’s X/Y coordinates and joint loads. Check Restrain X and/or Restrain Y only where that translation is prevented. Positive X points right; positive Y points up.
- Connect pairs of joints and enter each member’s Young’s modulus and cross-sectional area. Add or remove joints and members to change the assembly; removing a joint removes its attached members.
- Inspect the force diagram or switch to the deformation overlay. Its multiplier changes only the picture. Select a member or joint to read exact quantities without relying on color or hover.
- Review the member and joint result tables, assumptions and numerical diagnostics. Resolve input or instability errors before using results.
- Download the complete CSV or open the selectable report. Exports include original drafts, units, canonical inputs, all calculated results and assumptions.
The Formula
The mathematical logic powering this calculation is:
For member i–j: L = √((xj−xi)² + (yj−yi)²), c = (xj−xi)/L, s = (yj−yi)/L.
Let b = [−c, −s, c, s]. Member stiffness is ke = (EA/L) bᵀb.
Assemble the global stiffness K. At free degrees of freedom solve Kff uf = Ff; restrained displacements are zero.
Member extension δ = b ue; axial force N = EAδ/L; axial stress σ = N/A. Positive means tension.
Reaction R = Ku − F at restrained directions; elastic strain energy U = ½ Σ Nδ.
The model assumes straight axial members, ideal pins, joint loads and small-displacement linear elasticity. It excludes self-weight, bending, shear, buckling, thermal strain, settlements, connection behavior and strength checks.
The solver uses diagonal scaling and Cholesky factorization, checks equilibrium, and rejects mechanisms or unresolved conditioning. Degree counts alone do not establish stability.Worked Example
If you input:
- Joints: A (0, 0), B (6, 0), C (3, 4) m
- Supports: A restrains X and Y; B restrains Y
- Loading: C: 0 kN horizontally, −100 kN vertically
- Members: AB, AC, BC; each E = 200 GPa and A = 1,000 mm²
Result:
Both vertical support reactions are 50 kN. AB carries 37.5 kN tension; AC and BC each carry 62.5 kN compression. Joint C moves 0.5625 mm right and 2.375 mm down. Joint B moves 1.125 mm right. Total stored elastic energy is 118.75 J. These are idealized linear-analysis results, not member-capacity checks.
Frequently Asked Questions
What does a positive or negative member force mean?
Positive axial force and stress mean tension; negative means compression. The diagram uses solid blue lines for tension and dashed magenta lines for compression. A dotted near-zero category identifies values within 10⁻¹⁰ of the largest member force; the table and CSV retain the computed numbers.
Why is my truss unstable even when the member count looks correct?
A count cannot prove geometric stability. Collinear members, missing bracing, disconnected free joints or supports that allow rigid motion can create a mechanism. The calculator analyzes the actual stiffness system and returns an error rather than adding a hidden restraint.
Can it analyze an indeterminate truss?
Yes, when the entered stiffness system is stable and numerically resolvable. Member areas and elastic moduli are required because stiffness distributes load between redundant paths. The same member-count shortcut used for determinate trusses is not used as the solver.
Does the deformation drawing show the real movement?
The deformation view has an explicit visual multiplier, initially ×100. Original and displaced geometry share one diagram scale, but the displaced shape is multiplied to make movement visible. Calculated displacements in the tables and CSV are never amplified.
Are crossing members connected automatically?
No. Members connect only through the joint IDs selected at their endpoints. A crossing in the drawing is not an additional joint. To create that joint, add its coordinates and divide the crossing members into connected segments.
Can this size a roof truss or establish safe loads?
No. This tool reports an entered ideal linear axial analysis. It does not check buckling, member or connection strength, stability outside the plane, load combinations, codes or construction details. Self-weight and loads between joints are not automatically added.
What happens to blank inputs or unsupported geometry?
Blank and malformed numbers remain editable and invalidate dependent results; they are not converted to zero. Unit changes are withheld while the input or stability error remains. Near-singular or unresolved numerical systems return an explanatory error instead of plausible forces.
Similar Calculators
Beam Response Calculator
Calculate beam reactions, shear force, bending moment, slope and deflection. Inspect load jumps and analytical extrema for simple supports or a cantilever.
System of Equations Calculator
Solve 2–4 simultaneous linear equations with exact fractions, elimination steps, a two-variable graph, and checks for unique, infinite or no solutions.
Vector Calculator
Explore 2D and 3D vectors: dot and cross products, angles, addition, projections and area, with interactive geometry, exact arithmetic and CSV.
