SciCalc.net
IndiaFree tools

Matrix calculator: inverse and transpose

Choose the size, fill in the matrix and pick an operation. Inverses come out as exact fractions, for example the inverse of [[2, 1], [1, 3]] has entries 3/5, −1/5, −1/5, 2/5.

Last updated

Matrix A
35−15−1525

Working

  1. 1Row-reduce [A | I] to [I | A⁻¹]exact fractions throughout
Try:

How it works

The inverse A⁻¹ is the matrix with A × A⁻¹ = I. The calculator finds it by row-reducing [A | I] until the left side becomes I. A matrix whose determinant is 0 (singular) has no inverse.

for 2 × 2: [[a, b], [c, d]]⁻¹ = (1 / (ad − bc)) × [[d, −b], [−c, a]]

The transpose swaps rows and columns.

Worked example

Invert [[2, 1], [1, 3]]. ad − bc = 6 − 1 = 5, so the inverse is (1/5) × [[3, −1], [−1, 2]] = [[3/5, −1/5], [−1/5, 2/5]].

Using the inverse to solve equations

A pair of equations 2x + y = 5 and x + 3y = 10 is the matrix equation A·v = b with A = [[2, 1], [1, 3]] and b = [5, 10]. Multiply both sides by A⁻¹:

v = A⁻¹·b = [[3/5, −1/5], [−1/5, 2/5]] · [5, 10] = [3 − 2, −1 + 4] = [1, 3]

So x = 1 and y = 3. Check: 2 × 1 + 3 = 5 and 1 + 3 × 3 = 10.

Checking an inverse

Multiply the matrix by its inverse; the result must be the identity. Top-left entry: 2 × 3/5 + 1 × (−1/5) = 1. Top-right: 2 × (−1/5) + 1 × 2/5 = 0. If any entry is off, the inverse is wrong.

Common mistakes

  • Taking 1 ÷ each entry: the inverse of [[2, 1], [1, 3]] is not [[1/2, 1], [1, 1/3]].
  • Forgetting to swap a and d and change the signs of b and c in the 2 × 2 formula.
  • Multiplying in the wrong order: in general A·B ≠ B·A, and (A·B)⁻¹ = B⁻¹·A⁻¹.

Tips

  • Only square matrices have inverses and determinants.
  • If the calculator says the matrix is singular, check whether one row is a multiple of another.
  • For A × B and other two-matrix sums, use MATRIX mode on the main calculator.

Questions

Why does my matrix have no inverse?

Its determinant is 0. That happens when the rows (or columns) are not independent.

Are the answers exact?

Yes. Entries can be fractions or roots such as √2, and the results stay exact.

What is the largest size?

4 × 4 here and in MATRIX mode.

How do I use a matrix inverse to solve a system of equations?

Write the system as A·v = b, then v = A⁻¹·b. It works only when A has an inverse (its determinant is not 0).

Is the inverse of A·B equal to A⁻¹·B⁻¹?

No. It is B⁻¹·A⁻¹: the order reverses.

What is the inverse of the identity matrix?

The identity matrix itself, because I × I = I.

Sources

  1. NIST Digital Library of Mathematical Functions, §1.2 Elementary Algebra. §1.2(vi) Square Matrices: identity matrix (1.2.53); singular means det(A) = 0; if det(A) ≠ 0, A has a unique inverse with AA⁻¹ = A⁻¹A = I (1.2.60); Ab = c then has the unique solution b = A⁻¹c (1.2.61); matrices commute only if AB = BA (1.2.66). Checked 22 November 2026.
  2. NIST Digital Library of Mathematical Functions, §1.2 Elementary Algebra. §1.2(v), equation 1.2.28: the transpose of A = [aᵢⱼ] is Aᵀ = [aⱼᵢ]. Checked 22 November 2026.
  3. NIST Digital Library of Mathematical Functions, §1.3 Determinants, Linear Operators, and Spectral Expansions. §1.3(i): equation 1.3.1 (2 × 2 determinant a₁₁a₂₂ − a₁₂a₂₁); effect of row swaps, row scaling and adding a multiple of a row; determinant of a triangular matrix is the product of the diagonal elements. Checked 22 November 2026.
  4. NIST Digital Library of Mathematical Functions, §3.2 Linear Algebra. §3.2(i) Gaussian Elimination, equations 3.2.1–3.2.3: augmented matrix, row reduction to triangular form, back substitution; partial pivoting. Checked 22 November 2026.