Skip to content
D DocNectar

Free Matrix Rank Calculator

Calculate the rank of any matrix — square or rectangular, up to 6×6 — by reducing it to row echelon form.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

A matrix's rank tells you how many of its rows (or columns) are truly independent — a key concept for understanding whether a system of equations has a unique solution.

This calculator finds the rank of any matrix — square or rectangular, with rows and columns each from 2 up to 6 — by reducing it to row echelon form.

How it works

Enter the number of rows and columns and the matrix elements — rows and columns don't need to match. The calculator uses Gauss-Jordan elimination (row swaps, scaling, and row combinations) to reduce the matrix to row echelon form, then counts the number of non-zero rows remaining — that count is the rank.

  1. Click Calculate to see your results.

Examples

A dependent 2×2 example

The matrix [[1,2],[2,4]] has rank 1, since its second row is just twice the first — the rows aren't independent.

Who should use it

  • Checking whether a system of linear equations has a unique solution.
  • Coursework involving linear independence and vector spaces.

Industry applications

  • Linear algebra and mathematics education
  • Engineering and data analysis

Advantages

  • Shows the full row echelon form used to determine the rank.
  • Works for both square and rectangular matrices, up to 6 rows and 6 columns.

Limitations

  • Capped at 6 rows and 6 columns to keep computation instant on a public, synchronous endpoint.

Common mistakes to avoid

  • Assuming every square matrix automatically has full rank — many don't, particularly if one row is a multiple of (or combination of) others.
  • Confusing rank with the number of rows or columns — rank measures independence, not size.

Best practices

  • If you're checking whether a system of equations has a unique solution, compare the coefficient matrix's rank to its size — they must match for a unique solution to exist.

Tips

  • A matrix has full rank if and only if its determinant is nonzero (for square matrices) — if you already know the determinant is zero, the rank must be less than the matrix size.

Frequently asked questions

Yes, with no signup and no limit on how many calculations you run.
Rank measures how many independent rows (or columns) a matrix has — a full-rank square matrix is invertible, while a matrix with rank less than its size is singular.
For an n×n matrix, the maximum possible rank is n — a matrix achieving this maximum is called full rank.
For a system of n equations in n unknowns, if the coefficient matrix has full rank, there's exactly one solution; if the rank is lower, the system has either no solution or infinitely many.

Get new calculators and guides in your inbox

No spam — just new tools like Matrix Rank Calculator and practical guides.

Favorites