Automation is happening, and realizing automation’s full potential requires people and technology to work hand in hand, according to a new report produced by McKinsey Global Institute, New York.

Recent developments in robotics, artificial intelligence and machine learning have put Americans on the cusp of a new automation age. Robots and computers can not only perform a range of routine physical work activities better and cheaper than humans, but they are also increasingly capable of accomplishing activities that include cognitive capabilities once considered too difficult to automate, such as making tacit judgments, sensing emotion or even driving. Automation will change the daily work activities of all industries. But, how quickly will these automation technologies become a reality in the workplace? And, what will their impact be on employment and productivity in the global economy?

The report, “A future that works: Automation, employment, and productivity,” highlights several key findings.

For example, the automation of activities can enable businesses to improve performance by reducing errors and improving quality and speed, and in some cases, achieving outcomes that go beyond human capabilities. Automation also contributes to productivity, as it has done historically. At a time of lackluster productivity growth, this would give a needed boost to economic growth and prosperity. It would also help offset the impact of a declining share of the working-age population in many countries. Based on McKinsey’s scenario modeling, it’s estimated that automation can raise productivity growth globally by 0.8-1.4% annually.

The right level of detail at which to analyze the potential impact of automation is that of individual activities rather than entire occupations. Every occupation includes multiple types of activity, each of which has different requirements for automation. Given currently demonstrated technologies, very few occupations—less than 5%—are candidates for full automation. However, almost every occupation has partial automation potential, as a proportion of its activities could be automated. It’s estimated that about half of all the activities people are paid to do in the world’s workforce could potentially be automated by adapting currently demonstrated technologies. That amounts to almost $15 trillion in wages.

The activities most susceptible to automation are physical ones in highly structured and predictable environments, as well as data collection and processing. In the United States, these activities make up 51% of activities in the economy and account for almost $2.7 trillion in wages. They are most prevalent in manufacturing, accommodation and foodservice and retail trade. And, it’s not just low-skill, low-wage work that could be automated; middle-skill and high-paying, high-skill occupations also have a degree of automation potential. As processes are transformed by the automation of individual activities, people will perform activities that complement the work that machines do and vice versa.

Still, automation will not happen overnight. Even when the technical potential exists, it’s estimated it will take years for automation’s effect on current work activities to fully play out. The pace of automation, and thus its impact on workers, will vary across different activities, occupations and wage and skill levels. Factors that will determine the pace and extent of automation include the ongoing development of technological capabilities, the cost of technology, competition with labor, including skills and supply and demand dynamics, performance benefits, including and beyond labor cost savings and social and regulatory acceptance. These scenarios suggest that half of today’s work activities could be automated by 2055, but this could happen up to 20 years earlier or later depending on various factors, in addition to other economic conditions.

The effects of automation might be slow at a macro level, within entire sectors or economies, for example, but they could be quite fast at a micro level, for individual workers whose activities are automated or for companies whose industries are disrupted by competitors using automation.

While much of the current debate about automation has focused on the potential for mass unemployment, people will need to continue working alongside machines to produce the growth in per capita GDP. Thus, the productivity estimates assume that people displaced by automation will find other employment. Many workers will have to change, and business processes will need to be transformed. However, the scale of shifts in the labor force over many decades is not without precedent. It is of a similar order of magnitude to the long-term technology-enabled shifts away from agriculture in developed countries’ workforces in the 20th century. Those shifts did not result in long-term mass unemployment because they were accompanied by the creation of new types of work.

At the end of the day, analysis shows that humans will still be needed in the workforce—the total productivity gains will only come about if people work alongside machines. That in turn will fundamentally alter the workplace, requiring a new degree of cooperation between workers and technology.