Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Column Space CalculatorMatrix Rank CalculatorRREF Calculator (Row Echelon Form)Matrix Inverse CalculatorSingular Value Decomposition (SVD) Calculator
Home Page > Math > Linear Algebra

Null Space Calculator

Find the null space (kernel) of any matrix by solving Ax = 0 using Gaussian elimination. Get the basis vectors, nullity, step-by-step RREF reduction, and rank-nullity theorem verification with exact fractional arithmetic.

Free to useNo sign-up requiredInstant Results
Null Space CalculatorTry it now — free ▼
Examples:
Rows (m): 3
×
Cols (n): 4
Solve Ax = 0
[
]

Embed Null Space Calculator Widget

About Null Space Calculator

The Null Space Calculator finds the null space (kernel) of any matrix by solving the homogeneous system Ax = 0. Enter a matrix of any size up to 8×8 and get the complete null space basis with exact fractional arithmetic, step-by-step Gaussian elimination to RREF, column classification (pivot vs. free), and rank-nullity theorem verification.

What Is the Null Space of a Matrix?

The null space (also called the kernel) of an \(m \times n\) matrix \(A\) is the set of all vectors \(\mathbf{x}\) in \(\mathbb{R}^n\) that satisfy:

$$A\mathbf{x} = \mathbf{0}$$

Written as a set: \(\text{Null}(A) = \{ \mathbf{x} \in \mathbb{R}^n : A\mathbf{x} = \mathbf{0} \}\). The null space is always a subspace of \(\mathbb{R}^n\), meaning it contains the zero vector and is closed under addition and scalar multiplication.

Subspace
The null space is always a subspace of R^n. It contains the zero vector and is closed under addition and scalar multiplication.
📊
Dimension = Nullity
The dimension of the null space equals the nullity — the number of free variables after row reduction.
Free Variables
Each free variable in the RREF contributes one basis vector to the null space.
Rank-Nullity
rank(A) + nullity(A) = n, where n is the number of columns. This always holds.

How to Find the Null Space

Step 1. Set the number of rows (m) and columns (n) for your matrix using the +/− controls, or click a quick example to load a preset matrix.

Step 2. Enter your matrix values into the grid. You can type integers, decimals, or fractions like 1/3 or -5/2. Use Tab, Enter, or arrow keys to navigate between cells.

Step 3. Click Find Null Space. The calculator performs Gaussian elimination to convert your matrix to reduced row echelon form (RREF).

Step 4. Identify pivot columns and free columns. Each free column corresponds to a free variable that can take any value.

Step 5. For each free variable, set it to 1 and all other free variables to 0, then solve for the pivot variables. The resulting vectors form a basis for the null space.

Null Space vs. Column Space

PropertyNull SpaceColumn Space
DefinitionAll x such that Ax = 0All b such that Ax = b has a solution
Lives in\(\mathbb{R}^n\) (domain)\(\mathbb{R}^m\) (codomain)
Dimensionnullity = n − rankrank
Found fromFree columns of RREFPivot columns of A

The Rank-Nullity Theorem

For any \(m \times n\) matrix \(A\):

$$\text{rank}(A) + \text{nullity}(A) = n$$

The rank is the number of pivot columns in the RREF, and the nullity is the number of free columns. Together they account for every column. This theorem is also known as the dimension theorem for linear maps.

Special Cases

ScenarioNull SpaceWhat It Means
Full column rank (rank = n)Only {0}Columns are linearly independent; Ax = 0 has only the trivial solution
More columns than rows (n > m)Always nontrivialThere are at least n − m free variables, so infinitely many solutions exist
Square singular matrixNontrivialThe matrix has a zero determinant and dependent rows/columns
Zero matrixAll of \(\mathbb{R}^n\)Every vector is in the null space; the basis is the standard basis

Applications of the Null Space

📐
Linear Systems
The general solution to Ax = b is x = x_p + Null(A), where x_p is one particular solution.
📊
Linear Independence
Columns of A are linearly independent if and only if Null(A) = {0}.
🔄
Differential Equations
The solution space of a homogeneous linear ODE system is the null space of the coefficient matrix.
🔐
Error-Correcting Codes
In coding theory, valid codewords form the null space of the parity-check matrix H.

Frequently Asked Questions

What is the null space of a matrix?

The null space (or kernel) of a matrix A is the set of all vectors x such that Ax = 0. It is a subspace of R^n where n is the number of columns. The null space always contains the zero vector and may also contain infinitely many nonzero vectors if the matrix has free variables.

How do you find the null space?

Reduce the matrix A to reduced row echelon form (RREF) using Gaussian elimination. Identify pivot columns and free columns. For each free variable, set it to 1 and all other free variables to 0, then solve for the pivot variables. The resulting vectors form a basis for the null space.

What is the rank-nullity theorem?

The rank-nullity theorem states that for an m by n matrix A, rank(A) + nullity(A) = n, where n is the number of columns. The rank is the number of pivot columns and the nullity is the dimension of the null space (number of free variables).

What does it mean if the null space is trivial?

A trivial null space means the only solution to Ax = 0 is the zero vector x = 0. This happens when every column is a pivot column (full column rank). It means the columns of A are linearly independent.

Can non-square matrices have a null space?

Yes. Any matrix has a null space. For an m by n matrix with m less than n, the null space is guaranteed to be nontrivial (dimension at least n - m) because there are more unknowns than equations, so free variables always exist.

Reference this content, page, or tool as:

"Null Space Calculator" at https://MiniWebtool.com/null-space-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-04-10

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Linear Algebra:

Top & Updated:

Matrix LU Decomposition CalculatorMatrix Multiplication CalculatorDeterminant CalculatorView all →
Home Page > Math > Linear Algebra > Null Space Calculator