Intermediate

Stiffness Matrix Calculator — 2-Node Bar/Truss Element

Enter the material stiffness (E), cross-section area (A) and element length (L) to compute the 2×2 local stiffness matrix for a 2-node bar element — the fundamental building block of truss and frame finite element analysis.

GPa

Steel ≈ 200 GPa, aluminium ≈ 70 GPa, concrete ≈ 30 GPa

mm²

e.g. 100 mm² = 1 cm²

m

Axial stiffness k = AE/L
20,000kN/m

20,000,000 N/m — diagonal entry of the 2×2 element stiffness matrix

k (N/m)
2.0000e+7
K[1,1] = K[2,2]
+2.000e+7 N/m
K[1,2] = K[2,1]
-2.000e+7 N/m
Determinant |K|
0 (rigid-body mode exists)
Derivation
1

Convert inputs to SI base units

E = 200 GPa = 2.000e+11 Pa A = 100 mm² = 1.000e-4 m²
2

Compute axial stiffness k = AE / L

k = 1.000e-4 × 2.000e+11 / 1 = 2.0000e+7 N/m (2.000e+4 kN/m)
=

2×2 element stiffness matrix K = k·[1 −1; −1 1]

K = ⎡ 2.000e+7 -2.000e+7 ⎤ ⎣ -2.000e+7 2.000e+7 ⎦ N/m
Force F₂ (kN) at free node 2 vs displacement δ (mm), node 1 fixed — slope = k
Step by step
  1. 1

    Young's modulus in Pa

    200 × 10⁹ = 200,000,000,000
  2. 2

    Cross-section area in m²

    100 × 10⁻⁶ = 0.0001
  3. 3

    Axial stiffness k = AE ÷ L

    0.0001 × 200,000,000,000 ÷ 1 = 20,000,000
  4. 4

    k in kN/m (÷ 1000)

    20,000,000 ÷ 1000 = 20,000
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

For a 2-node bar element, axial stiffness k = AE/L (N/m). The 2×2 stiffness matrix is K = k·[[1,−1],[−1,1]]. The matrix is symmetric and singular (det = 0 due to one rigid-body mode). Fix at least one node to solve for displacements under applied load.

Formula
k = AE/L · K = k × [[1, −1], [−1, 1]]
How this is calculated

In the direct stiffness method (finite element analysis), a 1D bar or truss element with two nodes has two degrees of freedom (axial displacement at each node). The relationship between nodal forces {F} and displacements {u} is {F} = [K]{u}, where [K] is the 2×2 element stiffness matrix. The axial stiffness k = AE/L, so [K] = k·[[1,−1],[−1,1]].

The off-diagonal terms −k enforce compatibility: applying a displacement at node 2 with node 1 fixed induces an equal-and-opposite reaction force at node 1. The matrix is singular (determinant = 0) because the element has one rigid-body mode (pure translation without deformation). In a complete structural model, boundary conditions remove this singularity before solving.

This calculator computes the local stiffness matrix in the element's axial direction. For 2D or 3D truss assemblies you would transform this into global coordinates using the element orientation angle, then assemble all elements into the global stiffness matrix. This simplification assumes linear elastic material behaviour and small deformations (no geometric or material nonlinearity).

Frequently asked questions

A free bar element can translate rigidly without any deformation — this rigid-body mode makes the matrix singular. The physical meaning is that the system has no unique solution until you fix at least one degree of freedom (impose a boundary condition). Assembly into a global model with proper supports removes the singularity.

Structural steel: ~200 GPa, aluminium alloys: ~70 GPa, titanium: ~110 GPa, concrete: ~25–35 GPa, wood (along grain): ~10–15 GPa, rubber: ~0.01–0.1 GPa. Stiffer materials (higher E) resist deformation more and produce larger stiffness values for the same cross-section and length.

Each element contributes its stiffness to the global matrix by adding each K[i,j] entry to the corresponding global degree-of-freedom pair. For a two-element truss with three nodes the global matrix is 3×3: each 2×2 element matrix overlaps at the shared interior node. After assembly, apply boundary conditions, then solve {F} = [K]{u} for unknown displacements.

Also known as

stiffness matrix bar element
finite element stiffness matrix
axial stiffness AE over L
truss element FEA calculator
direct stiffness method
structural element stiffness
2x2 element stiffness matrix

APA

TG we-Calculate Editorial Team. (2026). Stiffness Matrix Calculator — 2-Node Bar/Truss Element [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/stiffness-matrix-calculator

Chicago

TG we-Calculate Editorial Team. "Stiffness Matrix Calculator — 2-Node Bar/Truss Element." TG we-Calculate. 2026. https://we-calculate.com/calculator/stiffness-matrix-calculator.

IEEE

TG we-Calculate Editorial Team, "Stiffness Matrix Calculator — 2-Node Bar/Truss Element," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/stiffness-matrix-calculator

BibTeX

@misc{wecalculate_stiffness_matrix_calculator, title = {Stiffness Matrix Calculator — 2-Node Bar/Truss Element}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/stiffness-matrix-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?