Factlen ExplainerLegacy CodeExplainerJun 24, 2026, 11:19 PM· 8 min read· #5 of 5 in ai

Explainer: How Generative AI is Finally Defusing the Global COBOL Crisis

As the original programmers retire, banks and governments are using AI to translate decades-old legacy code into modern languages, averting a looming infrastructure collapse.

By Factlen Editorial Team

Cloud-Native Advocates 40%Mainframe Loyalists 30%Modernization Engineers 30%
Cloud-Native Advocates
Argue that AI should be used to extract business logic and move systems entirely off legacy mainframes into modern cloud architectures.
Mainframe Loyalists
Believe the underlying mainframe hardware provides unmatched security and uptime, advocating for AI to modernize code while keeping it on the platform.
Modernization Engineers
Emphasize that AI cannot simply translate code line-by-line, but must be used to untangle decades of technical debt and redesign system architecture.

What's not represented

  • · Retiring COBOL Programmers
  • · End-user Bank Customers

Why this matters

Trillions of dollars in daily financial transactions rely on 50-year-old code that almost no one alive knows how to fix. AI is providing a viable escape route from this maintenance trap, ensuring the stability of global banking and government infrastructure.

Key points

  • An estimated 95 percent of US ATM transactions run on COBOL, a language created in 1959.
  • Banks spend nearly $89 billion annually maintaining these legacy systems as the original programmers retire.
  • Generative AI is accelerating modernization by mapping complex code dependencies in hours rather than years.
  • Instead of direct translation, AI extracts the core business logic so systems can be completely redesigned.
  • The technology has sparked a debate over whether to move systems to the cloud or keep them on secure mainframes.
95%
US ATM operations running on COBOL
$88.9B
Annual bank legacy maintenance cost
5%
Developers able to read COBOL
35%
Drop in code complexity via AI

The modern world runs on a digital foundation built when Richard Nixon was president. Beneath the sleek, user-friendly interfaces of mobile banking applications, airline booking systems, and federal tax portals lies a bedrock of COBOL—a programming language officially created in 1959. While the technology industry obsesses over the latest JavaScript frameworks and cloud-native architectures, the unglamorous reality is that the global economy remains entirely dependent on this 60-year-old syntax. For decades, this infrastructure operated silently and reliably in the background, processing the world's data without complaint. But as the digital demands of the 21st century accelerate, this foundational layer has transformed from a reliable workhorse into a ticking time bomb, forcing the world's largest institutions to confront a crisis they have deferred for a generation.

The sheer scale of this hidden legacy infrastructure is staggering, and its integration into daily life is nearly absolute. According to industry data, an estimated 95 percent of all automated teller machine (ATM) transactions in the United States rely on COBOL to function. Every single day, these ancient systems process roughly $3 trillion in financial transactions, manage billions of dollars in insurance premiums, and handle the logistical backends of major global supply chains. The code is deeply embedded in the core banking systems that clear wire transfers and manage mortgage calculations. Because COBOL was explicitly designed for bulk data processing and high-volume transaction management, it became the undisputed king of enterprise computing in the 1970s and 1980s, establishing a monopoly over mission-critical systems that has never truly been broken.

However, the financial sector and government agencies are now facing a severe demographic reality. The software engineers who originally wrote, maintained, and understood these mission-critical systems have largely retired, taking decades of undocumented institutional knowledge with them. Today, the pool of talent capable of navigating this environment has evaporated; it is estimated that only 5 percent of modern software developers can even read COBOL code, let alone safely modify it. Universities stopped teaching the language decades ago, funneling new graduates toward Python, Java, and web development. This massive skills gap means that when a 40-year-old core banking system needs to be updated to comply with new federal regulations or integrate with a modern mobile application, organizations struggle to find anyone qualified to execute the changes without risking a catastrophic system failure.

Maintaining these aging mainframes has consequently become an existential financial drain on the enterprise world. Banks hemorrhage an estimated $88.9 billion annually just to keep their legacy systems operational, paying massive premiums for the shrinking pool of specialized talent and the specialized hardware required to run the code. The public sector is equally trapped; recent government reports indicate that some federal agencies are forced to spend up to 80 percent of their entire IT budgets on basic operations and maintenance, leaving virtually nothing for actual innovation or digital transformation. This creates a vicious cycle where organizations are paralyzed by their own infrastructure, pouring billions of dollars into merely keeping the lights on while their more agile, digitally native competitors capture market share with modern, cloud-based services.[4]

The hidden cost of maintaining 60-year-old software infrastructure.
The hidden cost of maintaining 60-year-old software infrastructure.

Historically, attempting to modernize these monolithic systems was a logistical nightmare that most Chief Information Officers actively avoided. A proper migration required armies of highly paid consultants spending years manually mapping dependencies, untangling spaghetti code, and attempting to reverse-engineer business logic that had been patched and modified by dozens of different programmers over half a century. Because the risk of breaking a core banking system or a federal tax database is so unacceptably high, these traditional modernization projects were notoriously fragile, suffering from a staggering 77 percent failure rate. Most organizations that attempted a manual rewrite eventually abandoned the effort, accepting the exorbitant maintenance costs of their legacy systems as a permanent, unavoidable tax on doing business.

