# Pseudoinverse Calculator

URL: https://speedycalculator.com/calculators/math/pseudoinverse/
Last updated: 2026-11-08

> The pseudoinverse calculator computes the Moore–Penrose pseudoinverse A⁺ of any matrix up to 3 × 3, square or rectangular, singular or not.

## Inputs

- Matrix size (rows × columns)
- a₁
- b₁
- c₁
- a₂
- b₂
- c₂
- a₃
- b₃
- c₃

## Results

- Pseudoinverse A⁺
- Method
- Rank

## Formula

```
A⁺ = V·Σ⁺·Uᵀ;  A⁺ = (AᵀA)⁻¹Aᵀ for independent columns
```

## Explanation

The pseudoinverse generalises the inverse to every matrix. A⁺b gives the least squares solution of Ax = b (the one of smallest length if there are many), which is how linear regression is solved.

### How to use the Pseudoinverse Calculator

- Choose the **matrix size**. The matching grid of fields appears.
- Enter the entries **row by row** (a₁ b₁ c₁ is the first row, a₂ b₂ c₂ the second, and so on).
- Read the result; integer matrices give exact fractions.

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

### How it works

The singular value decomposition is computed; the non-zero singular values are inverted and the factors multiplied in reverse order.

## Worked example

Inputs: Matrix size (rows × columns): 3 × 2; a₁: 1; b₁: 2; a₂: 3; b₂: 4; a₃: 5; b₃: 6.

Results: **Pseudoinverse A⁺ = ⎡ −4/3 −1/3 2/3 ⎤
⎣ 13/12 1/3 −5/12 ⎦**; Method = A⁺ = V·Σ⁺·Uᵀ (from the singular value decomposition); Rank = 2.

## Key terms

- **Moore–Penrose pseudoinverse**: The unique generalised inverse satisfying the Penrose conditions.

## FAQ

**When is A⁺ = A⁻¹?**
When A is square and invertible.

**What is A⁺ used for?**
Least squares solutions and minimum-norm solutions of linear systems.

**What are the Penrose conditions?**
AA⁺A = A, A⁺AA⁺ = A⁺, and AA⁺ and A⁺A are symmetric.

**Does every matrix have a pseudoinverse?**
Yes, exactly one.


## Sources

- [Wolfram MathWorld: Moore-Penrose matrix inverse](https://mathworld.wolfram.com/Moore-PenroseMatrixInverse.html)
- [MIT OpenCourseWare: 18.06 Linear Algebra (Gilbert Strang)](https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/)
- [Jim Hefferon: Linear Algebra (free textbook)](https://hefferon.net/linearalgebra/)
