Rank of 3×3 Matrix Calculator
Enter the nine entries of a 3×3 matrix to find its rank instantly. The calculator uses Gaussian elimination and works for any matrix, including singular ones where the determinant is zero.
3×3 Matrix Rank Solver
Rank of 3×3 Matrix Formula
Where:
- \(A\) — the 3×3 matrix
- \(\det(A)\) — the determinant of \(A\)
- a 2×2 minor — the determinant of a 2×2 submatrix formed by deleting one row and one column of \(A\)
The formula classifies the rank by testing determinants from the largest order down. Equivalently, the rank is the number of nonzero rows that remain after the matrix is reduced to row echelon form by Gaussian elimination, which is the method this calculator uses internally.
Rank of 3×3 Matrix – Calculation Example
Example: the default matrix of the calculator, the 3×3 identity matrix.
\[ A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \]
\[ \det(A) = 1\,(1 \cdot 1 - 0 \cdot 0) - 0\,(0 \cdot 1 - 0 \cdot 0) + 0\,(0 \cdot 0 - 1 \cdot 0) = 1 \neq 0 \]
Because the determinant is nonzero, no further minors need to be checked.
Result: \(\text{rank}(A) = 3\). The matrix has three linearly independent rows and columns, so it is invertible.
How to use the calculator
- Enter the nine entries of your matrix in the fields a₁₁, a₁₂, a₁₃ (first row), a₂₁, a₂₂, a₂₃ (second row), and a₃₁, a₃₂, a₃₃ (third row). The fields are pre-filled with the identity matrix, so replace the values with your own numbers.
- Click the Calculate button.
- Read the result under Matrix Rank — an integer from 0 to 3.
- Change any entry and recalculate to see how the rank responds; this is a quick way to explore how individual elements affect linear independence.
What the rank of a matrix means
The rank of a matrix is the number of linearly independent rows (equivalently, columns) it contains. For a 3×3 matrix, the rank can be 0, 1, 2, or 3. The rank equals 0 only for the zero matrix, and it equals 3 exactly when the rows span the full three-dimensional space — in that case the matrix is invertible and its inverse can be computed.
There are two equivalent ways to determine the rank. The determinant method checks the largest nonzero minor: if \(\det(A) \neq 0\) the rank is 3; if the determinant vanishes but some 2×2 minor is nonzero, the rank is 2; and if all 2×2 minors vanish while some entry is nonzero, the rank is 1. The elimination method instead reduces the matrix to row echelon form and counts the nonzero rows — this is what the calculator does, and it is also the same idea behind the elimination method for solving systems of linear equations.
The rank has direct practical meaning for linear systems \(Ax = b\) with three equations and three unknowns. If the rank of the coefficient matrix is 3, the system has exactly one solution for any right-hand side. If the rank is 2 or less, the matrix is singular: the system has either infinitely many solutions or none, depending on the augmented matrix. In graphics, statistics, and engineering, a low rank signals redundant data — some rows or columns carry no new information.
Interpreting your result is straightforward: rank 3 means full rank (invertible, three independent directions), rank 2 means the rows all lie in a common plane, rank 1 means every row is a multiple of a single row, and rank 0 means the matrix is entirely zero.
Assumptions, limitations and tips
- Square 3×3 only: the calculator accepts exactly nine entries. For larger or rectangular matrices you would need general Gaussian elimination software.
- Rounding: the calculator performs exact arithmetic on the numbers you enter. If you round decimals of a matrix that is theoretically rank 2, a tiny nonzero determinant may incorrectly suggest rank 3. Enter values with enough precision.
- Quick checks: a zero row or a zero column immediately lowers the maximum possible rank. Two identical or proportional rows force the rank to at most 2 — a common shortcut when checking by hand.
- Rank of products: for any compatible matrices, \(\text{rank}(AB) \leq \min(\text{rank}(A), \text{rank}(B))\). This is useful when reasoning about results of matrix multiplication or about determinants of products.
- Singularity test: if you only need to know whether the matrix is invertible, rank 3 and \(\det(A) \neq 0\) say the same thing; a dedicated determinant or inverse computation gives you more detail.
Frequently Asked Questions
How do I find the rank of a 3×3 matrix by hand step by step?
Use row reduction. First, pick a nonzero entry as a pivot in row 1 and use row operations to make the entries below it zero. Then find a pivot in row 2 (a nonzero entry in columns 2–3) and clear below it. Count the nonzero rows that remain: that count is the rank. Alternatively, compute \(\det(A)\) first; if it is nonzero you can stop immediately, since the rank is 3.
What does a rank of 1 or 2 tell me about my matrix?
Rank 2 means the three rows are linearly dependent but still span a plane — one row can be written as a combination of the other two, or two rows are proportional. Rank 1 means every row is a scalar multiple of a single nonzero row, so the matrix carries only one independent direction. In both cases the matrix is singular: it has no inverse and its determinant is zero.
Can a 3×3 matrix have rank 0?
Yes, but only if every single entry is zero. A matrix with even one nonzero element has a rank of at least 1. So if your calculator returns 0, double-check that you actually entered your values — an empty or all-zero input grid is the usual cause.
Is checking the determinant enough to find the rank?
Only partially. A nonzero determinant proves the rank is exactly 3, so you can stop there. But a zero determinant just tells you the rank is less than 3 — it could be 2, 1, or 0. To distinguish these cases you must examine the 2×2 minors (determinants of submatrices formed by deleting one row and one column) or count the nonzero rows after Gaussian elimination.
Why did my calculator give rank 3 when the matrix should be rank 2?
This is a classic rounding artifact. If your matrix comes from measurements or decimals and you rounded the entries, a theoretically zero relationship between rows becomes slightly nonzero, producing a tiny determinant. Enter your values with full precision, or treat any determinant extremely close to zero (like 10⁻¹⁰) as evidence of a rank-2 matrix rather than full rank.
How is the rank related to solutions of a system of equations?
For a system \(Ax = b\), compare the rank of the coefficient matrix \(A\) with the rank of the augmented matrix \([A|b]\). If both are 3, there is exactly one solution. If both equal 2 or less, there are infinitely many solutions. If the augmented rank is larger, the system is inconsistent and has no solution at all.
Does swapping rows or multiplying a row by a number change the rank?
No. Swapping rows, multiplying a row by a nonzero constant, and adding a multiple of one row to another are all elementary operations that preserve the rank. This is why Gaussian elimination is safe to use for rank computation. Be careful only with multiplying a row by zero — that is not a valid elementary operation and it does change the rank.