The rapid maturation of generative artificial intelligence is finally changing the fundamental mathematics of this modernization crisis. Large language models, which have been trained on billions of lines of code across dozens of different programming languages, have developed a unique, almost unprecedented capability. Because these AI models learn the statistical correlations and semantic structures of language, they can seamlessly bridge the gap between ancient COBOL constructs and modern software architecture. Unlike traditional rule-based static analysis tools, which often fail when encountering undocumented quirks or non-standard implementations, generative AI can infer the intent behind a block of code, recognizing patterns and proposing modern equivalents with a level of semantic breadth that was previously impossible to automate.[3]

The rapid maturation of generative artificial intelligence is finally changing the fundamental mathematics of this modernization crisis.

The AI-driven modernization process begins with a phase known as automated discovery. Instead of human engineers spending months reading millions of lines of undocumented, heavily patched code, AI agents are deployed to parse the software's Abstract Syntax Tree. These agents can map complex dependencies across thousands of files, identify redundant modules, and flag dead code in a matter of hours. This comprehensive mapping provides modernization teams with a complete, highly accurate topological view of the legacy system, exposing hidden dependencies and structural risks before a single line of code is actually changed or migrated.[3]

Crucially, the most effective and successful AI modernization tools do not simply translate the legacy code line-by-line into a new language. Systems integrators and software architects are quick to point out that direct translation—often compared to running a poorly written novel through Google Translate—is a fundamentally flawed approach. A direct, syntactic translation of a 40-year-old COBOL program into Java would faithfully reproduce decades of accumulated technical debt, outdated design decisions, and structural inefficiencies. It would essentially recreate the exact same fragile, monolithic system, just written in a slightly more modern syntax, completely defeating the purpose of the modernization effort.[3]

Instead, modernization engineers are utilizing generative AI for a process known as "business logic extraction." In this workflow, the AI analyzes the legacy code specifically to understand the underlying business rules—such as how a specific derivatives trade is calculated, how an insurance premium is priced based on risk factors, or how a tax penalty is applied. The AI extracts these core rules and explains them in plain, natural language, effectively separating the valuable institutional knowledge from the outdated technical implementation. This allows human architects to understand exactly what the system is supposed to do without having to decipher how the original programmer achieved it in 1982.[3]

How AI extracts business logic rather than just translating code line-by-line.
How AI extracts business logic rather than just translating code line-by-line.

Once the core business logic has been successfully isolated and verified, the AI assists the engineering team in generating entirely new, cloud-native code in modern languages like Java, C#, TypeScript, or Rust. Because the new code is generated based on the extracted requirements rather than the old syntax, the resulting software is significantly cleaner and more efficient. In a recent academic study analyzing 50,000 COBOL files from public and enterprise sources, researchers found that AI-driven modernization reduced overall code complexity by 35 percent and decreased system coupling by 33 percent, offering a highly scalable path to rejuvenate aging systems.[2]

The enterprise technology market has rapidly mobilized around this breakthrough, sparking a fierce competition among tech giants to capture the modernization sector. IBM, which manufactures the mainframe hardware that runs most of the world's COBOL, has aggressively entered the space with watsonx Code Assistant for Z. This specialized, purpose-built AI platform is designed specifically to help developers understand, refactor, and translate mainframe code. IBM's strategy is to use AI to modernize the software while keeping the workloads on their proprietary Z architecture, arguing that the true value of the system lies in the unmatched security, resilience, and uptime of the physical mainframe hardware itself.[1]

Meanwhile, cloud-native advocates and competing AI firms are pushing a radically different vision for the future of enterprise infrastructure. Using advanced models like Anthropic's Claude Code, these teams are mapping legacy systems with the explicit goal of abandoning the mainframe ecosystem entirely. They argue that true modernization requires more than just updating the language; it requires breaking monolithic applications into agile, cloud-based microservices that can scale dynamically. In their view, generative AI is the ultimate escape hatch, providing organizations with the tools they need to finally migrate their most critical workloads to modern cloud providers like AWS, Azure, or Google Cloud.[3]

AI tools can map complex dependencies across thousands of legacy files in hours.
AI tools can map complex dependencies across thousands of legacy files in hours.

Regardless of the destination platform or the specific AI tool being used, the results of this technological shift are already becoming visible in high-stakes production environments. One global investment bank recently utilized AI-enhanced extraction to modernize its aging derivatives trading platform. The AI successfully discovered and isolated over 3,000 distinct trading rules and risk calculations that had evolved over two decades of manual patching. By reimplementing these rules in a modern architecture, the bank accelerated its trade settlement times by 60 percent, completely eliminated the need for manual rule maintenance, and reduced its audit preparation time by 75 percent.

