Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Matrix Transpose


Symbolic visualization of A → A^T — four mental models for the same operation.

AAT·3×4|Cell-by-cell
Dimensions of A?A is the input matrix. A^T has the swapped shape: if A is m×n, then A^T is n×m. There are no shape restrictions on transpose — any matrix can be transposed.
A3×4AT4 × 3
A3×4
a1,1
a1,2
a1,3
a1,4
a2,1
a2,2
a2,3
a2,4
a3,1
a3,2
a3,3
a3,4
AT4×3
?
?
?
?
?
?
?
?
?
?
?
?
Step 1 / 14

Step explanations

1Cell-by-cell — strategy overview
Sweep A in row-major order. For each entry ai,j, place it at position [j, i] of AT. 12 steps total.












Key Terms

Transpose — the operation that turns an m×nm \times n matrix AA into an n×mn \times m matrix ATA^T by swapping rows and columns: (AT)i,j=aj,i(A^T)_{i,j} = a_{j,i}.

Main diagonal — the entries ai,ia_{i,i} where row index equals column index. Defined fully only for square matrices.

Row-column swap — the defining rule of transposition: the entry at row ii, column jj of AA moves to row jj, column ii of ATA^T.

Diagonal reflection — the geometric view of transposition as a mirror across the main diagonal of AA. For non-square AA, this becomes an abstract reflection axis.

Symmetric matrix — a square matrix that equals its own transpose: A=ATA = A^T. Equivalently, ai,j=aj,ia_{i,j} = a_{j,i} for all i,ji, j.

Involution — an operation that undoes itself. Transpose is involutive: (AT)T=A(A^T)^T = A.
Learn More

Getting Started with the Visualizer

Choose a shape for AA and a mental model for how to build ATA^T, then watch the operation animate cell by cell.

• Open the Size tab to set rows and columns of AA — each ranges from 1 to 5. The shape of ATA^T updates automatically beside the steppers
• Open the Method tab to pick one of four equivalent strategies for constructing ATA^T
• A summary strip at the right of the tab bar always shows the current shape and active method
• The scene player below the controls supports playback speed, step indicator, and a scrollable step log

Every method produces the identical ATA^T — they differ only in how the operation is broken into steps and what is highlighted at each step.
Learn More

The Four Methods

The Method tab offers four mental models of the same operation, each useful in a different context.

Cell-by-cell — sweeps AA in row-major order and places each ai,ja_{i,j} at position [j,i][j, i] of ATA^T. Total steps: m×nm \times n. This is the textbook definition view
Row-as-column — moves a whole row of AA into the corresponding column of ATA^T in one step. Total steps: mm. Best for seeing rows become columns
Column-as-row — symmetric to row-as-column. Moves each column of AA into a row of ATA^T. Total steps: nn
Diagonal reflection — treats transpose as a single geometric mirror across the main diagonal (or an abstract diagonal-like axis for rectangular AA). One conceptual step

The diagonal reflection card is marked geometric because it is the only purely visual method — no per-cell mechanics, just one reflection.
Learn More

Reading the Scene Player

Each animated scene combines highlights, arrows, and a caption.

Primary highlight on AA marks the source row, column, or cell currently being moved
Accent highlight on ATA^T marks the destination
Curved arrows connect source to destination — in fan-out methods (row-as-column, column-as-row), arrows alternate above and below for clarity
• The title shows the cell-level or row/column-level transformation in math notation
• The formula caption below describes the step in words

In the diagonal reflection method, no arrows appear. Instead, a dashed diagonal axis is drawn through AA and ATA^T, with cells above and below the axis colored differently so you can see the reflection at a glance.
Learn More

Square vs Rectangular Matrices

The diagonal reflection method behaves differently for square and non-square AA, and the visualizer makes this explicit.

• For a square matrix (m=nm = n), the main diagonal is a real geometric line. Reflection across it swaps ai,ja_{i,j} with aj,ia_{j,i} and fixes the diagonal entries in place
• For a rectangular matrix (mnm \neq n), a strict main diagonal only extends through the min(m,n)×min(m,n)\min(m,n) \times \min(m,n) subregion. The visualizer draws a *diagonal-like* reflection axis through that subregion and explains that the swap rule still applies to every cell, including those in the overhang

Try a 3×43 \times 4 matrix with the diagonal reflection method to see the abstract axis, then switch to 3×33 \times 3 to see the true diagonal.
Learn More

What the Transpose Is

The transpose of an m×nm \times n matrix AA is the n×mn \times m matrix ATA^T defined by the row-column swap:

(AT)i,j=aj,i\left(A^T\right)_{i,j} = a_{j,i}


