Fortran Cheat Sheet

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

The reference material consulted while preparing these pages is listed in the section bibliography.

A single-page, colour-coded summary of modern Fortran and its toolchain, written against Fortran 2023 (ISO/IEC 1539-1:2023, J3/23-007r1; checked 2026-10-19 with GNU Fortran 16.2 and LLVM Flang 23) — the toolchain map with the strict and debug flags and an fpm.toml skeleton, the program skeleton and free-form rules, the five intrinsic types with kinds and the numeric model, operators and precedence, control flow with do concurrent, procedures with intent, optional, pure and elemental, arrays (declarations, sections, constructors, where, reductions, column-major order, allocate and move_alloc), strings, derived types and object-oriented programming, pointers, input/output with the main edit descriptors and namelist, the intrinsic modules, coarrays, OpenMP and MPI, interoperability one-liners for C, f2py and MEX, best practices and gotchas, and a strip of legacy features and their modern replacements — handy for quick memorization or as a downloadable PDF desk reference.

For the full explanation, every option, and additional examples, see the dedicated pages:

Start here — Fortran Reference.

Characters, strings and pointers — Characters and Strings and Pointers and Targets.

Evolution and reference — What’s New and Fortran 2028 Preview.