Financial markets are offering an unusually timely window into how artificial intelligence may be reshaping the macroeconomy—specifically through gains in software engineering productivity.

Financial markets are offering an unusually timely window into how artificial intelligence may be reshaping the macroeconomy—specifically through gains in software engineering productivity. In a new NBER working paper, economists Alex Blumenfeld, Jonathon Hazell, Chen Lian, and Andreas Schaab use stock prices to build a forward-looking, real-time measure of AI’s economic impact, rather than relying on lagging indicators such as official productivity statistics.

Their approach starts from a simple premise: if investors expect AI to make certain kinds of work more efficient, firms that rely heavily on that work should benefit disproportionately, and that expectation should show up in relative stock performance. The researchers therefore estimate, for each publicly traded firm, how sensitive its stock return is to movements in an AI-focused stock market index. They then examine whether that sensitivity is systematically related to how much the firm spends on software engineering labor—measured as the share of payroll devoted to software engineering.

A clear cross-sectional pattern emerges. Companies with a larger software engineering payroll share tend to have stock returns that are more responsive to the AI index, consistent with the idea that investors believe AI is raising the productivity of software development and related tasks. The authors then use an economic model to translate this relationship between AI exposure and payroll composition into implied productivity gains for software engineering.

The estimates are sizable. Between November 2022 and December 2025, the market’s expected present value of software engineering productivity rose by an amount equivalent to a permanent 32.6% increase in productivity. In other words, based on how investors repriced firms over that period, markets appeared to be treating AI as a lasting boost to the efficiency of software engineering rather than a one-off windfall.

The paper also connects this channel to economy-wide output. Under the authors’ baseline assumptions, the implied increase in software engineering productivity corresponds to a 3.6% rise in the level of GDP. The gains become larger in an alternative scenario where improved software engineering also makes research and development more productive—an additional mechanism through which faster code production could accelerate innovation. With that R&D link included, the estimated GDP level effect reaches 6.5%.

The story does not end in 2025. By mid-2026, the authors report that the estimated impact of AI on both productivity and GDP had more than doubled relative to the end of 2025, a shift they associate with rapid advances in coding agents. That timing aligns with a period when AI systems designed to automate larger portions of programming workflows began improving quickly, strengthening the market’s apparent conviction that software engineering output can be produced with fewer human hours.

Beyond the specific numbers, the paper’s message is methodological as much as it is macroeconomic: markets are not merely reacting to AI hype in the abstract, but appear to be pricing in concrete expectations about where AI will raise productivity and how those gains may scale up to the broader economy.