Mathematics
Exact matrix rank determinant and inverse
Reduce a rational matrix exactly, inspect pivot columns and row operations, or compute a square determinant or inverse with both identity checks.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows, with exact values where available. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.
Result
Formula / calculation:
Rational entries (decimal point/comma, fraction or scientific notation), each input≤400 characters and at most 4 rows/4 columns. Semicolon separates columns; | separates rows. Exact fractions; decimal display rounded 0–12 places. Each result row, including row-operation log,≤500 characters; larger expanded results refuse. Rank uses exact zero, not floating tolerance. Determinant/inverse require square matrix; singular inverse refuses. No condition-number estimate or numerology. Added2x2eigenvalues: exact rational characteristic coefficients/classification and approximate real/complex roots; entries0or10^-100to10^6. No eigenvectors, QR, larger eigenvalue systems or numerology; rounded roots can coincide despite distinct exact roots. Linear independence calculator: enter each vector as one column of Matrix A, then choose Rank and reduced row echelon form and Calculate. The vectors are linearly independent exactly when the exact rank equals the number of entered columns; otherwise they are dependent. For example, 1;0|0;1 contains two independent columns. In 1;0;1|0;1;1, three columns have rank two and are dependent. Use one to four rows and columns, with at most 400 input characters. Read the exact rank, not rounded entries; expanded result rows remain limited to 500 characters.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Exact rational entries, semicolon columns and vertical-bar rows; matrix arithmetic and exact Gauss–Jordan elimination. Rational entries (decimal point/comma, fraction or scientific notation), each input≤400 characters and at most 4 rows/4 columns. Semicolon separates columns; | separates rows. Exact fractions; decimal display rounded 0–12 places. Each result row, including row-operation log,≤500 characters; larger expanded results refuse. Rank uses exact zero, not floating tolerance. Determinant/inverse require square matrix; singular inverse refuses. Eigenvalues are available for 2×2 matrices only. No eigenvectors, larger eigenvalue systems, condition-number estimate or numerology. Linear independence calculator: enter each vector as one column of Matrix A, then choose Rank and reduced row echelon form and Calculate. The vectors are linearly independent exactly when the exact rank equals the number of entered columns; otherwise they are dependent. For example, 1;0|0;1 contains two independent columns. In 1;0;1|0;1;1, three columns have rank two and are dependent. Use one to four rows and columns, with at most 400 input characters. Read the exact rank, not rounded entries; expanded result rows remain limited to 500 characters.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Matrix A:
- 1;2|3;4
- Analysis
- Inverse and identity checks
- Rounded display 0–12 places
- 6
Result
- Dimensions of A
- 2×2
- A (exact)
- 1; 2 | 3; 4
- Coefficient / matrix rank
- 2
- Reduced row echelon form (exact)
- 1; 0 | 0; 1
- Pivot columns (one-based)
- 1; 2
- Exact row operations (one-based)
- R1 / 1 | R2 - (3) R1 | R2 / -2 | R1 - (2) R2
- Inverse (exact)
- -2; 1 | 3/2; -1/2
- Inverse (rounded)
- -2.000000; 1.000000 | 1.500000; -0.500000
- A·inverse check
- 1; 0 | 0; 1
- Inverse·A check
- 1; 0 | 0; 1
Frequently asked questions
How do I calculate the inverse of a matrix exactly?
Enter the matrix, choose the inverse operation and calculate. The editable example is 1;2|3;4. A semicolon separates columns and a vertical bar separates rows, and the result uses exact fractions.
What matrix size is allowed?
Up to 4 rows and 4 columns, with each input at most 400 characters. Entries can be decimals, fractions or scientific notation.
Can I paste a matrix from a spreadsheet?
Yes. Paste up to 4 rows and 4 columns separated by tabs and line breaks, maximum 400 characters, and apply it to one matrix field.
How do I check if vectors are linearly independent?
Enter each vector as a column of Matrix A, choose Rank and reduced row echelon form and calculate. The vectors are independent exactly when the exact rank equals the number of columns.
When is a determinant or inverse refused?
The determinant and inverse require a square matrix, and a singular matrix has no inverse and is refused. Rank uses exact zero, not a floating tolerance.
Does the tool find eigenvalues?
Only for 2x2 matrices, giving exact characteristic coefficients and approximate roots. There are no eigenvectors, QR or larger eigenvalue systems.