Matrix Calculator
Edit up to two matrices of any size from 1×1 to 6×6 and apply addition, subtraction, multiplication, scalar multiplication, transpose, determinant, inverse, rank, reduced row echelon form or integer powers. All arithmetic is done with exact fractions, so an inverse shows 1/3 rather than 0.333333, and singular matrices are detected reliably. Switch to decimal view at any time.
How to use the Matrix Calculator
- Set the size of matrix A (and B for two-matrix operations).
- Type the entries as integers, decimals or fractions such as 3/4.
- Choose an operation and, if needed, a scalar or exponent.
- Press Calculate, then copy the result as tab-separated values.
Features
- Matrices up to 6×6 with editable grids
- Add, subtract, multiply and scalar multiply
- Determinant, inverse with singular detection, rank and RREF
- Integer powers, including negative powers through the inverse
- Exact fraction or decimal display
Benefits
- Avoid rounding errors in linear-algebra homework
- Check row-reduction steps against an exact RREF
- Paste results straight into a spreadsheet
Frequently asked questions
Why are results shown as fractions?
The calculator uses exact rational arithmetic. Fractions show the true value; turn off Show fractions to see decimals rounded to six places.
When does a matrix have no inverse?
A square matrix is invertible only when its determinant is not zero. If the determinant is zero the matrix is singular and the calculator says so.
Which sizes can be multiplied?
A × B needs the number of columns of A to equal the number of rows of B. The result has the rows of A and the columns of B.
Related tools
- Equation Solver — Solve linear, quadratic and cubic equations and 2×2 or 3×3 linear systems, with real and complex roots and step-by-step working.
- Statistics Calculator — Paste a data set to get mean, median, mode, quartiles, variance, standard deviation, skewness, outliers and a histogram instantly.
- Standard Deviation Calculator — Find sample or population standard deviation and variance with a step-by-step table of deviations and squared deviations.
- Probability Calculator — Calculate single and two-event probabilities, conditional probability, permutations, combinations and binomial probabilities.
- Percentage Calculator — Work out X% of Y, what percent one number is of another, percentage change, or increase and decrease a value by a percent.
- Loan EMI Calculator — Calculate the monthly EMI for any loan, plus total interest, total payment and a year-by-year repayment breakdown.