We give a formula for the η-invariant of odd order operators on even-dimensional manifolds, and for even order operators on odd-dimensional manifolds. Geometric second order operators are found with nontrivial η-invariants. This solves a problem posed by P. Gilkey.