Matrix Calculator

A blank line separates the two matrices - one row per line, elements split by comma, space or tab. Single-matrix operations (transpose, determinant, inverse, rank, trace) use the first matrix.
Operations:   
Calculation Result Download CSV
No. Operation Result

Introduction to the tool and how to use it

Online matrix toolset: one input box handles matrix multiplication, addition, transpose, determinant, inverse, rank, and trace; results appear both as a table and as plain text, ready to copy or export as CSV.

Input format:
1. Separate the two matrices with a blank line;
2. Each matrix writes one row vector per line; elements within a row are separated by commas, spaces, or tabs, for example:
1,2
3,4

5,6
7,8

3. For single-matrix operations (transpose / determinant / inverse / rank / trace), fill in only the first matrix; multiplication and addition need the second one, and when it is missing the result column notes second matrix not provided instead of raising an error.

Supported operations: multiplication A×B, addition A+B, transpose A^T, determinant |A|, inverse A^-1, rank rank(A), trace tr(A). Choose all results at once, or view just one operation.

Algorithm and precision: the determinant uses LU elimination with partial pivoting, the inverse uses Gauss-Jordan elimination, and rank counts nonzero rows after elimination; singular matrices clearly note matrix not invertible (determinant is 0) and never output Infinity or NaN. Results are rounded to the chosen decimal places with trailing zeros removed, and -0 always displays as 0.

Size guard: each dimension of one matrix caps at 12, the two matrices hold at most 288 elements combined, and a single element has at most 15 digits; exceeding these gives a clear notice.

How to use

  1. Paste the matrices line by line into the input box, separating the two with a blank line.
  2. Choose the operation mode and set the decimal places.
  3. Click Run.
  4. Review the results and copy or export them.

Message board

All messages →
0/200

  • No one has spoken up yet — want to go first?