Inverse and Determinant Calculator with Steps

Advanced matrix tool for determinants, inverses, and rank insights with steps. Choose size, paste values, and watch elimination steps unfold with pivot tracking. Validate singularity, condition estimates, and numerical stability warnings for accurate engineering calculations. Export matrices and steps as CSV or PDF files.

Formula Used

The determinant of an n×n matrix A can be defined by cofactor expansion or as the signed product of pivots during elimination. For 2×2:

det(A) = a₁₁a₂₂ − a₁₂a₂₁

The inverse exists only if det(A) ≠ 0. In general we compute A⁻¹ via Gauss–Jordan on the augmented matrix [A | I], performing row operations until the left side becomes I, yielding [I | A⁻¹]. For 2×2:

A⁻¹ = (1/det(A)) · [[a₂₂, −a₁₂], [−a₂₁, a₁₁]]

The implemented method uses partial pivoting for stability; the determinant equals the product of pivot elements with a sign correction for row swaps.

How to Use
  1. Select matrix size (2×2 up to 6×6).
  2. Enter values directly, paste comma-separated rows, or use “Fill Random.”
  3. Click Calculate to compute determinant, rank, and inverse (if invertible).
  4. Open the Steps section to follow each row operation.
  5. Use Download CSV for a spreadsheet-ready export of inputs and results.
  6. Use Save/Print as PDF to export a nicely formatted report.
Tip: You may enter simple fractions like 1/3; they are converted to decimals.
Example Data
NamenMatrix (rows)DeterminantAction
Example A2 1, 2 ; 3, 4 -2
Example B3 2, 1, 0 ; -1, 3, 2 ; 4, 0, 1 13
Example C (singular)3 1, 2, 3 ; 2, 4, 6 ; 0, 0, 0 0
Click “Load” to populate the grid with the example.
FAQs

Square matrices from 2×2 up to 6×6 are supported.

An inverse exists only when the determinant is nonzero; a zero determinant indicates linear dependence (singular matrix).

Gauss–Jordan elimination with partial pivoting on the augmented matrix [A | I].

As the signed product of pivot elements during elimination, accounting for row swaps.

Yes. Simple fractions are parsed and converted to decimal values before calculation.

Floating-point arithmetic introduces rounding. Partial pivoting improves stability but tiny discrepancies may appear.

Use the CSV button for spreadsheet data, or the browser’s Save/Print as PDF to create a PDF report.
Quick Tips
  • Use Tab to move across cells quickly.
  • Paste comma-separated rows like 1,2,3;4,5,6;7,8,9.
  • “Fill Identity” guarantees invertible inputs with det = 1.
  • Row swaps flip the determinant’s sign.
  • Zero pivot implies singularity; inverse cannot be formed.

Related Calculators

Proportion and Ratio Calculatorsquare root calculator with stepsnegative square root calculatorfraction square root calculatorsquare root division calculatordecimal to square root calculatorderivative of square root calculatorharmonic mean calculatorbinomial distribution mean calculatordiscrete random variable mean calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.