On a Non-Lucrative Visa (i.e. you're not allowed to work) you can get Residency in Spain on an income of around 27k euros for one person, approx 7k per extra person (so could work if on a decent pension)
or
savings of around the same amount per year of the Visa (3 years I think), therefore 80k...