• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Matemática Básica
  • Elementary School
  • High School
  • Financial Mathematics
  • Maths Exercises
Home ❯ High School

Matrix Calculator Online

Fill in the matrix elements, select the operation and the solving method, and click Calculate. The full solution appears step by step below.

Matrix Calculator

Size:

Tip: accepts fractions like 1/3, -2/5, decimals like 0.5 or integers.

Matrix A:

[
]

Matrix B (A+B, A−B, A×B):

[
]

Vector b (constant terms):

[
]

Result:

Step-by-step solution:

How to use

  1. Choose the size (2×2, 3×3 or 4×4) — the grids adjust automatically.
  2. Fill in the elements of A (and B or vector b depending on the selected operation).
  3. Choose the operation and, when available, the solving method.
  4. Click Calculate — the result and solution appear step by step.

Operations and available methods

Operation Methods
Determinant Cofactors, Gaussian Elimination, Sarrus Rule (3×3)
Trace (tr A) Sum of the diagonal
Transpose —
Inverse Gauss-Jordan [A|I], Adjugate Matrix
Upper Triangular Gaussian Elimination with partial pivoting
LU Decomposition Doolittle (L with 1s on diagonal)
A², k·A, A+B, A−B, A×B —
Linear system Ax = b Gauss, Gauss-Jordan, Cramer Rule

Frequently asked questions

What is LU Decomposition?

LU Decomposition factorises A into L × U: L is lower triangular with 1s on the diagonal (Doolittle Method) and U is upper triangular. It is the foundation of efficient algorithms for solving linear systems and computing determinants in scientific computing.

What is the difference between Gauss and Gauss-Jordan for systems?

Gauss reduces to upper triangular form and uses back substitution. Gauss-Jordan goes further, eliminating above and below the pivot to reach [I|x] — the solution is read directly from the last column, with no extra step.

When can Cramer's Rule not be applied?

Cramer's Rule requires det(A) ≠ 0. If det(A) = 0 the system is singular (no unique solution). Use Gauss or Gauss-Jordan to check for infinite solutions or inconsistency.

What is the trace of a matrix?

The trace (tr A) is the sum of the main diagonal elements. It equals the sum of the eigenvalues and appears in quantum physics, differential geometry and matrix optimisation.

Does Sarrus Rule work for 4×4?

No. Sarrus's Rule is exclusive to 3×3 matrices. For larger dimensions use cofactors or Gaussian elimination, both available in the calculator.

See also…

  • Matrices — Concept, Types and Examples
  • Inverse Matrix
  • Transpose Matrix
  • Matrices and Determinants
  • Matrix Multiplication
Jean Carlos Novaes

About Jean Carlos Novaes

I hold a degree in Computer Science from the Federal University of Bahia (2017), editor and founder of this site.

Footer

Matemática Básica

Basic Mathematics website with educational content and solved exercises for school students.

ABOUT

  • About Us
  • Contact
  • Sitemap

TOPICS

  • Elementary School
  • High School
  • Financial Maths
  • Maths Exercises

LEGAL

  • How to Cite
  • Cookie Policy
  • Privacy Policy
  • Content License

© 2015–2026 · Matemática Básica · All rights reserved.

We use cookies for site functionality, analytics and marketing, and to improve your experience.

Cookie preferences