Row Space Calculator
Test cases replayed : 9 of 9 match · Methodology · No outside source listed
Enter a 3×3 matrix. The calculator gives the standard basis of its row space, the nonzero rows of the reduced row echelon form (RREF), and the dimension of that space. For a 2×3 matrix, leave row 3 at 0.
Result
Basis of the row space (nonzero rows of the RREF)
Dimension of the row space (rank)
- Dimension of the null space (nullity = 3 − rank)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Row 1, column 1: enter a number.
- Row 1, column 2: enter a number.
- Row 1, column 3: enter a number.
- Row 2, column 1: enter a number.
- Row 2, column 2: enter a number.
- Row 2, column 3: enter a number.
- Row 3, column 1: enter a number.
- Row 3, column 2: enter a number.
- Row 3, column 3: enter a number.
- Read the result: Basis of the row space (nonzero rows of the RREF); the panel also shows Dimension of the row space (rank) and Dimension of the null space (nullity = 3 − rank).
How this calculator works
The row space of a matrix is the set of all linear combinations of its rows. Row operations do not change it, so the nonzero rows of the reduced row echelon form (RREF) are a basis, and the only basis in reduced echelon form.
The rank, found as for the matrix rank (determinant, then the nine 2×2 minors), fixes the case. Rank 3: the RREF is the identity. Rank 1: every row is a multiple of the first nonzero row, which is divided by its first nonzero entry.
Rank 2: the row space is a plane through the origin. Its normal vector n is the cross product of two independent rows. If n₃ ≠ 0 the RREF rows are (1, 0, −n₁/n₃) and (0, 1, −n₂/n₃); if n₃ = 0 and n₂ ≠ 0 they are (1, −n₁/n₂, 0) and (0, 0, 1); otherwise (0, 1, 0) and (0, 0, 1).
A determinant, 2×2 minor or cross-product component closer to 0 than 10⁻⁹ counts as 0. Entries are shown with up to 4 decimal places.
Worked example
| Row 1, column 1 | 1 |
|---|---|
| Row 1, column 2 | 2 |
| Row 1, column 3 | 3 |
| Row 2, column 1 | 4 |
| Row 2, column 2 | 5 |
| Row 2, column 3 | 6 |
| Row 3, column 1 | 7 |
| Row 3, column 2 | 8 |
| Row 3, column 3 | 9 |
| Dimension of the row space (rank) | 2 |
|---|---|
| Dimension of the null space (nullity = 3 − rank) | 1 |
| Basis of the row space (nonzero rows of the RREF) | (1, 0, -1) and (0, 1, 2) |
Frequently asked questions
What is a basis of the row space of 1 2 3 / 4 5 6 / 7 8 9?
Its RREF is 1 0 −1 / 0 1 2 / 0 0 0, so a basis is (1, 0, −1) and (0, 1, 2); the row space has dimension 2.
Is the row space the same as the column space?
No. They have the same dimension, the rank, but the row space lives among row vectors and the column space among column vectors; for a non-symmetric matrix they are usually different sets.
Can I use the original rows as a basis?
Yes, any set of linearly independent rows that spans the space is a basis. The RREF rows are the standard choice because they are unique.