Matrix Rank Calculator

The rank of a matrix is one of the most informative numbers you can attach to it, capturing how much truly independent information it holds, and this calculator finds it for a two by two or three by three matrix by doing the row reduction for you. Choose the size, type the entries into the grid, and it returns the rank along with what that rank means for the matrix, updating as you type. Rank is defined as the number of linearly independent rows, which, in one of the neat results of linear algebra, is always the same as the number of independent columns. The practical way to find it is to use elementary row operations to sweep the matrix into row echelon form, a staircase shape, and then count the rows that are not entirely zero, because any row that was just a combination of the others collapses to zeros during the process. That single number answers a surprising range of questions. A square matrix has full rank exactly when it is invertible and its determinant is non-zero, so rank is a quick check for singularity. For a system of equations, the rank tells you whether there is a unique solution, no solution, or infinitely many, by comparing the rank of the coefficient matrix with that of the augmented matrix. And in data and engineering, rank reveals hidden dependencies, redundant measurements and the true dimensionality of a problem. That makes the tool genuinely useful for linear algebra students learning row reduction, independence and rank and checking homework, and for anyone needing to know whether a matrix is full rank or its rows are dependent. The method and a worked example are explained clearly below.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner
0
rank
 

How it works

The calculator applies Gaussian elimination, using row swaps and adding multiples of one row to another, to reach row echelon form. It then counts the non-zero rows. A tiny tolerance treats values very close to zero as zero, to handle rounding. The rank is at most the smaller of the number of rows and columns.

Worked example

For the matrix with rows 1, 2, 3 then 4, 5, 6 then 7, 8, 9: the third row equals two times the second minus the first, so the rows are dependent. Row reduction leaves two non-zero rows, so the rank is 2, not the full 3, and the matrix is singular.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About

Reviewed and maintained. Last reviewed 2026-06-05 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2019 to 2026 Calculate.co.nz. All rights reserved.