Search the complete library

What do you want to learn or calculate?

Quick linksAll calculatorsMath subjectsPractice questionsFormula library

Linear Algebra Calculator

Solve linear algebra problems with clear steps, notation, and a final check. Choose a focused operation below to calculate, inspect the method, and connect the result to a visual model.

The visual updates with your calculation.

ResultChoose a mode, enter the known values, and calculate.
Show your work Step-by-step method
  1. The calculation method and verification will appear here.
Ask MathGPT for a full symbolic explanation →
Linear algebra

Linear Algebra Calculator explained

The short version

  • A matrix is a grid of coefficients that packs a whole system of equations into one object.
  • The determinant is a single number that says whether a square matrix can be undone. Zero means it cannot.
  • Order matters in matrix multiplication: A times B is usually not B times A.

The formula this page uses

det [[a, b], [c, d]] = ad − bc A⁻¹ = (1 / det A) · [[d, −b], [−c, a]]

What each part means

SymbolWhat it means
A — Coefficient matrixThe numbers in front of the unknowns, one row per equation.
x — Unknown vectorThe column of variables you are solving for.
b — Right-hand sideThe column of constants the equations equal.
det A — DeterminantA single number. Its size is the area scale factor, and its sign says whether orientation flips.

Show your work: a full example

  1. The system2x + 3y = 12 and 4x − y = 10
  2. Write it as a matrix and a columnA = [[2, 3], [4, −1]], b = [12, 10]
  3. Determinant, down the diagonalsdet A = (2)(−1) − (3)(4) = −2 − 12 = −14
  4. Not zero, so the inverse existsA⁻¹ = (1/−14) · [[−1, −3], [−4, 2]]
  5. Multiply the first row of A⁻¹ by bx = ((−1)(12) + (−3)(10)) ÷ (−14) = (−12 − 30) ÷ (−14) = −42 ÷ −14 = 3
  6. Multiply the second row of A⁻¹ by by = ((−4)(12) + (2)(10)) ÷ (−14) = (−48 + 20) ÷ (−14) = −28 ÷ −14 = 2
  7. Check in both original equations2(3) + 3(2) = 6 + 6 = 12 ✓ and 4(3) − 2 = 12 − 2 = 10 ✓

A second, different case

  1. A different case: the determinant is zero2x + 3y = 12 and 4x + 6y = 18
  2. Determinant of the new coefficient matrix(2)(6) − (3)(4) = 12 − 12 = 0
  3. Row 2 minus 2 × Row 1, on both sides(4 − 4)x + (6 − 6)y = 18 − 24
  4. What is left0 = −6, which is impossible, so the system has no solution
  5. Change the 18 to a 24 and repeat(4 − 4)x + (6 − 6)y = 24 − 24 → 0 = 0
  6. Read that instead0 = 0 is always true, so now every point on the line 2x + 3y = 12 is a solution
Copy-ready example

2x + 3y = 12 and 4x − y = 10

The system

What the determinant tells you about a 2×2 system

Example matrixdetInverse exists?Solutions of Ax = b
[[2, 3], [4, −1]]−14yesexactly one
[[1, 0], [0, 1]]1yesexactly one, area unchanged
[[0, 1], [1, 0]]−1yesexactly one, orientation flipped
[[3, 0], [0, 2]]6yesexactly one, area scaled by 6
[[2, 3], [4, 6]] with b = [12, 18]0nonone, the lines are parallel
[[2, 3], [4, 6]] with b = [12, 24]0noinfinitely many, one line twice

Three mistakes to check for

What students writeWhy it's wrongDo this instead
det [[a, b], [c, d]] = ab − cdThe determinant multiplies along the two diagonals, not along the rows.ad − bc, so (2)(−1) − (3)(4) = −14.
AB = BA, so the order does not matterMatrix multiplication combines rows with columns, and swapping the order combines different pairs.Compute both when a proof needs it; for most pairs the two products differ, and one may not even be defined.
A⁻¹ means dividing every entry by its valueUndoing a transformation is not the same as shrinking each number.Use (1/det A) times the adjugate, or row-reduce [A | I] until the left half is the identity.

Questions about the Linear Algebra Calculator

What does a determinant of zero really mean?

It means the matrix squashes space flat: a square of area 1 gets mapped onto a line of area 0. Because you cannot un-flatten it, there is no inverse, and the system either has no solutions or infinitely many depending on b.

Why do the dimensions have to match to multiply matrices?

Each entry of the product is a row of the first matrix paired term by term with a column of the second. That pairing only works if the row and the column have the same length, which is why an m×n can only multiply an n×p.

Is the matrix the same thing as the system it came from?

It carries the same information in a shorter form. A holds only the coefficients, so you must keep b beside it. The two zero-determinant rows in the table above share the identical matrix and differ only in b, yet one has no solutions and the other has infinitely many.

Do I need the inverse to solve a system?

No, and for anything bigger than 2×2 you usually should not. Row-reducing the augmented matrix takes fewer operations and keeps working when the determinant turns out to be zero, whereas the inverse method simply breaks.

Where to go next

Calculate, interpret, verify.

This workspace keeps the formula and the meaning together. Decimal results are rounded for display; retain full precision when you continue a calculation.

01

Enter known values

Match each input to the quantities in the problem and keep units consistent.

02

Use the relationship

The result panel identifies the formula or algorithm and shows the main substitutions.

03

Read the visual

Use the diagram, plot, or data display to check scale, direction, and plausibility.

04

Practice unaided

Move to targeted questions once you can explain why the method applies.

Continue from this result

Turn one calculation into understanding.

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.

Learn the mathematics

Understand linear algebra behind this calculator

A calculator confirms an answer. Working the method yourself is what makes the next problem faster.