📐

Matrix Multiplication & Linear Algebra Calculator

Math Free Instant Private
Math

### Linear Algebra: The Fundamental Rule of Matrix Multiplication To multiply two matrices \(A\) and \(B\), the **number of columns in matrix $A$ must equal the number of rows in matrix $B$** (inner.

Reviewed by Miss Saima · MA Mathematics
Last updated:
Editorial Guidelines

⚙ Input Values

📊 Results

Primary Matrix Product C = A × B
C = [ [19, 7], [17, 6] ] | tr(C) = 25 | det(C) = -5
Result Matrix C (Grid Form)
[ [19, 7], [17, 6] ]
Matrix Trace tr(C) [Sum of Main Diagonal]
25 (tr(C) = C₁₁ + C₂₂)
Determinant: det(C) = det(A) × det(B)
det(C) = -5 (det(A)×det(B) = 5×-1 = -5)
Step-by-Step Row · Column Dot Products
C₁₁ = (2×5) + (3×3) = 19 | C₁₂ = (2×2) + (3×1) = 7 | C₂₁ = (1×5) + (4×3) = 17 | C₂₂ = (1×2) + (4×1) = 6
Matrix Non-Commutativity Check (A×B ≠ B×A)
A×B ≠ B×A (B×A = [ [12, 23], [7, 13] ])
✦ Linear Transformation & Matrix Product Diagnostic
Linear Algebra Matrix Product: Multiplying 2×2 Matrix A [ [2, 3], [1, 4] ] by 2×2 Matrix B [ [5, 2], [3, 1] ] produces 2×2 Matrix C = [ [19, 7], [17, 6] ]. Trace tr(C) = 25. Determinants: det(A) = 5, det(B) = -1 ➔ det(C) = det(A) × det(B) = 5 × -1 = -5. Commutativity verification: B × A = [ [12, 23], [7, 13] ] (A×B ≠ B×A, proving matrix multiplication is non-commutative).
Embed on Your Website

Copy and paste this code into your website.

<iframe src="https://calcusolve.com/calculator/matrix-multiplication-calculator?embed=true" width="100%" height="600" frameborder="0" loading="lazy" title="Matrix Multiplication & Linear Algebra Calculator"></iframe>

📐 Formula

Matrix multiplication & linear algebra equations: Product Entry: C_ij = Σ_k=1^m A_ik B_kj = A_i1B_1j + A_i2B_2j + + A_imB_mj 2×2 Matrices: pmatrix a & b \\ c & d pmatrix pmatrix e & f \\ g & h pmatrix = pmatrix ae + bg & af + bh \\ ce + dg & cf + dh pmatrix Trace: tr(C) = Σ_i=1^n C_ii Multiplicative Property: (A × B) = (A) × (B) -Commutative Property: A × B B × A

💡 Practical Example

✅

For example, multiplying Matrix \ by Matrix \: \(5) + (3)(3) = 10 + 9 = \mathbf{19}\); \(2) + (3)(1) = 4 + 3 = \mathbf{7}\); \(5) + (4)(3) = 5 + 12 = \mathbf{17}\); \(2) + (4)(1) = 2 + 4 = \mathbf{6}\). The resulting matrix is \ with \(\operatorname{tr}(C) = 25\) and \(\det(C) = (19)(6) - (7)(17) = 114 - 119 = \mathbf{-5}\) (\(\det(A) = 5, \det(B) = -1 \implies 5 \times -1 = -5\)).

📖 About Matrix Multiplication & Linear Algebra Calculator

Linear Algebra: The Fundamental Rule of Matrix Multiplication

To multiply two matrices A and B, the number of columns in matrix A must equal the number of rows in matrix B (inner dimensions match: m × k multiplied by k × n yields an m × n matrix).

Why Matrices Are Non-Commutative

In scalar arithmetic, . In linear algebra, geometric transformations depend on the order in which they are applied (e.g. rotating an object then translating it yields a different physical position than translating then rotating). Thus, A × B B × A.

How to Use This Calculator

