Calc Hub

Matrix Calculator

Perform 2 x 2 and 3 x 3 matrix addition, subtraction, multiplication, determinant, inverse, and transpose with row-by-row results.

Last updated: 2026-03-25

Matrix calculator

Enter your values

Choose the matrix size and operation, then enter each row as comma-separated values.

Enter comma-separated values. For 2 x 2, use two numbers such as 1, 2.

Ignored for 2 x 2 calculations.

Matrix B is only used for addition, subtraction, and multiplication.

Ignored for 2 x 2 calculations.

All required fields must be filled in.

Result

--

Enter matrix rows to calculate the result, determinant, or inverse of matrix A.

Calculation History(0)
No calculations yet. Complete a calculation to see it here.

Example calculations

Tap an example to prefill the calculator with sample values.

3 x 3 multiplication

Multiply two full 3 x 3 matrices

A common linear-algebra workflow where row-by-column products matter more than elementwise changes.

Result: [14, 14, 20] · [6, 3, 8] · [47, 58, 69]

2 x 2 determinant

Quick determinant check before solving or inverting

Useful when you only need to know whether a small matrix is singular.

Result: det(A) = 10

2 x 2 inverse

Invert a non-singular matrix

A standard classroom example where the determinant stays comfortably away from zero.

Result: [0.6, -0.7] · [-0.2, 0.4]

How the matrix calculator works

Rows are parsed from your comma-separated inputs and converted into either a 2 x 2 or 3 x 3 matrix. Addition and subtraction operate cell by cell, while multiplication uses row-by-column dot products.

Determinant and inverse logic runs only on matrix A. If the determinant is zero, the inverse path stops and explains why the matrix is singular instead of pretending an answer exists.

Matrix calculator FAQs

Determinants, inverses, and why multiplication is not just entry-by-entry math.

Why can a matrix fail the inverse calculation?

Because only matrices with a non-zero determinant are invertible. If det(A) is 0, the matrix is singular and no inverse exists.

What size matrices does this support?

This version handles 2 x 2 and 3 x 3 matrices only. That keeps the row parsing clear and the inverse and determinant steps transparent.

How is multiplication different from addition?

Addition and subtraction combine matching cells. Multiplication is a row-by-column operation, so each result cell is a dot product rather than a simple pairwise change.

Embed this calculator

Copy the code below to embed this calculator on your website or blog. It's free — no API key needed.

<iframe
  src="https://calc.mintloop.dev/embed/education/matrix-calculator"
  width="100%"
  height="600"
  frameborder="0"
  title="Matrix Calculator"
  loading="lazy">
</iframe>
Optional: auto-resize script
<script>
var CALC_HUB_ORIGIN = 'https://calc.mintloop.dev';
window.addEventListener('message', function(e) {
  if (e.origin !== CALC_HUB_ORIGIN) return;
  if (!e.data || e.data.type !== 'calc-hub-resize') return;
  var frames = document.querySelectorAll('iframe[src*="calc.mintloop.dev"]');
  frames.forEach(function(f) {
    if (f.contentWindow === e.source) {
      f.style.height = String(Math.max(0, Number(e.data.height) || 0)) + 'px';
    }
  });
});
</script>

Stay in the same student workflow with adjacent math and school calculators.

Get more education calculators

Join the Calc Hub newsletter for new calculators for algebra, statistics, science, and student planning.

Join the Calc Hub newsletter

Was this calculator helpful?

Your feedback helps us improve future calculators.