ZestCalc

Matrix Transpose Calculator

Flip a matrix over its diagonal, exactly, up to 12×12. See rows become columns, and find out if it is symmetric or skew-symmetric.

Matrix

Enter a matrix of any shape, or start from an example.

Up to 12 rows and 12 columns.

Use integers, decimals, or fractions such as 1/3. Paste rows from a spreadsheet or a Python list into any cell.

Input

A=[123456]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}

Transpose

Updates as you type.

AT=A^T =
142536

2×3 becomes 3×2.

Only a square matrix can be symmetric or skew-symmetric, since the shape changes otherwise.

Rows become columns

AAATA^T

Entries with a dashed border are on the main diagonal, so they keep their row and column.

An entry at row i, column j lands at row j, column i, which reflects the matrix across its main diagonal. Step through to move one row at a time.

Step 0 of 2

What the transpose is

The transpose of AA, written ATA^T, swaps rows and columns. The entry at row ii, column jj moves to row jj, column ii:

(AT)ij=aji(A^T)_{ij} = a_{ji}

So an m×nm \times n matrix becomes n×mn \times m. Picture it as a reflection across the main diagonal. Entries on the diagonal stay where they are, and the rest trade places with their mirror image.

Symmetric and skew-symmetric matrices

A square matrix is symmetric if AT=AA^T = A, so that it mirrors itself across the diagonal. Covariance matrices and distance tables are symmetric.

It is skew-symmetric if AT=−AA^T = -A. Each entry is the negative of its mirror image, and so the diagonal must be all zeros. Only the zero matrix is both.

Rules worth knowing

  • Twice returns. (AT)T=A(A^T)^T = A.
  • Sums. (A+B)T=AT+BT(A + B)^T = A^T + B^T. Try it with the Matrix Addition and Subtraction Calculator.
  • Products reverse. (AB)T=BTAT(AB)^T = B^T A^T, which keeps the sizes compatible. The Matrix Multiplication Calculator can confirm it.
  • Determinant and rank don't change. det⁡AT=det⁡A\det A^T = \det A, and a matrix and its transpose have the same rank. That's the idea behind the Matrix Rank Calculator finding row space and column space of equal size.