Learn · Sleep timer

Set a sleep timer for music on iPhone.

To stop music on an iPhone after a set time, open the Clock app, tap Timers, set a length, and under When Timer Ends choose Stop Playing instead of a sound. When the timer runs out, iOS stops the audio or video that is playing.

That timer belongs to iOS, not to one music app. Some apps add a timer of their own: Raumo, an iPhone app that composes ambient music as you listen, has one that fades the music out.

Updated

Orbit · procedural artwork from Raumo

The built-in way: the Clock timer

Start your music, podcast or other audio, then:

  1. Open the Clock app and tap Timers.
  2. Set how long the sound should go on.
  3. Tap When Timer Ends and choose Stop Playing, the last entry in the list of sounds.
  4. Tap Set, then Start.

The timer goes on counting when you open another app or the iPhone goes to sleep. Afterwards it is listed under Recent in Timers, so the next evening you can start the same one from there. To end it early, pause it in Timers, or swipe left on it to remove it.

Apple’s iPhone guides for iOS 26 and iOS 27 give the same steps. They describe the option for audio and video in general, with falling asleep to the radio as the example, and name no particular app. What they describe is a stop at the set time, not a fade.

When an app has its own timer

Many audio apps have a sleep timer of their own, usually in or near the player. Compared with the Clock timer:

Whether Apple Music, Spotify or a podcast app has such a timer, where it sits and what it is called differs from app to app and from version to version; the app’s own help pages say. The Clock timer does not need the app to have one.

Raumo’s sleep timer

Raumo composes ambient music on the iPhone while you listen. Its player has a sleep timer that brings a session to a gentle close:

What plays until then is yours to choose: Sleep, Raumo’s playlist of slow, dark soundscapes, or a steady brown noise, pink noise or white noise. White, pink and brown noise explains how the three differ.

Raumo makes no claim about what any sound does for sleep. Its timer, like the one in Clock, is described by what it does: the sound ends after the time you chose. Raumo needs an iPhone with iOS 26 or later.

Sources

The iOS steps were read on Apple’s pages on 24 November 2026. If iOS has changed since, Apple’s page is the reference.