# Null Space Calculator

URL: https://speedycalculator.com/calculators/math/null-space/
Last updated: 2026-11-08

> The null space calculator finds a basis for the null space (kernel) of a matrix of up to 4 × 4, that is, all solutions of Ax = 0, and its dimension, the nullity.

## Inputs

- Matrix size (rows × columns)
- a₁
- b₁
- c₁
- d₁
- a₂
- b₂
- c₂
- d₂
- a₃
- b₃
- c₃
- d₃
- a₄
- b₄
- c₄
- d₄

## Results

- Null space basis
- Nullity (dimension)
- Rank
- Reduced row echelon form

## Formula

```
Null(A) = {x : Ax = 0},  rank + nullity = number of columns
```

## Explanation

The null space describes everything a matrix sends to zero. It gives the general solution of homogeneous systems, reveals dependencies among columns and, in applications, describes conserved quantities or balanced chemical reactions.

### How to use the Null Space Calculator

- Choose the **matrix size**. The matching grid of fields appears.
- Enter the entries **row by row** (a₁ b₁ c₁ is the first row, a₂ b₂ c₂ the second, and so on).
- Read the result; integer matrices give exact fractions.

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

### How it works

The matrix is reduced to reduced row echelon form. Each free (non-pivot) column gives one basis vector, found by setting that free variable to 1 and the others to 0.

## Worked example

Inputs: Matrix size (rows × columns): 3 × 4; a₁: 1; b₁: 2; c₁: 3; d₁: 1; a₂: 2; b₂: 4; c₂: 6; d₂: 2; a₃: 1; b₃: 0; c₃: 1; d₃: 3.

Results: **Null space basis = (−1, −1, 1, 0)
(−3, 1, 0, 1)**; Nullity (dimension) = 2; Rank = 2; Reduced row echelon form = ⎡ 1 0 1 3 ⎤
⎢ 0 1 1 −1 ⎥
⎣ 0 0 0 0 ⎦.

## Key terms

- **Nullity**: The dimension of the null space.

## FAQ

**What is the null space of an invertible matrix?**
Only the zero vector.

**What is the rank–nullity theorem?**
rank(A) + nullity(A) = number of columns.

**How is the null space used?**
The general solution of Ax = b is a particular solution plus the null space.

**Is the null space the same as the kernel?**
Yes.


## Sources

- [Wolfram MathWorld: Null space](https://mathworld.wolfram.com/NullSpace.html)
- [MIT OpenCourseWare: 18.06 Linear Algebra (Gilbert Strang)](https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/)
- [Jim Hefferon: Linear Algebra (free textbook)](https://hefferon.net/linearalgebra/)
