The right way to turn off your computer

Shutting down your computer means closing all programs and turning off the power in a controlled way, rather than just pulling the plug or holding the power button. A proper shutdown saves your work, closes files safely, and lets your operating system clean up temporary files before the machine stops.

The method depends on whether you use Windows, macOS, or Linux. Each one has a shutdown process built into the system menu. Doing it this way takes 30 seconds to two minutes and protects your files and hardware.

Key Takeaways

  • A proper shutdown closes all programs and saves your work before the computer powers off, which protects your files and hard drive.
  • On Windows, use the Start menu and select Shut down; on macOS, use the Apple menu and select Shut Down; on Linux, use the system menu or terminal command.
  • Save all open documents before you shut down, because some programs may lose unsaved changes during the process.
  • Forcing a shutdown by holding the power button or cutting power can corrupt files and damage your hard drive over time.
  • If your computer is frozen and will not respond, holding the power button for 10 seconds is a last resort, but use it only when the normal shutdown will not work.

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 (it looks like 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 computer will close all open programs, save system settings, and turn off the power. This usually takes 30 seconds to two minutes depending on how many programs are running.

If you want a faster route, you can also press Alt + F4 to close the current window, then use the power menu as described above. On some Windows computers, you can also right-click the desktop, but the Start menu method works on every Windows machine.

Shutting down macOS

Click the Apple menu in the top left corner of your screen. A dropdown menu will appear. Select Shut Down from the list.

A dialog box will ask you to confirm. You can choose whether to reopen windows when you start up again — if you leave that box checked, your programs will open in the same state they were in when you shut down. Click Shut Down to proceed. Your Mac will close all programs and turn off.

You can also use the keyboard shortcut Control + Command + Q to shut down without the confirmation dialog, though the standard menu method is safer if you are not sure you want to shut down right away.

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 in the top right or bottom right corner of the screen (the exact location varies). Look for a power icon or a menu labeled System, Settings, or Applications.

Select Shut Down or Power Off from the menu. Your computer will close all programs and turn off.

If you are 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 shut down. On some systems you can also type sudo poweroff to achieve the same result.

What to do before you shut down

Save all open documents before you start the shutdown process. Most programs will prompt you to save if you have unsaved changes, but some will not. Close your web browser, email client, and any other programs you were using. This takes only a few seconds and prevents data loss.

If you have external drives connected — a USB drive, external hard drive, or network storage — eject them before you shut down. On Windows, right-click the drive in File Explorer and select Eject. On macOS, drag the drive icon to the Trash or right-click and select Eject. This prevents file corruption on the external device.

If you are in the middle of a large read or file transfer, wait for it to finish before you shut down. Stopping a transfer midway can corrupt the file or leave it incomplete.

When your computer will not shut down normally

Sometimes a frozen program will prevent your computer from shutting down. If the shutdown menu does not appear or your computer is not responding, try closing the frozen program first. On Windows, press Ctrl + Alt + Delete, select Task Manager, find the program that is not responding, click it, and select End Task. Then try the normal shutdown again.

On macOS, press Command + Option + Escape to open the Force Quit Applications window. Select the frozen program and click Force Quit. Then use the Apple menu to shut down normally.

If nothing responds and your computer is completely frozen, hold the power button for 10 seconds until the screen goes black and the machine powers off. This is a forced shutdown and should only be used when the normal process will not work. Forced shutdowns can occasionally cause file corruption, so use this method only as a last resort.

The difference between shutdown, restart, and sleep

Shutdown turns off your computer completely. The power is off, and nothing is running. When you press the power button again, your computer will start from scratch, which takes longer but uses no electricity while off.

Restart closes all programs and turns off the power, then when ready turns the computer back on. Use this when you install software updates, when a program is behaving strangely, or when you want to clear out temporary files. A restart usually takes two to five minutes.

Sleep puts your computer into a low-power state where programs stay open in memory but the screen turns off and the hard drive stops spinning. Sleep uses a small amount of electricity but lets you resume work when ready when you wake the computer. Use sleep if you are stepping away for a few minutes or an hour. Use shutdown if you will not use the computer for several hours or overnight.

Why a proper shutdown matters

When you shut down properly, your operating system has time to close files, save settings, and clear temporary data. This protects your documents and prevents corruption. A hard drive that is forced off repeatedly can develop errors over time, and files that are interrupted mid-write can become unreadable.

A proper shutdown also gives security software a chance to run final checks and update virus definitions. It lets your system install pending updates. And it gives your hardware a clean stop, which extends the life of your power supply and other components.

Forcing a shutdown by holding the power button or cutting the power should only happen when the computer is completely frozen and will not respond to any input. In normal circumstances, use the shutdown menu every time.

Frequently Asked Questions

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

Yes. Unplugging or cutting power without a proper shutdown can corrupt files that are being written, damage your hard drive, and lose unsaved work. Do this only if your computer is completely frozen and will not respond to the power button or shutdown menu.

How long should a shutdown take?

A normal shutdown takes 30 seconds to two minutes. If your computer is taking longer than five minutes to shut down, a program may be frozen. Press Ctrl + Alt + Delete (Windows) or Command + Option + Escape (macOS) to force-quit the stuck program, then try shutting down again.

Will my files be safe if I shut down in the middle of a read?

No. Stopping a read or file transfer during shutdown can leave the file incomplete or corrupted. Wait for downloads and transfers to finish before you shut down, or pause them and resume after you restart.

What is the difference between shutdown and restart?

Shutdown turns off your computer completely and uses no power. Restart closes all programs and when ready turns the computer back on. Use restart when you install updates or when a program is not working correctly. Use shutdown when you will not use the computer for several hours.

Can I shut down my computer while it is installing updates?

No. If your computer is installing updates, wait for the installation to finish before you shut down. Interrupting an update can leave your system unstable or unable to start. If an update is taking too long, restart your computer and try the update again.