Through an analysis of hundreds of thousands of resumes and corresponding salary reports, Glassdoor has determined which majors pay the most during the first five years out of college. While STEM majors take most of the top spots, other majors can also pay you generously. Plus, for each major, we’ve identified three of the most popular jobs that new grads really take upon entering the real world.

So for those pulling their hair out trying to decide on a college major, what does this mean for you?

“If college students want to land a high-paying job after graduation, they should strongly consider majoring in science, technology, engineering, or math,” says Dr. Andrew Chamberlain, Glassdoor Chief Economist. “STEM majors are in demand by the technology and health industries, which offer higher paying jobs that are better protected from competition or automation.”

Methodology:Nearly 500,000 resumes were analyzed for Glassdoor’s report on the 50 Highest Paying College Majors. For a major to be considered, Glassdoor must hold at least 400 distinct resumes as of 10/03/16, in which a job seeker and/or employee has indicated graduating from college with the corresponding major. To determine the median base salary for each major, career progression data, including job titles, within the first five years of work upon graduating from college was analyzed with corresponding salary data, submitted by employees on Glassdoor. To determine the rankings, majors were then sorted by their corresponding median base salary within the first five years upon graduating from college or university.