This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


terminates a Mathematica kernel session.
  • Quit[] quits only the Mathematica kernel, not the front end.
  • To quit a notebook front end, choose the Quit menu item.
  • All kernel definitions are lost when the kernel session terminates.
  • If you have kept the definitions in a file or in a notebook you can always re-enter them in a subsequent session.
  • Before terminating a kernel session, Mathematica executes any delayed value that has been assigned to the global variable $Epilog. Conventionally, this attempts to read in a file end.m of commands to be executed before termination.
  • On most computer systems, Quit[n] terminates the Mathematica kernel, passing the integer n as an exit code to the operating system.
Quit terminates the kernel, losing any definitions that have been made:
Click for copyable input
Quit[] will terminate the kernel. Do not enter it if you have any definitions you want to keep:
Click for copyable input
The previous definition for a has been lost:
Click for copyable input
New in 1