The basic shutdown process
To turn off your computer, use the shutdown command built into your operating system rather than pulling the power cord or holding the power button. A proper shutdown closes all running programs, saves open files, and lets the system power down safely. Forcing it off can corrupt files and damage your hard drive.
The steps differ slightly depending on whether you use Windows, macOS, or Linux, but all three follow the same principle: find the power menu, select shutdown, and wait for the screen to go dark.
Key Takeaways
- Always use your operating system's shutdown menu instead of forcing the power off, because a proper shutdown protects your files and hardware.
- Windows users click the Start button, select Power, then Shut down; macOS users use the Apple menu and select Shut Down.
- If a program freezes and won't close, use Task Manager on Windows or Force Quit on macOS to close it before shutting down.
- Restarting your computer (shutdown followed by automatic restart) fixes many common problems and is different from a full shutdown.
- Holding the power button for several seconds is a last resort only when your computer is completely unresponsive.
Shutting down Windows
Click the Start button in the lower left corner of your screen. A menu will open showing your installed programs and settings. Look for the Power icon — it looks like a circle with a line at the top — usually in the lower left of the Start menu.
Click the Power icon. Three options will appear: Sleep, Restart, and Shut down. Click Shut down. Your screen will go black, and your computer will power off completely. This usually takes 10 to 30 seconds. Do not unplug the computer or press the power button while this is happening.
If you cannot find the Power icon, you can also press Alt + F4 repeatedly to close all open windows, then use Ctrl + Alt + Delete, click the Power icon in the lower right corner, and select Shut down.
Shutting down macOS
Click the Apple menu in the upper left corner of your screen. A dropdown menu will appear. Select Shut Down. A dialog box will ask you to confirm — click Shut Down again. Your Mac will close all open programs and power off. This usually takes 10 to 20 seconds.
You can also press Control + Command + Power (or Control + Command + Eject on older Macs) to bring up the shutdown dialog when ready. If you want your Mac to reopen the same programs and windows when it starts again, check the "Reopen windows when logging back in" box before shutting down.
Shutting down Linux
The method depends on which desktop environment you are using. On Ubuntu with GNOME, click the system menu in the upper right corner (usually showing your username or a power icon), then select Power Off. On Fedora or other systems using GNOME, the process is the same.
If you are using a different desktop environment like KDE or Cinnamon, look for a system menu or process menu, then find the Power or Shutdown option. You can also open a terminal and type sudo shutdown -h now to shut down when ready, or sudo shutdown -h +5 to shut down in 5 minutes.
What to do if your computer won't shut down
If your computer seems stuck and will not shut down after you have clicked Shut down, a program may be frozen. On Windows, press Ctrl + Shift + Esc to open Task Manager. Look through the list of programs for anything that says "Not responding" next to its name. Click it once to select it, then click End Task at the bottom right. Repeat for any other frozen programs, then try shutting down again.
On macOS, press Command + Option + Esc to open Force Quit Applications. Select any program that says "not responding" and click Force Quit. Close all frozen programs this way, then try shutting down through the Apple menu again.
If your computer is completely unresponsive and nothing works, hold down the power button for 10 to 15 seconds until the screen goes black and the computer powers off. This is a forced shutdown and should only be used as a last resort, because it can damage files that were open when you forced it off.
Restart versus shutdown
Restarting your computer means shutting it down and then turning it back on automatically, all in one action. Shutdown means turning it off completely and leaving it off until you press the power button again. Use Restart when you have installed updates, changed settings, or are troubleshooting a problem. Use Shutdown when you are done for the day or moving your computer.
To restart on Windows, click Start, then Power, then Restart. On macOS, click the Apple menu, then Restart. On Linux, use the system menu or type sudo shutdown -r now in a terminal. Restarting usually takes 30 to 60 seconds and closes all your programs, so save your work first.
Preparing your computer before shutdown
Before you shut down, save any open documents and close all programs you are using. Most programs will prompt you to save if you try to close them with unsaved work, but it is safer to save manually first. Close your web browser, email, word processor, and any other open applications.
If you have large file transfers or backups running, wait for them to finish before shutting down. Interrupting a file transfer or backup can corrupt the files being moved. Check the taskbar or system tray for any programs showing progress bars or notifications, and let them complete.
Frequently Asked Questions
Is it bad to shut down my computer every day?
No. Shutting down your computer daily is normal and does not damage it. In fact, shutting down when you are not using it saves electricity and can extend your computer's lifespan by reducing heat buildup. Modern computers are designed to handle daily shutdowns and startups.
What is the difference between sleep and shutdown?
Sleep mode keeps your computer powered on but uses very little electricity, and your programs stay open so you can resume when ready. Shutdown powers off your computer completely and uses almost no electricity, but takes longer to start up again. Use Sleep if you will be away for a few hours; use Shutdown if you are done for the day.
Can I unplug my computer instead of using shutdown?
You should not unplug your computer instead of shutting it down. Unplugging forces the power off without letting the system close files properly, which can corrupt data and damage your hard drive. Only unplug as a last resort if your computer is completely frozen and will not respond to any commands.
Why does my computer take a long time to shut down?
Your computer may be slow to shut down if many programs are running, if updates are installing, or if it is performing maintenance tasks. Let it finish — do not force it off. If shutdown consistently takes more than two minutes, restart your computer and check for pending updates or background programs using Task Manager or Activity Monitor.
Will my files be safe if I shut down while working?
Your files are safest if you save them before shutting down. Most programs auto-save, but relying on auto-save alone is risky. Always manually save important work, close the program, then shut down. This ensures nothing is lost if the shutdown process is interrupted.