Skip to content
ToolUlkaa Tool
All tools

Mathematics

Percentage CalculatorFraction CalculatorEquation SolverTensorMatrix CalculatorUnit ConverterNumber Base ConverterDerivative CalculatorIntegral CalculatorLimit CalculatorAlgebra CalculatorQuadratic Formula CalculatorFactoring CalculatorLogarithm CalculatorSquare Root CalculatorLong Division CalculatorSignificant Figures CalculatorLCM and GCF CalculatorPrime Factorization CalculatorTriangle CalculatorPythagorean Theorem CalculatorSlope CalculatorArea CalculatorVolume CalculatorScientific CalculatorGraphing Calculator

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Mathematics

Matrix Multiplication Calculator

Multiply matrix A by matrix B.

Matrix A
×
Matrix B (3 ×
)

Enter integers, decimals or fractions such as 3/4. Blank cells count as 0.

Show decimals instead of fractions, in the steps too

A × B

AB=[277−7742127]AB=\begin{bmatrix} 2 & 7 & 7 \\ -7 & 7 & 4 \\ 2 & 12 & 7 \end{bmatrix}AB=​2−72​7712​747​​

Steps

  1. 1Check the sizes
    A: 3×3,B: 3×3A:\ 3\times 3,\quad B:\ 3\times 3A: 3×3,B: 3×3
    ↓
    AB: 3×3AB:\ 3\times 3AB: 3×3

    The columns of A must equal the rows of B; the product has the rows of A and the columns of B.

  2. 2Row times column
    cij=∑kaikbkjc_{ij}=\sum_{k} a_{ik}b_{kj}cij​=k∑​aik​bkj​
    ↓
    AB=[277−7742127]AB=\begin{bmatrix} 2 & 7 & 7 \\ -7 & 7 & 4 \\ 2 & 12 & 7 \end{bmatrix}AB=​2−72​7712​747​​

    The full working of every entry is in the section below.

Every entry of the product (9)

Every entry of the product

  1. 1Entry (1, 1)
    c11c_{11}c11​
    ↓
    2⋅1+1⋅3+3⋅(−1)=22\cdot 1+1\cdot 3+3\cdot \left(-1\right)=22⋅1+1⋅3+3⋅(−1)=2
  2. 2Entry (1, 2)
    c12c_{12}c12​
    ↓
    2⋅0+1⋅1+3⋅2=72\cdot 0+1\cdot 1+3\cdot 2=72⋅0+1⋅1+3⋅2=7
  3. 3Entry (1, 3)
    c13c_{13}c13​
    ↓
    2⋅2+1⋅0+3⋅1=72\cdot 2+1\cdot 0+3\cdot 1=72⋅2+1⋅0+3⋅1=7
  4. 4Entry (2, 1)
    c21c_{21}c21​
    ↓
    0⋅1+(−1)⋅3+4⋅(−1)=−70\cdot 1+\left(-1\right)\cdot 3+4\cdot \left(-1\right)=-70⋅1+(−1)⋅3+4⋅(−1)=−7
  5. 5Entry (2, 2)
    c22c_{22}c22​
    ↓
    0⋅0+(−1)⋅1+4⋅2=70\cdot 0+\left(-1\right)\cdot 1+4\cdot 2=70⋅0+(−1)⋅1+4⋅2=7
  6. 6Entry (2, 3)
    c23c_{23}c23​
    ↓
    0⋅2+(−1)⋅0+4⋅1=40\cdot 2+\left(-1\right)\cdot 0+4\cdot 1=40⋅2+(−1)⋅0+4⋅1=4
  7. 7Entry (3, 1)
    c31c_{31}c31​
    ↓
    1⋅1+2⋅3+5⋅(−1)=21\cdot 1+2\cdot 3+5\cdot \left(-1\right)=21⋅1+2⋅3+5⋅(−1)=2
  8. 8Entry (3, 2)
    c32c_{32}c32​
    ↓
    1⋅0+2⋅1+5⋅2=121\cdot 0+2\cdot 1+5\cdot 2=121⋅0+2⋅1+5⋅2=12
  9. 9Entry (3, 3)
    c33c_{33}c33​
    ↓
    1⋅2+2⋅0+5⋅1=71\cdot 2+2\cdot 0+5\cdot 1=71⋅2+2⋅0+5⋅1=7
  1. Tools
  2. Mathematics
  3. Matrix Calculator
  4. Matrix Multiplication Calculator

About Matrix Multiplication Calculator

This calculator multiplies two matrices. Set the size of A and the number of columns of B, and the rows of B follow automatically, so the product is always defined. A 2 × 3 times a 3 × 2 gives a 2 × 2. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

