Matrix Transpose Calculator

Transpose a matrix (swap rows and columns).

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a matrix and get its transpose, where rows become columns. A 2×3 matrix [1 2 3; 4 5 6] becomes the 3×2 matrix [1 4; 2 5; 3 6].

How to use

1
Step 1
Type the matrix with one row per line.
2
Step 2
Choose transpose.
3
Step 3
Press Calculate.

How it works

The transpose Aᵀ puts the entry in row i, column j of A into row j, column i. The shape flips from m×n to n×m. A square matrix equal to its own transpose is symmetric, and (AB)ᵀ = BᵀAᵀ.

(Aᵀ)ᵢⱼ = Aⱼᵢ      (AB)ᵀ = BᵀAᵀ

Worked example

A 2×3 matrix

Input
[1 2 3; 4 5 6]
Output
[1 4; 2 5; 3 6]
Walkthrough
The first row 1 2 3 becomes the first column, and the second row 4 5 6 becomes the second column.

Limitations

  • Any rectangular matrix works, but every row must have the same number of entries.

Questions

What is the transpose of [1 2 3; 4 5 6]?
[1 4; 2 5; 3 6].
Does the transpose change the shape?
Yes. An m×n matrix becomes n×m.
When is a matrix symmetric?
When it equals its own transpose, so Aᵢⱼ = Aⱼᵢ.

Features

  • Non-square matrices
  • Steps shown
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Derivative as a concept

    Khan Academy

    When general calculators hand off to calculus tools.

    Watch on YouTube
  • Finding a percentage

    Khan Academy

    Percentage basics used across many calculator pages.

    Watch on YouTube