The textbook version of goodbye in Spanish is adiós. Though adiós is a bit more formal-sounding than some of the other options below, it can also fit in an informal context, and it's a good one to have in your back pocket for when you're not entirely sure where you stand with the people you're talking to.