Data Scientist vs Penetration Tester: Which Pays More?
Side-by-side salary comparison by city, experience level, and career growth outlook. Data reflects current market rates.
Data Scientist
Analyse large datasets and build predictive models to drive decisions.
Penetration Tester
Conduct authorised attacks on systems to find and report vulnerabilities.
Penetration Tester earns more on average โ the national median is $8,950/year (7%) higher than a Data Scientist. However, salaries vary significantly by city, employer, and experience level โ see the city-by-city breakdown below.
Data Scientist vs Penetration Tester โ Salary by City
National median figures in USD across top cities.
| City | Data Scientist | Penetration Tester | Difference |
|---|---|---|---|
| San Francisco, CA | $176,777 | $193,496 | Data $16,719 |
| New York, NY | $135,980 | $140,470 | Data $4,490 |
| Seattle, WA | $173,186 | $188,841 | Data $15,655 |
| Austin, TX | $130,733 | $145,769 | Data $15,036 |
| Chicago, IL | $132,415 | $135,251 | Data $2,836 |
| Boston, MA | $156,115 | $171,501 | Data $15,386 |
| London, UK | ยฃ78,216 | ยฃ102,480 | Data $24,264 |
| Toronto, Canada | CA$134,265 | CA$166,911 | Data $32,646 |
Frequently Asked Questions
Does a Data Scientist or Penetration Tester earn more?+
A Penetration Tester earns more on average. The national median salary for a Data Scientist is $120,230/year, compared to $129,180/year for a Penetration Tester โ a difference of $8,950 (7%).
Which has better career growth โ Data Scientist or Penetration Tester?+
Data Scientist roles are growing at 36% YoY while Penetration Tester demand is growing at 30% YoY. Data Scientist has stronger near-term demand growth.
Can you switch from Data Scientist to Penetration Tester?+
Yes. Many professionals transition between these roles, especially since both are in the same category. Shared skills include: Python.
Which is harder to automate โ Data Scientist or Penetration Tester?+
Penetration Tester has a lower AI automation risk (22% vs 40%). Based on Oxford Martin School and McKinsey 2023 analysis.