The standard mechanical engineering undergraduate program is 4 years. However, some accelerated 3+2 or combined 5-year BS+MS programs allow completing both a bachelor's and master's degree in 5 years total. Community college transfers can sometimes complete the 4-year bachelor's degree in 3 years.