EIGEN Function (Gnumeric)
Find eigenvalues and eigenvectors of real symmetric matrices in Gnumeric with EIGEN, column layout, ordering and reconstruction checks.
Verification status: Gnumeric 1.12.57 ssconvert: specified EIGEN fixtures and separately captured worked-example GUI. Gnumeric 1.12.62 source inspected separately. How formula examples are checked
EIGEN returns eigenvalues and eigenvectors for a real symmetric matrix. It can help identify principal directions of a covariance matrix or analyze a quadratic form. Gnumeric’s function is not a general nonsymmetric complex eigensolver: the input contract and output layout matter.
Syntax, shape and ordering
=EIGEN(matrix)
matrix is the sole required argument. There are no optional arguments or defaults. Supply a nonempty n×n numeric matrix. The result has n columns and n+1 rows: the first row contains the eigenvalues, and the n cells below each eigenvalue contain that eigenvalue’s corresponding eigenvector.
Select the full destination range, type the formula and press Ctrl+Shift+Enter to enter a Gnumeric array formula. Do not type braces. Eigenvectors are in columns, not rows. In the retained implementation, eigenvalues are sorted by decreasing absolute magnitude, with decreasing signed value breaking a magnitude tie. “First” therefore does not always mean the largest algebraic value if negative eigenvalues are present.
Worked example: a symmetric 2×2 matrix
Enter [[2,1],[1,2]] in A1:B2. Select D1:E3 and array-enter =EIGEN(A1:B2). The expected eigenvalues in D1:E1 are 3 and 1. A valid corresponding result is:
| Row | D | E |
|---|---|---|
| 1: eigenvalue | 3 | 1 |
| 2: first vector component | 0.707106781186548 | 0.707106781186548 |
| 3: second vector component | 0.707106781186548 | -0.707106781186548 |
The eigenvectors are (1,1)/√2 and (1,-1)/√2. Independently, the characteristic polynomial is (2−λ)²−1, whose roots are 3 and 1. Substitution verifies that multiplying the first vector by A triples it and multiplying the second by A leaves it unchanged.
The displayed signs are not a unique mathematical requirement. Negating every component in one eigenvector gives an equally valid vector. Compare eigenpairs through A×v = λv rather than rejecting a result solely because one entire vector has the opposite sign.
Advanced use: reconstruct a covariance matrix
For a covariance matrix, eigenvectors identify orthogonal directions and nonnegative eigenvalues describe variance along those directions. In this example, the leading eigenvalue represents 3/(3+1) = 75% of the total variance. That interpretation requires the matrix actually to be a covariance matrix, not just any symmetric table.
To reconstruct the example in worksheet cells, put =D1 in G1, numeric 0 in H1 and G2, and =E1 in H2. Select J1:K2 and array-enter =MMULT(MMULT(D2:E3,G1:H2),TRANSPOSE(D2:E3)). The expected result is [[2,1],[1,2]], within floating-point precision. This checks that the eigenvalue order matches the eigenvector columns.
For repeated eigenvalues, multiple orthonormal bases may describe the same eigenspace. Individual vectors can change substantially after small perturbations even when the subspace remains meaningful. Do not attach a unique physical meaning to arbitrary basis signs or to a particular basis within a repeated-eigenvalue subspace.
Errors and input checks
- A nonsquare or empty input yields
#VALUE!in the examined callback. The destination, however, must intentionally have one more row than the square input. - An unsuccessful numerical eigensolver yields
#NUM!in the retained implementation. - Matching off-diagonal entries are averaged before calculation. For example, unequal A12 and A21 are replaced conceptually by their average. This can absorb tiny rounding differences but changes genuinely nonsymmetric data. Validate symmetry yourself.
- Keep labels, units and blank separator rows out of the input. Use numeric values with consistent units.
- With negative eigenvalues, ordering is by magnitude. A large negative eigenvalue may appear before a smaller positive eigenvalue.
- Small negative eigenvalues in a supposed covariance matrix can reflect rounding or a defective construction. Investigate instead of automatically changing the signs or calling them explained variance.
Version and verification scope
Official NEWS records EIGEN’s addition in Gnumeric 1.9.18 and later improvements in 1.12.1. The implementation inspected here is retained 1.12.62 source; these historical entries do not establish all-release correctness or retirement. Gnumeric 1.12.57 ssconvert recalculated D1:E3 on 17 October 2026 in C.UTF-8, matching the independently derived eigenpairs. Reconstruction is an algebraic check. A separate worked-example GUI capture is documented below.
Related functions
Official sources
Native application screenshot

Gnumeric 1.12.57, captured 17 October 2026. Input A1:B2; eigenvalues D1:E1; vectors D2:E3. The selected cell D1 shows the formula in the formula bar. Display precision is shorter than the independent reference values; integer cells may show a trailing decimal point. GUI locale was not independently recorded.