Matrix Calc. › Matrix transpose calculator

Matrix transpose calculator

The transpose swaps rows and columns. It is the simplest operation on a matrix, and the one most often typed wrong by hand — an entry that moves to (j, i) instead of (i, j) is invisible until the product comes out wrong.

What the transpose does

Every entry at row i, column j moves to row j, column i:

(Aᵀ)ᵢⱼ = Aⱼᵢ

The first row of A becomes the first column of Aᵀ, the second row becomes the second column, and so on. Nothing is added, removed or scaled — the matrix is only reflected along its main diagonal, so the entries on that diagonal never move at all.

Because rows and columns swap roles, an m × n matrix becomes n × m. That is the part that trips people up: a tall matrix comes back wide.

The rules that follow from the definition

(Aᵀ)ᵀ = A
(A + B)ᵀ = Aᵀ + Bᵀ
(AB)ᵀ = Bᵀ Aᵀ

The last one reverses the order, and it is the one worth remembering. It is not a quirk of notation: for the product Bᵀ Aᵀ to even be computable, the shapes only line up when the factors are swapped back. The same reversal appears in the inverse rule, (AB)⁻¹ = B⁻¹ A⁻¹, for the same reason.

The transpose also carries the determinant unchanged — det(Aᵀ) = det A — because reflecting across the diagonal does not change the volume the matrix scales.

Symmetric and skew-symmetric matrices

A matrix equal to its own transpose, A = Aᵀ, is symmetric: it is a mirror image of itself across the main diagonal. A matrix with Aᵀ = −A is skew-symmetric, which forces every diagonal entry to be zero — a value equal to its own negative is only 0.

Symmetric matrices matter because their eigenvalues are always real and their eigenvectors can be chosen orthogonal. That is the case where the eigen-directions are genuinely perpendicular, which is why the eigen-decomposition of a symmetric matrix is the well-behaved one.

Worked example

A, 3 rows × 2 columns
⎡ 1  2 ⎤
⎢ 3  4 ⎥
⎣ 5  6 ⎦

Aᵀ, 2 rows × 3 columns
⎡ 1  3  5 ⎤
⎣ 2  4  6 ⎦

row 1 → column 1   (1, 2)
row 2 → column 2   (3, 4)
row 3 → none: 2 columns

Follow one entry all the way: A₂₁ = 3 is in row 2, column 1, so it lands at row 1, column 2 of the transpose — (Aᵀ)₁₂ = 3. Reading it back off the written-out matrix above confirms it.

Notice the shape changed from 3×2 to 2×3. A transpose is not a rearrangement inside a fixed box; the box itself re-orients.

Why it is used

  • Least squares. The normal equations that fit a line to data are AᵀA x = Aᵀ b — the transpose is what turns an unsolvable overdetermined system into a solvable square one.
  • Dot products. xᵀy is how a dot product is written in matrix form, and Aᵀy is the standard way to project onto a column space.
  • Orthogonality checks. A matrix is orthogonal exactly when QᵀQ = I, which makes Qᵀ its inverse and rotation cheap to undo.
  • Symmetry tests. Aᵀ next to A is the fastest way to see whether a matrix is symmetric before factoring it.

What the calculator does

It swaps the entries and reports the new dimensions, so the shape change is visible rather than implied. Nothing else is computed — a transpose has no steps to hide, which is precisely why a typo in one is so easy to miss.

Questions

Does the transpose change the determinant?

No. det(Aᵀ) = det A, because reflecting across the diagonal preserves the signed volume. For rectangular matrices neither exists.

What happens to a non-square matrix?

Its dimensions swap. An m × n matrix becomes n × m, which is usually the whole point of transposing it — the product you need may only be defined after the flip.

Is the transpose the same as the inverse?

Only for orthogonal matrices. The transpose needs no division and always exists; the inverse needs a non-zero determinant and often does not.

Why does the product rule reverse the order?

Because the shapes demand it. (AB)ᵀ has the shape of BᵀAᵀ, not AᵀBᵀ — multiplying the other way round is often not even defined.

Can I transpose the result again?

Yes. Transposing twice returns the original matrix exactly, with its original shape.

Flip one now.

Free, offline, any shape.