Rectangular Matrix: Definition, Order & Examples

#Algebra
TL;DR
A rectangular matrix is any matrix whose number of rows is not equal to its number of columns, written with order m × n where m ≠ n. It can be added or subtracted with another matrix of the same order and multiplied when dimensions are compatible, but it has no determinant and no inverse, because those are defined only for square matrices.
BT
Bhanzu TeamLast updated on September 9, 202612 min read

What Is A Rectangular Matrix?

A rectangular matrix is a matrix in which the number of rows is not equal to the number of columns. Its order is written as m × n, where m counts the rows, n counts the columns, and m ≠ n. This is the point that separates it from a square matrix, where the two counts are equal.

Here is a matrix with two rows and three columns, so its order is 2 × 3:

$$A = \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \end{bmatrix}$$

Because 2 ≠ 3, matrix $A$ is rectangular. Each number inside is an entry, named $a_{ij}$, where $i$ is the row and $j$ is the column, so $a_{23} = 6$ sits in row 2, column 3. The rule stays the same whichever way the imbalance runs: a 4 × 2 matrix (more rows than columns) and a 2 × 5 matrix (more columns than rows) are both rectangular.

What Is The Order Of A Rectangular Matrix?

The order of a matrix is the pair (rows × columns), and for a rectangular matrix the two numbers are always different. Order is read as "m by n", never multiplied out, so a 3 × 4 matrix has order "three by four" and holds $3 \times 4 = 12$ entries in total.

Reading the order correctly is the whole game for a rectangular matrix. It tells you which operations are allowed before you compute anything. Write the order under a matrix the moment you see it.

What Are Some Examples Of A Rectangular Matrix?

Any matrix where the row count and column count disagree qualifies. A few clear cases:

$$P = \begin{bmatrix} 8 & 1 \ 0 & 5 \ 2 & 7 \end{bmatrix}{3 \times 2} \qquad Q = \begin{bmatrix} 9 & 4 & 6 & 1 \end{bmatrix}{1 \times 4} \qquad R = \begin{bmatrix} 3 \ 5 \ 2 \end{bmatrix}_{3 \times 1}$$

$P$ has three rows and two columns. $Q$ has a single row and four columns. $R$ has three rows and a single column. All three are rectangular, because in each one the two counts are unequal.

Are Row And Column Matrices Rectangular?

Yes. A row matrix has order 1 × n and a column matrix has order n × 1, and as long as n is greater than 1, those two counts are unequal, so both are special cases of a rectangular matrix.

  • A row matrix such as $\begin{bmatrix} 9 & 4 & 6 & 1 \end{bmatrix}$ has one row and several columns (order 1 × 4).

  • A column matrix such as $\begin{bmatrix} 3 \ 5 \ 2 \end{bmatrix}$ has several rows and one column (order 3 × 1).

Students often picture a rectangular matrix as a wide block and forget these thin ones count too. A single row or a single column is still a rectangle, just a very flat or very narrow one.

How Do You Add Or Subtract Rectangular Matrices?

To add or subtract two rectangular matrices, they must have exactly the same order, and you combine the entries in matching positions. Same order in, same order out.

Take two matrices of order 2 × 3:

$$A = \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \end{bmatrix}, \qquad B = \begin{bmatrix} 7 & 8 & 9 \ 1 & 0 & 2 \end{bmatrix}$$

Adding them, position by position:

$$A + B = \begin{bmatrix} 1+7 & 2+8 & 3+9 \ 4+1 & 5+0 & 6+2 \end{bmatrix} = \begin{bmatrix} 8 & 10 & 12 \ 5 & 5 & 8 \end{bmatrix}$$

Subtraction works the same way, entry by entry. If the two orders differ, say a 2 × 3 and a 3 × 2, the sum is undefined, because there is no partner entry to pair with. Notice the counts alone do not save you here: a 2 × 3 and a 3 × 2 both hold six numbers, yet they still cannot be added, because the shapes do not line up.

How Do You Multiply Rectangular Matrices?

To multiply two matrices, the number of columns in the first must equal the number of rows in the second. If the first has order m × n and the second has order n × p, the product has order m × p. The two inner numbers must match; the two outer numbers give the size of the answer.

$$\underset{m \times n}{A} ; \times ; \underset{n \times p}{B} ; = ; \underset{m \times p}{AB}$$

Example 1: Multiply a 2 × 3 matrix by a 3 × 2 matrix.

Let $A$ be 2 × 3 and $C$ be 3 × 2:

$$A = \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \end{bmatrix}, \qquad C = \begin{bmatrix} 1 & 0 \ 0 & 1 \ 1 & 1 \end{bmatrix}$$

The inner numbers match (3 columns, then 3 rows), so the product exists and has order 2 × 2. Pair each row of $A$ with each column of $C$, multiply matching terms, and add:

