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)
| 4 | 9 | 7 |
| 1 | 7 | 8 |
| 16 | 18 | 5 |
Formula
(A * B)[i, j] = sum over k of A[i, k] * B[k, j]
Step by step
- A is 3x3 and B is 3x3, so the inner dimensions agree and the result is 3x3.
- Each output entry is the dot product of a row of A with a column of B.
- (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
- Pick an operation from the dropdown at the top. The hint below it describes the dimensional requirements.
- 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.
- Type values into the cells. Each cell accepts integers, decimals, comma decimals, and simple fractions like 3/4 or -7/8.
- Use Load sample, Zeros, Identity (square only), or Clear in either matrix block to set up common starting points fast.
- For k * A, enter the scalar k in the dedicated field above the matrix grid.
- Read the result panel for the matrix or scalar answer, the formula used, and a short step-by-step explanation.
- 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
Quadratic Equation Solver
Roots, discriminant, vertex, factored form, and step-by-step working for any quadratic.
Open tool
CalculatorGCD and LCM Calculator
GCD and LCM for any set of integers, with Euclidean steps and prime factorization.
Open tool
CalculatorFraction Calculator
Add, subtract, multiply, and divide fractions with simplified results and step-by-step working.
Open tool
CalculatorSlope Calculator
Slope, line equation, midpoint, distance, and angle from two points.
Open tool
CalculatorStandard Deviation Calculator
Sample and population SD, variance, quartiles, outliers, and step by step working.
Open tool