Free Online Utility • MATH Studio • Exact BigInt Engine

Multiply Matrices

Multiply two compatible matrices A × B ((m×k)·(k×n) → m×n) instantaneously with inner-dimension validation, Swap A ↔ B button, determinant, Frobenius norm, and multi-format export.

MATRIX PRODUCT A × B
Multiply Matrices

        
Exact client-side linear algebra engine Instant

Session Calculation Log

No entries recorded in this session yet.

Complete Technical Guide to Multiply Matrices

Matrix multiplication composes linear transformations: applying B followed by A corresponds to the single product matrix C = A × B.

Paste any two compatible matrices (such as a 2×3 and a 3×2 matrix yielding a 2×2 product), check inner dimensions live, and export to Aligned Grid, CSV, JSON, NumPy, or LaTeX.

Row-by-Column Matrix Product

(A × B)_{ij} = Σ_{t=1..k} A_{it} · B_{tj}
Dimensions: (m × k) · (k × n) = (m × n)   [non-commutative: AB ≠ BA in general]

Every output cell (i, j) is the dot product of row i of A with column j of B, requiring the column count of A to match the row count of B.

How to Use Multiply Matrices

  1. 1Configure dimensions, parameters, or paste your input matrix using spaces, commas, semicolons, or JSON arrays.
  2. 2View instant live results along with key linear algebra invariants (dimensions, trace, determinant, or norms).
  3. 3Switch output format between Aligned Grid, CSV, JSON, NumPy np.array, and LaTeX bmatrix, then copy or download.

Reference Examples & Worked Benchmarks

PropertyValue / FormulaSignificance
Inner Dimension Rule(m×k)·(k×n) → m×ncols(A) must equal rows(B)
Non-CommutativeAB ≠ BA in generalUse Swap A ↔ B to compare
Determinantdet(AB) = det(A)·det(B)For square n×n matrices

Practical Applications & Engineering Workflows

Linear Algebra & Data Science

Perform verified multiply matrices computations for coursework, ML prototyping, and physics simulations.

LaTeX & Python Export

Paste cleanly formatted bmatrix markup into academic papers or np.array() blocks directly into Python.

Accuracy, Edge Cases & Best Practices

  • All matrix operations execute locally in JavaScript with IEEE-754 double precision and automatic near-zero cleanup.

All calculations execute locally inside your browser using JavaScript with zero server round-trips, guaranteeing instant responsiveness and complete data privacy.

Frequently Asked Questions

Why does multiplying a 2×3 matrix by a 3×2 matrix give a 2×2 result?
The inner dimension (3) is summed over in each dot product, leaving the outer dimensions 2 rows by 2 columns.
Is AB always equal to BA?
No—matrix multiplication is generally non-commutative, and BA may even have completely different dimensions or be undefined.