Question: how long can you live in spain for?
Answer: You can stay in Spain for a maximum of 183 days per year (6 months) in order to not become a resident. If you spend an extra day (184 days and onwards), you will be regarded as a resident, hence paying resident taxes in the country.