The stiffness matrix in FEM depends on:

Explanation:

It depends on both material and geometry.

Explore more in Mechanical Engineering: