Zero Signup ToolsFree browser tools

Calculator Tools

Matrix Calculator

Calculate matrix add, subtract, multiply, scalar, transpose, determinant, inverse, rank, trace, and RREF in your browser. Step-by-step results.

Matrix calculator

Matrix product. A is m x n and B is n x p; the result is m x p.

Matrix A

Edit the cells of matrix A. Use integers, decimals, or fractions like 3/4.

Matrix B

Edit the cells of matrix B. Use integers, decimals, or fractions like 3/4.

A * B

A * B (3x3)

497
178
16185

Formula

(A * B)[i, j] = sum over k of A[i, k] * B[k, j]

Step by step

  1. A is 3x3 and B is 3x3, so the inner dimensions agree and the result is 3x3.
  2. Each output entry is the dot product of a row of A with a column of B.
  3. (A * B)[i, j] = A[i, 1]*B[1, j] + A[i, 2]*B[2, j] + ... + A[i, n]*B[n, j]

How to use

  1. Pick an operation from the dropdown at the top. The hint below it describes the dimensional requirements.
  2. Set the dimensions of matrix A (and B if the operation needs two matrices). For A + B and A - B the shapes must match; for A * B, A's columns must equal B's rows. The tool auto-pairs B's shape when you change A.
  3. Type values into the cells. Each cell accepts integers, decimals, comma decimals, and simple fractions like 3/4 or -7/8.
  4. Use Load sample, Zeros, Identity (square only), or Clear in either matrix block to set up common starting points fast.
  5. For k * A, enter the scalar k in the dedicated field above the matrix grid.
  6. Read the result panel for the matrix or scalar answer, the formula used, and a short step-by-step explanation.
  7. Click Copy result to grab a tab-separated version of the input matrices and the answer, ready to paste into a spreadsheet or notes app.

About this tool

Matrix Calculator runs the ten linear-algebra operations that come up the most in classrooms, engineering work, and machine-learning prep: addition, subtraction, matrix multiplication, scalar multiplication, transpose, determinant, inverse, rank, trace, and the reduced row echelon form (RREF). Each cell accepts integers, decimals (dot or comma), and simple fractions like 3/4 or -7/8, so you can paste numbers straight from a textbook or notebook without converting them first. Dimensions are configurable per matrix from 1x1 up to 8x8, and the tool auto-pairs B's shape when you change A so addition and multiplication stay valid by default. Determinants and the rank-and-RREF pipeline use Gaussian elimination with partial pivoting, which is the standard numerically stable approach taught in linear-algebra courses; the inverse is computed by Gauss-Jordan on the augmented matrix [A | I] and surfaces a clear error if A is singular. Every result is shown as a clean matrix table with formatted numbers, plus the formula and a short step-by-step explanation that mirrors how the operation would be carried out by hand. A Copy result button drops a tab-separated, paste-ready version into your clipboard so you can move the answer into a spreadsheet, homework write-up, or code review. Useful for checking matrix multiplication homework, finding the inverse of a 2x2 or 3x3 matrix, computing determinants, finding the rank for solving linear systems, and previewing RREF before solving Ax = b. Everything runs locally in the browser, so the numbers you type here never leave your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsCalculator Tools