Skip to content
MasterMath

Transpose Matrix Calculator

Swap rows for columns. The element at (i, j) ends up at (j, i), and an m×n matrix becomes n×m.

Transposed matrix

—

Transposed matrix—
Dimensions—
Is it symmetric?—
Trace—

The transposed matrix

RowValues

How this was worked out

    The formula

    (Aᵀ)ᵢⱼ = Aⱼᵢ

    What it means

    Transposing reflects a matrix across its main diagonal. It is the simplest matrix operation there is, and it turns up everywhere: in dot products, in least squares, and in the definition of symmetric and orthogonal matrices.

    How to do it by hand

    1. Take the first row and write it as the first column
    2. Repeat for every row
    3. An m×n matrix becomes n×m
    4. The diagonal stays where it is

    What is worth knowing

    Two properties are worth memorising because they surprise people. Transposing a product reverses the order: (AB)ᵀ = BᵀAᵀ, not AᵀBᵀ. And transposing twice gets you back where you started. A matrix that equals its own transpose is symmetric, which forces it to be square and gives it real eigenvalues — a fact that underpins a great deal of statistics, since covariance matrices are always symmetric. Multiplying any matrix by its own transpose also always produces a symmetric result, which is the trick behind the normal equations in least-squares fitting.

    Frequently asked questions

    What does transposing do?

    It swaps rows for columns, so the element at (i, j) moves to (j, i). An m×n matrix becomes n×m.

    What is a symmetric matrix?

    One that equals its own transpose. It has to be square, and it always has real eigenvalues.

    What is the transpose of a product?

    The product of the transposes in reverse order: (AB)ᵀ = BᵀAᵀ. Getting the order wrong is a common slip.

    Is the trace affected?

    No. The diagonal does not move when you transpose, so the trace is unchanged.