Professional Documents
Culture Documents
Salary Survey
Salary Survey
Mike Loukides
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. 2021 Data/AI Sal‐
ary Survey, the cover image, and related trade dress are trademarks of O’Reilly
Media, Inc.
The views expressed in this work are those of the authors, and do not represent the
publisher’s views. While the publisher and the authors have used good faith efforts
to ensure that the information and instructions contained in this work are accurate,
the publisher and the authors disclaim all responsibility for errors or omissions,
including without limitation responsibility for damages resulting from the use of or
reliance on this work. Use of the information and instructions contained in this
work is at your own risk. If any code samples or other technology this work contains
or describes is subject to open source licenses or the intellectual property rights of
others, it is your responsibility to ensure that your use thereof complies with such
licenses and/or rights.
978-1-098-11865-5
[LSI]
Table of Contents
iii
2021 Data/AI Salary Survey
Executive Summary
• The average salary for data and AI professionals who responded
to the survey was $146,000.
• The average change in compensation over the last three years
was $9,252. This corresponds to an annual increase of 2.25%.
However, 8% of the correspondents reported decreased com‐
pensation, and 18% reported no change.
1
• We don’t see evidence of a “great resignation.” 22% of respond‐
ents said they intended to change jobs, roughly what we would
have expected. Respondents seemed concerned about job secu‐
rity, probably because of the pandemic’s effect on the economy.
• Average compensation was highest in California ($176,000), fol‐
lowed by Eastern Seaboard states like New York and
Massachusetts.
• Compensation for women was significantly lower than for men
(84%). Salaries were lower regardless of education or job title.
Women were more likely than men to have advanced degrees,
particularly PhDs.
• Many respondents acquired certifications. Cloud certifications,
specifically in AWS and Microsoft Azure, were most strongly
associated with salary increases.
• Most respondents participated in training of some form. Learn‐
ing new skills and improving old ones were the most common
reasons for training, though hireability and job security were
also factors. Company-provided training opportunities were
most strongly associated with pay increases.
Demographics
The survey was publicized through O’Reilly’s Data & AI Newsletter
and was limited to respondents in the United States and the United
Kingdom. There were 3,136 valid responses, 2,778 from the US and
284 from the UK. This report focuses on the respondents from the
US, with only limited attention paid to those from the UK. A small
number of respondents (74) identified as residents of the US or UK,
but their IP addresses indicated that they were located elsewhere.
We didn’t use the data from these respondents; in practice, discard‐
ing this data had no effect on the results.
Of the 2,778 US respondents, 2,225 (81%) identified as men, and
383 (14%) identified as women (as identified by their preferred pro‐
nouns). 113 (4%) identified as “other,” and 14 (0.5%) used “they.”
The results are biased by the survey’s recipients (subscribers to
O’Reilly’s Data & AI Newsletter). Our audience is particularly strong
in the software (20% of respondents), computer hardware (4%), and
computer security (2%) industries—over 25% of the total. Our
audience is also strong in the states where these industries are
Compensation Basics
The average annual salary for employees who worked in data or AI
was $146,000. Most salaries were between $100,000 and $150,000
yearly (34%); the next most common salary tier was from $150,000
to $200,000 (26%). Compensation depended strongly on location,
with average salaries highest in California ($176,000).
The average salary change over the past three years was $9,252,
which is 2.25% per year (assuming a final salary equal to the aver‐
age). A small number of respondents (8%) reported salary decreases,
and 18% reported no change. Economic uncertainty caused by the
pandemic may be responsible for the declines in compensation. 19%
reported increases of $5,000 to $10,000 over that period; 14%
reported increases of over $25,000. A study by the IEEE suggests
that the average salary for technical employees increased 3.6% per
year, higher than our respondents indicated.
39% of respondents reported promotions in the past three years,
and 37% reported changing employers during that period. 22%
reported that they were considering changing jobs because their sal‐
aries hadn’t increased during the past year. Is this a sign of what
some have called a “great resignation”? Common wisdom has it that
technical employees change jobs every three to four years. LinkedIn
and Indeed both recommend staying for at least three years, though
they observe that younger employees change jobs more often.
LinkedIn elsewhere states that the annual turnover rate for technol‐
ogy employees is 13.2%—which suggests that employees stay at their
jobs for roughly seven and a half years. If that’s correct, the 37% that
changed jobs over three years seems about right, and the 22% who
said they “intend to leave their job due to a lack of compensation
increase” doesn’t seem overly high. Keep in mind that intent to
change and actual change are not the same—and that there are
many reasons to change jobs aside from salary, including flexibility
around working hours and working from home.
64% of the respondents took part in training or obtained certifica‐
tions in the past year, and 31% reported spending over 100 hours in
training programs, ranging from formal graduate degrees to reading
Compensation Basics | 3
blog posts. As we’ll see later, cloud certifications (specifically in AWS
and Microsoft Azure) were the most popular and appeared to have
the largest effect on salaries.
The reasons respondents gave for participating in training were sur‐
prisingly consistent. The vast majority reported that they wanted to
learn new skills (91%) or improve existing skills (84%). Data and AI
professionals are clearly interested in learning—and that learning is
self-motivated, not imposed by management. Relatively few (22%)
said that training was required by their job, and even fewer partici‐
pated in training because they were concerned about losing their
job (9%).
However, there were other motives at work. 56% of our respondents
said that they wanted to increase their “job security,” which is at
odds with the low number who were concerned about losing their
job. And 73% reported that they engaged in training or obtained
certifications to increase their “hireability,” which may suggest more
concern about job stability than our respondents would admit. The
pandemic was a threat to many businesses, and employees were jus‐
tifiably concerned that their job could vanish after a bad pandemic-
influenced quarter. A desire for increased hireability may also
indicate that we’ll see more people looking to change jobs in the
near future.
Finally, 61% of the respondents said that they participated in train‐
ing or earned certifications because they wanted a salary increase or
a promotion (“increase in job title/responsibilities”). It isn’t surpris‐
ing that employees see training as a route to promotion—especially
as companies that want to hire in fields like data science, machine
learning, and AI contend with a shortage of qualified employees.
Given the difficulty of hiring expertise from outside, we expect an
increasing number of companies to grow their own ML and AI tal‐
ent internally using training programs.
Salaries by Gender
To nobody’s surprise, our survey showed that data science and AI
professionals are mostly male. The number of respondents tells the
story by itself: only 14% identified as women, which is lower than
we’d have guessed, though it’s roughly consistent with our confer‐
ence attendance (back when we had live conferences) and roughly
equivalent to other technical fields. A small number (5%) reported
Salaries by Gender | 5
executive level. It’s easy to hypothesize about this difference, but
we’re at a loss to explain it. For managers, women’s salaries were
$143,000 versus $154,000 for men (a 7% difference).
Career advancement is also an issue: 18% of the women who partici‐
pated in the survey were executives or directors, compared with 23%
of the men.
How do we explain this? It’s difficult to say that data and AI develop‐
ers who use Rust command a higher salary, since most respondents
checked several languages. But we believe that this data shows some‐
thing significant. The supply of talent for newer languages like Rust
and Go is relatively small. While there may not be a huge demand
for data scientists who use these languages (yet), there’s clearly some
demand—and with experienced Go and Rust programmers in short
supply, they command a higher salary. Perhaps it is even simpler:
regardless of the language someone will use at work, employers
We see almost exactly the same thing when we look at data frame‐
works (Figure 6). Again, the most common response was from peo‐
ple who didn’t use a framework; that group also received the lowest
salaries (30% of users, $133,000 average salary).
Salaries by State
When looking at data and AI practitioners geographically, there
weren’t any big surprises. The states with the most respondents were
California, New York, Texas, and Massachusetts. California accoun‐
ted for 19% of the total, with over double the number of respond‐
ents from New York (8%). To understand how these four states
dominate, remember that they make up 42% of our respondents but
only 27% of the United States’ population.
Salaries in California were the highest, averaging $176,000. The
Eastern Seaboard did well, with an average salary of $157,000 in
Massachusetts (second highest). New York, Delaware, New Jersey,
Maryland, and Washington, DC, all reported average salaries in the
neighborhood of $150,000 (as did North Dakota, with five respond‐
ents). The average salary reported for Texas was $148,000, which is
slightly above the national average but nevertheless seems on the
low side for a state with a significant technology industry.
Salaries in the Pacific Northwest were not as high as we expected.
Washington just barely made it into the top 10 in terms of the num‐
ber of respondents, and average salaries in Washington and Oregon
were $138,000 and $133,000, respectively. (See Figure 8 for the full
list.)
The highest-paying jobs, with salaries over $300,000, were concen‐
trated in California (5% of the state’s respondents) and Massachu‐
setts (4%). There were a few interesting outliers: North Dakota and
Nevada both had very few respondents, but each had one respond‐
ent making over $300,000. In Nevada, we’re guessing that’s someone
who works for the casino industry—after all, the origins of probabil‐
ity and statistics are tied to gambling. Most states had no respond‐
ents with compensation over $300,000.
Salaries by State | 13
Figure 8. Average salary by state
Salaries by Certification
Over a third of the respondents (37%) replied that they hadn’t
obtained any certifications in the past year. The next biggest group
replied “other” (14%), meaning that they had obtained certifications
in the past year but not one of the certifications we listed. We
allowed them to write in their own responses, and they shared 352
unique answers, ranging from vendor-specific certifications (e.g.,
DataRobot) to university degrees (e.g., University of Texas) to well-
established certifications in any number of fields (e.g., Certified
Information Systems Security Professional a.k.a. CISSP). While
there were certainly cases where respondents used different words to
describe the same thing, the amount of unique write-in responses
reflects the great number of certifications available.
Cloud certifications were by far the most popular. The top certifica‐
tion was for AWS (3.9% obtained AWS Certified Solutions
Architect-Associate), followed by Microsoft Azure (3.8% had
AZ-900: Microsoft Azure Fundamentals), then two more AWS cer‐
tifications and CompTIA’s Security+ certification (1% each). Keep in
mind that 1% only represents 27 respondents, and all the other cer‐
tifications had even fewer respondents.
As Figure 9 shows, the highest salaries were associated with AWS
certifications, the Microsoft AZ-104 (Azure Administrator Asso‐
ciate) certification, and the CISSP security certification. The average
salary for people listing these certifications was higher than the aver‐
age salary for US respondents as a whole. And the average salary for
respondents who wrote in a certification was slightly above the aver‐
age for those who didn’t earn any certifications ($149,000 versus
$143,000).
Salaries by Certification | 17
Among our respondents, security certifications were relatively
uncommon and didn’t appear to be associated with significantly
higher salaries or salary increases. Cisco’s CCNP was associated with
higher salary increases; respondents who earned the CompTIA
Security+ or CISSP certifications received smaller increases. Does
this reflect that management undervalues security training? If this
hypothesis is correct, undervaluing security is clearly a significant
mistake, given the ongoing importance of security and the possibil‐
ity of new attacks against AI and other data-driven systems.
Cloud certifications clearly had the greatest effect on salary increa‐
ses. With very few exceptions, any certification was better than no
certification: respondents who wrote in a certification under “Other”
averaged a $9,600 salary increase over the last few years, as opposed
to $8,900 for respondents who didn’t obtain a certification and
$9,300 for all respondents regardless of certification.
Training
Participating in training resulted in salary increases—but only for
those who spent more than 100 hours in a training program. As Fig‐
ure 11 shows, those respondents had an average salary increase of
$11,000. This was also the largest group of respondents (19%).
Respondents who only reported undertaking 1–19 hours of training
(8%) saw lower salary increases, with an average of $7,100. It’s inter‐
esting that those who participated in 1–19 hours of training saw
smaller increases than those who didn’t participate in training at all.
It doesn’t make sense to speculate about this difference, but the data
does make one thing clear: if you engage in training, be serious
about it.
Training | 19
The Last Word
Data and AI professionals—a rubric under which we include data
scientists, data engineers, and specialists in AI and ML—are well-
paid, reporting an average salary just under $150,000. However,
there were sharp state-by-state differences: salaries were signifi‐
cantly higher in California, though the Northeast (with some excep‐
tions) did well.
There were also significant differences between salaries for men and
women. Men’s salaries were higher regardless of job title, regardless
of training and regardless of academic degrees—even though
women were more likely to have an advanced academic degree
(PhD or master’s degree) than were men.
We don’t see evidence of a “great resignation.” Job turnover through
the pandemic was roughly what we’d expect (perhaps slightly below
normal). Respondents did appear to be concerned about job secu‐
rity, though they didn’t want to admit it explicitly. But with the
exception of the least- and most-highly compensated respondents,
the intent to change jobs because of salary was surprisingly consis‐
tent and nothing to be alarmed at.
Training was important, in part because it was associated with hirea‐
bility and job security but more because respondents were genuinely
interested in learning new skills and improving current ones. Cloud
training, particularly in AWS and Microsoft Azure, was the most
strongly associated with higher salary increases.
But perhaps we should leave the last word to our respondents. The
final question in our survey asked what areas of technology would
have the biggest effect on salary and promotions in the coming year.
It wasn’t a surprise that most of the respondents said machine learn‐
ing (63%)—these days, ML is the hottest topic in the data world. It
was more of a surprise that “programming languages” was noted by
just 34% of respondents. (Only “Other” received fewer responses—
see Figure 13 for full details.) Our respondents clearly aren’t
impressed by programming languages, even though the data sug‐
gests that employers are willing to pay a premium for Rust, Go, and
Scala.
There’s another signal worth paying attention to if we look beyond
the extremes. Data tools, cloud and containers, and automation
were nearly tied (46, 47, and 44%). The cloud and containers
Figure 13. What technologies will have the biggest effect on compensa‐
tion in the coming year?