OpenAI has published COBOL and Fortran coding evaluations that report large accuracy gains for its newest models, including an average 87.4% test pass rate on a 20-language benchmark called MultiLangBench.
OpenAI released the MultiLangBench evaluation setup and test suite on GitHub, with results for each language. The company said developer and enterprise customer feedback shaped the choice of languages, which also include Visual Basic, OCaml, and 16 others.
“This work is guided by feedback from developers and enterprise customers who have told us that coding models often struggle with these languages,” explained OpenAI.
COBOL carries banking and ATM traffic
OpenAI frames the work around software that operators cannot easily replace. COBOL supports more than 40 percent of online banking systems, 80 percent of in-person credit card transactions, and 95 percent of ATM transactions. Fortran appears in weather forecasting and nuclear reactor safety analysis.
Maintenance is difficult for reasons that predate AI tooling. Documentation may be incomplete, original developers may have left the company, and business rules may exist only in code. Whether teams are fixing bugs or migrating to another language, they need to preserve the behaviour their systems depend on.
MultiLangBench rebuilds SQLite from scratch
The benchmark asks a model to build a SQLite-compatible database engine in a specified language. Database files act as the shared interface: the candidate program receives an initial database and a SQL query, then produces a modified database, and the reference SQLite implementation checks whether the resulting contents match.
Tests were adapted from SQLite’s existing test suite, and results report both test pass rate and API cost. A model must organise a codebase, manage state, handle errors, and add features while preserving existing functionality.
At maximum reasoning effort, GPT-6 Astra scores above 83 percent in 19 of the 20 languages. COBOL remains the hardest at 72 percent.
Gains over GPT-5.6 Sol include:
- COBOL moved from 10.9% to 72.1%.
- Fortran moved from 21.4% to 83.5%.
- Visual Basic moved from 27.5% to 89.4%.
- OCaml moved from 25.6% to 85.8%.
COBOL migration demands byte-for-byte parity
The second evaluation asks a model to migrate existing COBOL programs to C++, Java, Kotlin, Python, or Rust while preserving behaviour. Hidden tests require byte-for-byte parity on observable outputs, and a migration counts as successful only if every test passes.
Small semantic details decide the outcome. COBOL’s fixed-point arithmetic, for example, discards excess decimal digits unless rounding is explicitly requested.
GPT-6.1 Sol reaches 86.6 percent accuracy at low reasoning effort, against 5.4 percent for GPT-5.6 Sol at the same setting, while costing 39 percent less, or 61 percent of the API cost.
At higher reasoning effort, accuracy rises to 97.9 percent, which OpenAI describes as bringing the evaluation close to saturation.
Luna trades accuracy for lower cost
GPT-6 Luna reaches a 40.3 percent average pass rate on MultiLangBench at maximum reasoning effort and improves on GPT-5.6 Sol in every language tested.
Per-language results include COBOL at 17.1 percent, Fortran at 31.4 percent, OCaml at 34.1 percent, and Visual Basic at 41.6 percent. The estimated average API cost is $0.77 per sample, against $3.48 for GPT-5.6 Sol, roughly 78 percent lower.
Price per sample has become a regular comparison point in model releases, alongside debate over revenue sharing for open-source models.
Production use still requires expert review
OpenAI states that production use still requires expert review and testing against business rules and dependencies. The evaluations measure behaviour on defined tests rather than readiness for live systems, and the published figures describe pass rates and API cost rather than deployment outcomes.
OpenAI said the results show its models are becoming better at working with a wide range of programming languages while also becoming more cost-efficient, and that the models are available through the API for coding tasks.
See also: LangChain adds AI Search to LangSmith for debugging AI agents

Want to learn more about cybersecurity from industry leaders? Check out Cyber Security & Cloud Expo taking place in Amsterdam, California, and London. The comprehensive event is part of TechEx and is co-located with other leading technology events including the AI & Big Data Expo. Click here for more information.
Developer is powered by TechForge Media. Explore other upcoming enterprise technology events and webinars here.