Column Space Calculator

Find the column space of a matrix including basis vectors, rank, nullity, and RREF steps. Supports matrices up to 6×6 with presets and step-by-step row reduction.

Column Space Calculator

Rank
2
Number of linearly independent columns (pivot columns: C1, C2)
Nullity
1
Dimension of null space = 3 columns − 2 rank = 1
Column Space Dimension
2
dim(Col A) = rank of the matrix
Full Column Rank?
No
Some columns are linearly dependent
Full Row Rank?
No
Some rows are linearly dependent
Rank-Nullity Check
2 + 1 = 3
Rank + Nullity = 3 (number of columns) ✓
Basis Vectors of Column Space
v1 (C1)
1.0000
4.0000
7.0000
v2 (C2)
2.0000
5.0000
8.0000

Input Matrix (3×3)

C1C2C3
1.00002.00003.0000
4.00005.00006.0000
7.00008.00009.0000
Highlighted columns form a basis for the column space.

Row Reduced Echelon Form (RREF)

C1C2C3
1.00000.0000-1.0000
-0.00001.00002.0000
0.00000.00000.0000

RREF Reduction Steps

#Operation
1R2 − 4.0000·R1
2R3 − 7.0000·R1
3R2 ÷ -3.0000
4R1 − 2.0000·R2
5R3 − -6.0000·R2
Planning notes, formulas, and examples

About the Column Space Calculator

The column space of a matrix is the set of all possible linear combinations of its column vectors — a fundamental concept in linear algebra that determines what outputs a linear system can produce. Understanding the column space tells you whether a system of equations has a solution for a given right-hand side: if the target vector lies in the column space, a solution exists. This calculator takes any matrix up to 6×6, performs row reduction to reduced row echelon form (RREF), identifies pivot columns, and extracts a basis for the column space from the original matrix. It reports the rank (dimension of the column space), nullity (dimension of the null space), and verifies the rank-nullity theorem. You can view every row operation step-by-step, making it ideal for students learning Gaussian elimination. Presets include the identity matrix, rank-deficient matrices, and matrices with zero columns so you can explore different scenarios. Engineers use column space analysis for signal processing, data compression, and least-squares fitting, while mathematicians use it to study linear transformations and subspaces.

When This Page Helps

Row-reducing a matrix to RREF by hand is a multi-step process prone to arithmetic errors, especially for matrices larger than 2×2. This calculator performs Gaussian elimination automatically, identifies pivot columns, extracts basis vectors from the original matrix, and verifies the rank-nullity theorem. The step-by-step breakdown shows every row operation so students can follow the process and check their own work. Engineers use it for quick subspace analysis in signal processing and least-squares problems.

How to Use the Inputs

  1. Set the matrix dimensions using the Rows and Columns fields (up to 6×6).
  2. Enter the matrix values as a comma-separated list, row by row (e.g., "1,2,3,4,5,6,7,8,9").
  3. Click a preset like "Rank 2 (3×3)" or "Full rank 3×3" to load an example matrix.
  4. Review the Rank, Nullity, and Full Rank status in the output cards.
  5. Examine the RREF matrix to see which columns are pivot columns.
  6. View the basis vectors extracted from the original matrix's pivot columns.
  7. Toggle Show Steps to see every row operation performed during Gaussian elimination.
Formula used
Col(A) = span of pivot columns of A Rank(A) = number of pivot columns Rank + Nullity = number of columns

Example Calculation

Result: Rank = 2, Nullity = 1

For A = [[1,2,3],[4,5,6],[7,8,9]], RREF reveals 2 pivot columns. Rank = 2, Nullity = 1. Basis = {(1,4,7), (2,5,8)}.

Tips & Best Practices

  • Check that all inputs use the same scale and assumptions before trusting the result.
  • Compare the answer with the worked example or a rough estimate to catch entry mistakes.

Column Space and Solvability

The column space Col(A) is the set of all vectors b for which the system Ax = b has a solution. If b lies in the column space, a solution exists; if not, no solution exists. The column space is spanned by the pivot columns of the original matrix — these are the linearly independent columns, and every other column can be expressed as a linear combination of them. The dimension of the column space equals the rank of the matrix.

Rank-Nullity Theorem

The rank-nullity theorem states that rank(A) + nullity(A) = n, where n is the number of columns. The rank counts independent columns (dimensions of the column space), and the nullity counts the number of free variables (dimensions of the null space). This theorem provides a powerful check: if you know the rank, you immediately know the nullity, and vice versa. A matrix with full column rank has nullity 0, meaning Ax = b has at most one solution for any b.

Applications in Data Science and Engineering

In data science, the column space relates to Principal Component Analysis (PCA): the principal components span the most important subspace of the data. In signal processing, the column space of a mixing matrix determines which signals can be recovered. In structural engineering, the rank of a stiffness matrix determines whether a structure is statically determinate. Least-squares fitting projects a vector onto the column space to find the best approximation when an exact solution does not exist.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • The column space (or range) is the set of all vectors that can be expressed as a linear combination of the matrix columns. It forms a subspace of the output space.