---
title: "Dimension and the Rank-Nullity Theorem"
description: "Every basis of a space has the same size, which is its dimension. For a matrix, the rank and the nullity add to the number of columns, which explains the shape of every solution set met so far."
canonical: https://lightmysky.com/learn/mathematics/dimension-and-the-rank-nullity-theorem-mt_aMG8PcwPAR
source: https://lightmysky.com/learn/mathematics/dimension-and-the-rank-nullity-theorem-mt_aMG8PcwPAR.md
retrieved: 2026-09-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Dimension and the Rank-Nullity Theorem

Every basis of a space has the same size, which is its dimension. For a matrix, the rank and the nullity add to the number of columns, which explains the shape of every solution set met so far.

Subject: Mathematics · Area: Linear Algebra · Ages 18 to 19
Page: https://lightmysky.com/learn/mathematics/dimension-and-the-rank-nullity-theorem-mt_aMG8PcwPAR

## Ready when they can

- Find a basis for the column space and for the null space of a matrix
- State the rank-nullity theorem and check it on an example
- Predict the number of free parameters in a solution set from the rank

## Lesson: Rank plus nullity equals columns

You already know what a basis is. The dimension of a space is the number of vectors in any basis. Every basis of one space has the same size, so one number tells how big the space is and how many coordinates each vector needs.

For a matrix, rank is the dimension of the column space, counted by pivot columns. Nullity is the dimension of the null space, counted by free variables, one vector each. An independent spanning pair, such as (1, 1, 0) and (0, 1, 1), is a basis of size 2.

**Example.** Take a 3 by 5 matrix with pivots in columns 1 and 3. Rank is 2, so a column space basis has 2 vectors. Free variables x2, x4 and x5 give nullity 3. Rank plus nullity is 2 plus 3, which is 5, the column count.

**Example.** A 5 by 5 matrix of rank 5 has nullity 0, so Ax equals 0 has only the zero solution and Ax equals b has exactly one solution for every b. Contrast [[1, 3], [2, 6]]: the second column is 3 times the first, so both columns lie on one line and the column space is a line, not all of R squared. Rank can never pass the row count or the column count.

Forecast free parameters with columns minus rank, since nullity counts them. Six unknowns with rank 4 means 2 free parameters. A 3 by 6 matrix can never reach rank 4, since 3 rows cap it at 3.

**Recap.** Rank plus nullity equals the column count, and the nullity tells you the number of free parameters.

## Practice

15 questions on this page, each with its working shown.

## Needs first

- [Linear Independence, Span and Basis](https://lightmysky.com/learn/mathematics/linear-independence-span-and-basis-mt_5RGbip9yC9)
- [Systems of Linear Equations and Their Solution Sets](https://lightmysky.com/learn/mathematics/systems-of-linear-equations-and-their-solution-sets-mt_sQL6JfR7Te)

## Opens up

- [Linear Maps and Their Matrices](https://lightmysky.com/learn/mathematics/linear-maps-and-their-matrices-mt_pzrfiQFdto)
- [Multiple Regression and Model Diagnostics](https://lightmysky.com/learn/mathematics/multiple-regression-and-model-diagnostics-mt_TUx1tDF0jv)
- [Diagonalisation and Powers of a Matrix](https://lightmysky.com/learn/mathematics/diagonalisation-and-powers-of-a-matrix-mt_w15uCVhdhX)
