Engineering vs. computer science comes down to what you want to build. Pick engineering if you want to design machines, electronics or other physical systems, and pick computer science if you want to write software. Computer science pays more at the median: software developers earn $135,980 a year, electrical engineers earn $120,630 and mechanical engineers earn $104,110, according to the Bureau of Labor Statistics (BLS) for May 2025.
The gap is real, but the ranges overlap. The top tenth of mechanical engineers earns $164,340 or more, well above the software developer median. And the top tenth of electrical engineers earns $184,300 or more. Pay depends on your specialty and employer as much as on the name of the degree.
What Is the Difference Between Engineering and Computer Science?
Engineering degrees teach you to apply math and science to systems that have to work in the physical world. Computer science degrees teach you to analyze computing problems and build computing-based solutions. ABET, the accreditor for both, reviews them through different commissions.
The Engineering Accreditation Commission covers programs "leading to the professional practice of engineering." The Computing Accreditation Commission covers computing, computational, information and informatics programs.
The curriculum rules show the split. An accredited engineering program needs at least 30 semester credit hours of math and basic science, 45 hours of engineering topics and a major design experience. Those 45 hours include computer science topics. An accredited computing program needs at least 30 hours of computing topics, plus math, statistics and science suited to the discipline.
How Much Do Engineers and Computer Scientists Make?
Software developers (SOC 15-1252) are the closest BLS match for a computer science graduate's job. The table shows national pay for May 2025. The bottom tenth of earners tops out at the 10th percentile figure, and the top tenth starts at the 90th.
Scroll to compare all columns
| Job | Median Pay | 10th Percentile | 90th Percentile | Workers |
|---|---|---|---|---|
| Software Developers | $135,980 | $82,460 | $214,670 | 1,687,890 |
| Electrical Engineers | $120,630 | $76,550 | $184,300 | 198,750 |
| Mechanical Engineers | $104,110 | $73,990 | $164,340 | 296,810 |
What Does the Engineering vs. Computer Science Pay Gap Mean for You?
Software developers lead electrical engineers by $15,350 at the median and mechanical engineers by $31,870. They're also the biggest group by far. There are more than five times as many software developer jobs as mechanical engineering jobs.
Look at the spread, too. Mechanical engineers range from $73,990 to $164,340, a spread of $90,350. Software developers range from $82,460 to $214,670, a spread of $132,210. Either way, your specialty, your employer and your state move your number more than the degree title does.
How Does Mechanical Engineering Compare with Computer Science?
Mechanical engineers design, develop, build and test mechanical and thermal sensors and devices. BLS says they work mostly in engineering services, research and development, and manufacturing. Your finished work is a part or a system, not a codebase.
Mechanical engineering has the smallest median of the three jobs here, at $104,110. But BLS projects 11% employment growth from 2025 to 2035, which is much faster than average, with about 17,800 openings a year. All states also require mechanical engineers who sell services to the public to be licensed. Our FE exam guide covers the first step.
Electrical Engineering vs. Computer Science: How Close Are They?
Electrical engineers design, develop and test electrical and electronic equipment, components and systems. BLS says the job typically calls for an engineering bachelor's degree, and employers value internships and co-op programs.
Electrical engineering is the closest engineering major to computer science in pay. The $120,630 median sits $15,350 below software developers. Electronics engineers, except computer, earn $130,220, which is $5,760 below. BLS projects 8% growth through 2035 and about 16,300 openings a year. See how schools stack up in the electrical engineering rankings.
Should You Choose an Engineering or Computer Science Major?
Match the degree to the work you want to do, then check the numbers. These four tests settle most cases.
- Choose engineering if you want to design things you can test on a bench or a shop floor.
- Choose engineering if you plan to earn a professional engineer license.
- Choose computer science if you want to write software for a living and the largest job market appeals to you.
- Choose computer science if the highest median matters most. Software developers earn $135,980.
How Can You Test Both Majors Before You Apply?
Take one intro programming course and one intro engineering course, such as statics or circuits. Then notice which problem sets you keep working on after the first attempt fails. That tells you more than a salary table can.
Before you apply, check each engineering program's ABET listing with the engineering accreditation guide. Then compare schools in the mechanical engineering rankings. Still torn between the two engineering fields? Our mechanical vs. electrical engineering guide compares the classes in each major.
Sources for This Story
These primary sources support the reporting and analysis above.
- BLS: Occupational Employment and Wage Statistics, May 2025 national estimates · Checked 2026-11-03
- BLS: Mechanical Engineers, Occupational Outlook Handbook · Checked 2026-11-03
- BLS: Electrical and Electronics Engineers, Occupational Outlook Handbook · Checked 2026-11-03
- ABET: Criteria for Accrediting Engineering Programs, 2026-2027 · Checked 2026-11-03
- ABET: Criteria for Accrediting Computing Programs, 2026-2027 · Checked 2026-11-03
- ABET: Eligibility Requirements for Accreditation · Checked 2026-11-03