HomeCalculatorsMathAlgebra & EquationsMatrix Rank Calculator
Math calculator

Matrix Rank Calculator

Rank of a small real matrix via Gaussian elimination. Same engine as Linear System. Not a CAS. Runs locally.

Instant result
Result

Enter values to calculate.

Inputs
Mode
Formula
Trust summary Engine tested · Specification checked · 18/18 tests · Production surface contract 3/3 · v1.2.0
Input interpretation
Enter values to calculate.
Result
Model
rank(A) for order 2–3 (engine up to 4).
Scope
Real matrices
Verification
Engine tested · 18/18 tests · Production surface contract 3/3 · Specification checked · v1.2.0
Named expert review
Optional · Not performed
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Specification basis
Evidence
7 golden · 2 boundary · 9 property · Production surface contract 3/3 · Artifact integrity PASS
Production
Embedded snapshot: STALE · Last attested schema matched 1.2.0 snapshot / local build · Semantic contract ✓ · Last attestation PASS · current evidence changed · re-attestation required · Public/cache ✓ · Origin ✓ · Live production status STALE (1 capability; 163 remain CURRENT) @ 2026-09-19T00:00:17.039Z
Semantic contract
PASS

Formulas

Core equations used by this calculator.

Full rankdet(A) ≠ 0 ⇒ rank(A) = n
Eliminationrank = number of nonzero pivots
iNot a CAS. Not SVD. Order ≤ 4. Pivot tolerance is 10⁻¹⁵, the same cutoff used for a vanishing determinant.

How to use

1

Enter a square matrix

2×2 or 3×3. Larger composition lives at /workspace/matrix.

2

Read rank(A)

rank < n means singular: inverse does not exist and det = 0.

Example calculations

Common configurations with formula and result.

ϟ

Dependent rows

[[1,2],[2,4]]

1
1
ϟ

Identity

I₂

2
2

Matrix Rank calculator specification

Version 1.2.0 · Engine tested

Calculation status

Review policy · Evidence

Definition
rank(A) is the number of linearly independent rows (or columns). This page is a discovery surface on the linear-algebra engine (mode=rank). Determinant, inverse, and Ax=b share the same capability.
What it calculates
rank(A) for order 2–3 (engine up to 4).
Inputs
  • order
  • a11…
Outputs
  • rank
  • det
Formula
rank via Gaussian elimination
Assumptions
  • Real matrices
  • Order ≤ 4
  • Not a CAS
  • Not SVD
Units
  • dimensionless
Boundary conditions
  • unknown mode (including svd) → INVALID_MODE
Example
[[1,2],[2,4]] → rank=1
Validation cases

2 published on this page · 18/18 tests · Production surface contract 3/3 · View evidence

  • order=2 a11=1 a12=2 a21=2 a22=4 → rank=1
  • order=2 a11=1 a12=0 a21=0 a22=1 → rank=2
Specification basis
  • ISO 80000-2:2019 Quantities and units — Mathematics
Calculation version
1.2.0
}

Frequently asked questions

Key distinctions behind the calculation.

Is this a second rank algorithm?

No. It is mode=rank on math.linear_algebra, the same engine as /calc/math/linear-system and /workspace/matrix.

Is rank the same as the number of nonzero eigenvalues?

Not always (defective matrices). Eigenvalues are mode=eigen on this same engine; SVD stays out of the seed.