The unit theorem for finite-dimensional algebras