Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Linear Independence Calculator

Check whether two 2D vectors are linearly independent from their 2 × 2 determinant, which also gives the area and orientation of the parallelogram they span.

Linear Independence Calculator

Independence verdict
linearly independent
Linearly independent if the exact determinant is nonzero, linearly dependent if it is exactly zero.
Vector determinant
1

Background.

Two arrows drawn from the same point in a plane either lie along one line or they do not. If they do, one is a stretched, shrunk or reversed copy of the other; the pair is linearly dependent, and adding multiples of them only ever reaches points on that line. If they do not, they are linearly independent, and combinations of the two reach every point in the plane. That is what makes a basis: two independent vectors are enough to describe any position in two dimensions.

The test is a single 2 × 2 determinant. Set the vectors side by side as the columns of a matrix and compute v1x·v2y − v1y·v2x. Exactly zero means dependent; any other value means independent. The determinant is also a measurement. Its absolute value is the area of the parallelogram the two vectors outline, and that area collapses to nothing precisely when they fall on one line. Its sign records orientation: positive when the second vector lies counter-clockwise from the first.

The same number decides whether a pair of linear equations has exactly one solution. The coefficients of x form one vector and the coefficients of y form the other; a zero determinant means the two lines are parallel or the same line, and Cramer's rule, which divides by the determinant, has nothing to work with.

The check is exact and limited to two vectors in two dimensions. Decimals are carried exactly as typed, so (0.1, 0.3) and (0.3, 0.9) are correctly found dependent, where ordinary binary arithmetic can leave a stray 1.39 × 10⁻¹⁷. The flip side is that there is no tolerance: a determinant of 0.000002 counts as independent even if the data behind it were never that precise.

What is linear independence calculator?

Vectors are linearly independent when none of them can be written as a combination of the others. For two vectors this reduces to a simple condition: neither is a scalar multiple of the other, and neither is the zero vector. In the plane, two independent vectors form a basis, meaning every other vector can be written as a·v1 + b·v2 in exactly one way. This page decides independence for one pair of real two-dimensional vectors from the determinant of the matrix whose columns they form.

How to use this calculator.

  1. Enter the x and y components of the first vector, then those of the second. Each component can be a whole number, decimal or negative value up to one million in size.
  2. To test a system of two linear equations, enter the coefficients of x from both equations as the first vector and the coefficients of y as the second.
  3. Read the verdict and the determinant beside it. A nonzero determinant also gives the area of the parallelogram the vectors span, with its sign showing their orientation.
  4. If the vectors come from measured or rounded data, do not stop at the verdict. Divide the determinant by the product of the two vector lengths, as described in the questions below, to see how close to parallel they really are.

The formula.

Two 2D vectors are independent exactly when det([v1 v2]) is nonzero

det = v1x × v2y − v1y × v2x. The vectors are the columns of the matrix [[v1x, v2x], [v1y, v2y]], and a 2 × 2 determinant is the product of the main diagonal minus the product of the other diagonal. If v2 is k times v1, then v2x = k·v1x and v2y = k·v1y, both products equal k·v1x·v1y, and their difference is zero; that is why zero means dependent. Geometrically, |det| = |v1| × |v2| × sin φ, where φ is the angle between the vectors, so the determinant grows with both their lengths and their spread. The verdict reads the exact value, but the determinant is displayed to ten decimal places, so one smaller than 0.00000000005 shows as 0 while the verdict still says independent.

A worked example.

Example

The example uses the unit vectors along the two axes, v1 = (1, 0) and v2 = (0, 1). The determinant is 1 × 1 − 0 × 0 = 1, which is not zero, so the verdict is linearly independent. The 1 is also the area of the unit square the two vectors outline, and it is positive because (0, 1) sits a quarter-turn counter-clockwise from (1, 0). Now enter (2, 3) and (4, 6). The determinant is 2 × 6 − 3 × 4 = 12 − 12 = 0, and the verdict flips to linearly dependent: the second vector is exactly twice the first. Change its last component from 6 to 7 and the determinant becomes 14 − 12 = 2, so the pair is independent again and spans a parallelogram of area 2.

v1x1
v2y1
v2x0
v1y0

Frequently asked questions.

Can three vectors in the plane be linearly independent?
No. A plane has only two dimensions, so at most two vectors in it can be independent. Once you have two independent vectors, any third one can be written as a combination of them. That is why the page takes exactly two.
What happens if one of the vectors is (0, 0)?
The pair is always dependent, whatever the other vector is. The zero vector is a multiple of every vector, zero times it, and the determinant is zero because both of its products contain a zero. Entering (3, 5) and (0, 0) shows this.
My vectors come from measurements. How can I tell if they are nearly parallel?
Divide the absolute determinant by the product of the two lengths to get the sine of the angle between them. For (1, 2) and (1.000001, 2) the determinant is −0.000002, the lengths are about 2.236 each, and the sine is about 4 × 10⁻⁷, an angle of roughly 0.00002°.
Why can the determinant show 0 while the verdict says independent?
The verdict uses the exact determinant, but the displayed value is cut to ten decimal places. For (0.000001, 0) and (0, 0.000001) the true determinant is 10⁻¹², which is not zero, so the vectors are independent even though the display rounds it to 0.
Does it matter which vector I enter first?
Not for the verdict. Swapping the vectors flips the sign of the determinant but leaves its size unchanged. The sign only tells you the orientation: positive when the second vector is counter-clockwise from the first, negative when it is clockwise.
How does this tell me whether two equations have a single solution?
Take 2x + 4y = 10 and 3x + 6y = 12. The x coefficients give (2, 3) and the y coefficients give (4, 6), whose determinant is 0. The lines are parallel, so there is no single crossing point; here they never meet at all.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
Two 2D vectors are independent exactly when det([v1 v2]) is nonzero
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon