Matrix Calculator
Perform matrix addition, subtraction, multiplication, determinants, inverses, transposes, powers, and rank with exact rational arithmetic.
Matrix Calculator
Perform addition, subtraction, matrix multiplication, determinants, inverses, transposes, powers, and rank calculations with exact rational fractions.
Matrix A
Matrix B
What is a Matrix in Linear Algebra?
In linear algebra, a matrix is a rectangular array of numbers, symbols, or expressions arranged in horizontal rows and vertical columns.
The dimensions of a matrix are written as m × n, where m represents the number of rows and n represents the number of columns. An individual element at row i and column j is denoted as ai,j.
Fundamental Matrix Operations & Rules
1. Matrix Addition & Subtraction (A ± B)
Requires both matrices to have identical dimensions (m_A = m_B and n_A = n_B). Computed by adding or subtracting corresponding elements:
2. Matrix Multiplication (A × B)
Requires the number of columns in A to match the number of rows in B (n_A = m_B). The product matrix has dimensions m_A × n_B:
⚠️ Non-Commutative: In general, AB ≠ BA.
3. Determinant (|A| or det(A))
A scalar value computed only for square matrices (n × n). For a 2×2 matrix:
4. Matrix Inverse (A⁻¹)
The matrix satisfying A · A⁻¹ = I. Exists if and only if the matrix is square and det(A) ≠ 0 (non-singular):
Real-World Applications of Matrices
🎮 3D Computer Graphics
3D game engines and shaders use 4×4 transformation matrices to rotate, translate, scale, and project 3D polygonal vertices onto 2D screens.
⚡ Systems of Linear Equations
Engineering circuits, structural load distributions, and economic models formulate large linear systems as Ax = b, solved via matrix inversion or LU decomposition.
🤖 Machine Learning & AI
Artificial neural networks compute forward passes by multiplying input vectors by layer weight matrices: y = σ(W · x + b).
Frequently Asked Questions
Why is matrix multiplication non-commutative (AB ≠ BA)?
Because matrix multiplication represents the composition of linear transformations. The order in which transformations are applied matters (e.g. rotating an object then translating it yields a different position than translating first then rotating).
What does a zero determinant (det = 0) mean?
A matrix with det = 0 is called a singular matrix or degenerate matrix. Geometrically, it collapses space into a lower dimension (e.g. 2D plane into a 1D line), meaning the transformation cannot be reversed, so no inverse matrix exists.
What is the Identity Matrix?
The identity matrix (I) is a square matrix with 1s along the main diagonal and 0s everywhere else. Multiplying any compatible matrix by the identity matrix leaves it unchanged: A · I = A.
Understanding Matrix Calculator & Formula
The Matrix Calculator on CalculatorScale.com is engineered to deliver instant, mathematically verified calculations conforming strictly to standard institutional equations. Whether planning long-term investments, managing household budgets, tracking clinical fitness targets, analyzing academic genetics, calculating veterinary dosages, or converting dimensional units, every calculation updates dynamically in real time without lag.
Every formula used in this tool adheres to certified international standards, including World Health Organization biometric metrics, veterinary clinical guidelines, NIST physical conversion constants, and standard biological equations. Results are computed entirely client-side inside your browser with complete data privacy, ensuring your sensitive numbers and statistics never leave your device.
Our calculators are 100% free with no registration, subscriptions, or paywalls required. You can toggle between imperial and metric units, customize input parameters, export calculation summaries, or embed this calculator directly into your own website or blog.
How to Use the Matrix Calculator
- 1 Select the row and column dimensions (from 1×1 to 6×6) for Matrix A and Matrix B.
- 2 Enter integers, decimals, or fractions (e.g. 1/3, -2/5) into the grid cells.
- 3 Use the per-matrix action buttons for Transpose (Aᵀ), Determinant (|A|), Inverse (A⁻¹), Powers (Aᵏ), Trace, or Scalar Multiplication.
- 4 Use the bottom action bar to compute Matrix Addition (A + B), Subtraction (A - B), Multiplication (A × B or B × A), or Swap matrices.
Matrix Calculator — Frequently Asked Questions
Q1 Why does matrix multiplication require matching inner dimensions? ▾
Matrix multiplication AB requires computing row-by-column dot products. This is only geometrically and algebraically defined when the number of columns in Matrix A equals the number of rows in Matrix B.
Q2 What is a singular matrix? ▾
A square matrix is singular when its determinant equals zero (det = 0). Singular matrices cannot be inverted because division by zero determinant is undefined.
Q3 Does order matter in matrix multiplication (AB vs BA)? ▾
Yes! Matrix multiplication is non-commutative. In general, AB ≠ BA. Furthermore, if Matrix A is 2×3 and Matrix B is 3×4, AB is a valid 2×4 matrix, but BA is undefined.
More in Linear algebra calculators
Adjoint Matrix Calculator
Linear AlgebraCompute the adjugate / adjoint matrix adj(A) = C^T composed of transposed cofactors.
Characteristic Polynomial Calculator
Linear AlgebraCompute characteristic polynomial p(λ) = det(A - λI) for 2x2 matrix: λ² - tr(A)λ + det(A).
Cholesky Decomposition Calculator
Linear AlgebraDecompose symmetric positive-definite matrix A = L L^T into lower triangular L.
Cofactor Matrix Calculator
Linear AlgebraCompute cofactor matrix C_ij = (-1)^(i+j) M_ij.
Column Space Calculator
Linear AlgebraDetermine dimension of column space (column rank) of a matrix.
Condition Number Calculator
Linear AlgebraCompute matrix condition number κ(A) = ||A|| ||A⁻¹|| to evaluate numerical inversion stability.
Explore All 4,700+ Calculators by Category
Genetics, molecular laboratory science, veterinary dosages, animal gestation, agronomy, and forestry.
Stoichiometry, chemical solutions, thermodynamics, kinetics, electrochemistry, and organic reactions.
Concrete, roofing, brick, framing, lumber spans, driveway paving, gravel, and material specifications.
Precision metric and imperial unit converters for length, area, volume, mass, pressure, temperature, and speed.
Carbon footprint, solar energy payback, tree sequestration, recycling offsets, and sustainable living metrics.
Travel durations, clothing and shoe sizes, fuel economy, home budgeting, sleep cycles, and daily routines.
Mortgage amortization, compound interest, loans, retirement planning, taxes, investments, and salary projections.
Culinary volume-to-weight conversions, baking hydration, ingredient scaling, pizza dough, and party food planning.
BMI, daily caloric needs (TDEE/BMR), body fat percentage, pregnancy due dates, clinical dosage, and pediatric metrics.
Scientific calculators, fractions, percentages, geometry, trigonometry, algebra, linear systems, and matrices.
Kinematics, Newtonian dynamics, thermodynamics, fluid mechanics, electromagnetism, optics, and relativity.
Heart rate training zones, running pace, triathlon pacing, cycling power, calories burned, and 1RM lifting benchmarks.
Standard deviation, normal distribution (Z-scores), confidence intervals, sample size, and probability odds.
Education GPA, photography exposures, music BPM, data storage, network bandwidth, and specialty calculations.