Geometrically, transposition is reflection across the main diagonal. Algebraically, it converts row vectors into column vectors and vice versa. The shape always flips: if AA is wide, ATA^T is tall, and vice versa.

Transpose has no shape restrictions — any matrix can be transposed, unlike addition (which requires matched shapes) or multiplication (which requires compatible inner dimensions).

For comprehensive coverage of matrix operations theory, see matrix operations.
Learn More

Key Properties

Transpose satisfies several algebraic identities that are central to linear algebra.

Involution: (AT)T=A(A^T)^T = A — transposing twice returns the original
Sum: (A+B)T=AT+BT(A + B)^T = A^T + B^T — transpose distributes over addition
Scalar multiplication: (kA)T=kAT(kA)^T = k A^T — scalars pass through
Product (order reverses): (AB)T=BTAT(AB)^T = B^T A^T — note the swap, which mirrors how shape compatibility flips
Inverse and transpose commute: (A1)T=(AT)1(A^{-1})^T = (A^T)^{-1} for invertible AA
Determinant invariance: det(AT)=det(A)\det(A^T) = \det(A) for square AA

The product rule is the trickiest: (AB)TATBT(AB)^T \neq A^T B^T in general. The order must reverse.
Learn More

Symmetric and Skew-Symmetric Matrices

Two important classes of square matrices are defined entirely through the transpose.

A matrix is symmetric if A=ATA = A^T, meaning ai,j=aj,ia_{i,j} = a_{j,i} for all i,ji, j. Symmetric matrices have all the properties one would expect from "matrices that look the same after a mirror reflection": real eigenvalues, orthogonal eigenvectors, and a guaranteed orthogonal diagonalization.

A matrix is skew-symmetric (or antisymmetric) if AT=AA^T = -A, meaning ai,j=aj,ia_{i,j} = -a_{j,i}. Skew-symmetric matrices have zeros on the main diagonal, since ai,i=ai,ia_{i,i} = -a_{i,i} forces ai,i=0a_{i,i} = 0.

Every square matrix decomposes uniquely into a symmetric and skew-symmetric part: A=12(A+AT)+12(AAT)A = \frac{1}{2}(A + A^T) + \frac{1}{2}(A - A^T).
Learn More

Worked Example

Take AA as a 2×32 \times 3 matrix:

A=(123456)A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}


Then ATA^T is 3×23 \times 2, with rows and columns swapped:

AT=(142536)A^T = \begin{pmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{pmatrix}


Reading off the rule: a1,1=1a_{1,1} = 1 stays at position (1,1)(1,1) — it sits on the would-be diagonal. The entry a1,2=2a_{1,2} = 2 moves to position (2,1)(2,1) of ATA^T. The entry a2,3=6a_{2,3} = 6 moves to position (3,2)(3,2) of ATA^T.

Set the visualizer to a 2×32 \times 3 shape and try each method to see this transformation animated four different ways.
Learn More

Common Mistakes

Transpose is a simple operation, but a few mistakes recur.

Forgetting the order reverses in a product(AB)T=BTAT(AB)^T = B^T A^T, not ATBTA^T B^T. The swap is essential and follows from shape compatibility
Confusing transpose with inverseATA^T and A1A^{-1} are different operations; they coincide only for orthogonal matrices, where AT=A1A^T = A^{-1}
Assuming the diagonal is preserved for rectangular matrices — there is no true diagonal when mnm \neq n, only a diagonal-like axis through the square subregion
Confusing transpose with conjugate transpose — for complex matrices, the conjugate transpose (or Hermitian transpose) AA^* also conjugates each entry. For real matrices the two coincide
Writing $A^T$ when the matrix isn't named $A$ — the notation MTM^T, XTX^T, etc., uses whatever symbol names the matrix
Learn More

Related Concepts

Matrix operations — the broader family that includes addition, subtraction, multiplication, transpose, and inversion.

Matrix addition — element-wise combination of two matrices of the same shape.

Matrix multiplication — non-element-wise operation where transpose plays a role in the product rule (AB)T=BTAT(AB)^T = B^T A^T.

Symmetric matrices — square matrices satisfying A=ATA = A^T, fundamental in spectral theory and optimization.

Orthogonal matrices — square matrices satisfying ATA=IA^T A = I, equivalent to AT=A1A^T = A^{-1}.

Inverse matrix — the operation A1A^{-1} such that AA1=IA A^{-1} = I; commutes with transpose.

Conjugate transpose — the complex analogue of transpose, combining transposition with element-wise conjugation.

Determinant — invariant under transpose: det(AT)=det(A)\det(A^T) = \det(A).
Learn More