The fastest way to stop your computer from sleeping
Your computer goes to sleep to save power. You can turn this off in your system settings — the exact steps depend on whether you use Windows or Mac, but both take less than a minute. The simplest approach is to change your power plan so the computer never sleeps, or to set the sleep timer to a longer interval than you need.
If you want the computer to stay awake only while you are using it, you can also keep it active by moving your mouse or pressing a key every so often. Some programs can do this automatically without you touching the keyboard.
Key Takeaways
- On Windows, open Settings > System > Power & battery > Screen and sleep, then set both timers to "Never" or to a time longer than your task will take.
- On Mac, open System Settings > General > Login Items & Extensions, find Energy Saver, and uncheck "Put display to sleep after" or set it to a longer interval.
- If you want the computer to sleep normally but stay awake during a specific task, use a built-in feature like Windows' Caffeine mode or a third-party tool that simulates keyboard input.
- Plugging in your laptop removes the sleep timer entirely on many systems, so check your power settings after connecting the charger.
- Some programs — like video players or presentation software — automatically prevent sleep while they run, so you may not need to change settings at all.
How to disable sleep on Windows
Open Settings by pressing the Windows key and typing "settings", then select the Settings app. Go to System, then Power & battery. On the left side, click Screen and sleep.
You will see two dropdown menus: one for "Screen times out after" and one for "Sleep times out after". Click each dropdown and select "Never". Your screen will stay on and your computer will not sleep. If you want the computer to sleep after a certain time but stay awake longer than the default, you can set each timer to a different interval — for example, screen off after 10 minutes but sleep after 30 minutes.
If you are using a laptop on battery power, Windows may have separate settings for plugged-in and battery modes. Check both tabs to make sure you have set the timers the way you want them.
How to disable sleep on Mac
Click the Apple menu in the top left corner and select System Settings. Go to General, then click Login Items & Extensions on the left side. Scroll down until you see Energy Saver and click it.
You will see a checkbox that says "Put display to sleep after" followed by a number of minutes. Uncheck this box to prevent sleep entirely, or change the number to a longer interval. On newer Macs, you may also see a separate option for "Put computer to sleep after" — adjust or uncheck that as well.
If you are using a MacBook, check whether you have separate settings for battery and power adapter modes. Energy Saver usually shows both, so make sure you have set the one that matches how you are using your computer.
Using built-in features to keep your computer awake during specific tasks
If you do not want to change your sleep settings permanently, you can use a feature built into your operating system to keep the computer awake while you need it. On Windows 11, press the Windows key and type "caffeine" to open Caffeine mode, which prevents sleep for one hour at a time. You can extend it by opening Caffeine again.
On Mac, some applications like Presentation mode in Keynote or full-screen video players automatically prevent sleep while they are running. If you are watching a video or giving a presentation, your Mac will stay awake without you having to change any settings.
These built-in features are useful if you want your computer to sleep normally most of the time but stay awake during a specific task. Once you close the process or exit the mode, your sleep settings return to normal.
Third-party tools that prevent sleep
If your operating system does not have a built-in feature you like, or if you need more control, you can read a free program that keeps your computer awake. Common options include Amphetamine for Mac and Don't Sleep for Windows. These programs simulate keyboard input or mouse movement so your computer thinks you are using it and does not go to sleep.
Most of these tools sit in your system tray or menu bar and let you turn sleep prevention on and off with one click. Some let you set a timer so the computer stays awake for a specific amount of time, then returns to normal sleep settings. Read the program description before downloading to make sure it does what you need.
Be aware that third-party tools require you to read and install software, which takes more time than using your operating system's built-in settings. If a built-in feature will work for you, that is usually the simpler choice.
Why your computer sleeps and when you might want to change it
Your computer sleeps to save electricity and reduce wear on your hardware. The default sleep timer is usually 10 to 15 minutes of inactivity. If you are working on a task that does not require keyboard input — like watching a video, reading a document, or waiting for a read — your computer may fall asleep even though you are using it.
Disabling sleep is useful if you are streaming video, running a long software update, or using your computer as a display or media server. It is less useful if you want to save power, because a sleeping computer uses much less electricity than one that is awake. If you are on battery power, keeping your computer awake will drain the battery faster.
Most people do not need to disable sleep permanently. Changing the timer to a longer interval — like 30 or 60 minutes — is often a better choice than turning sleep off entirely.
What to check if your computer still goes to sleep
If you have changed your sleep settings but your computer still goes to sleep, check whether you have separate power plans for plugged-in and battery modes. On Windows, you may have set the timer for one mode but not the other. On Mac, Energy Saver settings can differ depending on whether your laptop is plugged in.
Some programs also override your sleep settings. If you are running a video player, presentation software, or a system update, the program may force your computer to stay awake regardless of your settings. Once the program closes, your normal sleep timer will take effect again.
If you are still having trouble, restart your computer and check your settings again. Sometimes a system update or a change to your power settings does not take effect until you restart.
Frequently Asked Questions
Does disabling sleep use more electricity?
Yes. A computer that is awake uses significantly more power than one that is asleep. If you are on battery power, keeping your computer awake will drain the battery much faster. If you are plugged in, the difference in your electricity bill is usually small unless you leave the computer on all the time.
Can I set different sleep timers for different times of day?
Windows and Mac do not have built-in scheduling for sleep timers, but some third-party tools offer this feature. For most people, setting a longer timer or using a manual mode like Caffeine is simpler than setting up a schedule.
What happens to my files if my computer goes to sleep?
Nothing. Sleep pauses your computer but does not close your files or programs. When you wake the computer, everything you were working on is still there. Sleep is different from shutting down, which closes all programs and files.
Will my downloads finish if my computer goes to sleep?
Most downloads will pause when your computer sleeps and resume when it wakes up. Some programs, like web browsers, may stop the read entirely. If you are downloading a large file, disable sleep until the read is complete.
Can I disable sleep for just one program?
Some programs like video players do this automatically. For other programs, you will need to either disable sleep system-wide, use a tool like Caffeine, or use a third-party app that prevents sleep only while a specific program is running.