Gartner expects spending on AI-optimised servers to approach $1 trillion as cloud providers expand capacity and memory prices rise. The research firm also projects double-digit growth in spending on AI software and services in 2027.
Â
Worldwide spending on artificial intelligence is projected to reach $4.05 trillion in 2027, up 47.5% from 2026, according to Gartner. AI infrastructure is expected to account for 59% of that total, with spending rising 53% to nearly $2.4 trillion.
“Faster than anticipated expansion of user requirements into scaling up inference workloads, coupled with increasingly compute-intensive training workloads, continues to increase spending on AI infrastructure globally,” said John-David Lovelock, Distinguished VP Analyst and Chief of Research at Gartner.
AI-optimised servers lead infrastructure spending
Spending on AI-optimised servers, the largest segment of AI infrastructure, is forecast to rise from $527.6 billion in 2026 to $957.2 billion in 2027. Gartner attributed the increase to continued infrastructure expansion by hyperscalers and specialist AI cloud providers, as well as higher memory costs pushing up server prices.
Gartner expects worldwide AI services spending to rise 29.5% to $746 billion in 2027, while AI software spending is projected to grow 42% to $649 billion. Spending on AI agents and assistants is forecast to more than double, from $30 billion to $67 billion.
“Services vendors are helping organizations scale AI initiatives through strategy, data preparation, integration and ongoing deployment. At the same time, organizations are boosting their software spending as vendors add AI capabilities to existing products and investing in new platforms that manage and govern AI across the business,” Lovelock said.
Foundation models retain the largest share of GenAI model spending
Spending on generative AI models is projected to grow 82% to $51 billion in 2027. Gartner cited growing demand for agentic AI, multimodal applications and industry-specific capabilities as companies expand AI use across business functions.
“While adoption of domain-specific and specialized AI models is accelerating, with spending projected to grow 99% in 2027, foundation GenAI models will continue to account for the largest share of model spending, reaching 81% in 2027,” Lovelock said.
Companies are adopting domain-specific models to improve accuracy and relevance in targeted applications, Gartner said. Foundation models continue to underpin a range of AI agents, industry-specific models and enterprise applications.