$$AC = \begin{bmatrix} (1)(1)+(2)(0)+(3)(1) & (1)(0)+(2)(1)+(3)(1) \ (4)(1)+(5)(0)+(6)(1) & (4)(0)+(5)(1)+(6)(1) \end{bmatrix} = \begin{bmatrix} 4 & 5 \ 10 & 11 \end{bmatrix}$$

Final answer: $AC = \begin{bmatrix} 4 & 5 \ 10 & 11 \end{bmatrix}$, a 2 × 2 matrix.

Two rectangular matrices multiplied together can produce a square result, which is exactly what happened here. Reversing the order gives $CA$, an order 3 × 3 matrix, a completely different size. For the full method with larger cases, see multiplication of matrices.

What Is The Transpose Of A Rectangular Matrix?

The transpose of a rectangular matrix flips it across its main diagonal, turning every row into a column. If the original has order m × n, the transpose $A^{T}$ has order n × m. The shape swaps.

$$A = \begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \end{bmatrix}{2 \times 3} \qquad A^{T} = \begin{bmatrix} 1 & 4 \ 2 & 5 \ 3 & 6 \end{bmatrix}{3 \times 2}$$

Row 1 of $A$, the entries 1, 2, 3, becomes column 1 of $A^{T}$. Transposing a rectangular matrix always changes its order, since m ≠ n means n × m is a genuinely different shape. A rectangular matrix can never equal its own transpose, which is why the symmetric case belongs to square matrices alone.

Why Does A Rectangular Matrix Have No Determinant Or Inverse?

A rectangular matrix has no determinant and no inverse because both are defined only for square matrices. The determinant is a single number computed from an n × n grid, and the inverse $A^{-1}$ must satisfy $A \times A^{-1} = I$ with a square identity matrix. Neither construction has any meaning when the rows and columns do not match.

This is not a gap in the theory. It is the reason square matrices get a separate name at all.

  • No determinant. The determinant formula pairs each row with a column position; with unequal counts, there is nothing to pair. A related note lives at matrices and determinants.

  • No inverse. An inverse would have to undo the matrix and return a square identity. A rectangular matrix changes the dimension of whatever it multiplies, so no single matrix can reverse it in both directions.

  • What survives instead. A rectangular matrix still has a rank, the number of independent rows or columns. Rank is the tool that keeps working when the determinant cannot even be written down.

So when a question asks for the determinant of a 2 × 3 matrix, the correct response is not a number. It is the statement that the determinant does not exist.

What Is The Difference Between A Rectangular Matrix And A Square Matrix?

A rectangular matrix has unequal row and column counts (m ≠ n); a square matrix has equal counts (m = n). That single difference decides which operations each one supports.

Table: Rectangular matrix compared with square matrix.

Feature

Rectangular Matrix

Square Matrix

Order

m × n with m ≠ n

n × n

Example

$\begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \end{bmatrix}$

$\begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}$

Addition / subtraction

Yes, with same order

Yes, with same order

Multiplication

Yes, when dimensions are compatible

Yes

Transpose

Yes, order flips to n × m

Yes, order stays n × n

Determinant

Not defined

Defined

Inverse

Not defined

Defined when determinant ≠ 0

Read the last two rows first. Determinant and inverse are the whole reason the two types are taught apart, and they are exactly where a rectangular matrix stops and a square one continues.

Who Shaped The Rectangular Matrix?

The rectangular array came long before the word, and when the word finally arrived, it was coined for the rectangular case, not the square one. The oblong grid of numbers is the original object; the square matrix is the special case that got the extra powers.

Two more figures shaped how these grids behave:

  • Arthur Cayley (1821–1895, England) defined how to add, multiply, and transpose matrices in A Memoir on the Theory of Matrices (1858), turning Sylvester's oblong array into a working algebra.

  • The unknown authors of The Nine Chapters on the Mathematical Art (China, roughly 200 BCE to 100 CE) laid out systems of equations as rectangular arrays of counting rods and eliminated them column by column, using rectangular matrices two thousand years before the word existed.

Where Are Rectangular Matrices Used In The Real World?

Most real data is rectangular, because the number of things you measure rarely equals the number of times you measure them.

  • Spreadsheets and records: a class marksheet with students down the rows and subjects across the columns is a rectangular matrix, and so is almost every table in a database.

  • Digital images: a photo is a rectangular grid of pixel values, and a wide photo has many more columns than rows.

  • Computer graphics: the matrices that project a 3D scene onto a 2D screen are rectangular, because they map coordinates from a higher dimension to a lower one.

  • Machine learning: a dataset with thousands of examples and a handful of features is a tall rectangular matrix, and every training step multiplies it by weight matrices.

  • Economics and surveys: input-output tables and questionnaire results are rectangular whenever the count of categories differs from the count of respondents.

One shape, the plain unequal grid, carries data across photography, graphics, learning machines, and economics. The rectangle is the ordinary case, and the square is the exception.

