CalculatorScale — 4,500+ Free Online Calculators and Converters
calculators calculatorscale.com • Free

Matrix Calculator

Linear AlgebraExact Fraction Engine

Matrix Calculator

Perform addition, subtraction, matrix multiplication, determinants, inverses, transposes, powers, and rank calculations with exact rational fractions.

A

Matrix A

Size:×
Matrix A Operations:
B

Matrix B

Size:×
Matrix B Operations:

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.

A = [ a_ij ] = [ a_11 a_12 ... a_1n ; a_21 a_22 ... a_2n ; ... ; a_m1 a_m2 ... a_mn ]

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:

C_ij = A_ij ± B_ij

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:

c_ij = ∑ (a_ik · b_kj)

⚠️ 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:

det([ a b ; c d ]) = ad - bc

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):

A⁻¹ = (1 / det(A)) · adj(A)

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.

⚡ 100% Free Tool • Instant Calculation • No Sign-Up
Embed Widget

Understanding Matrix Calculator & Formula

Mathematical Formula: A ± B | AB = ∑ a_ik b_kj | det(A) = ad - bc | A⁻¹ = (1/det) adj(A)

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. 1 Select the row and column dimensions (from 1×1 to 6×6) for Matrix A and Matrix B.
  2. 2 Enter integers, decimals, or fractions (e.g. 1/3, -2/5) into the grid cells.
  3. 3 Use the per-matrix action buttons for Transpose (Aᵀ), Determinant (|A|), Inverse (A⁻¹), Powers (Aᵏ), Trace, or Scalar Multiplication.
  4. 4 Use the bottom action bar to compute Matrix Addition (A + B), Subtraction (A - B), Multiplication (A × B or B × A), or Swap matrices.
FAQ & Help 3 questions

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.

Math • Linear algebra calculators

More in Linear algebra calculators

Browse Math →
Categories

Explore All 4,700+ Calculators by Category

Master A-Z Directory →
Biology Calculators 124

Genetics, molecular laboratory science, veterinary dosages, animal gestation, agronomy, and forestry.

Chemistry Calculators 111

Stoichiometry, chemical solutions, thermodynamics, kinetics, electrochemistry, and organic reactions.

Construction Calculators 7

Concrete, roofing, brick, framing, lumber spans, driveway paving, gravel, and material specifications.

Conversion Calculators 17

Precision metric and imperial unit converters for length, area, volume, mass, pressure, temperature, and speed.

Ecology Calculators 6

Carbon footprint, solar energy payback, tree sequestration, recycling offsets, and sustainable living metrics.

Everyday Life Calculators 13

Travel durations, clothing and shoe sizes, fuel economy, home budgeting, sleep cycles, and daily routines.

Finance Calculators 77

Mortgage amortization, compound interest, loans, retirement planning, taxes, investments, and salary projections.

Food & Cooking Calculators 1

Culinary volume-to-weight conversions, baking hydration, ingredient scaling, pizza dough, and party food planning.

Health Calculators 29

BMI, daily caloric needs (TDEE/BMR), body fat percentage, pregnancy due dates, clinical dosage, and pediatric metrics.

Math Calculators 432

Scientific calculators, fractions, percentages, geometry, trigonometry, algebra, linear systems, and matrices.

Physics Calculators 490

Kinematics, Newtonian dynamics, thermodynamics, fluid mechanics, electromagnetism, optics, and relativity.

Sports & Athletic Calculators 4

Heart rate training zones, running pace, triathlon pacing, cycling power, calories burned, and 1RM lifting benchmarks.

Statistics Calculators 7

Standard deviation, normal distribution (Z-scores), confidence intervals, sample size, and probability odds.

Other Calculators 17

Education GPA, photography exposures, music BPM, data storage, network bandwidth, and specialty calculations.