Complex Matrix Inverse Calculator

Invert complex matrices reliably with interactive controls, exports, and built-in validation tools. Support partial pivoting for numerical stability and consistent output formatting everywhere. Choose matrix size, adjust decimals, and inspect a verification badge effortlessly. Toggle elimination logs, paste CSV, or load curated examples quickly, anytime, online. Enable fraction display and larger matrix caps today.

Input Matrix A (4×4)

Enter complex numbers like 3+2i, -4i, 5, or rationals like 1/3, 2/5+i/7. Spaces allowed. Use comma-paste from spreadsheets.

Results

Status: Max |AI − I|:

Example Data Table

RowValues (use Load Example to fill inputs)
12+i/2, 0, -1, 1/3
23-2i, i, 4, 0
30, 1-i, 2, -i/5
41/2, 0, 0, 1

Formula Used

We compute the inverse of a nonsingular complex matrix A by Gauss–Jordan elimination on the augmented block [A | I]. Using partial pivoting, we perform row scaling by the pivot and eliminate above and below to reduce the left block to I; the right block becomes A−1.

  • Complex division: a/b = \(\frac{(a_r + i a_i)}{(b_r + i b_i)} = \frac{(a_r b_r + a_i b_i) + i(a_i b_r - a_r b_i)}{b_r^2 + b_i^2}\)
  • Magnitude: |z| = \(\sqrt{r^2 + i^2}\); pivot chosen by maximal magnitude for stability.
  • Verification: compute A · A−1 and measure the maximum absolute deviation from I.

How to Use

  1. Select the matrix order and enter complex or rational entries.
  2. Adjust decimal places or switch on Fraction display mode.
  3. Click Compute Inverse; status and error metrics will appear.
  4. Toggle the elimination log for detailed row operations and pivots.
  5. Export the inverse as CSV or PDF; copy to clipboard if needed.
  6. Use Load Example, Random, or paste CSV to accelerate input.

FAQs

Use forms like a+bi, a-bi, bi, -bi, or real numbers. You can also enter rationals like p/q in real and imaginary parts.

You can choose orders from 2 up to 12. Larger sizes increase time and rounding error; consider higher precision when formatting or use symbolic tools for exact arithmetic.

If the algorithm cannot find a pivot with magnitude above the tolerance, the matrix is treated as singular or ill-conditioned. The status will display an appropriate message.

After inversion, we compute A · A−1 and compare against the identity matrix. The badge shows the maximum absolute entry-wise deviation.

Yes. Use Paste CSV/Text to paste comma or tab-separated values. The grid will fill automatically, trimming extra rows or columns.

Results are formatted as rational numbers for each real and imaginary part using best-fit fractions under the chosen maximum denominator. Computations remain floating-point; formatting is exact only when representable.

Related Calculators

Row Reduction RREF CalculatorDiagonalization Checker CalculatorLU Decomposition Steps CalculatorQR Decomposition Steps Calculatormatrix calculator with variablesGauss-Jordan inverse calculatorPolynomial linear independence calculatorLinear independence of matrix calculatorQR decomposition least squaresMultiplication of matrix 3x3

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.