No specific command in Fortran for getting the memory available. This is more of an OS specific thing. Not all OSs have the command either. It depends on which OS you're using. You'll probably have to issue a system command to output the result to a file and then read the file in.