Nullity of a Matrix Calculator

Enter any rectangular matrix and select decimal precision. View rank, nullity, pivots, and basis vectors. Export results for homework, review, and saved records today.

Calculator Inputs

Formula Used

The calculator uses the rank-nullity theorem.

Nullity(A) = Number of columns of A - Rank(A)

Rank is found from pivot columns in reduced row echelon form. Nonpivot columns are free columns. Each free column adds one independent null space basis vector.

How to Use This Calculator

  1. Enter the number of rows and columns.
  2. Type each matrix row on a separate line.
  3. Separate values with spaces, commas, or both.
  4. Set tolerance for tiny decimal values.
  5. Select decimal places for displayed output.
  6. Press the calculate button.
  7. Review rank, nullity, pivots, and basis vectors.
  8. Download CSV or PDF for records.

Example Data Table

Matrix Size Rank Nullity Pivot Columns Free Columns
[1 2 3 4; 2 4 6 8; 1 1 0 1] 3 by 4 2 2 1, 2 3, 4
[1 0 0; 0 1 0; 0 0 1] 3 by 3 3 0 1, 2, 3 None
[1 2 3; 2 4 6] 2 by 3 1 2 1 2, 3

Article: Understanding Matrix Nullity

Matrix nullity tells how many independent directions solve Ax = 0. It measures freedom inside a linear system. A square or rectangular matrix can both have nullity. The value depends on columns, pivots, and rank.

Why Nullity Matters

Nullity matters because it shows whether a system has unique movement or many hidden solutions. When nullity is zero, the homogeneous system has only the zero vector. When nullity is positive, free variables create nonzero vectors in the null space. Those vectors form a basis. Each basis vector points toward a valid solution direction.

How the Calculation Works

This calculator uses row reduction to find the reduced row echelon form. It searches for pivot columns, then counts them as rank. Every nonpivot column becomes free. The nullity equals the number of columns minus the rank. This is the rank nullity theorem. It works for any m by n matrix over real numbers.

Good Input Habits

Careful entry is important. Put each row on a new line. Separate values with spaces or commas. Use decimals when needed. Set a small tolerance for noisy decimal data. A larger tolerance treats tiny values as zero. That can help with rounded measurements. It can also hide real small pivots.

Reading the Basis

The basis output is useful for checking answers. Each free variable is set to one while the other free variables are set to zero. Pivot variables are then read from the reduced matrix. This creates one basis vector per free column. If nullity is three, the null space basis has three vectors.

Meaning in Applications

Rank and nullity also explain dependencies. A matrix with more columns than pivots has dependent columns. In geometry, the null space describes directions lost by the transformation. In data work, it reveals redundant features. In equations, it explains why multiple answers may exist.

Saving Your Work

Use the exported files when documenting work. The CSV file stores summary values and tables. The PDF button makes a readable report for sharing. Always review row operations if an important decision depends on the result. Compare results with textbooks, software, or manual reduction for stronger confidence. Small changes can reveal sensitive matrices and uncertain pivots. Check entries before exporting.

FAQs

What is matrix nullity?

Matrix nullity is the dimension of the null space. It counts how many free variables exist in the homogeneous system Ax = 0.

How is nullity calculated?

Nullity is calculated by subtracting rank from the number of columns. The formula is nullity equals columns minus rank.

What does rank mean here?

Rank is the number of pivot columns after reducing the matrix. It shows how many columns are linearly independent.

Can rectangular matrices have nullity?

Yes. Any matrix with columns can have nullity. The matrix does not need to be square.

What are free columns?

Free columns are columns without pivots in reduced row echelon form. They create free variables in the null space solution.

What is a null space basis?

A null space basis is a smallest independent set of vectors. Its combinations produce every solution to Ax = 0.

Why does tolerance matter?

Tolerance decides when tiny values become zero. It helps handle decimal rounding but should be chosen carefully.

Can I enter fractions?

Yes. You can enter values such as 1/2, -3/4, decimals, integers, and negative numbers.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.