How long do you have to live in the US befor you can apply for citizenship?

5 year u can apply for citizenship its dep. if u r legally enter in us