Generative AI has not waved a magic wand over the legacy sludge of the enterprise world, and human engineers are still strictly required to validate every output, design the target architecture, and manage the incredibly delicate cutover process. However, by compressing discovery, documentation, and translation cycles that once took years into a matter of weeks, AI is fundamentally altering the economics of software maintenance. It is finally providing the world's most critical financial and governmental institutions with a viable path to defuse the COBOL crisis, allowing them to redirect billions of dollars from merely keeping the lights on toward building the digital infrastructure of the future.[3][5]

How we got here

  1. 1959

    COBOL is created by the CODASYL committee to provide a universal, readable programming language for business data processing.

  2. Late 1990s

    The Y2K bug forces a massive, expensive wave of manual COBOL remediation, highlighting the world's dependence on the aging language.

  3. 2019

    Government reports reveal that federal agencies are spending up to 80 percent of their IT budgets simply maintaining legacy systems.

  4. August 2023

    IBM introduces watsonx Code Assistant for Z, signaling the enterprise shift toward using generative AI for mainframe modernization.

  5. Mid-2026

    AI-driven business logic extraction becomes the industry standard, dramatically reducing the cost and failure rate of legacy modernization projects.

Viewpoints in depth

The Cloud-Native Push

Advocates for using AI to escape the mainframe ecosystem entirely.

For decades, organizations have been trapped in the mainframe ecosystem because the cost of rewriting their core logic was too high. Cloud-native advocates view generative AI as the ultimate escape hatch. By using large language models to map dependencies and extract business rules, they argue that banks and government agencies can finally migrate to agile, scalable cloud environments. In this view, translating COBOL is just the first step toward dismantling the physical mainframe infrastructure entirely.

The Mainframe Loyalist Defense

Arguments that the hardware platform, not the code, is the true asset.

Hardware providers like IBM argue that the rush to the cloud fundamentally misunderstands why mainframes are still used. The value of a mainframe isn't the COBOL language; it is the vertically integrated hardware and software stack that guarantees zero downtime, quantum-safe encryption, and the ability to process billions of transactions a day without fail. Mainframe loyalists advocate using AI to refactor and modernize the code—even translating it to Java—while keeping the workloads on the ultra-secure, purpose-built hardware.

The Engineering Reality

The perspective of systems integrators managing the actual transitions.

Engineers on the front lines of modernization warn against the hype of 'one-click' AI translation. They point out that a direct, line-by-line translation of a 40-year-old COBOL program into Java will simply result in terrible Java that perfectly replicates decades of technical debt. Instead, they use AI as an advanced discovery tool—chunking massive codebases, identifying redundant modules, and surfacing the core business logic so human architects can design a proper, modernized system from the ground up.

What we don't know

  • How modern cloud architectures will match the decades-proven uptime and reliability of traditional mainframe hardware.
  • Whether the AI-generated code will introduce new, unforeseen security vulnerabilities that static analysis tools might miss.

Key terms

COBOL
Common Business-Oriented Language, a programming language created in 1959 that still powers the majority of the world's financial and administrative systems.
Abstract Syntax Tree (AST)
A structural representation of source code that helps AI and analysis tools understand how different parts of a program connect and depend on each other.
Technical Debt
The implied cost of future rework caused by choosing an easy, limited solution now instead of using a better approach that would take longer.
Mainframe
Large, highly powerful computers used by massive organizations for critical applications and bulk data processing, known for extreme reliability and security.

Frequently asked

Why can't organizations just leave the COBOL code alone?

While the code itself is stable, the engineers who wrote it are retiring, making it incredibly difficult and expensive to maintain or update the systems to meet modern digital demands.

Does AI just translate COBOL into Java line-by-line?

No. Direct translation would carry over decades of technical debt and inefficiencies. Instead, AI is used to extract the underlying business rules so the software can be properly redesigned.

Will AI replace human modernization engineers?

Not currently. AI acts as an accelerator for discovery and mapping, but human architects are still required to validate the output, manage the transition, and ensure the new systems are secure.

Sources

Source coverage

5 outlets

3 viewpoints surfaced

Cloud-Native Advocates 40%Mainframe Loyalists 30%Modernization Engineers 30%
  1. [1]IBMMainframe Loyalists

    Accelerate Z modernization with AI

    Read on IBM
  2. [2]arXivModernization Engineers

    Code Reborn: AI-Driven Legacy Systems Modernization from COBOL to Java

    Read on arXiv
  3. [3]ThoughtworksModernization Engineers

    Unpacking Anthropic's market-shaking blog post

    Read on Thoughtworks
  4. [4]Abt GlobalCloud-Native Advocates

    Securing Modern Systems with AI-Powered Compliance

    Read on Abt Global
  5. [5]Factlen Editorial TeamModernization Engineers

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team
Stay informed

Every angle. Every day.

Get ai stories with full source coverage and perspective breakdowns delivered to your inbox.