Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. All processing happens entirely in your browser - your files never leave your device. No uploads, no accounts, complete privacy.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Math & Science
  3. Matrix Calculator
Add to favorites

Matrix Calculator

Perform matrix operations including multiply, transpose, and inverse

Perform matrix operations without writing code or working through tedious row operations by hand. This calculator handles addition, subtraction, multiplication, scalar multiplication, matrix powers, transpose, determinant, trace, rank, inverse, reduced row echelon form, and eigenvalues for 2x2, 3x3, and 4x4 matrices.

Calculated locally in your browserMore math & scienceJump to full guide

Initializing in your browser…

You might also like

Tip Calculator

Calculate tips and split bills easily. Service quality presets, custom percentages, bill splitting, and rounding options.

Equation Solver

Solve linear and quadratic equations with step-by-step solutions

Scientific Calculator

Advanced calculator with scientific functions and history

A worked calculation

You need the determinant and inverse of a 2×2 matrix to solve a linear system by hand-check.

Matrix A

[ 1  2 ]
[ 3  4 ]
Matrix Calculator produces

Results

det(A) = (1·4 − 2·3) = −2
A⁻¹ = [ −2    1  ]
      [  1.5 −0.5 ]

The determinant is non-zero (−2), so the matrix is invertible and the inverse is computed by the adjugate over the determinant. If the determinant were 0 the tool would report the matrix as singular rather than emit a bogus inverse, handling the edge case correctly.

What this calculator does

Perform matrix operations without writing code or working through tedious row operations by hand. This calculator handles addition, subtraction, multiplication, scalar multiplication, matrix powers, transpose, determinant, trace, rank, inverse, reduced row echelon form, and eigenvalues for 2x2, 3x3, and 4x4 matrices.

How it works

Enter values into a grid, or fill a matrix instantly with the identity, zeros, ones, or random presets. The tool validates dimensions before binary operations - for example, it reports an error if you try to add matrices of different sizes. The determinant is computed by LU-style elimination with partial pivoting, the inverse via Gauss-Jordan elimination, and rank from the reduced row echelon form. Eigenvalues are found in closed form for 2x2 matrices and by solving the characteristic cubic (Cardano / trigonometric) for 3x3 matrices, with complex roots shown as conjugate pairs. Results are displayed in a clean grid or as a scalar/eigenvalue list.

How to use

  1. 1Choose the size (2x2, 3x3, or 4x4) for each matrix
  2. 2Enter values into the grid cells, or use the Identity / Zeros / Ones / Random presets
  3. 3Select an operation: add, subtract, multiply, scalar, power, transpose, determinant, inverse, eigenvalues, trace, rank, or RREF
  4. 4For binary operations (add, subtract, multiply), fill in the second matrix
  5. 5View the result matrix, scalar, or eigenvalue list

Key features

  • Addition, subtraction, scalar multiplication, and matrix power
  • Matrix multiplication with dimension validation
  • Transpose, determinant (LU with pivoting), trace, and rank
  • Inverse via Gauss-Jordan elimination and reduced row echelon form (RREF)
  • Eigenvalues for 2x2 and 3x3 matrices (complex pairs supported)
  • Sizes 2x2, 3x3, and 4x4, with identity/zeros/ones/random fill presets

When this is useful

  • Linear algebra coursework

    Verify hand-calculated matrix operations - multiply, invert, find determinants, rank, and RREF.

  • Computer graphics

    Build and test transformation matrices for rotation, scaling, and translation.

  • Data science

    Inspect small matrices or test linear systems before scaling up in code.

  • Engineering simulations

    Check small stiffness matrices and system-of-equation setups for structural analysis.

Frequently asked questions

What matrix sizes are supported?

Square matrices of size 2x2, 3x3, and 4x4. Eigenvalues are available for 2x2 and 3x3; larger systems are better handled in dedicated math software.

Can I enter decimal or negative values?

Yes. Any real number is accepted in the matrix cells, including negatives and decimals.

What happens if the matrix is singular?

The inverse operation reports that the matrix is not invertible, and the determinant comes out as zero.

Private by design

Every calculation runs locally in your browser. Your numbers and expressions are not transmitted or stored.