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 your programs, saves your work, and lets the system prepare itself for being off. Pulling the plug can corrupt files and damage your hard drive.

On Windows, click the Start button in the bottom left corner, then click the power icon, and select "Shut down" from the menu. On Mac, click the Apple menu in the top left, select "Shut Down", and confirm when prompted. On Linux, the method varies by desktop environment, but you can usually right-click the desktop or access shutdown from the system menu.

Key Takeaways

  • Always use your operating system's shutdown command instead of forcing the power off, because a proper shutdown protects your files and hardware.
  • Windows users click Start, then the power icon, then "Shut down"; Mac users click the Apple menu and select "Shut Down".
  • Save all open documents before shutting down, because some programs will close without saving if you do not do this first.
  • If your computer is frozen and will not respond to shutdown commands, hold the power button for 10 seconds as a last resort.
  • Restarting (which shuts down and starts back up) often fixes problems faster than a full shutdown and restart cycle.

Saving your work before shutdown

Before you shut down, save any open documents or files you are working on. Most programs will warn you if you try to close them with unsaved changes, but some will close silently and lose your work. Go through each open window, save what you need, and close the programs one at a time.

If you have a lot of programs open, you can also use the shutdown command and let the system prompt you about unsaved files. Windows and Mac will usually show a dialog asking which programs have unsaved changes and give you a chance to save before the shutdown continues. This is safer than assuming you have saved everything.

What happens during shutdown

When you start a shutdown, your operating system sends a signal to all running programs telling them to close. Each program has a few seconds to save its state and close cleanly. Once all programs are closed, the system writes any remaining data to disk, stops all background processes, and powers down the hardware.

This process usually takes 30 seconds to two minutes depending on how much data needs to be written and how many programs are running. If shutdown seems to be taking longer than five minutes, something may be stuck. You can wait a bit longer, but if nothing changes after 10 minutes, you may need to force the shutdown.

Forcing a shutdown when the computer is frozen

If your computer stops responding to clicks and keyboard input, it is frozen and the normal shutdown command will not work. Hold down the power button on your computer for 10 seconds without releasing. The computer will cut power when ready, which is not ideal but is sometimes necessary.

After a forced shutdown, your computer may take longer to start back up because it needs to check the hard drive for errors. You may also lose any work you had open in programs that had not saved yet. Forced shutdowns should be rare—if your computer freezes regularly, something is wrong and you should investigate the cause.

Shutdown versus restart versus sleep

Shutdown turns the computer completely off and stops using power (except for a tiny amount in the power supply). Restart shuts down and when ready starts back up, which is useful when you have installed updates or when a program is misbehaving. Sleep (or hibernation) puts the computer into a low-power state where it can wake up quickly, but it still uses some power.

If you are done using the computer for the day, shutdown is the right choice. If you have just installed software updates or your computer is acting strange, restart often fixes the problem faster than shutdown and a manual restart. Sleep is best if you are stepping away for an hour or two and want to get back to work quickly without waiting for the computer to start up.

Restarting your computer

To restart, use the same menu where you would find the shutdown option. On Windows, click Start, then the power icon, and select "Restart". On Mac, click the Apple menu and select "Restart", then confirm. The computer will shut down and start back up automatically without you having to press the power button.

Restart is often the first thing to try when a program is not working, the internet connection is dropping, or the computer is running slowly. Many temporary problems clear themselves during a restart because the system resets its memory and reloads all drivers. If a problem comes back after a restart, it is likely a deeper issue that needs investigation.

Safely shutting down a laptop

Laptops should be shut down the same way as desktop computers—through the operating system menu, not by closing the lid. Closing the lid usually puts the laptop to sleep rather than shutting it down. If you want to shut down a laptop, use the shutdown command and wait for the screen to go dark and the lights to stop blinking before closing the lid.

If you are traveling and want to save battery, sleep mode is fine for a few hours. For longer storage or travel, shut down completely. A shut-down laptop uses almost no power and will not drain the battery. If you close the lid without shutting down, the laptop may wake up in your bag and drain the battery completely.

Frequently Asked Questions

Is it bad to unplug the computer instead of shutting it down?

Yes. Unplugging or holding the power button forces an when ready shutdown without letting the system save data or close programs cleanly. This can corrupt files, damage the hard drive, and cause problems when you start the computer again. Use the shutdown command whenever possible.

Why does my computer take so long to shut down?

A slow shutdown usually means programs are taking time to close or the system is writing a lot of data to disk. Close programs manually before shutting down to speed things up. If shutdown regularly takes more than five minutes, a background program or virus may be the cause and you should investigate.

Can I turn off the computer while it is installing updates?

No. Interrupting an update installation can damage your operating system and make the computer unable to start. Wait for the update to finish, even if it takes a long time. If the update seems stuck for more than an hour, you may need to force a shutdown, but this should be a last resort.

What is the difference between shutdown and sleep mode?

Shutdown turns the computer completely off and uses almost no power. Sleep mode keeps the computer in a low-power state so it can wake up quickly. Use shutdown if you are done for the day; use sleep if you are stepping away for a short time and want to get back to work fast.

Do I need to shut down my computer every day?

No, but it is a good idea. Shutting down clears the computer's memory, closes any stuck programs, and gives the system a fresh start. If you leave your computer on all the time, restart it at least once a week. This helps prevent slowdowns and memory leaks that build up over time.