Matrix calculator

Calculate matrix addition, subtraction, multiplication, transposition, determinant, inverse matrix, and RREF. Check the row elimination process and numerical tolerance.

Input

Calculate directly using the sample value, or try changing the value.

One line consists of numbers separated by spaces, tabs, or line breaks; exclude commas for thousands, fractions, and symbols

Numerical tolerance.

The inverse matrix check is a floating‑point approximation. For unusual inputs, change the tolerance for comparison.

Input is processed only in this browser. Refreshing returns a sample value.

Result

Check the result using the example value.

The display value is a rounded approximation of 10 digits. CSV or TXT display values are saved; input values are not included in addresses or visit statistics.

Share result

Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.

Calculation criteria and usage method

Check the result of matrix operations and the row elimination process.

Product Cᵢⱼ = ΣₖAᵢₖBₖⱼ · Inverse matrix [A|I]→[I|A⁻¹] · Determinant: product of row exchange sign, elimination pivot point, and row size

Input example

The determinant of A=[[1,2],[3,4]] is −2, and the inverse matrix is [[−2,1],[1.5,−0.5]]. The product of A and B is [[19,22],[43,50]].

If [row] of A is 1 2 and 3 4, then det(A)=1×4−2×3=−2. The inverse matrix is [[−2,1],[1.5,−0.5]], and multiplying by A gives the unit matrix. The first cell of the product of [5 6] and [7 8] is 1×5+2×7=19.

How to use

  1. Use the example value or enter numbers directly. The table format has one row per line.
  2. Click Verify result. Incorrect rows are marked and excluded.
  3. Check the result and calculation process, then copy or save the required result as a file.

Limitations and interpretation

Each matrix has a maximum 8×8. Only errors are supported. Inverse matrices and determinants are calculated only for square matrices. Special cases are determined by the tolerance of the normalized pivot point, not by the size of the matrix itself.

Frequently Asked Questions

How is the required size different between multiplication and addition?

Addition and subtraction require the same number of rows and columns for two matrices. Multiplication requires the same number of columns in A and rows in B, and the result size is A’s number of rows × B’s number of columns.

If the determinant is small, is there no inverse matrix?

Does not judge solely based on size. This tool normalizes individual coefficient values and determines the pivot with the selected tolerance. Almost peculiar matrices are sensitive to numerical approximation errors and do not guide when condition numbers are large.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors