Matrix Calculator

Our Matrix Calculator handles all essential linear algebra operations in one place. Enter matrices up to 4×4, then choose addition, subtraction, multiplication, determinant, inverse, transpose, scalar multiplication, or Gauss-Jordan row reduction. Every operation shows detailed step-by-step working so you can follow the method, verify your work, or learn the process from scratch.

star 4.9
auto_awesome AI
New
Size: ×
Size: ×

Quick Examples:

Result Matrix

Enter values to compute

grid_on Matrix Formulas

2×2 Determinant
det = ad − bc
2×2 Inverse
A⁻¹ = (1/det)[[d,−b],[−c,a]]
Multiplication C[i][j]
Σ A[i][k] × B[k][j]
Transpose
Aᵀ[i][j] = A[j][i]
Scalar
(kA)[i][j] = k × A[i][j]

table_chart Size Compatibility

Add / Subtract Same size
Multiply A×B A cols = B rows
det / Inverse Square only
Result of m×n × n×p m×p matrix
Transpose of m×n n×m matrix

lightbulb Quick Tips

  • A×B ≠ B×A — multiplication order matters
  • det = 0 means singular (no inverse)
  • RREF reveals rank and solution structure
  • (AB)ᵀ = BᵀAᵀ (reverse order)
  • Identity matrix I: A×I = A

How to Use This Calculator

1

Choose Matrix Size

Select dimensions for Matrix A (and B if needed): 2×2, 3×3, or up to 4×4

2

Select Operation

Pick from Add, Subtract, Multiply, Transpose, Determinant, Inverse, or RREF

3

Enter Matrix Values

Fill in each element of Matrix A (and B for binary operations)

4

View Result & Steps

See the result matrix and step-by-step working showing every calculation

The Formula

Matrix multiplication: C[i][j] = sum of A[i][k] × B[k][j]. For a 2×2 matrix [[a,b],[c,d]]: det = ad−bc. Inverse exists only when det ≠ 0. Transpose swaps rows and columns. Row reduction finds the equivalent RREF using elementary row operations.

C = A × B, det(A) = ad − bc, A⁻¹ = (1/det) × adj(A)

lightbulb Variables Explained

  • A, B Input matrices
  • det(A) Determinant — scalar value from a square matrix
  • A⁻¹ Inverse matrix — A × A⁻¹ = I (identity)
  • Aᵀ Transpose — rows and columns swapped
  • RREF Reduced Row Echelon Form via Gauss-Jordan

tips_and_updates Pro Tips

1

Matrix multiplication is NOT commutative: A×B ≠ B×A in general

2

For multiplication, the number of columns in A must equal the number of rows in B

3

A matrix has an inverse only if its determinant is non-zero

4

Transpose of a product: (AB)ᵀ = BᵀAᵀ (note the reversed order)

5

The determinant of a triangular matrix is the product of its diagonal elements

6

Row operations (swap, scale, add) don't change the solution set of a linear system

Essential Matrix Operations in Linear Algebra

Matrices are the workhorses of linear algebra, with applications spanning computer graphics, machine learning, structural engineering, quantum mechanics, and economics. A matrix is simply a rectangular array of numbers arranged in rows and columns, but the operations defined on them — addition, multiplication, inversion, determinants, and row reduction — form the mathematical backbone of modern computation. Matrix multiplication, unlike scalar multiplication, is not commutative (A times B does not generally equal B times A), and understanding this property is critical for correct application. The determinant of a square matrix tells you whether the matrix is invertible (determinant is nonzero) and represents the scaling factor the matrix applies to area or volume. For a 2x2 matrix, the determinant is ad minus bc; for larger matrices, cofactor expansion or row reduction is required. The inverse of a matrix, when it exists, solves systems of linear equations: if Ax = b, then x = A⁻¹b. Gaussian elimination (row reduction) is the most numerically stable method for solving these systems, reducing a matrix to row echelon form through systematic elimination of variables. These operations are computed billions of times per second in applications ranging from 3D rendering to training neural networks.

What is a Matrix Calculator?

A matrix calculator performs linear algebra operations on rectangular arrays of numbers. From simple addition to complex operations like finding inverses and row-reducing, our calculator handles all standard matrix operations with full step-by-step explanations.

Matrix Operations Overview

Addition/subtraction requires equal dimensions and works element-wise. Multiplication requires A's columns = B's rows. The determinant is a scalar that indicates invertibility. The inverse undoes multiplication (A × A⁻¹ = I). RREF uses Gauss-Jordan elimination to solve linear systems.

Frequently Asked Questions

sell

Tags

verified

Data sourced from trusted institutions

All formulas verified against official standards.