🧮
🧮 Math & statistics

Linear Independence Calculator (are these vectors independent? dependence relation)

Results update as you type.

Your numbers

Understanding the linear independence calculator — concept and principle

This calculator tests whether a set of vectors is linearly independent. If it is not, it finds a dependence relation, names the vectors that depend on earlier ones and gives the rank. Use it for linear algebra homework on bases, span and the invertibility of matrices.

Linear independenceIs any vector a mix of the others?v₁(1, 2, 3)−2·v₂(−8, −10, −12)+v₃(7, 8, 9)+sum(0, 0, 0)rank 2 < 3 vectors → linearly dependent
A non-zero combination giving the zero vector proves the set is dependent.

How it is calculated

Put the vectors as columns of a matrix and row-reduce it.

The principle

Vectors are independent when none of them can be built from the others: the only way to combine them into the zero vector is to use all-zero coefficients. If some non-trivial combination gives zero, one vector can be solved for in terms of the rest, so it adds nothing new to the span. Row reduction exposes exactly this, because row operations keep the linear relations between columns.

Worked example

Default input: v₁ = (1, 2, 3), v₂ = (4, 5, 6), v₃ = (7, 8, 9).

  1. Row reduction gives pivots in columns 1 and 2 only: rank 2 with 3 vectors of dimension 3.
  2. Linearly independent? No — linearly dependent.
  3. Vector that depends on earlier ones: v3.
  4. Dependence relation: v₁ − 2·v₂ + v₃ = 0; check: (1, 2, 3) − (8, 10, 12) + (7, 8, 9) = (0, 0, 0).

How to read the result

Here v₃ = 2v₂ − v₁: the three vectors lie in one plane through the origin, so they span only a 2-dimensional space. A square matrix whose columns are dependent has determinant 0 and no inverse. Removing the dependent vector leaves a basis of the span.

Common mistakes

Keep in mind: With decimal data, rounding can make dependent vectors look independent or the reverse; use exact fractions when possible.

Frequently asked questions

How do I check if vectors are linearly independent?

Row-reduce the matrix with the vectors as columns; they are independent if every column has a pivot.

Are (1, 2, 3), (4, 5, 6), (7, 8, 9) independent?

No: v₁ − 2v₂ + v₃ = 0.

Can four vectors in ℝ³ be independent?

No, at most three vectors in ℝ³ can be independent.

Sources: A. Davis, P. Zachlin et al., Coordinated Linear Algebra (University of Nebraska–Lincoln), §2.4 Homogeneous Linear Systems · D. Margalit & J. Rabinoff, Interactive Linear Algebra, §2.7

Checked 9 Nov 2026. Coordinated Linear Algebra (University of Nebraska–Lincoln), §2.4 Homogeneous Linear Systems — Definition 2.4.9 (independent when the homogeneous linear combination equation has only the trivial solution) and Example 2.4.11 (row-reduce the matrix whose columns are the vectors); D. Margalit & J. Rabinoff, Interactive Linear Algebra, §2.7 (pivot columns are linearly independent).

🧮 All math & statistics tools →🌍 Calculators by country →