Calculation Result
Advanced Matrix Nullity Calculator
Enter matrix values, choose dimensions, and calculate rank, nullity, pivot columns, free variables, reduced row echelon form, and a nullspace basis.
Example Data Table
This example uses a 3 × 4 matrix. The fourth column becomes dependent after row reduction.
| Matrix | Rows | Columns | Rank | Nullity | Meaning |
|---|---|---|---|---|---|
| [1 2 3 4; 2 4 6 8; 1 1 1 1] | 3 | 4 | 2 | 2 | Two variables are free in the solution space. |
| [1 0 0; 0 1 0; 0 0 1] | 3 | 3 | 3 | 0 | Only the zero vector solves Ax = 0. |
| [1 2 3; 2 4 6] | 2 | 3 | 1 | 2 | The columns have two degrees of freedom. |
Formula Used
The calculator uses the rank-nullity theorem. For a matrix A with n columns:
Nullity(A) = Number of columns − Rank(A)
Rank is found by converting the matrix into reduced row echelon form. Each pivot column increases rank by one. Every non-pivot column represents one free variable. The total number of free variables is the nullity.
For a homogeneous system Ax = 0, nullity tells how many independent
directions exist in the solution space. If nullity is zero, the matrix has
only the trivial solution.
How to Use This Calculator
- Enter the number of rows and columns for your matrix.
- Click “Update Matrix Size” to create the input grid.
- Type each matrix entry. Fractions like 5/2 are allowed.
- Choose decimal places and zero tolerance.
- Press “Calculate Nullity” to see the result.
- Review rank, pivot columns, free variables, RREF, and basis vectors.
- Use CSV or PDF export buttons to save the report.
Understanding Matrix Nullity
What Nullity Measures
Matrix nullity measures freedom inside a linear system. It tells how many independent variables can move without changing the equation Ax = 0. A higher nullity means the solution space has more directions. A zero nullity means the nullspace contains only the zero vector.
Why Rank Matters
Rank counts the number of independent columns in a matrix. During row reduction, each pivot column adds one independent direction. Columns without pivots become free variable columns. These free columns form the basis of the nullity calculation.
Rank-Nullity Relationship
The rank-nullity theorem links columns, rank, and nullity. It says the number of columns equals rank plus nullity. This makes nullity easy to compute once rank is known. The calculator applies this theorem after building reduced row echelon form.
Use in Linear Algebra
Nullity is important in vector spaces, transformations, and systems of equations. It helps show whether a transformation loses information. In engineering and data work, it can reveal dependency among features. In pure mathematics, it explains the dimension of the kernel.
Reading the Output
The result panel shows matrix size, rank, nullity, pivot columns, free variables, row steps, and nullspace basis vectors. The RREF display helps you verify every pivot. The basis vectors describe all solutions to Ax = 0 using parameters.
Practical Notes
Small decimal errors can affect row reduction. The tolerance setting treats very small values as zero. Use a smaller tolerance for precise decimal work. Use fractions when exact classroom-style entries are needed.
Frequently Asked Questions
1. What is the nullity of a matrix?
Nullity is the number of free variables in Ax = 0. It is also the dimension of the nullspace or kernel of the matrix.
2. How is nullity calculated?
Nullity is calculated by subtracting rank from the number of columns. The formula is nullity = columns − rank.
3. What does rank mean?
Rank is the number of independent columns. It equals the number of pivot columns after row reduction.
4. Can nullity be zero?
Yes. Nullity is zero when every column is a pivot column. Then Ax = 0 has only the trivial solution.
5. Can a rectangular matrix have nullity?
Yes. Any matrix with columns has nullity. The number of rows does not limit the formula directly.
6. What is a free variable?
A free variable belongs to a non-pivot column. It can take any value while solving the homogeneous system.
7. What is the nullspace basis?
The nullspace basis is a set of independent vectors. Their combinations produce every solution to Ax = 0.
8. Why use tolerance?
Tolerance handles tiny rounding errors. Values smaller than tolerance are treated as zero during row reduction.