Truss Stiffness Matrix Calculator

Enter nodes, members, areas, and material data quickly. Get element lengths, angles, and stiffness terms. Review the assembled matrix and displacement solution instantly here.

Truss Inputs

A 2D pin-jointed truss uses two degrees of freedom per node: horizontal displacement (ux) and vertical displacement (uy).

Tip: build inputs after changing counts.

Node Data (coordinates, loads, supports)


Member Data (connectivity, area, modulus)

Example Data Table

This example is a three-node triangular truss with three members. Node 1 is fixed, node 2 is a roller (uy fixed), and node 3 has a downward load.

Nodex (m)y (m)Fx (kN)Fy (kN)Fix uxFix uy
10000YesYes
24000NoYes
3230-10NoNo
MemberijArea (m²)E (GPa)
1120.003200
2230.003200
3310.003200
You can load this example instantly using the “Load Example” button above.

Formula Used

Each 2D truss member connects two nodes and carries axial force only. In global coordinates, the member stiffness matrix is:

ke = (A E / L)
[ c²   c s   -c²   -c s ]
[ c s   s²   -c s   -s² ]
[ -c²   -c s   c²   c s ]
[ -c s   -s²   c s   s² ]
  • A = cross-sectional area, E = Young’s modulus
  • L = member length, c = cos(θ), s = sin(θ)
  • Global stiffness K is assembled by adding each member’s contributions into the appropriate DOF locations.
  • After applying supports, the reduced system Kff df = Ff is solved for unknown displacements.

How to Use This Calculator

  1. Choose node and member counts, then click Build Inputs.
  2. Enter node coordinates in your selected length unit.
  3. Enter nodal loads (Fx, Fy) and tick supports you want fixed.
  4. Define each member by its start node i and end node j.
  5. Enter area and modulus values in the selected units.
  6. Press Calculate to see displacements, reactions, forces, and matrices.
  7. Use Download CSV or Download PDF to export the report.

Truss Stiffness Matrix Notes

1) What the stiffness matrix represents

A truss stiffness matrix links nodal forces to nodal displacements using linear elasticity. For a 2D truss, each node contributes two degrees of freedom, so an n-node model forms a (2n × 2n) global matrix. Larger matrices store more connectivity detail and capture load paths through multiple members.

2) Degree-of-freedom numbering and mapping

This calculator numbers DOFs as d1=ux1, d2=uy1, d3=ux2, d4=uy2, and so on. Accurate mapping is critical: each member contributes a 4×4 stiffness block that is assembled into the correct global rows and columns. A single indexing mistake can distort reactions and member forces.

3) Geometry drives direction cosines

Member orientation enters through c=Δx/L and s=Δy/L. Horizontal members have c≈1, s≈0, vertical members have c≈0, s≈1. Short members increase stiffness because AE/L grows as L decreases, so consistent coordinates and units matter.

4) Material and area sensitivity

Axial stiffness scales linearly with A and E. Typical steel has E≈200 GPa, aluminum E≈69 GPa, and timber often ranges 8–14 GPa depending on species and grade. Doubling area doubles member stiffness and typically reduces displacements roughly in proportion for well-constrained trusses.

5) Supports, stability, and singular matrices

A stable 2D truss needs sufficient restraints to remove rigid-body motion. If you leave both translations free for all nodes, the reduced matrix Kff becomes singular and the solver reports a near-zero pivot. Add realistic boundary conditions (pins/rollers) and ensure the geometry is not a mechanism (for example, a line of collinear nodes without bracing).

6) Reading displacements and reactions

Computed displacements reflect small-deformation linear theory. If results are unexpectedly large, check units first: mixing mm coordinates with areas can inflate AE/L inconsistently. Reactions appear at constrained DOFs and should balance applied loads (sum of forces in each direction should match within rounding).

7) Member force and stress interpretation

The calculator reports axial force with tension positive. A negative value indicates compression. Stress is computed as σ=N/A and displayed in MPa (or ksi for imperial modulus choices). Compare stress to allowable limits and consider buckling checks for compression members, which stiffness alone does not capture.

8) Practical verification checks

Before trusting a large model, validate with a small sub-truss or hand-calculated case. Confirm that symmetric geometry with symmetric loading produces symmetric displacements. Review the global matrix structure: disconnected nodes create zero rows/columns. Finally, verify that changing one member area or modulus produces a sensible local response, not random global changes.

FAQs

1) What is the minimum information needed?

You need node coordinates, member connectivity, and positive A and E for each member. Add at least one support condition and at least one load to see meaningful displacements and reactions.

2) Why do I get a “singular” or “ill-conditioned” message?

It usually means the structure can move as a rigid body or behaves like a mechanism. Add supports (pin/roller), fix missing restraints, or add bracing members so the truss is stable.

3) Does this handle distributed loads on members?

No. It solves nodal loads for 2D axial truss members. Convert distributed loads into equivalent joint loads using statics, then enter those nodal forces as Fx and Fy.

4) How are member axial forces computed?

After solving nodal displacements, the axial deformation along a member is projected using direction cosines. The force is N=(AE/L)·Δ, where Δ is the displacement difference along the member axis.

5) What sign convention is used for forces?

Positive axial force is tension; negative is compression. Nodal loads follow your input sign: positive Fx acts to the right, positive Fy acts upward.

6) Can I model different units for different members?

Use one consistent unit set per run. The calculator applies a single length, area, modulus, and force unit selection to every input. Mixing units inside the same run will cause incorrect stiffness and results.

7) Why is the global stiffness matrix shown in SI units?

Matrix entries depend on the base computational units used internally. Showing K in SI keeps values consistent and comparable. Export CSV for complete precision, and interpret displacements and forces in your selected display units.

Related Calculators

angle of repose online calculator3 angle calculator5 sided shape angle calculatorvickers to rockwell hardness conversion calculatorhardness test conversion calculatorvickers hardness conversion calculatortorsion angle of twist calculatorshaft angle of twist calculatorangle of convergence calculatorangle of descent calculator golf

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.