The right way to turn off your computer
Shutting down your computer means closing all programs and powering off the machine completely—not just putting it to sleep or closing the lid. On Windows, click the Start button in the lower left, then click the power icon and select "Shut down." On Mac, click the Apple menu in the upper left, then select "Shut Down." On Linux, the method varies by desktop environment, but usually involves clicking a power icon in the system menu or typing a shutdown command.
A proper shutdown saves your work, closes background processes safely, and gives your computer time to write any pending data to the hard drive. Pulling the power cord or holding the power button forces the machine off without this cleanup, which can corrupt files or damage the system over time.
Key Takeaways
- Windows computers shut down through the Start menu power icon; Mac computers use the Apple menu; Linux varies by desktop type.
- A proper shutdown closes all programs and saves pending data, while a forced shutdown can corrupt files.
- Sleep mode keeps your computer running at low power and wakes when ready, while shutdown powers the machine completely off.
- If your computer is frozen and will not respond to shutdown commands, hold the power button for 10 seconds to force it off.
- Restarting your computer (shutting down and turning back on when ready) fixes many common problems without a full power cycle.
Shutting down Windows computers
Click the Start button—the Windows logo in the lower left corner of your screen. A menu will open. Look for the power icon, which looks like a circle with a line at the top. Click it, and a small menu will appear with three options: "Sleep," "Shut down," and "Restart." Click "Shut down."
Windows will close all open programs and display a message saying "Shutting down" with a spinning circle. This usually takes 10 to 30 seconds. Your screen will go black, and the computer will power off completely. You may hear the fan stop and see lights on the machine turn off.
If you have unsaved work in any program, Windows will ask you to save before shutting down. Save your files before proceeding, or Windows will close them without saving.
Shutting down Mac computers
Click the Apple menu in the upper left corner of your screen—it looks like an apple symbol. A dropdown menu will appear. Click "Shut Down" near the bottom of the menu. A dialog box will ask "Are you sure you want to shut down your computer now?" Click "Shut Down" again to confirm.
Your Mac will close all open programs and display a message saying it is shutting down. This usually takes 10 to 20 seconds. The screen will go black, and the computer will power off. The startup sound will not play again until you turn it back on.
If you have unsaved work, your Mac will ask whether you want to save before closing each program. You can click "Save" for each one, or click "Don't Save" to close without saving.
Shutting down Linux computers
The shutdown method on Linux depends on which desktop environment you are using. The most common environments are GNOME, KDE, and Cinnamon. In GNOME, click the system menu in the upper right corner (usually showing the time and network status), then click the power icon and select "Power Off." In KDE, click the process menu in the lower left, then click the power icon and select "Shut Down."
If you prefer using the command line, open a terminal and type sudo shutdown -h now (the -h means halt, and now means when ready). Press Enter. The system will ask for your password. Type it and press Enter again. Your computer will shut down within a few seconds.
Different Linux distributions and desktop environments may have slightly different menus, but they all follow the same principle: find the system menu or power icon and select the shutdown option.
Sleep mode versus shutdown
Sleep mode keeps your computer running at very low power. The screen turns off, the hard drive stops spinning, and the processor slows down dramatically. When you move the mouse or press a key, your computer wakes up in a few seconds and returns to exactly where you left it. Sleep is useful if you are stepping away for a short time and want to resume work quickly.
Shutdown powers the computer off completely. It uses no electricity (except a tiny amount to keep the clock running). When you turn it back on, it goes through the full startup process, which takes longer than waking from sleep. Shutdown is better if you will not use the computer for several hours or longer, or if you want to save electricity.
Many people use sleep mode during the day and shutdown at night. This balances convenience with power savings.
What to do if your computer will not shut down
If your computer is frozen and will not respond to shutdown commands, hold the power button on the front or side of the machine for 10 seconds. The computer will force itself off. This is not ideal—it skips the normal cleanup process—but it is sometimes necessary when the system is completely unresponsive.
After a forced shutdown, wait 30 seconds before turning the computer back on. This gives the hard drive time to stop spinning and prevents damage. When you restart, the computer may run a disk check to look for errors. Let it finish; do not turn it off again.
If your computer freezes regularly, the problem may be a failing hard drive, overheating, or malware. Consider having it checked by a technician.
Restarting instead of shutting down
Restart means shutting down and turning the computer back on when ready, all in one action. It closes all programs and clears the computer's memory, but you do not have to wait for it to power off and then manually turn it back on. Restarting fixes many common problems—slow performance, programs that will not open, or internet connection issues—because it clears temporary files and resets the system.
To restart on Windows, use the Start menu power icon and select "Restart." On Mac, use the Apple menu and select "Restart." On Linux, use the system menu or type sudo shutdown -r now in the terminal. The -r means restart instead of halt.
If you are having trouble with your computer, try restarting before calling for help. It solves the problem in many cases.
Frequently Asked Questions
Is it bad to shut down my computer every day?
No. Shutting down your computer daily is normal and does not harm it. In fact, regular shutdowns can extend the life of your machine by reducing heat buildup and giving components time to cool. Modern computers are designed to handle frequent shutdowns.
What is the difference between shutdown and restart?
Shutdown powers the computer off completely and leaves it off. Restart shuts down and then when ready turns the computer back on. Restart is useful for fixing problems or installing updates that require a reboot; shutdown is used when you are done for the day.
Can I unplug my computer instead of shutting it down?
You can, but you should not make it a habit. Unplugging skips the normal shutdown process and can corrupt files or damage the hard drive. Use the shutdown command instead. Unplugging is only acceptable in emergencies when the computer will not respond to any commands.
Why does my computer take so long to shut down?
Your computer may be waiting for programs to close or for pending updates to install. If shutdown takes more than two minutes, a program may be frozen. Force-quit the frozen program by pressing Ctrl+Alt+Delete on Windows or Command+Option+Esc on Mac, then try shutting down again.
Do I need to shut down my computer or can I just close the lid?
Closing the lid puts your computer to sleep, not shutdown. It will still use power and drain the battery if it is a laptop. If you are done for the day, shut down instead. If you are stepping away briefly, sleep mode is fine.