Stop Your Computer From Sleeping Automatically

Your computer goes to sleep to save power, but you can turn off that automatic shutdown in your operating system settings. The steps differ between Windows and Mac, and you can choose to disable sleep entirely or set it to happen only after a longer period of inactivity. Most people find it faster to adjust the sleep timer than to wake the machine repeatedly, but the choice depends on whether you want the computer running all the time or just less frequently asleep.

Sleep mode is not the same as shutting down — your computer stays powered on, keeps network connections active, and wakes when ready when you move the mouse or press a key. Disabling sleep means your screen and hard drive may stay active longer, which uses more electricity. If you only need the computer awake for a few hours, changing the sleep delay is usually better than turning sleep off completely.

Key Takeaways

  • On Windows, open Settings, select System, then Power & Battery, and change the "Screen off after" and "Sleep after" timers to longer periods or "Never".
  • On Mac, open System Settings, go to General, then select Sleep, and adjust the "Computer sleep" slider or set it to "Never".
  • Changing the sleep timer is faster and uses less power than disabling sleep entirely, and the computer still wakes when ready when you use it.
  • Some programs can prevent sleep while they are running — check the process's settings before changing your system-wide sleep timer.
  • Leaving sleep disabled permanently uses more electricity; consider re-enabling it when you no longer need the computer to stay awake.

How to Disable Sleep on Windows 11 and Windows 10

Open the Settings app by pressing the Windows key and typing "Settings," then press Enter. Click on "System" in the left sidebar, then select "Power & Battery" (Windows 11) or "Power & Sleep" (Windows 10). You will see two timers: one for when the screen turns off and one for when the computer enters sleep mode.

Click the dropdown next to "Screen off after" and choose a longer time or "Never." Do the same for "Sleep after." If you choose "Never," your screen will stay on and your computer will not sleep, but it will still respond to your mouse and keyboard. Most people set the screen to turn off after 10 or 15 minutes and sleep to "Never" if they want the computer to stay responsive but save some power.

If you are on a laptop, you will see separate settings for when the device is plugged in and when it is on battery. Adjust both if you want consistent behavior. Once you close the Settings window, the changes take effect when ready — you do not need to restart.

How to Disable Sleep on Mac

Click the Apple menu in the top-left corner and select "System Settings." Click "General" in the sidebar, then select "Sleep." You will see a slider for "Computer sleep" with options ranging from 1 minute to "Never."

Move the slider all the way to the right to select "Never," or choose a specific time if you want the computer to sleep after a period of inactivity. You can also set separate timers for when the display sleeps and when the computer sleeps — the display can turn off sooner to save power while the computer stays awake. Close the System Settings window and the change takes effect right away.

Using Third-Party Programs to Keep Your Computer Awake

If you do not want to change your system settings permanently, you can use a program that prevents sleep only while it is running. These tools are useful if you need the computer awake for a specific task — like downloading a large file or running a backup — and then want sleep to resume normally afterward.

On Windows, programs like Caffeine (free, open-source) sit in your system tray and toggle sleep prevention on and off with a single click. On Mac, Amphetamine (free on the App Store) does the same thing. These programs do not change your system settings; they straightforward tell your operating system to stay awake while they are active. When you close the program, your original sleep settings come back into effect.

Some applications — like video players, music streaming services, and backup tools — have built-in options to prevent sleep while they are running. Check the program's preferences or settings menu before installing a third-party tool; you may not need one.

Why Your Computer Might Still Sleep Even After You Change Settings

If your computer goes to sleep despite your settings, check whether a program is overriding your choices. Some antivirus software, backup utilities, and remote access tools can force sleep or wake behavior. Open your system settings again and verify that your changes were saved — sometimes a restart is needed for changes to take full effect.

On Windows, check the "Power" settings under Device Manager to see if any hardware is set to wake the computer. On Mac, open Terminal and type pmset -g to see your current power settings; this shows whether any programs have requested an override. If a program is preventing your settings from working, you may need to adjust that program's preferences or uninstall it.

Plugging in a USB device, mouse, or keyboard can also wake a sleeping computer. If you want to prevent this, disable "Allow this device to wake the computer" in your device settings — on Windows, this is in Device Manager under each device's properties; on Mac, it is in System Settings under Bluetooth or USB.

Balancing Power Use and Convenience

Leaving your computer awake all the time uses significantly more electricity than letting it sleep. A computer in sleep mode uses roughly 1 to 3 watts, while an awake computer uses 50 to 150 watts depending on what it is doing. Over a month, that difference adds up on your electric bill.

If you need the computer awake only during work hours, set the sleep timer to match your schedule — for example, set sleep to occur after 4 hours of inactivity if you work an 8-hour day with breaks. This way, the computer sleeps during lunch or when you step away, but stays awake during your active work time. When you are done for the day, you can manually put it to sleep or let the timer handle it.

Consider re-enabling sleep when you no longer need the computer to stay awake. If you changed your settings for a temporary reason — like waiting for a read or running a one-time backup — switching sleep back on afterward saves power without any extra effort.

Frequently Asked Questions

Will my computer overheat if I never let it sleep?

No, modern computers are designed to run continuously without overheating. However, running 24/7 does wear out components faster and uses more electricity. If you are concerned about heat, make sure your computer has good airflow and that dust is not blocking the vents.

Can I set different sleep times for different programs?

Your operating system applies one sleep setting to all programs, but individual applications can request that the system stay awake while they run. Check the preferences of programs like video players or backup tools to see if they have a "prevent sleep" option. Third-party tools like Caffeine let you toggle sleep prevention on demand without changing system settings.

What happens to my files if the computer sleeps while I am working?

Your files stay in memory and are not lost. When the computer wakes, you return to exactly where you left off. However, if you have unsaved work in a program, sleep does not save it — you should save manually before the computer sleeps, or enable autosave in your applications.

Does disabling sleep affect my internet connection?

No, your internet connection stays active whether the computer is asleep or awake. Sleep mode does not disconnect you from the network. Some routers may drop a connection if a device is inactive for a very long time, but this is rare and depends on your router settings, not your computer's sleep settings.

Can I schedule sleep to turn on at a specific time?

Windows and Mac do not have built-in scheduling for sleep, but you can use third-party tools or system automation. On Windows, you can create a scheduled task using Task Scheduler to run a sleep command at a specific time. On Mac, you can use Automator or a third-party app. For most users, setting a sleep timer after a period of inactivity is simpler and more practical.