HomeCalculatorsMathAlgebra & EquationsMatrix Inverse Calculator
Math calculator

Matrix Inverse Calculator

Inverse of a small real matrix via Gauss–Jordan. Same engine as Linear System. Singular matrices fail. 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
A⁻¹ for invertible order 2–3 matrices (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.

ExistenceA⁻¹ exists ⇔ det(A) ≠ 0
2×2A⁻¹ = (1/det) [[d, −b],[−c, a]]
iNot a CAS. Gauss–Jordan on the augmented [A | I]. Order ≤ 4. Singular inverse is SINGULAR_MATRIX.

How to use

1

Enter a square matrix

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

2

Read A⁻¹

If the matrix is singular, use Determinant or Rank instead of inverse.

Example calculations

Common configurations with formula and result.

ϟ

2I

[[2,0],[0,2]]

0.5 I
[[0.5,0],[0,0.5]]
ϟ

Singular

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

SINGULAR_MATRIX
error

Matrix Inverse calculator specification

Version 1.2.0 · Engine tested

Calculation status

Review policy · Evidence

Definition
A⁻¹ exists when det(A) ≠ 0 and satisfies AA⁻¹ = I. This page is a discovery surface on the linear-algebra engine (mode=inverse). Determinant, rank, and Ax=b share the same capability.
What it calculates
A⁻¹ for invertible order 2–3 matrices (engine up to 4).
Inputs
  • order
  • a11…
Outputs
  • inv
  • det
Formula
A⁻¹ via Gauss–Jordan
Assumptions
  • Real matrices
  • Order ≤ 4
  • Not a CAS
Units
  • dimensionless
Boundary conditions
  • singular inverse → SINGULAR_MATRIX
  • unknown mode (including svd) → INVALID_MODE
Example
[[2,0],[0,2]] → 0.5 I
Validation cases

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

  • order=2 a11=2 a12=0 a21=0 a22=2 → inv[0][0]=0.5
  • order=2 a11=1 a12=2 a21=2 a22=4 → SINGULAR_MATRIX
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 inverse solver?

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

What happens when det = 0?

The API returns SINGULAR_MATRIX. Rank is then strictly less than the order.