Skip to content

Matrix Calculator

Math & Calculators ·
·

Add, subtract, multiply matrices and find determinant, transpose, inverse

Matrix Math Without the Tedium

Multiplying two 3x3 matrices by hand involves 27 individual multiplications and 18 additions. Doing it during a homework session while you’re already tired is a recipe for transposition errors. This calculator takes that grunt work off your plate.

It handles six operations, addition, subtraction, multiplication, determinant, transpose, and inverse, for 2x2, 3x3, and 4x4 matrices. Enter your values into the grid, pick an operation, and the result appears in matrix format.

What You Can Do

Addition and subtraction are straightforward, element-by-element arithmetic on two same-size matrices. Multiplication follows the standard rows-by-columns rule, which is where manual errors creep in the most.

Determinant gives you a single number computed via cofactor expansion. For the 2x2 case, it’s just ad - bc. For 3x3 and 4x4, the recursive expansion does the heavy lifting. The determinant tells you whether the matrix is invertible, if it’s zero, there’s no inverse.

Transpose flips rows and columns. Inverse finds the matrix that, when multiplied by the original, produces the identity matrix. Try it: enter [[1, 2], [3, 4]], click Determinant to get -2, then click Inverse to get [[-2, 1], [1.5, -0.5]].

Who Reaches for This

Linear algebra students verifying homework answers. You solved the problem by hand, and now you need to confirm you didn’t swap a sign somewhere in step four. This is faster than asking a classmate to check your work.

Graphics programmers computing transformation matrices. Rotation, scaling, and translation in 3D space are all matrix operations. When you’re debugging a shader and something’s rendering upside-down, being able to quickly multiply your model-view-projection matrices helps you find the problem.

ML engineers sanity-checking weight matrix operations. Physics students working through tensor calculations for mechanics or quantum problems. Engineers solving systems of equations in matrix form.

For linear systems specifically (two equations, two unknowns), the Equation Solver uses Cramer’s rule and is even faster. The Scientific Calculator covers general math when you step out of matrix land.

When Things Go Wrong

Trying to invert a singular matrix (determinant = 0) gives you an error, because the inverse genuinely doesn’t exist. This tool uses square matrices of the same size, so dimension mismatches for multiplication aren’t an issue. All computation stays in your browser.

matrix calculator linear-algebra determinant inverse

Related Tools

More in Math & Calculators

Profit Margin Calculator

Enter revenue and cost to get your gross profit, profit margin percent, and the matching markup. See how much of every sale you actually keep.

Ratio Calculator

Solve proportions and simplify ratios with step-by-step results

Retirement Calculator

Project your retirement nest egg from your age, savings, monthly contributions, and expected return.

ROI Calculator

Compute total return and annualized return (CAGR) on any investment from initial capital, final value, and holding period.

Roman Numeral Converter

Convert between decimal numbers and Roman numerals bidirectionally

Salary Calculator

Enter a wage in any period and see the hourly, daily, weekly, bi-weekly, monthly, and annual equivalents at once. Adjust hours and weeks worked.

Sales Tax Calculator

Add tax to a price or pull tax out of a total. Works with any rate from 0% to 30%, with a quick reference for common US cities.

Savings Goal Calculator

Figure out how long until you hit a savings goal, or how much to set aside each month to reach it by a target date.

Simple Interest Calculator

Work out simple interest from a principal, annual rate, and a term in years or months. See the interest earned and the total at the end, no compounding.

Sleep Calculator

Pick a wake-up time and get the best bedtimes, or pick a bedtime and get the best alarms. Built around 90-minute sleep cycles.

Slope Calculator

From two points, get slope, distance, angle, line equation, and midpoint, all the standard line-geometry outputs in one shot.

Sphere Calculator

Compute radius, diameter, surface area, and volume of a sphere from any one, pick what you have, get the other three.

View all 73Math & Calculators