Stiffness Matrix Calculator

Build the two-node axial bar element stiffness matrix from material and geometry.

Build an element stiffness matrix
Enter SI properties for a straight, uniform, linearly elastic axial element.

About stiffness matrices

A stiffness matrix connects nodal displacements to nodal forces in structural analysis. In compact notation, the relationship is (F) = [K](u), where the force vector is obtained by multiplying the stiffness matrix by the displacement vector. This calculator constructs the local two-by-two matrix for a straight, prismatic bar that carries only axial tension or compression. The common scale factor is elastic modulus multiplied by cross-sectional area and divided by element length. Elastic modulus represents the material's resistance to elastic strain, area represents the amount of material carrying axial load, and length controls how much deformation develops. Increasing modulus or area increases stiffness in direct proportion. Increasing length reduces stiffness in inverse proportion. The local bar matrix places the positive scale factor on its diagonal and the negative scale factor off the diagonal. Equal translation of both nodes creates no extension, which explains why the unconstrained matrix has a rigid-body mode and is singular. This element is one of the simplest building blocks in the finite element method. A complete model transforms local matrices into the global coordinate system, assembles contributions from connected elements, applies support conditions and loads, then solves the reduced system for unknown displacements. Reactions and element forces can subsequently be recovered. The present matrix does not include bending, shear, torsion, mass, damping, geometric nonlinearity, thermal strain, or material yielding. Beam, frame, plate, shell, and solid elements use larger formulations. Use pascals, square metres, and metres to obtain matrix terms in newtons per metre. Unit consistency is essential because finite element software often accepts numbers without knowing their physical units. A plausible-looking matrix built from mixed millimetres and metres can be wrong by several orders of magnitude. This calculator is valuable for coursework, spreadsheet verification, small truss checks, and debugging element assembly. For design work, verify boundary conditions, coordinate transformations, connectivity, section properties, load combinations, mesh convergence, and applicable codes. A correct element matrix is necessary, but it is only one part of a reliable structural model.

Axial element examples

Each example reports the EA divided by L scale factor used in the matrix.

InputsMatrix factorInterpretation
E 200 GPa, A 0.001 m², L 2 m100,000,000 N/mA slender steel bar.
E 70 GPa, A 0.002 m², L 1 m140,000,000 N/mA short aluminum member.
E 10 GPa, A 0.005 m², L 5 m10,000,000 N/mA lower-modulus, longer element.

How to build the matrix

  1. Enter the material elastic modulus in pascals.
  2. Enter the uniform cross-sectional area in square metres.
  3. Enter the element length in metres.
  4. Select Build stiffness matrix and copy the factor or matrix entries.

Stiffness matrix FAQ

What element does this calculator represent?

It represents a two-node axial bar or truss element in local coordinates. It carries tension and compression but does not model bending.

Why are the off-diagonal terms negative?

Extension caused by one node's movement produces an opposing force at the other node. The signs enforce equilibrium and compatibility.

Why is the local matrix singular?

Both nodes can translate together without straining the bar. Supports in the assembled structural model remove appropriate rigid-body motion.

Can I enter gigapascals directly?

Convert gigapascals to pascals before entry by multiplying by one billion. Keep area and length in square metres and metres.

Can this matrix model a beam?

No. A beam needs rotational degrees of freedom and bending terms, producing a larger matrix than this axial formulation.