Each entry of the product is a row of A multiplied entry by entry with a column of B and summed. For [[1, 2, 3], [4, 5, 6]] times [[7, 8], [9, 10], [11, 12]], the top-left entry is 1×7 + 2×9 + 3×11 = 58 and the full product is [[58, 64], [139, 154]].

Order matters. A times B is usually not equal to B times A, and one of the two products may not exist at all: a 2 × 3 times a 2 × 3 is undefined. Entries can be fractions or decimals, and results are exact fractions unless you tick the decimal option.

How to use Matrix Multiplication Calculator

  1. 1Choose an operation, such as Determinant, Inverse or A × B.
  2. 2Set the size of matrix A with the row and column selectors. Square operations use a square grid, and two-matrix operations also show matrix B.
  3. 3Type the entries. Use integers, decimals or fractions like 3/4, and leave a cell blank for zero.
  4. 4The tool opens on a worked example. Read the result, typeset as a determinant, a rank or a matrix.
  5. 5Read the steps for the working, and use the decimal switch if you would rather see decimals than fractions.

Features

  • Grids up to 6 × 6, with rows and columns set separately for non-square matrices.
  • Addition, subtraction and multiplication of two matrices, with a clear message when the sizes do not match.
  • Determinant with the 2 × 2 rule, first-row expansion for 3 × 3 and row reduction for larger matrices.
  • Inverse by row-reducing [A | I], with a plain message when the matrix is singular.
  • Rank and reduced row echelon form with each row operation listed.
  • Adjugate and cofactor matrix for square matrices.
  • Eigenvalues from the characteristic polynomial, including complex ones, with eigenvectors: exact for rational eigenvalues and numeric (labelled) for irrational ones.
  • LU decomposition (with row swaps when a pivot is zero) and QR decomposition by Gram-Schmidt, exact with square roots.
  • Fraction entries and fraction results, with a switch to decimals that also applies to the steps.
  • Transpose of any matrix.

Matrix product

The entry in row i and column j of AB is the dot product of row i of A and column j of B.

(AB)ᵢⱼ = Σₖ Aᵢₖ × Bₖⱼ
(m × n) × (n × p) = (m × p)

Worked examples

  • [[1, 2], [3, 4]] × [[5, 6], [7, 8]] → gives [[19, 22], [43, 50]]

    Top-left: 1×5 + 2×7 = 19. Bottom-right: 3×6 + 4×8 = 50.

  • [[1, 2, 3], [4, 5, 6]] × [[7, 8], [9, 10], [11, 12]] → gives [[58, 64], [139, 154]]

    A 2 × 3 times a 3 × 2 is 2 × 2. Bottom-left: 4×7 + 5×9 + 6×11 = 139.

Privacy: how it works

  • All the arithmetic runs in your browser tab. Your matrices are not sent to Ulkaa or anyone else, and there is nothing to sign in to.

Tips

  • Write fractions as 3/4 rather than 0.75 if you want results to stay exact.
  • Leave entries blank for zero instead of typing every zero in a large grid.
  • To solve a linear system, put the coefficients and constants in one grid and use RREF, or use the equation solver.
  • Multiplication is not commutative. To check AB against BA, swap which matrix is A and which is B.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your matrices are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your matrices are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

How do I multiply matrices?

Take each row of the first matrix and each column of the second, multiply matching entries and add them. That sum is one entry of the product.

Is matrix multiplication commutative?

No. A times B is usually not equal to B times A, and one of the two products may not exist at all.

More Matrix Calculator pages

  • Matrix CalculatorAdd, multiply, invert, decompose (LU, QR) and analyse matrices up to 6 × 6, with typeset working.
  • Matrix Determinant CalculatorFind the determinant of any square matrix up to 6 × 6.
  • Inverse Matrix CalculatorFind A⁻¹ for a square matrix, or learn why it does not exist.
  • Matrix Addition CalculatorAdd or subtract two matrices of the same size.
  • Matrix Transpose CalculatorSwap the rows and columns of a matrix.
  • Matrix Rank CalculatorFind how many independent rows a matrix has.
  • Eigenvalue CalculatorFind the eigenvalues of a square matrix and see the characteristic polynomial.
  • 2x2 Matrix Determinant CalculatorEnter a, b, c and d to get ad − bc.
  • 3x3 Matrix Determinant CalculatorExpand a 3 × 3 determinant along the first row with every minor shown.
  • 3x3 Inverse Matrix CalculatorInvert a 3 × 3 matrix with every row operation listed.
  • RREF CalculatorRow-reduce any matrix up to 6 × 6 to reduced row echelon form.
  • Adjugate and Cofactor Matrix CalculatorGet the cofactor matrix, its transpose the adjugate, and the determinant.
  • LU Decomposition CalculatorFactor a square matrix into a lower and an upper triangular matrix, with exact fractions.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account