How to Set a Sleep Timer for Apple Music on iPhone

Updated October 29, 2026 · Marquee Guides

Quick answer

Not on iPhone, iPad or Mac, but the Clock app has one that works with Apple Music. Open Clock, tap Timers, choose how long to play, tap When Timer Ends, choose Stop Playing, tap Set, then tap Start. When the timer runs out, your music stops, whichever app is playing it.

Falling asleep to music is great until it plays all night and drains your battery. Apple Music for Android has a sleep timer built in, but on iPhone the Music app still doesn’t, even in iOS 27.

The fix is already on your iPhone. Here’s how to set a sleep timer for Apple Music with the Clock app, how to make music stop at the same time every night with Shortcuts, and what to do on a Mac.

How to set a sleep timer for Apple Music

  1. Start playing your music, album or playlist in Apple Music.
  2. Open the Clock app and tap Timers.
  3. Choose how long you want the music to play, like 30 minutes.
  4. Tap When Timer Ends, scroll to the bottom of the list, and choose Stop Playing.
  5. Tap Set, then tap Start.

When the timer ends, the music stops instead of an alarm sounding. You can lock your iPhone straight away: the timer keeps counting.

Remember to switch the timer sound back

The Clock app remembers what you chose. The next time you set a timer, for cooking or anything else, it will silently stop your music instead of ringing. When you need a timer that rings, tap When Timer Ends and pick a sound again.

Stop Apple Music at the same time every night

If you always want music off at, say, midnight, an automation saves setting a timer each night:

  1. Open the Shortcuts app and tap Automation.
  2. Tap the Add button and choose Time of Day.
  3. Set the time and choose Daily, then choose Run Immediately.
  4. Tap Next, search for the Play/Pause action, and add it.
  5. Tap Play/Pause in the action and change it to Pause, then tap Done.

Every night at that time, whatever is playing pauses on its own.

Is there a sleep timer for Apple Music on Mac?

The Music app on Mac has no sleep timer either. If you listen in bed, play from your iPhone and use the Clock timer. On a Mac, the closest option is a Shortcuts automation like the one above, using the Play/Pause action set to Pause.

The Clock timer works in Marquee too

Marquee is a free Apple Music player, and it doesn’t have a sleep timer of its own. It doesn’t need one: the Clock app’s Stop Playing timer stops whatever is playing, including Marquee, so you can fall asleep to a spinning vinyl record or a Retro player inspired by the iPod and know the music will stop.

Marquee also adds animated widgets for your home screen, custom themes and free Last.fm scrobbling.

Marquee app icon

Try it with Marquee — free

The Apple Music player with themes, Last.fm scrobbling, Library Insights, and Upcoming Releases tracking. Requires an Apple Music subscription.

Download on the App Store

Frequently asked questions

Does Apple Music have a sleep timer?

Not on iPhone, iPad or Mac. Apple Music for Android has one. On iPhone, use the Clock app: set a timer and choose Stop Playing under When Timer Ends.

How do I make Apple Music stop playing automatically?

Set a timer in the Clock app and choose Stop Playing under When Timer Ends. To stop music at the same time every night, create a Time of Day automation in Shortcuts with the Play/Pause action set to Pause.

Does the Stop Playing timer work with other apps?

Yes. It stops whatever is playing on your iPhone, including Apple Music, Marquee, podcasts, audiobooks and most video apps.

Why didn’t my timer ring?

The Clock app remembers your last timer setting. If you used Stop Playing as a sleep timer, the next timer stops your music silently instead of ringing. Tap When Timer Ends and pick a sound.