What Are The Most Common Rectangular Matrix Mistakes?

These three errors account for most lost marks on rectangular matrices, verified against homework-help explanations on why non-square matrices cannot be inverted, a published note on determinants for rectangular matrices, and standard reference summaries of the topic.

Trying To Find The Determinant Or Inverse Of A Rectangular Matrix.

Where it slips in:

A student sees a 2 × 3 matrix in a determinant question and starts expanding along a row, as if every matrix had a determinant.

Don't do this:

Do not compute a determinant or an inverse for a non-square matrix. Neither one exists.

The correct way:

Check the order first. If the matrix is not square, state that the determinant and inverse are undefined, and reach for rank instead when a measure of the matrix is needed.

Confusing A Rectangular Matrix With A Square One.

Where it slips in:

A student treats every matrix as square, or assumes a single row or single column matrix is somehow not rectangular.

Don't do this:

Do not judge by appearance. A 1 × 4 row and a 3 × 1 column are both rectangular, because their two counts are unequal.

The correct way:

Compare the row count with the column count directly. Equal means square; unequal, in any direction, means rectangular.

Making Dimension Errors In Multiplication.

Where it slips in:

A student multiplies a 2 × 3 by another 2 × 3, or reads the result size off the inner numbers instead of the outer ones.

Don't do this:

Do not multiply before the inner dimensions match. For $A_{m \times n} \times B_{n \times p}$, the two n values must be equal.

The correct way:

Write the two orders side by side. Confirm the inner numbers match, then read the answer's size from the outer numbers: m × p.

Practice Problems On Rectangular Matrix

Use $P = \begin{bmatrix} 2 & 1 & 0 \ 3 & 4 & 5 \end{bmatrix}$ and $Q = \begin{bmatrix} 1 & 2 & 3 \ 0 & 1 & 4 \end{bmatrix}$ unless a problem says otherwise. Answers follow each line.

  1. State the order of $P$.
    (Answer: 2 × 3, so $P$ is rectangular.)

  2. Find $P + Q$.
    (Answer: $\begin{bmatrix} 3 & 3 & 3 \ 3 & 5 & 9 \end{bmatrix}$.)

  3. Write $P^{T}$ and give its order.
    (Answer: $\begin{bmatrix} 2 & 3 \ 1 & 4 \ 0 & 5 \end{bmatrix}$, order 3 × 2.)

  4. Using $R = \begin{bmatrix} 1 & 2 \ 3 & 0 \ 1 & 1 \end{bmatrix}$, find $PR$.
    (Answer: $\begin{bmatrix} 5 & 4 \ 20 & 11 \end{bmatrix}$, order 2 × 2.)

  5. Can you find $\det(P)$?
    (Answer: No. $P$ is not square, so its determinant is undefined.)

  6. If a 4 × 2 matrix is multiplied by a 2 × 5 matrix, what is the order of the product?
    (Answer: 4 × 5.)

Where Should You Go Next After Rectangular Matrix?

The rectangular matrix is the general shape, so several natural doors open from here.

  1. Square matrix. Meet the special case that unlocks determinants and inverses, and see exactly which powers the equal-count condition switches on.

  2. Transpose of a matrix. Go deeper on the operation that flips a rectangular matrix from m × n to n × m, including the symmetric and skew-symmetric cases.

  3. Rank of a matrix. The measure that works on any shape, the tool that steps in exactly where the determinant cannot.

If your child is building these foundations, a live Bhanzu trainer teaches matrices starting from the shape and the order, before any operation, in the Bhanzu algebra program.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is a rectangular matrix in simple terms?
A rectangular matrix is a table of numbers where the number of rows and the number of columns are not the same, written as order m × n with m ≠ n. A 2 × 3 matrix is a plain example.
Is a row matrix or a column matrix rectangular?
Yes. A row matrix (order 1 × n) and a column matrix (order n × 1) both have unequal row and column counts whenever n is greater than 1, so both are special cases of a rectangular matrix.
Can a rectangular matrix have a determinant or an inverse?
No. The determinant and inverse are defined only for square matrices, so a rectangular matrix has neither. When you need a single measure of a rectangular matrix, use its rank instead.
What is the difference between a rectangular matrix and a square matrix?
A rectangular matrix has unequal rows and columns (m ≠ n), while a square matrix has equal rows and columns (m = n). Because of that, a square matrix supports determinants and inverses and a rectangular matrix does not.
Can two rectangular matrices be multiplied together?
They can, as long as the columns of the first equal the rows of the second. A 2 × 3 matrix times a 3 × 2 matrix is allowed and gives a 2 × 2 result, which shows a product of two rectangular matrices can even be square.
Which curricula introduce the rectangular matrix?
The rectangular matrix appears in India's NCERT Class 12 (Chapter 3, Matrices) and in the United States under the Common Core high-school standards N-VM. It then recurs throughout linear algebra at university level.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →