MatrixCalc

Transpose matrix calculator

Transpose any matrix up to 50×50 — rows become columns and columns become rows. Works on rectangular matrices, with the result ready to paste back in for the next operation.

Matrix A
rows: 3
cols: 3
Matrix B
rows: 3
cols: 3
Operations
Result
Pick an operation to see the result here. Errors will show up in this area.

Tips: adjust sizes (max 50×50). For A×B, cols(A)=rows(B). det/inverse/trace/power require square matrices.

React, Tailwind & shadcn/ui. No external math deps. — English

Transposing reflects a matrix across its main diagonal: the entry at row i, column j moves to row j, column i. Press Transpose A and the flipped matrix appears. It is the cheapest operation on this site and one of the most used, because so many formulas are stated in terms of it.

What transposing does

An m×n matrix becomes n×m, so the operation is defined for every shape — no squareness required. A column vector becomes a row vector, which is why the notation xᵀy is the standard way to write a dot product.

Three identities are worth committing to memory, because they come up constantly and two of them catch people out. Transposing twice returns the original: (Aᵀ)ᵀ = A. Transposing a sum distributes: (A + B)ᵀ = Aᵀ + Bᵀ. But transposing a product reverses it: (A·B)ᵀ = Bᵀ·Aᵀ, not AᵀBᵀ. The reversal is forced by the shapes — if A is 2×3 and B is 3×4, then Aᵀ is 3×2 and Bᵀ is 4×3, and only Bᵀ·Aᵀ has dimensions that agree.

Worked example

123
456
ᵀ =
14
25
36

The first row became the first column. A matrix equal to its own transpose is called symmetric, and symmetric matrices are unusually well behaved: their eigenvalues are always real, and they are the ones Cholesky decomposition applies to.

Common mistakes

  • Writing (A·B)ᵀ = Aᵀ·Bᵀ. The order reverses. This is the single most common slip involving transposes.
  • Expecting the diagonal to move. Entries where i = j stay exactly where they are; only the off-diagonal ones swap.
  • Assuming the shape is preserved. A 2×5 matrix transposes to 5×2, which may break the multiplication you were about to do.
  • Confusing transpose with inverse. They coincide only for orthogonal matrices, where Aᵀ = A⁻¹. In general they are unrelated.

Frequently asked questions

Can I transpose a non-square matrix?
Yes. Transposition is defined for every shape; an m×n matrix becomes n×m.
What is a symmetric matrix?
One that equals its own transpose, so the entry at row i column j matches the one at row j column i. Covariance matrices and distance matrices are symmetric by construction.
Does transposing change the determinant?
No. det(Aᵀ) = det(A) for every square matrix, which is why any statement about the rows of a determinant holds equally for its columns.
Does transposing change the rank?
No. Row rank and column rank are always equal, so a matrix and its transpose have the same rank.

Want the full explanation? Read the guide: How matrix multiplication works

Other calculators