Data science and computer science overlap heavily. Both start with programming, both lead into machine learning, and students often switch from one to the other. The difference is in emphasis: computer science studies how computing systems and software are built and why algorithms work, while data science centers on statistics, data handling and drawing conclusions from data. This guide compares the two majors as of November 2026, covering coursework, how many students choose each, the job market, and what international students need to know.

The short version
| Computer science | Data science | |
|---|---|---|
| Core question | How to design algorithms, software and computing systems | How to collect, model and interpret data to answer questions |
| Heaviest math | Discrete math, algorithms, theory of computation | Probability, statistics, linear algebra |
| Typical first jobs | Software engineer, systems or security engineer, ML engineer | Data analyst, data scientist, ML or analytics engineer |
| U.S. bachelor’s degrees awarded* | 51,527 (5,430 to international students) | 3,153 (619 to international students) |
| U.S. master’s degrees awarded* | 27,162 (19,960 to international students) | 6,760 (3,702 to international students) |
| STEM OPT eligible? | Yes (CIP 11.0701) | Yes (CIP 30.7001) |
*First majors in CIP 11.0701 (computer science) and 30.7001 (data science, general), from the latest federal IPEDS completions data in Forward Pathway’s database. Many data science programs report under other codes, such as statistics or business analytics, so the true number of data science graduates is higher.
How two students chose
In a March 2025 episode of BU Today’s “Compare Mode” video series, two Boston University seniors explained their switches. Neeza Singh started in computer science and moved to data science after discovering an interest in AI and machine learning. Her aptitude for statistics and probability “sealed the deal.” Valentina Haddad started in computer engineering and moved to computer science because she preferred “working with software rather than hardware.” The two met as first-year students in an introductory computer science course (BU Today, March 25, 2025). Their stories show that students commonly move between the two majors, especially in the first year or two.
What the coursework looks like: Boston University as an example
Boston University offers the two majors in different units: computer science in the College of Arts & Sciences and data science in the Faculty of Computing & Data Sciences (CDS). The two degree structures show the difference in emphasis.
B.A. in Computer Science
- 15 courses, each with a grade of C or higher. Calculus is expected as background.
- Five required courses: Introduction to Computer Science 1 and 2, Combinatoric Structures, Computer Systems, and Introduction to the Analysis of Algorithms.
- Two “formal tools” courses (chosen from CS 132, CS 235 and CS 237), two “central topics” courses (chosen from CS 320, CS 332 and CS 350), then upper-level CS electives (BU Bulletin: BA in Computer Science).
B.S. in Data Science
- 16 courses (at least 64 credits), each with a grade of C or higher.
- Foundations: Introduction to Data Science and Foundations of Data Science I–III, which cover the mathematical and computational basics.
- Six core subjects: programming, data mechanics, statistics, algorithms, machine learning, and ethical and social implications.
- Four electives in either a methodology track or an “in-the-field” applied track, plus a supervised capstone or practicum project of at least 4 credits (BU Bulletin: BS in Data Science).
The BU data science major includes algorithms and programming, but it adds statistics, ethics and a required applied project. The CS major goes deeper into computer systems and theory. Other universities differ. Some house data science in a statistics department, some in a computing school, and some offer it only as a master’s degree or a minor. Read each school’s requirements rather than relying on the name.
Jobs and pay
- Data scientists: about 275,600 jobs in 2025 and a median salary of $120,230. The Bureau of Labor Statistics projects 35% growth from 2025 to 2035 (BLS: Data Scientists).
- Software developers: a median salary of $135,980, with employment projected to grow 10% from 2025 to 2035 (BLS: Software Developers).
- The entry-level market is tight. In the Federal Reserve Bank of New York’s February 2026 release (2024 data), recent computer science graduates aged 22–27 had a 7.0% unemployment rate, the fourth-highest of 73 majors, compared with 4.2% for all recent graduates. Their median early-career salary was $87,000, well above the $58,000 for all majors (New York Fed: The Labor Market for Recent College Graduates).
Strong long-term demand combined with a competitive entry-level market means internships, projects and a solid statistics or systems foundation matter more than the name of the major.
Notes for international students
- STEM OPT: both computer science (CIP 11.0701) and data science (30.7001) are on the STEM Designated Degree Program List (SEVP STEM list). F-1 graduates can work for up to three years after graduation: 12 months of OPT plus a 24-month STEM extension (USCIS: STEM OPT). Check the CIP code on your I-20, especially for analytics programs housed in business schools.
- Master’s programs are heavily international. International students earned about 73% of U.S. master’s degrees in computer science and about 55% in data science in the latest IPEDS data. Expect strong competition for internships within your own cohort.
- Program-specific fees: some universities charge extra for computing majors. At Purdue, for example, international undergraduates in computer science and data science pay $2,025 more per semester than in most majors in 2026–27 (Purdue Bursar). Check the cost for your specific major, not just general tuition.
- Switching is common. If you are unsure, choose a university where both majors share introductory courses, so you can change in your first or second year without losing time.
How to choose
- Choose computer science if you enjoy building software and systems, want the widest range of engineering roles, or may go into systems, security or graduate research in computing.
- Choose data science if you enjoy statistics and using data to answer questions in fields such as business, health, science or policy, and want an applied project built into the degree.
- Either way, add what the other major emphasizes. CS students benefit from probability and statistics, and data science students from software engineering and algorithms.
References
- BU Today: What’s the Difference between Data Science and Computer Science? (March 25, 2025)
- Boston University Bulletin: BA in Computer Science
- Boston University Bulletin: BS in Data Science
- U.S. Bureau of Labor Statistics: Data Scientists
- U.S. Bureau of Labor Statistics: Software Developers
- Federal Reserve Bank of New York: The Labor Market for Recent College Graduates
- SEVP: STEM Designated Degree Program List
- Forward Pathway: Boston University profile and rankings