Sleep Timer

Fade your Mac's volume to silence — automatically

Updated

macOS has no built-in way to lower the volume gradually. You can script a rough fade with an AppleScript loop, but the genuinely convenient answer is a sleep timer with Sleep Fade: over the last minutes, Sleep Timer for Mac eases the system volume down a gentle curve to silence, then puts your Mac to sleep.

Why abrupt endings wake you up

Falling asleep to music works right up until the music stops working. Your hearing doesn’t switch off when you drift off — it keeps monitoring the room, which is why a door slamming wakes you while steady rain doesn’t. What rouses a light sleeper is rarely sound itself; it’s change. And streaming apps are full of changes: a quiet piano piece hands over to a brighter track, an autoplay queue jumps genres, a podcast episode ends on a loud outro. Even silence can be a jolt — if you were half asleep inside a bed of sound, its sudden absence is precisely the kind of difference your ears still report upstairs.

A gradual fade removes the moment of change. The volume becomes quieter so slowly that there is never a step to notice, and by the time the room is silent, silence is no longer news.

The DIY route: an AppleScript fade

macOS does expose the system volume to AppleScript, so you can build a fade yourself. The two commands that matter are set volume output volume, which accepts a value from 0 to 100, and output volume of (get volume settings), which reads the current level. Put them in a loop with a delay and you have a working fade:

-- Fade the system volume to silence, one step at a time
set currentVolume to output volume of (get volume settings)
repeat while currentVolume > 0
	set currentVolume to currentVolume - 1
	set volume output volume currentVolume
	delay 2 -- seconds per step; raise for a slower fade
end repeat

Paste it into Script Editor and press Run. Starting from a volume of 60, two-second steps give you a fade of about two minutes; adjust the delay to taste.

It works, and it’s a perfectly honest little script. It’s also exactly as convenient as it sounds. You have to remember to start it every night — or wrap it in an Automator app or a Shortcut and remember to start that instead. The fade is a straight staircase of equal steps rather than a smooth ease. The script doesn’t put the Mac to sleep unless you extend it further, and it leaves the volume parked at zero, which you’ll rediscover tomorrow when nothing seems to play. Forget to run it once, and it simply does nothing. This is essentially the idea the old Sleepytime utility was built around — if that name rings a bell, our Sleepytime alternative page picks up that story.

Sleep Fade: the set-and-forget way

Sleep Fade builds the fade into the timer itself, so it happens because bedtime arrived — not because you remembered a script. You start a countdown from the menu bar — a preset, an exact time like 23:30, or a schedule that arms itself every night — and the last minutes of that countdown belong to the fade. How many minutes is up to you; the duration is configurable.

Three details matter in practice.

It fades the system volume, so it fades everything. Spotify, Apple Music, a YouTube tab in Safari, a podcast app, rain sounds in a browser — if your Mac is playing it, the fade lowers it. There’s no per-app integration to break, and it makes no difference whether the audio goes to speakers or AirPods.

The curve is quadratic, not linear. In the early minutes the change is barely perceptible — you shouldn’t be able to point at the moment the fade began. Toward the end it moves more decisively, so the final stretch to silence doesn’t drag. It’s the difference between a dimmer turned by a patient hand and a staircase of audible steps.

The morning is not silent. When the countdown ends, the Mac goes to sleep — and after it wakes, your volume is restored to where it was before the fade. The AppleScript’s zero-volume surprise doesn’t happen here.

Around the core fade there are a few optional touches. The screen can dim along the same curve, so light and sound fall away together — and if you’d rather have the dark screen without the Mac ever sleeping, that’s a dedicated option too. If you listen through Apple Music, the timer can also pause playback at the very end instead of leaving a paused-in-name-only stream behind — our Apple Music sleep timer guide covers that setup. And if the warning near the end catches you still awake, one click on “+15” postpones everything by fifteen minutes.

The rest is ordinary good citizenship: a desktop widget, a Control Center toggle on macOS 26 and later, Siri, Shortcuts and Spotlight support, and no network access or tracking of any kind. Sleep Timer costs $2.99 once on the Mac App Store and runs on macOS 14 or newer.

Beyond bedtime

Sleep Fade ships as part of a sleep timer, and the countdown still ends with the Mac going to sleep — but that turns out to be useful well outside the bedroom. The obvious case is the end of a working evening: set the timer for when you intend to stop, keep the album on, and let the last minutes wind the music and the screen down together until the Mac sleeps — a clean full stop for the day instead of a track cut off mid-chorus. A timed nap works the same way: audio eases out as you doze, and the Mac isn’t awake and glowing an hour later. If podcasts are your way of switching off on the sofa, the fade makes sure a sentence trailing away — not a hard cut — is the last thing you hear. Same timer, same curve; the scenario is yours to pick.

Quick answers

Does the fade work with AirPods and other headphones?

Yes. Sleep Fade lowers the Mac's system output volume, so whatever the sound is routed to — AirPods, wired headphones or the built-in speakers — fades exactly the same way.

Will my volume still be at zero in the morning?

No. Sleep Timer remembers the level you started at and restores it after your Mac wakes, so music and notifications play at their normal volume the next day.

Can I use the fade without putting my Mac to sleep?

Yes — if you choose Dim Screen instead of Sleep as what happens at zero. The fade itself is just the closing phase of the timer's countdown; what happens when it reaches zero is a separate choice, and Dim Screen fades the display to black without ever putting the Mac to sleep, so the music keeps playing.

What does the fade curve feel like?

It follows a smooth quadratic curve: barely noticeable at first, then more decisive toward the end. You shouldn't be able to point at the moment it began.

Try it tonight

Sleep Timer lives in your menu bar: countdown, exact time, or a nightly schedule. Music fades out gently, the screen dims, and your Mac goes to sleep without a jarring cutoff.

Get Sleep Timer for Mac

$2.99 · one-time purchase · no subscription