Stiffness Matrix Calculator

Calculate the element stiffness matrix for a bar (truss) element in structural finite element analysis. Enter the elastic modulus, cross-sectional area, and length.

AXIAL STIFFNESS (EA/L)
--
EA/L (N/m)
--
EA/L (kN/mm)
--
cos(θ)
--
sin(θ)
--

What Is a Stiffness Matrix?

In structural finite element analysis (FEA), the stiffness matrix relates nodal forces to nodal displacements: [F] = [K][u]. For a simple bar (truss) element, the local stiffness matrix is a 2x2 matrix with the fundamental quantity EA/L, where E is Young's modulus, A is cross-sectional area, and L is element length.

When the bar is oriented at an angle to the global coordinate system, the local matrix must be transformed using a rotation matrix to obtain the 4x4 global stiffness matrix. Assembling all element matrices gives the global structure stiffness matrix used to solve for unknown displacements.

Bar Element Formula

k = EA/L   (Axial stiffness)
[K]_local = (EA/L) × [1, -1; -1, 1]

For a 2D element at angle θ, the 4x4 global stiffness matrix uses c = cos(θ) and s = sin(θ), with components (EA/L) × [c², cs, -c², -cs; cs, s², -cs, -s²; -c², -cs, c², cs; -cs, -s², cs, s²].

Material Properties

MaterialE (GPa)Typical Use
Structural Steel200Buildings, bridges
Aluminum 606169Aerospace, frames
Concrete30Foundations, columns
Timber (Pine)12Residential framing
Titanium116Aerospace, medical
CFRP Composite150-230Aerospace, sports

Finite Element Context

  • Assembly: Element stiffness matrices are assembled into the global matrix using connectivity information.
  • Boundary conditions: Fixed supports are applied by modifying rows/columns of the global matrix.
  • Solution: [u] = [K]^-1 [F] gives displacements, then strains and stresses are computed.
  • Beam elements: Include bending stiffness (EI/L terms) in addition to axial stiffness.

Frequently Asked Questions

Why is the stiffness matrix symmetric?

The stiffness matrix is symmetric because of Maxwell's reciprocal theorem: the displacement at point i due to a force at point j equals the displacement at j due to the same force at i. Mathematically, this follows from the quadratic nature of strain energy.

What does a negative entry in the stiffness matrix mean?

Negative off-diagonal entries indicate that a positive displacement at one node produces a restoring force at the other. For a bar element, pushing node 1 to the right compresses the bar, creating a leftward force at node 2, hence the -EA/L terms.

How does the stiffness matrix change for beam elements?

Beam elements have 6 DOFs (2 translations + 1 rotation per node in 2D), producing a 6x6 stiffness matrix with additional terms involving EI/L, EI/L^2, and EI/L^3 for bending moment and shear force contributions.