Matrix Calculator

Last updated: November 27, 2026  •  Published by: NOFYI Editorial Team  •  Category: Math Tools

Workspace

What is the Matrix Calculator?

The Matrix Calculator adds, subtracts, multiplies, transposes, and finds the determinant of matrices you type in. Enter each matrix as rows of numbers, one row per line, with values separated by spaces or commas.

How to Use the Matrix Calculator

  1. Type Matrix A in the first box, one row per line — for example “1 2” on the first line and “3 4” on the second. Type Matrix B in the second box if your operation needs two matrices (add, subtract, multiply).
  2. Choose an operation from the Operation dropdown: A + B, A − B, A × B, Transpose of A, or Determinant of A. Then click Calculate.
  3. Read the result: a matrix shown as rows of numbers, or a single Determinant value in a result table.

Worked Example

Input entered as two lines:

1, 2
3, 4

Observed result for A + B with Matrix B as “5 6” and “7 8”: 6 8 on the first row, 10 12 on the second. For A × B the same inputs give 19 22 and 43 50. The determinant of A is −2, and the transpose of A is 1 3 on the first row, 2 4 on the second.

The tool does not offer an inverse operation — the dropdown lists add, subtract, multiply, transpose, and determinant only.

Limitations

  • Two-matrix operations (A + B, A − B, A × B) need both boxes filled, and the sizes must fit: add and subtract need equal sizes, multiply needs A’s columns to equal B’s rows. A mismatched pair shows an error, not a result.
  • Every row must have the same number of numeric entries. A row with a missing value or a non-number shows an error instead of a result.
  • Determinant needs a square matrix: asking for the determinant of a non-square matrix shows an error.

Frequently Asked Questions

Can it add or multiply two matrices?

Yes. Enter both matrices, choose A + B or A × B, and click Calculate. Add needs equal sizes; multiply needs A’s columns to equal B’s rows.

What input format does it describe?

Rows separated by newlines, values separated by spaces or commas — for example “1 2 3” on one line, then “4 5 6” on the next.

Can it find a determinant or inverse?

Determinant yes: for the 2 by 2 matrix above it returns −2. Inverse no — the tool does not offer an inverse operation.

Can I enter two matrices?

Yes. There are two boxes, Matrix A and Matrix B. Operations on one matrix (transpose, determinant) use Matrix A only.