Matrix Calculator

Enter a matrix as one row of numbers per line.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

Inverse and determinant need a square matrix. Multiply needs a second matrix.

A singular matrix has no inverse on this page.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Calculate matrix.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Determinant, inverse, product, or transpose

How a matrix is typed

Each row is a line of numbers, or rows are separated by semicolons. Every row must share a length, and every entry must be finite. The mode picks one operation. Determinant requires a square matrix and returns the single number produced by elimination: row swaps flip the sign, and a pivot whose absolute value is under 10^−12 forces the determinant to 0. Inverse augments the square matrix with an identity, eliminates, and prints each entry with six digits after the decimal. Multiply requires a second matrix whose row count equals the first matrix’s column count, and it also prints six fractional digits. Transpose swaps rows and columns and prints the entries without forcing six digits.

A two-by-two determinant you can check by hand

The rows 1 2 and 3 4 have determinant 1×4 − 2×3 = −2, and the panel reads Determinant -2. The inverse of that same matrix is the array whose first row is −2 and 1, and whose second row is 1.5 and −0.5. In inverse mode those entries appear as -2.000000 1.000000 and 1.500000 -0.500000. Multiplying the original by the rows 5 6 and 7 8 yields 19 22 and 43 50, shown with six zeros after each decimal point. Transpose of the original prints 1 3 and 2 4.

Singular rows and ragged input

A singular square matrix has determinant 0 and its inverse is refused. A non-square matrix is refused for determinant and for inverse. A product whose inner dimensions disagree is refused. A ragged row, or a token that is not a number, is refused before any mode runs. The tiny-pivot rule means a determinant that is mathematically a speck above zero can still print as 0. Transpose is the mode that accepts a non-square grid. There is no eigenvalue mode and no row-reduced form beyond what inverse and determinant compute internally.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.