How do You Say How are You in Spanish?

How are you? This is a common phrase in Spanish. Como estas? Is the informal way which is used when you know someone well or speaking to a child. The formal way to say it is como esta?