GNU Fortran 13.2

Online Fortran Compiler

High-performance scientific, numerical and legacy computing with GNU Fortran. Write code with auto-formatting, test with standard input (stdin), and inspect terminal output in real-time.

✓ Modern free-form Fortran 90/95/2008 syntax✓ Array slicing and vector intrinsics✓ High speed numerical simulation✓ read(*,*) standard input
main.f90
GNU Fortran 13.2
13px
Standard Input (stdin)
Passed to scanf, input(), cin, etc.
UTF-8Fortran (gfortran)2 SpacesWrap: Off
Ctrl+Enter to Run
Ln 1, Col 121 lines541 chars
Output & ConsoleIdle

Ready to Compile & Run

Click the blue ▶ Run button in the header bar or press Ctrl + Enter to compile and execute your Online Fortran Compiler.

How to Run Fortran (gfortran) Code Online

Compile and run Fortran numerical and scientific simulation code with gfortran.

  1. Write Fortran program block with implicit none, press "▶ Run".

Common Errors & Troubleshooting

Encountering compilation or runtime diagnostics? Check these common scenarios:

Syntax error in argument listCheck parenthesis matching and array dimension bounds.

Related Legacy & Specialized Languages

View all 35+ compilers →
Pascal (FPC).pas

Structured, procedural programming with Free Pascal Compiler (FPC)

Assembly (x86).asm

Low-level x86/x64 NASM assembly playground with register and memory inspection

Frequently Asked Questions (Fortran (gfortran))

Supports modern free-form Fortran 90, 95, 2003, and 2008.