How to become a data scientist
Answer
To become a data scientist, you earn a bachelor's degree in statistics, math, computer science or a related field, build skills in Python or R, SQL and machine learning, and often add a master's degree or analyst experience. No license is required; most people reach a data scientist role in 4 to 6 years.
- Total time
- 5-6 years
- Fastest path: 4 years
- Minimum education
- Bachelor's degree in statistics, mathematics, computer science, data science or a related field
- Exam or license
- Not licensed (certification optional)
- No required exam
- Typical cost
- $45.9K–$84.9K
- Tuition and fees before aid
Median pay once qualified: $120,230 a year ($57.80 an hour), BLS OEWS, May 2025. See data scientist pay in every state.
Steps to become a data scientist
6 steps
-
1Build a math foundation in high school
Time: 4 years (high school)Sources 1
Take the most advanced math your school offers, ideally through calculus, plus a statistics course if one is available. BLS points to calculus, linear algebra and probability and statistics as core preparation. Try programming early: free Python tutorials and small projects with public data, such as sports or weather records, teach you how messy real data is and whether you enjoy the work.
-
2Earn a quantitative bachelor's degree
Time: 4 yearsCost: $45,864 in median public tuitionSources 1, 2
Common majors are statistics, mathematics, computer science, data science, economics and engineering. Whatever the major, take probability, statistical inference, linear algebra, programming in Python or R, databases and SQL, and at least one machine learning course. College Scorecard lists 197 bachelor's programs in data science specifically. A minor or electives in a field like finance, biology or public health can help, because some employers want industry knowledge.
-
3Build a portfolio and get internship experience
Time: During college and afterSources 1
Hiring managers want proof you can work with real data. Publish two or three projects on GitHub that show the full process: getting and cleaning data, analysis, a model, and a clear write-up of what it means. Summer internships in analytics or data science are the most direct route to a full-time offer. Research assistant work with a professor also counts and helps if you plan on graduate school.
-
4Start as an analyst or junior data scientist
Time: 1-2 yearsSources 1
Many people begin as data analysts, business intelligence analysts or junior data scientists. These jobs build strong SQL skills, knowledge of how a business works and experience presenting results, which matter as much as modeling. Ask to take on forecasting, experiments or predictive projects so you can show model-building experience when you apply for data scientist roles.
-
5Consider a master's degree
Time: 1-2 yearsCost: Varies; median federal debt for data science master's graduates is $38,994Sources 1, 2
A graduate degree is expected, or at least favored, by some employers, especially for research, advanced machine learning and senior roles. Options include master's degrees in data science, statistics, computer science or analytics, and many are offered part time or online for working professionals. Compare curricula closely: look for real statistics and machine learning depth, not only software tools.
-
6Add certifications if they fit your target employers
Time: Weeks to a few monthsCost: $200-$695Sources 3, 4
Certifications are optional but can help show cloud or applied skills. The Google Cloud Professional Machine Learning Engineer exam costs $200, runs two hours with 50 to 60 questions and is valid for two years. INFORMS's CAP-Expert exam costs $440 for members or $640 for nonmembers, plus a $55 application fee, and requires analytics work experience. Neither replaces a degree or portfolio.
How long it takes to become a data scientist
Education options
| Option | Length | Where | Notes |
|---|---|---|---|
| Bachelor's degree in statistics, math, computer science or data science | 4 years | Public and private universities | The standard entry point. Choose the major you find most engaging, then fill gaps: statisticians need more programming, computer scientists need more statistics. |
| Master's degree in data science, statistics or analytics | 1-2 years | Universities, including many online and part-time programs | Useful for career changers and for roles that list a graduate degree. Check for rigorous coursework and a capstone with real data. |
| Ph.D. in statistics, computer science or a quantitative science | About 5 years | Research universities | Best for research scientist roles at tech firms and research labs. Graduates from physics, economics and biology Ph.D. programs also move into data science. |
Programs, tuition and graduates’ earnings
| Field and credential (College Scorecard) | Programs | Tuition, public (in-state, per year) | Tuition, private (per year) | Median federal loan debt | Graduates’ median earnings after 4 years |
|---|---|---|---|---|---|
| Data Science, master's degree | 135 | — | — | $38,994 | — |
| Data Science, bachelor's degree | 197 | $11,466 | $48,895 | $19,591 | — |
U.S. Department of Education, College Scorecard (most recent cohorts, released 2026-10-15). Scorecard groups programs by 4-digit field, so a row can include related programs. Tuition is the median published undergraduate tuition and fees of the colleges offering the program (shown only for undergraduate credentials); debt is the median of programs’ median federal loan debt at completion; earnings are the national median for the field and credential four years after completion.
Licensing, exams and certification
Data scientists are not licensed in any state, and no exam is required to work in the field. Employers judge candidates on degrees, coursework, portfolios, technical interviews and experience. You can check whether any related credential applies in your state with the CareerOneStop License Finder, though you are unlikely to find one for this job.
Optional certifications exist. Cloud providers certify skills on their platforms; for example, Google Cloud's Professional Machine Learning Engineer certification has a $200 exam, no prerequisites and a two-year validity period, and it can be taken online or at a test center. INFORMS, the operations research and analytics society, offers the Certified Analytics Professional at several levels; the CAP-Expert requires a bachelor's degree with four years of analytics experience or a graduate degree with two.
Some industries add their own requirements. Government and defense jobs may require a security clearance, and roles in health care or finance may require training on data privacy rules.
| Exam or credential | Issued by | Required? | Fee |
|---|---|---|---|
| Google Cloud Professional Machine Learning Engineer3 | Google Cloud | Optional | $200 (as of 2026) |
| Certified Analytics Professional (CAP-Expert)4 | INFORMS | Optional | $440 members / $640 nonmembers, plus $55 application fee (as of 2026) |
Requirements differ by state. Check your state’s rules in the CareerOneStop License Finder (U.S. Department of Labor) before you enroll.
Skills and qualities that matter
- Statistics and probability
- Knowing when a pattern is real, how to set up an experiment and how much to trust a model's output is what separates a data scientist from someone running code.
- Python or R programming
- Nearly all cleaning, modeling and visualization is done in code, and interviews usually include a coding exercise.
- SQL
- Most business data sits in relational databases and warehouses, so you need to pull and join it yourself before any analysis can start.
- Machine learning
- Classification, regression and forecasting models are core tools, along with the judgment to choose a simple model when it works just as well.
- Explaining results to non-specialists
- A model only matters if managers understand it well enough to change a decision, so short write-ups and clear charts are part of the job.
O*NET 31.0 rates these skills as most important for the occupation: mathematics, critical thinking, reading comprehension, speaking, active learning.
What it costs and what it pays
Compare careers- Training cost
- $45.9K–$84.9K
- Before financial aid
- Time
- 5-6 years
- Typical path
- Median pay
- $120,230
- All US jobs: $50,980
- Payback once qualified
- 0.7–1.2 yrs
- Pay above the all-jobs median vs. cost
Low: 4 years at the Scorecard median public in-state tuition for data science bachelor's programs ($11,466 a year = $45,864). High: the same bachelor's plus the Scorecard median federal loan debt for data science master's graduates ($38,994) as a stand-in for master's costs. Not included: housing, private tuition, and optional certification fees (for example $200 for the Google Cloud ML Engineer exam).
Rough guide only: ignores taxes, aid, interest and earnings given up during training. How we calculate it.
Where the career can lead
-
Senior or lead data scientist
With several years of experience, data scientists lead larger projects, set modeling standards and mentor junior staff.
-
Machine learning engineer$135,980 median
Data scientists with strong software skills move into building and running production ML systems, which takes deeper engineering, testing and cloud infrastructure knowledge.
-
Business analyst or analytics manager$101,860 median
Those who enjoy the business side can move into management analysis and strategy roles, or manage analytics teams, with more meetings and less hands-on coding.
-
Actuary$130,000 median
Data scientists in insurance with strong probability skills can move into actuarial work, but it requires passing a series of professional actuarial exams.
Can you become a data scientist online?
A large share of data science training can be done online. Many universities offer online master's degrees in data science, statistics and analytics, and programming, SQL and machine learning can be learned through online courses and practiced with public datasets. Certification exams such as Google Cloud's can be taken with online proctoring. What is harder to get online is real workplace experience, so add internships, research projects or analyst work to any online study.
FAQ: becoming a data scientist
How long does it take to become a data scientist?
Usually four to six years. A bachelor's degree in a quantitative field takes four years and can lead directly to an entry-level data scientist job if you have strong projects or internships. Many people add a one- to two-year master's degree or work as a data analyst for a year or two first. Career changers with a technical background can sometimes move over in one to two years.
Can you become a data scientist without a degree?
It is possible but uncommon. BLS lists a bachelor's degree as the typical entry requirement, and many postings ask for a master's. People without degrees who make it usually start as analysts or engineers, build a strong public portfolio and move into data science internally. Expect employers to test your statistics and coding closely in interviews.
What should I major in to become a data scientist?
Statistics, mathematics, computer science and data science are the most direct majors, and BLS also lists business and engineering. Economics, physics and other quantitative sciences work well too. Whatever you choose, make sure you take probability and statistics, linear algebra, calculus, programming in Python or R, databases and machine learning.
Is data science hard to learn?
It takes real effort because it combines three skill sets: statistics, programming and knowledge of the business or science you are working in. Most people find one of the three comes easily and the others take work. The math is mainly probability, statistics, linear algebra and calculus. Steady practice on real projects is the most reliable way to improve.
Is data science a good career for career changers?
It can be, especially if you already have quantitative or domain experience. Engineers, scientists, economists and financial analysts often move into data science by learning Python, SQL and machine learning, sometimes through a part-time master's program. BLS projects 24,800 openings a year, but entry-level competition is strong, so expect to show results with real projects.
Sources for this guide
Checked October 28, 2026
- Data Scientists: Occupational Outlook Handbook, U.S. Bureau of Labor Statistics · checked October 28, 2026
- College Scorecard, U.S. Department of Education · checked October 28, 2026
- Professional Machine Learning Engineer certification, Google Cloud · checked October 28, 2026
- Certified Analytics Professional (CAP), INFORMS · checked October 28, 2026
- License Finder, CareerOneStop (U.S. Department of Labor) · checked October 28, 2026
Sources
Data updated October 28, 2026
- U.S. Bureau of Labor Statistics, Occupational Employment and Wage Statistics (OEWS), May 2025 estimates, released April 30, 2026, SOC 15-2051
- U.S. Department of Education, College Scorecard field-of-study and institution data, most recent cohorts, released 2026-10-15
- O*NET 31.0 Database (15-2051.00), U.S. Department of Labor, Employment and Training Administration (USDOL/ETA), used under CC BY 4.0; tasks rewritten by Careers and Salaries
Careers and Salaries is not affiliated with the Bureau of Labor Statistics or any government agency. Found an error? Tell us; corrections are listed on the editorial policy page.