Pseudoinverse Calculator

Free online Pseudoinverse Calculator. Compute the Moore-Penrose pseudoinverse of any m×n matrix, including singular and rectangular matrices, with step-by-step solutions.

620.0K uses Updated · 2026-05-05 Runs locally · zero upload
AD

How to Use Pseudoinverse Calculator

The Pseudoinverse Calculator computes A⁺, the Moore-Penrose pseudoinverse, for any real matrix. Enter the matrix dimensions and values, and the Pseudoinverse Calculator automatically selects the appropriate formula, shows the computation method, and outputs the pseudoinverse matrix together with step-by-step derivation.

  1. Set dimensions – Enter rows and columns (1–5 each).
  2. Fill in matrix A – Type each element. Negative and decimal values are accepted.
  3. Read A⁺ – The Pseudoinverse Calculator displays the pseudoinverse matrix and the method used.
  4. Check the steps – Review the intermediate matrices (AᵀA, (AᵀA)⁻¹, etc.) shown in the steps panel.
  5. Apply to a system – Use x = A⁺b to find the minimum-norm least-squares solution to Ax = b.

Formula & Theory - Pseudoinverse Calculator

The Pseudoinverse Calculator implements the three standard closed-form formulas for the Moore-Penrose pseudoinverse:

Case 1: A is invertible (square, full rank)
        A⁺ = A⁻¹

Case 2: A has full column rank (rank = n ≤ m)
        A⁺ = (AᵀA)⁻¹ Aᵀ

Case 3: A has full row rank (rank = m ≤ n)
        A⁺ = Aᵀ (AAᵀ)⁻¹

Case 4: A is rank-deficient (neither full row nor column rank)
        A⁺ ≈ (AᵀA + εI)⁻¹ Aᵀ   (Tikhonov regularization)
SymbolMeaning
A⁺Moore-Penrose pseudoinverse
AᵀAGram matrix (cols × cols)
AAᵀDual Gram matrix (rows × rows)
εSmall regularization constant (10⁻⁹)
rrank(A)

The pseudoinverse satisfies the four Penrose conditions: AA⁺A = A, A⁺AA⁺ = A⁺, (AA⁺)ᵀ = AA⁺, and (A⁺A)ᵀ = A⁺A. The minimum-norm least-squares solution to Ax = b is x = A⁺b, which minimizes ||Ax − b||₂ and among all such solutions also minimizes ||x||₂.

Assumptions and Limits

The Pseudoinverse Calculator supports matrices up to 5×5. Rank is computed via Gaussian elimination with a zero-threshold of 10⁻¹⁰. For rank-deficient cases, a small regularization (ε = 10⁻⁹) is added to AᵀA to make it invertible; this is an approximation and may differ slightly from the exact pseudoinverse computed via SVD.

Use Cases for Pseudoinverse Calculator

The Pseudoinverse Calculator is essential in many areas of applied mathematics and data science:

  • Least-squares regression – Solve overdetermined systems Ax = b (more equations than unknowns) using x = A⁺b.
  • Underdetermined systems – Find the minimum-norm solution when there are more unknowns than equations.
  • Machine learning – Compute weights for linear models without inverting an ill-conditioned matrix.
  • Control theory – Design minimum-energy control inputs using the pseudoinverse of the controllability matrix.
  • Image reconstruction – Invert degradation operators in deconvolution problems.

After computing with the Pseudoinverse Calculator, you can substitute A⁺ directly into x = A⁺b to solve any compatible linear system in the least-squares sense.

Frequently asked questions about Pseudoinverse Calculator

What is the Moore-Penrose pseudoinverse?

The Moore-Penrose pseudoinverse A⁺ is the unique generalization of the matrix inverse to rectangular and singular matrices. It satisfies four conditions (the Penrose conditions) and is used to compute the minimum-norm least-squares solution x = A⁺b.

How does the Pseudoinverse Calculator choose the computation method?

The Pseudoinverse Calculator automatically detects the rank and shape of A. For invertible square matrices it uses the regular inverse; for full column rank it uses (AᵀA)⁻¹Aᵀ; for full row rank it uses Aᵀ(AAᵀ)⁻¹; for rank-deficient matrices it uses Tikhonov regularization.

When should I use a pseudoinverse instead of a regular inverse?

Use the pseudoinverse when A is not square, or when A is square but singular. Common applications include least-squares regression, control theory, signal processing, and solving underdetermined or overdetermined systems.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.