The right way to turn off your computer
Shutting down your computer means closing all programs and turning off the power in the correct order, rather than just pulling the plug or holding the power button. A proper shutdown saves your work, closes files safely, and prevents damage to your hard drive or solid-state drive. The method depends on whether you use Windows, macOS, or Linux.
On any system, a shutdown takes 30 seconds to a few minutes. During that time, your operating system closes each running program, saves system files, and powers down hardware in sequence. If you force the power off before this finishes, you risk losing unsaved work and corrupting files that were being written to disk.
Key Takeaways
- A proper shutdown closes all programs and saves system files before powering down, which protects your data and hardware.
- On Windows, use the Start menu and select Shut Down; on macOS, use the Apple menu; on Linux, use the system menu or terminal command.
- If a program freezes during shutdown, you can force-close it without restarting the whole computer.
- Restarting and shutting down are different: restart reboots the system when ready, while shutdown powers it off completely.
- Holding the power button should only be used as a last resort if the system is completely unresponsive.
Shutting down Windows 10 and Windows 11
Click the Start button in the bottom left corner of your screen. A menu will open. Look for the power icon (usually a circle with a line at the top) in the bottom right of the Start menu. Click it.
A small menu will appear with three options: Sleep, Shut Down, and Restart. Click Shut Down. Your screen will go black, and your computer will power off completely. This usually takes 10 to 30 seconds.
If you cannot find the Start menu, press the Windows key on your keyboard (the key with the Windows logo). This opens the Start menu from anywhere on your screen.
Shutting down macOS
Click the Apple menu in the top left corner of your screen. A dropdown menu will appear. Click Shut Down near the bottom of that menu.
A dialog box will ask you to confirm. Click the Shut Down button in the dialog. Your Mac will close all open programs and power off. This usually takes 10 to 20 seconds.
If you have unsaved documents open, macOS will ask whether you want to save them before shutting down. You can choose to save, discard, or cancel the shutdown.
Shutting down Linux
The method depends on which desktop environment you are using. On most Linux systems with a graphical interface, click the system menu (usually in the top right or bottom right corner of the screen). Look for a power icon or a menu labeled System or Settings.
Click the power icon and select Shut Down or Power Off. Your system will close all programs and power down.
If you are using the terminal, you can type sudo shutdown -h now and press Enter. This command shuts down the system when ready. You may be asked to enter your password.
What to do if a program freezes during shutdown
Sometimes a program will not close when you shut down, and your computer will pause with a message asking whether you want to force-close the program. Click Force Quit or End Task to close it without saving. Your computer will then continue shutting down.
If this happens regularly with the same program, that program may have a problem. You can try updating it, reinstalling it, or checking the developer's website for known issues.
Restart versus shutdown
A restart (also called reboot) turns your computer off and back on when ready. A shutdown turns it off completely. Choose restart when you install software updates, troubleshoot problems, or want to clear your computer's temporary memory. Choose shutdown when you are done using the computer for the day.
Both restart and shutdown close your programs and save system files in the same way. The only difference is that restart powers the computer back on automatically.
When to hold the power button
Holding the power button for 5 to 10 seconds forces your computer to shut down when ready, without closing programs or saving files. This can damage your hard drive or cause data loss, so use it only when your computer is completely frozen and will not respond to keyboard or mouse input.
If you find yourself holding the power button regularly, your computer may have a hardware problem or a program that is causing it to freeze. Consider having it checked by a technician, or try shutting down in Safe Mode (a Windows feature that loads only essential programs) to see if the problem is caused by a third-party program.
Frequently Asked Questions
Is it bad to unplug my computer instead of shutting it down?
Yes. Unplugging forces the power off without letting your operating system close files safely. This can corrupt data on your hard drive and damage the drive itself. Always use the proper shutdown method unless your computer is completely unresponsive.
How long should shutdown take?
A normal shutdown takes 10 seconds to a few minutes, depending on how many programs are open and how much data needs to be saved. If shutdown takes longer than 5 minutes, a program may be frozen. You can force-close it and let shutdown continue.
Can I turn off my monitor without shutting down the computer?
Yes. Turning off the monitor does not shut down the computer. The computer keeps running and using power. To save power without shutting down, use Sleep mode instead, which pauses the computer and uses much less electricity.
What is the difference between Sleep and Shut Down?
Sleep pauses your computer and puts it into a low-power state. It wakes up quickly when you move the mouse or press a key. Shut Down powers the computer off completely. Sleep uses more power than shutdown but wakes faster. Use Sleep if you will return to your computer soon; use Shutdown if you are done for the day.
Why does my computer ask to save files when I shut down?
Your operating system is warning you that you have unsaved work in one or more programs. Click Save to keep your work, or Discard if you do not need it. If you click Cancel, the shutdown stops and you return to your desktop.