Column Space Calculator

What is the dimension of your matrix's column space?

Find the column space of a matrix by identifying linearly independent column vectors that span the space. Essential for understanding vector spaces, linear transformations, and solving systems of equations.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Think of column space like the shadow cast by a 3D object onto a wall. Just as the shadow might be 2D even though the object is 3D, a matrix's columns might span a lower-dimensional space than expected. When you have three column vectors in 3D space, they could all point in the same direction (1D column space), lie in the same plane (2D), or truly fill all three dimensions (3D).

The column space calculation finds this dimension by performing Gaussian elimination, which systematically identifies which columns contribute new directional information. Each pivot column discovered during elimination represents an independent direction. Non-pivot columns are mathematical combinations of the pivot columns that came before them.

This process reveals the fundamental geometry underlying your data or transformation. A 4×4 matrix with column space dimension 2 means your four vectors actually live in a flat plane within 4D space. Understanding this structure is crucial for data analysis, computer graphics, and solving systems of equations.

When To Use This
Right tool, right situation

Use column space analysis when designing experiments to ensure your measurement variables capture independent information. If your sensor data has column space dimension 3 but you collected 10 variables, seven measurements are redundant and can be eliminated without information loss.

Apply this tool when debugging linear systems in engineering or economics. If your constraint matrix has column space dimension less than the number of variables, the system has infinite solutions and requires additional constraints. This commonly occurs in optimization problems and control system design.

Column space calculation becomes inappropriate when working with probability distributions or when matrix entries represent fundamentally different units that should not be combined linearly. It also assumes exact arithmetic - real-world data with measurement noise may require different rank-detection methods that account for numerical precision.

Common Mistakes
Why results sometimes look wrong

Students often confuse column space with the set of all columns in the matrix. Column space is the span of the columns - all possible linear combinations, not just the original vectors themselves. This distinction matters because three columns might span only a 2D plane, making the column space smaller than expected.

Another common error is assuming that more columns always mean higher dimension. A matrix with 100 columns could have column space dimension 3 if all columns lie in a 3D subspace. The number of columns provides an upper bound on dimension, but linear dependence often reduces the actual dimension significantly.

Many people incorrectly believe that changing the order of columns changes the column space. While reordering affects which specific vectors appear in the basis output, the column space itself - the geometric subspace - remains identical. The basis is not unique, but the dimension and the spanned space are mathematical invariants.

The Math
Worked examples and deeper derivation

Column space dimension equals matrix rank, computed through row reduction to identify pivot positions. The algorithm systematically searches for the leftmost non-zero entry in each row, using it to eliminate all other entries in that column. This process continues until no more pivots can be found.

Mathematically, if matrix A has column space C(A), then dim(C(A)) = rank(A) = number of linearly independent columns. The basis vectors output by this calculator are the original columns corresponding to pivot positions in the reduced row echelon form. These basis vectors span the entire column space using the minimum number of vectors possible.

The fundamental theorem connecting column space to linear systems states that Ax = b has a solution if and only if b lies in C(A). When rank(A) = n (number of columns), the transformation is injective and the system has at most one solution. When rank(A) < n, infinite solutions exist in the null space.

Finding basis for transformation matrix
3×3 matrix: [1 2 1; 2 1 3; 1 1 2]
Column space dimension is 3, meaning all three columns are linearly independent and span the entire 3D space. This transformation preserves dimensionality and is invertible.
Identifying redundant data columns
3×4 matrix with dependent columns
When dimension is less than number of columns, some data features are redundant. The basis vectors show which original columns contain unique information.
Checking system solvability
Coefficient matrix from linear system
Column space dimension equals matrix rank. If rank equals number of variables, the system has a unique solution. Lower rank indicates infinite solutions or inconsistency.
Expert Unlock
The thing most explanations skip

Professional linear algebra practitioners recognize that column space dimension reveals the degrees of freedom in a linear system. When building reduced-order models in engineering, the column space dimension indicates the minimum number of parameters needed to capture system behavior. In machine learning, it exposes the intrinsic dimensionality of feature spaces before applying dimensionality reduction techniques.

What does column space dimension tell me?

What is the difference between column space and row space?
Column space is spanned by the column vectors of the matrix, while row space is spanned by the row vectors. They always have the same dimension (the rank), but represent different geometric spaces unless the matrix is square and symmetric.
Why are some columns not in the basis?
Non-pivot columns are linear combinations of the pivot columns that came before them in the elimination process. Including them would create linear dependence, violating the definition of a basis as a linearly independent spanning set.
How does column space relate to solving Ax = b?
The column space contains all possible vectors b for which Ax = b has a solution. If b is outside the column space, the system is inconsistent. The dimension tells you how many free variables exist in the solution.

Need something this doesn't cover?

Suggest a tool — we'll build it →