Algebra & Calculus

Matrix Product, Transpose & Trace Calculator

Multiply conformable rectangular matrices and inspect the transpose of the first matrix.

How the calculation works

Product entry C(i,j) = sum over k of A(i,k) × B(k,j). A transpose exchanges row and column indices. Trace is the sum of a square matrix’s diagonal entries.

Worked example

Example inputs — Rows in A: 2; Columns in A / rows in B: 2; Columns in B: 2; A entries in row-major order: 1 2 3 4; B entries in row-major order: 5 6 7 8. Expected results — Matrix product A×B: 19, 22 43, 50 rows; Transpose of A: 1, 3 2, 4 rows; Trace of product if square: 69.

Assumptions and limits

Numerical educational calculation with finite real inputs. Rounding, ill-conditioning and the stated model domain can limit accuracy; this does not manipulate arbitrary symbolic expressions. Each dimension is 1–12. Rows are separated in the result; inputs are flat row-major lists. Matrix multiplication is order-dependent and differs from elementwise multiplication. A nonsquare product has no trace.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.