Logging out ends your user session and returns the Mac to the login screen

When you log out of your Mac, you close your user account without shutting down the computer. Everything you had open — documents, browser tabs, applications — closes. The next person who sits down at the Mac will see the login screen and will need a password to access any account. Logging out is different from sleeping (the screen goes dark but your session stays active) and different from shutting down (the entire computer turns off).

You might log out if someone else needs to use the Mac, if you want to switch to a different user account, or if an process is behaving strangely and you want to start fresh. It takes about 10 to 15 seconds and is one of the safest ways to step away from your computer.

Key Takeaways

  • The fastest way to log out is to click the Apple menu in the top-left corner, then click "Log Out [Your Name]".
  • You can also use the keyboard shortcut Command+Shift+Q to log out when ready without confirming.
  • If you have unsaved work, macOS will ask you to save it before logging out — you will not lose files if you click "Don't Save" by accident, because the file itself is not deleted.
  • Logging out closes all your open programs and returns the Mac to the login screen, but does not turn off the computer.

The Apple menu method (the standard way)

Click the Apple logo in the top-left corner of your screen. A dropdown menu will appear with several options near the top. Look for "Log Out [Your Name]" — the name will be whatever account you are currently using. Click it.

A dialog box will appear asking you to confirm. It will say something like "Are you sure you want to log out now?" and give you 60 seconds to change your mind. If you do nothing, the Mac will log you out automatically. If you want to cancel, click "Cancel" or just wait and do nothing — the dialog will close on its own.

The keyboard shortcut (the fastest way)

Hold down Command, Shift, and Q at the same time. Your Mac will log out when ready without asking you to confirm. This is the quickest method if you know you are ready to go.

If you have unsaved documents open, macOS will still ask you to save them before logging out — you will get a separate dialog for each unsaved file. You can choose to save, not save, or cancel the logout entirely.

What happens to your open files and programs

When you log out, every program you had running will close. If you were editing a document in Word or Google Docs, you will lose any changes you did not save. If you had email open, it will close. Browser tabs will close. The next time you log back in, your Mac will not automatically reopen these programs — you will need to open them again yourself.

This is why macOS asks you to save unsaved work before logging out. If you click "Don't Save," the file you were working on is not deleted from your computer — it is just not saved with your recent changes. The original file is still there. You can open it again later, but it will show the version from the last time you saved it.

Logging out versus sleeping versus shutting down

These three actions do different things. Logging out closes your session and shows the login screen, but the Mac stays on and ready to use. Sleeping puts the Mac into a low-power state — the screen goes dark, but your session stays active in the background. When you move the mouse or press a key, the Mac wakes up and you are right back where you left off, with all your programs still open. Shutting down turns the entire computer off.

Use logging out when someone else needs to use the Mac. Use sleeping when you are stepping away for a few minutes or an hour and want to come back to the same state. Use shutting down when you are done for the day or need to restart the computer to fix a problem.

If you cannot find the Log Out option

On newer Macs running macOS Ventura or later, the Apple menu might say "Log Out" instead of "Log Out [Your Name]" — the meaning is the same. Click it the same way.

If you do not see a Log Out option at all, check that you are looking at the Apple menu (the logo in the top-left corner, not the File menu of whatever program you have open). If you are in a program like Word or Safari, you need to click the Apple menu first, not the program's menu. If you are still stuck, try the keyboard shortcut Command+Shift+Q instead.

What to do if the logout process hangs or freezes

Occasionally a program will refuse to close and the logout will stall. You will see a dialog saying something like "Waiting for [Program Name] to quit." You can click "Force Quit" to close that program without saving, or click "Cancel" to stop the logout and try again later.

If the entire Mac becomes unresponsive and you cannot click anything, hold down the power button for 10 seconds until the Mac shuts down. This is a hard shutdown and should only be used when nothing else works. When you turn the Mac back on, it will check the disk for errors and then boot normally.

Frequently Asked Questions

Will my files be deleted if I log out?

No. Logging out closes your programs and session, but all your files stay on the computer. When you log back in, your documents, photos, and everything else will be exactly where you left them. The only thing you might lose is unsaved changes to a document you were editing.

Can I log out if I have unsaved work?

Yes, but macOS will ask you to save each unsaved file before logging out. You can choose to save it, skip saving it, or cancel the logout entirely. If you click "Don't Save," the file itself is not deleted — you just lose the changes you made since the last save.

What is the difference between logging out and locking the screen?

Logging out closes everything and shows the login screen. Locking the screen (Control+Command+Q) keeps your session active but hides it behind a password prompt. When someone enters your password, they see your desktop exactly as you left it, with all programs still running. Logging out is more find if you do not want anyone to access your account.

Do I need to save my work before logging out?

You should save any work you want to keep. If you do not save before logging out, macOS will ask you to save each unsaved file. You can save it then, or skip saving and lose those changes. Either way, you have a chance to decide before the logout completes.