Calcoid

Null Space Calculator

Find the null space (kernel) of a matrix. Solve Ax = 0 by reduced row echelon form and get basis vectors, pivot and free columns, plus the nullity.

Null Space Calculator

Nullity (dimension of the null space)

2

The null space is spanned by 2 basis vectors (one per free variable).

Rank

2

Nullity

2

Pivot columns

1, 3

Free columns

2, 4

Null-space basis vectors

Each column vector below solves A x = 0. Any linear combination of them is also in the null space.

v₁ =
-2100
v₂ =
-10-31

Reduced row echelon form (RREF)

Pivot columns hold a leading 1; the remaining columns are free variables.

1201
0013
0000

Frequently Asked Questions about the Null Space Calculator

What is the null space of a matrix?
The null space, also called the kernel, of a matrix A is the set of all column vectors x that satisfy Ax = 0. It is always a subspace, so it contains the zero vector and is closed under addition and scaling. This calculator reports a basis for that subspace and its dimension, the nullity. If the only solution is x = 0, the null space is trivial.
How do you find the null space?
Reduce the matrix to reduced row echelon form (RREF) using Gauss-Jordan elimination, then identify the pivot columns and the free columns. For each free column you build one basis vector by setting that free variable to 1 and the other free variables to 0, then solving the pivot rows for the basic variables. This calculator does each step and lists the resulting basis vectors.
What is the nullity and how does it relate to rank?
The nullity is the dimension of the null space, which equals the number of free columns. The rank-nullity theorem states that rank plus nullity equals the number of columns n, so nullity = n minus rank. For example, a 3 by 4 matrix of rank 2 has nullity 4 minus 2, which is 2, meaning two basis vectors span its null space.
What does it mean when the null space is just the zero vector?
If every column is a pivot column, the matrix has full column rank and the only solution of Ax = 0 is x = 0. The nullity is then 0 and the basis is empty. This happens exactly when the columns of A are linearly independent, which for a square matrix is the same as the determinant being nonzero.
Why are some basis vectors written with fractions or decimals?
The basis comes directly from the reduced row echelon form, so the components are exact ratios of the matrix entries. When a pivot does not divide evenly, those ratios show up as decimals, for example a coefficient of -0.5. You can scale any basis vector by a nonzero number and it still spans the same null space, so you may clear fractions if you prefer integer entries.
What size matrices does this calculator support?
You can enter any matrix from 1 by 1 up to 6 by 6, and the number of rows and columns can differ. The tool handles wide matrices (more columns than rows), tall matrices, and square matrices. Changing the size keeps the values you already typed where they still fit.

Related Calculators

More calculators in "Math"

See all 202 calculators in "Math"