It takes 7 years total--4 years of undergrad followed by 3 years of law school. You have a wide selection of majors to choose from for undergrad, since there isn't a particular major you must take in order to be admitted to law school. Some type of legal studies or political science major may help you prepare more, although a major such as journalism helps with writing. Likewise, science majors help in patent law, criminal justice would help in an advocacy track, etc. If you have an idea of what you want to do, that will help you choose a major, but if not, choose something you enjoy and would excel in, because your GPA will be paramount in the admissions process.