Retirement tax questions

I withdrew it all and I did have it for more than 5 years. I was just shocked that it added the amount I withdrew (not much was earnings btw) to my income. My taxes I owed went through the roof!