Matrix Calculator
Perform matrix operations including addition, subtraction, multiplication, determinant, and inverse calculations.
Operations
Result
About Matrix Operations
Matrix Addition & Subtraction
Matrices can be added or subtracted element-wise if they have the same dimensions. For example, if A and B are both 2×2 matrices:
A + B = [a₁₁ + b₁₁, a₁₂ + b₁₂]
[a₂₁ + b₂₁, a₂₂ + b₂₂]
Matrix Multiplication
Matrix multiplication is performed by taking the dot product of rows and columns. For an m×n matrix A and an n×p matrix B, the result is an m×p matrix. The element at position (i,j) is the sum of products of the i-th row of A and j-th column of B.
Determinant
The determinant is a scalar value that can be computed from a square matrix. It provides important information about the matrix, including whether it's invertible (non-zero determinant).
- 2×2: det(A) = a₁₁×a₂₂ - a₁₂×a₂₁
- 3×3: Calculated using the rule of Sarrus or cofactor expansion
- 4×4: Calculated using cofactor expansion
Matrix Inverse
The inverse of a matrix A (denoted A⁻¹) is a matrix such that A × A⁻¹ = I (identity matrix). A matrix is invertible only if its determinant is non-zero. The inverse is calculated using:
A⁻¹ = (1/det(A)) × adj(A)
where adj(A) is the adjugate (transpose of the cofactor matrix).
- Use the "Random" button to generate random test matrices
- Use the "Identity" button to create an identity matrix (1s on diagonal, 0s elsewhere)
- The determinant must be non-zero for a matrix to have an inverse
- Matrix multiplication is not commutative: A×B ≠ B×A in general
Related Math Tools
Feedback
Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.
Sending...
Feedback sent. Thank you!
Error occurred!
-
-
-
-
-
-
-
-
-
- API Response
- ASCII Table
- Code Bug Detector
- Code Explanation
- CSS Beautifier
- Env Parser
- GraphQL Query
- Syntax Highlight
- HTML Beautifier
- JS Beautifier
- JSON Formatter
- JSONPath
- JWT Decoder
- JS keyCodes
- API Lorem Ipsum
- RegExp
- Regex Library
- Semver Compare
- SQL Beautifier
- TOML Formatter
- Code Unminifier
- XML Beautifier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Amortization
- Break-Even
- Compound Interest
- Crypto Profit/Loss
- Debt Payoff
- Discount
- Effective Interest
- Emergency Fund
- Inflation Calculator
- Simple Interest
- Invoice Calculator
- IRR Calculator
- Mortgage
- NPV Calculator
- Portfolio
- Profit Margin
- Rent vs Buy
- Retirement Calc
- ROI Calculator
- Salary vs Hourly
- Savings Goal
- Tax Calculator
- VAT
-
-
-
-
-
-
-
-
-
- Equation Solver
- Exponent Calculator
- Factorial Calculator
- Fibonacci Sequence Generator
- Fraction Calculator
- Fraction Simplifier
- GCD Calculator
- GCD/LCM
- Least Common Multiple (LCM) Calculator
- Logarithm Calculator
- Magic Square
- Matrix Calculator
- Number Base Converter
- Pascal's Triangle
- Prime Number
- Prime Factorization
- Prime Number Checker
- Roman Numeral Converter
- Scientific Notation Converter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Broken Link Checker
- Canonical URL
- Canonical URL Checker
- Core Web Vitals Checker
- Favicon
- Heading Structure
- Keyword Density
- Meta Tag Generator
- Meta Tag
- Mobile-Friendly Test
- Open Graph
- Open Graph Tag Generator
- Page Load Time Analyzer
- Redirect Checker
- robots.txt
- Robots.txt Analyzer
- Structured Data
- XML Sitemap
- Structured Data Generator
- Time on Page Tracker
- Page Title & Desc.
- Twitter Card Generator
- XML Sitemap Generator
-
-
-
-
-
-
- Acceleration
- Substance Amount
- Angle
- Area
- Astronomical
- Base Converter
- Capacitance
- Electric Charge
- Cooking
- Data Transfer
- Data Storage
- Density
- Energy Converter
- Force Converter
- Frequency Converter
- Fuel Economy
- Illuminance
- Inductance
- Length / Distance
- Power
- Pressure
- Electrical Resistance
- Time
- Speed
- Temperature
- Viscosity
- Volume
- Weight
-
-
-
-