The right way to turn off your computer
Shutting down your computer means closing all programs, saving data, and powering off the machine completely. On Windows, you click the Start button, select Power, then Shutdown. On Mac, you click the Apple menu, select Shut Down, and confirm. On Linux, the method varies by desktop environment, but usually involves a power menu or the terminal command shutdown -h now. The key difference from sleep or restart is that shutdown powers the machine all the way off, rather than leaving it in a low-power state or rebooting it.
A proper shutdown takes 30 seconds to a few minutes depending on what programs are running and how much data needs to be written to disk. During this time, your computer closes open files, saves unsaved work where possible, stops all background processes, and powers down the hardware. If you force the power button off without shutting down properly, you risk losing unsaved data and potentially corrupting files on your hard drive.
Key Takeaways
- Windows shutdown: click Start, select Power, then Shutdown — do not hold the power button.
- Mac shutdown: click the Apple menu, select Shut Down, and confirm the action.
- Linux shutdown varies by desktop, but the terminal command shutdown -h now works on most systems.
- A normal shutdown takes 30 seconds to a few minutes and is safer than forcing the power off.
- If your computer is frozen and will not shut down normally, hold the power button for 10 seconds as a last resort.
Windows shutdown step by step
On Windows 10 and Windows 11, the shutdown process is straightforward. Click the Start button in the bottom left corner of your screen. A menu will appear with several options at the top. Look for the Power icon — it looks like a circle with a line at the top. Click it, and you will see three choices: Sleep, Shutdown, and Restart. Select Shutdown.
Your computer will then close all open programs. If you have unsaved work in any program, that program may ask you to save before closing. Answer yes or no as needed — if you say no, that work will be lost. Once all programs are closed, Windows will write any remaining data to disk, stop all background services, and power off. The screen will go black and stay black.
If you are using an older version of Windows, the steps are similar but the menu layout may differ slightly. You can also press Alt + F4 repeatedly to close all open windows, then use the shutdown menu. Avoid holding down the power button unless the computer is completely unresponsive.
Mac shutdown step by step
On macOS, click the Apple menu in the top left corner of your screen. A dropdown menu will appear. Select Shut Down near the bottom of the menu. A dialog box will ask you to confirm — it will say "Are you sure you want to shut down your computer now?" Click Shut Down to proceed.
Your Mac will then close all open applications. If any process has unsaved changes, it will ask whether you want to save before closing. You can choose to save, discard, or cancel the shutdown. Once all applications are closed, macOS will power down the hardware. The screen will go black.
You can also use the keyboard shortcut Control + Command + Power to bring up the shutdown dialog directly, which is faster if you use it often. On newer Macs with the Touch ID button, you can hold down the power button until the shutdown menu appears.
Linux shutdown from the desktop
Linux shutdown methods depend on which desktop environment you are using — GNOME, KDE, XFCE, and others each have slightly different menus. On most systems, look for a power menu or system menu, usually in the top right or bottom right corner of the screen. Click it and look for a Shutdown or Power Off option. Click that option and confirm if prompted.
If you cannot find a shutdown button in your desktop environment, you can use the terminal instead. Open a terminal window and type shutdown -h now (the -h flag means halt, and now means when ready). Press Enter. Your system will shut down within a minute.
Some Linux systems also respond to sudo poweroff or sudo halt in the terminal. If you are not sure which command to use, shutdown -h now works on nearly all Linux distributions and is the safest choice.
What to do if your computer will not shut down
If you have clicked Shutdown but nothing happens after several minutes, your computer may be frozen or stuck. First, wait a full five minutes — sometimes a shutdown just takes longer than expected, especially if a program is writing a large file to disk. If nothing has changed after five minutes, try holding down the power button for 10 seconds. This forces the computer to power off when ready.
Forcing a power-off is not ideal because it does not give programs a chance to save data, but it is better than leaving the computer stuck indefinitely. After a forced shutdown, your computer may take longer to start up the next time, as it will check the file system for errors. This is normal and usually completes on its own.
If your computer freezes regularly during shutdown, a background program or driver may be causing the problem. You can try restarting in Safe Mode (Windows) or Recovery Mode (Mac) to see if the shutdown works there. If it does, a recently installed program or update is likely the cause, and you may need to uninstall it or contact the software maker for support.
Sleep versus shutdown: which to use
Sleep mode puts your computer into a low-power state where it uses much less electricity but stays ready to wake up quickly. The screen turns off, the hard drive stops spinning, and most hardware goes into a reduced-power mode. When you press a key or move the mouse, the computer wakes up in a few seconds and you are back where you left off.
Shutdown powers the computer completely off. It uses almost no electricity while off, but takes longer to start back up — usually 30 seconds to a few minutes depending on your hardware. Use shutdown if you will not be using the computer for several hours or longer, or if you want to be certain all programs are closed and all data is saved to disk.
Use sleep if you will be away for a short time — an hour or two — and want to get back to work quickly. Use shutdown at the end of the workday, before traveling, or before any maintenance. Both are safe; the choice depends on how long you will be away and how much power you want to save.
Restart versus shutdown
Restart closes all programs and powers off the computer, but then powers it back on automatically. Shutdown closes all programs and powers off, and stays off until you press the power button. Use restart when you have installed software or a system update that requires a reboot, or when your computer is running slowly and you want to clear out temporary files and reset all running processes.
Use shutdown when you are done for the day or when you will not need the computer for several hours. Restart is also useful if your computer is behaving strangely — a fresh start often fixes minor glitches. Both processes are safe and will not harm your computer or data.
Frequently Asked Questions
Is it bad to shut down my computer every day?
No. Shutting down your computer daily is normal and safe. Modern computers are designed to handle frequent shutdowns and startups. Turning off your computer when you are not using it saves electricity and is good practice. The only downside is that startup takes longer than waking from sleep, but there is no damage to the hardware or files.
What happens to my files when I shut down?
Your files stay on your hard drive or solid-state drive. Shutdown does not delete anything. Any work you have saved is still there when you turn the computer back on. Only unsaved work in open programs is lost — that is why programs ask you to save before closing during shutdown.
Can I unplug my computer instead of shutting it down?
You can, but you should not make it a habit. Unplugging without shutting down is like forcing the power off — it does not give programs a chance to save data or close files properly. This can corrupt files or cause data loss. Use the shutdown menu instead. If the computer is completely unresponsive, hold the power button for 10 seconds as a safer alternative to unplugging.
Why does my computer take so long to shut down?
A slow shutdown usually means a program is taking time to close or save data. Background programs, antivirus scans, or large file operations can all slow down the shutdown process. If shutdown regularly takes more than five minutes, check what programs are running in the background and close any you do not need. Restarting your computer regularly also helps keep shutdown times reasonable.
Should I shut down or restart after installing updates?
Either one works. The update installer will usually ask you to restart, which closes everything and powers the computer back on so the update can finish installing. If you choose shutdown instead, you will need to power the computer back on manually to complete the installation. Restart is usually faster because you do not have to press the power button yourself.