Enter your Matrix Dimensions (A × B) — choose from 2×2 multiplied by 2×2 (Square Matrices), 3×3 multiplied by 3×3 (Square Matrices), Matrix A: row 1, col 1 [A₁₁] (e.g. 2.0), Matrix A: row 1, col 2 [A₁₂] (e.g. 3.0), Matrix A: row 2, col 1 [A₂₁] (e.g. 1.0), Matrix A: row 2, col 2 [A₂₂] (e.g. 4.0), Matrix B: row 1, col 1 [B₁₁] (e.g. 5.0), Matrix B: row 1, col 2 [B₁₂] (e.g. 2.0), Matrix B: row 2, col 1 [B₂₁] (e.g. 3.0), and Matrix B: row 2, col 2 [B₂₂] (e.g. 1.0). Results update instantly as you type — adjust any value to compare scenarios.

The Formula

Matrix multiplication & linear algebra equations: Product Entry: C_ij = Σ_k=1^m A_ik B_kj = A_i1B_1j + A_i2B_2j + + A_imB_mj 2×2 Matrices: pmatrix a & b c & d pmatrix pmatrix e & f g & h pmatrix = pmatrix ae + bg & af + bh ce + dg & cf + dh pmatrix Trace: tr(C) = Σ_i=1^n C_ii Multiplicative Property: (A × B) = (A) × (B)-Commutative Property: A × B B × A

Worked Example

For example, multiplying Matrix by Matrix 5) + (3)(3) = 10 + 9 = 19; 2) + (3)(1) = 4 + 3 = 7; 5) + (4)(3) = 5 + 12 = 17; 2) + (4)(1) = 2 + 4 =

  • The resulting matrix is with tr(C) = 25 and (C) = (19)(6) - (7)(17) = 114 - 119 = -5 ((A) = 5, (B) = -1 5 × -1 = -5).

Understanding Your Result

US tipping norms (2024): Full-service restaurants 18–20% is standard, 15% acceptable for basic service, 25%+ for exceptional service. Counter service and takeout: 0–10% discretionary. Food delivery: 15–20% of order subtotal, minimum 3–

  • Bar tabs: 1–2 per drink or 15–20% of total. Hotel housekeeping: 2–5 per night. Rideshare: 15–20%. Pre-tax vs. post-tax tipping: the difference is typically 1–2% of total tip — tipping on pre-tax is traditional; post-tax is increasingly common in digital prompts.

💡 Mathematical Rigor & Applied Context

  • This calculator applies exact mathematical definitions following conventions established by NIST and international standards bodies.
  • Rounding errors accumulate across multi-step calculations. For precision-critical work, maintain extra significant figures through all intermediate steps.
  • Many mathematical concepts have multiple valid formulations — if a result seems unexpected, verify which convention or definition applies to your context.
  • Dimensional analysis (unit tracking) is the fastest way to catch formula errors. Every term in an equation must have consistent, compatible units.
  • Numerical methods used in digital calculators introduce floating-point precision limits (~15 significant digits for IEEE 754 double precision).
  • For statistical and probabilistic calculations, always specify whether you are working with population parameters or sample statistics — formulas differ.
  • Visualizing a problem geometrically or testing with known boundary values (zero, infinity, negative) reveals hidden errors faster than algebraic checking.
  • When in doubt, validate your result against a simplified hand calculation or a published worked example from a textbook or standards document.

Results are for informational and educational purposes only. Always verify critical decisions with a qualified professional.

❓ Frequently Asked Questions

How do you multiply two matrices?

Take the dot product of each row in the first matrix with each column in the second matrix: Row i of Matrix A multiplied element-by-element with Column j of Matrix B and summed together.

Can you multiply any two matrices?

No. Matrix multiplication is only possible if the number of columns in the first matrix equals the number of rows in the second matrix.

Is matrix multiplication commutative?

No. Matrix multiplication is non-commutative; in general, A × B does not equal B × A.

What is the trace of a matrix?

The trace of a square matrix is the sum of the elements along its main diagonal (top-left to bottom-right): tr(A) = A₁₁ + A₂₂ + ... + Aₙₙ.

What is the determinant property of multiplied matrices?

The determinant of the product of two square matrices equals the product of their individual determinants: det = det(A) × det(B).

Try Other Calculators