The right way to turn off your computer

Shutting down your computer is not the same as putting it to sleep or closing the lid. A proper shutdown closes all running programs, saves your work, and powers down the machine completely. On Windows, Mac, and Linux machines, the shutdown process takes a few seconds and protects your files from corruption.

Pulling the power cord or holding the power button until the screen goes black can damage your hard drive and cause you to lose unsaved work. The operating system needs time to close programs safely and write data to disk. A proper shutdown gives it that time.

Key Takeaways

  • Windows computers shut down through the Start menu, where you select "Shut down" from the power options.
  • Mac computers shut down through the Apple menu, then "Shut Down", and will ask you to confirm.
  • Linux machines shut down through the system menu or by typing a shutdown command in the terminal.
  • Forcing a shutdown by holding the power button should only be used when the computer is frozen and will not respond.
  • Sleep mode and shutdown are different — sleep keeps your computer in low-power mode, while shutdown turns it off completely.

Shutting down a Windows computer

Click the Start button in the bottom left corner of your screen. A menu will open showing your installed programs and system options.

Look for the power icon in the bottom right of the Start menu — it looks like a circle with a line at the top. Click it to see three options: Sleep, Shut down, and Restart. Select "Shut down".

Your screen will go black and your computer will power off. This usually takes 10 to 30 seconds. Wait until the lights on your keyboard and monitor stop blinking before you unplug anything or move the machine.

Shutting down a Mac computer

Click the Apple menu in the top left corner of your screen. A dropdown menu will appear with several options.

Select "Shut Down" from 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" again to confirm. Your Mac will close all open programs and power off.

If you have unsaved documents open, macOS will ask you whether to save them before shutting down. You can choose to save, discard, or cancel the shutdown. Once you confirm, the shutdown takes 10 to 20 seconds.

Shutting down a Linux computer

Linux shutdown methods depend on which desktop environment you are using. Most common distributions (Ubuntu, Fedora, Linux Mint) have a system menu in the top right or bottom right corner of the screen.

Click the system menu and look for a power icon or "Power Off" option. Select it and confirm when prompted. Your computer will shut down and power off.

If you prefer the command line, open a terminal and type sudo shutdown -h now (the -h flag means halt, and now means when ready). Press Enter. The system will shut down after a few seconds. You may need to enter your password to confirm.

What to do if your computer is frozen

If your computer will not respond to clicks or keyboard input, a normal shutdown will not work. In this case, hold down the power button on the front or side of your computer for 10 seconds until the screen goes black and all lights turn off. This is called a hard shutdown or force shutdown.

A hard shutdown can damage files if programs were writing data when you forced it off. Use it only when the computer is completely unresponsive. After a hard shutdown, wait 30 seconds before turning the computer back on.

If your computer freezes regularly, the problem may be a failing hard drive, overheating, or malware. Check that your cooling vents are not blocked by dust, and run a virus scan if you suspect malware.

Sleep mode versus shutdown

Sleep mode and shutdown are not the same. When you put your computer to sleep, it stays powered on but uses very little electricity. Your open programs and files stay in memory, so you can wake the computer and return to exactly where you left off in seconds.

Shutdown powers the computer off completely. When you turn it back on, it has to load the operating system and all your programs from scratch, which takes longer. However, shutdown uses almost no electricity, so it is better for the environment and your power bill if you will not use the computer for several hours.

Use sleep mode if you are stepping away for 15 minutes to an hour. Use shutdown if you are done for the day or will not use the computer for several hours.

Restarting instead of shutting down

Restarting your computer means shutting it down and turning it back on automatically. This is different from a full shutdown because the computer powers back on without you pressing the power button.

Restart your computer when you install software updates, when you are troubleshooting a problem, or when a program tells you to restart. The process is the same as shutdown — go to the power menu and select "Restart" instead of "Shut down".

A restart usually takes 30 to 60 seconds from the moment you select it until you see the login screen or desktop again. Do not turn off the power or close the lid during a restart.

Frequently Asked Questions

Is it bad to shut down my computer every day?

No. Shutting down your computer every day is normal and does not harm it. In fact, daily shutdowns can extend the life of your hardware by reducing heat buildup and wear on the power supply. Most computers are designed to be shut down and restarted regularly.

What is the difference between shutdown and restart?

Shutdown powers your computer off completely and leaves it off until you press the power button. Restart powers your computer off and then automatically turns it back on. Restart is useful after installing updates or when troubleshooting problems.

Can I unplug my computer instead of using the shutdown menu?

You should not unplug your computer as a regular shutdown method. Unplugging forces an when ready power loss without giving the operating system time to close programs and save data. This can corrupt files and damage your hard drive. Only unplug as a last resort if the computer will not shut down and the power button does not work.

Why does my computer take so long to shut down?

A slow shutdown usually means programs are taking time to close or your hard drive is busy writing data. This is normal and can take 30 seconds to a few minutes. If shutdown takes longer than five minutes regularly, you may have too many startup programs or a failing hard drive.

Do I need to close all my programs before shutting down?

You do not have to close programs manually. The shutdown process will close them for you. However, if you have unsaved work in any program, you will be prompted to save it before the shutdown continues. Closing programs yourself first can speed up the shutdown process slightly.