How to set a sleep timer for any audio on iPhone

Open the Clock app, tap Timers, set a duration, tap When Timer Ends, scroll to the bottom and choose Stop Playing, then tap Set and Start. When the countdown ends, playback stops. The Podcasts app has its own sleep timer in the full-screen player, and Background Sounds has Stop Sound with a Timer in iOS 26 and later. Remember to switch the Clock timer back to a sound when you next need it to ring.

The Clock app’s hidden sleep timer

The Clock app’s timer can do more than ring. Apple’s guide describes it as a way to stop audio or video after a set time, for example when you fall asleep while listening to the radio.

  1. Open the Clock app and tap Timers.
  2. Set how long you want the audio to play, for example 45 minutes.
  3. Tap When Timer Ends.
  4. Scroll to the very bottom of the list of sounds and tap Stop Playing.
  5. Tap Set, then Start.

Start your music, podcast or audiobook. When the countdown ends, playback stops. Apple notes the timer keeps running even if you open another app or the iPhone goes to sleep. Custom timers also appear below Recents, so you can start the same one again next night with a tap.

One catch. A timer set to Stop Playing is silent when it ends. Next time you use a timer for the oven, choose a sound again.

Timers built into apps

Podcasts. Apple’s Podcasts app has a sleep timer in the full-screen player: tap the Sleep Timer button, then choose an option. If you only see the mini player, tap it to open the full-screen one.

Background Sounds. In iOS 26 and later, go to Settings, Accessibility, Audio and Visual, Background Sounds, tap Stop Sound with a Timer, turn on Timer, and choose “At a specific time” or “After an amount of time”. iPhone Background Sounds covers the rest of its settings.

Other apps. Many music, audiobook and sleep-sound apps have their own timer, usually in the player or in a menu. An app’s own timer may fade the sound out instead of stopping it, which is gentler.

If the timer does not stop your audio

A few things to check if the sound is still playing in the morning:

  • Open the Clock app and look at the timer. If it was paused or cancelled, it never reached zero.
  • Check When Timer Ends. It must say Stop Playing, not a sound, for that particular timer.
  • Test with Apple’s own apps. If Apple Music or Podcasts stop correctly and another app does not, the problem is that app; use its own sleep timer instead.
  • Set it again before bed rather than relying on a timer from the afternoon.

How long to set it

Long enough to cover how long you usually take to fall asleep, plus a margin: 30 to 60 minutes suits most people. If you often lie awake longer, set it longer rather than reaching for the phone to restart it. Keep sound running all night only when you are covering a noise that lasts all night. A sleep timer that fades explains why.

A timer matters more on earbuds

If you fall asleep with earbuds in, a timer is not optional. Cleveland Clinic’s audiologist advises using one so audio shuts off after you fall asleep, keeping the volume at about half or lower. Sleeping with headphones has the rest.

Two timers for podcast and rain

If you listen to a podcast with rain underneath, set the podcast to stop first (its own sleep timer, 20 to 30 minutes) and let the rain run a little longer and fade. Fall asleep to a podcast with rain underneath shows how.

Where Nightjar helps, and where it doesn’t

The sleep timer runs from 5 minutes to 10 hours, or Likely asleep, or Keep playing, and the sound fades out gently. A bell, a tingsha, a singing bowl or a gong can ring when the timer ends. That fade is the difference from the Clock app, which stops playback when the countdown ends.

Nightjar’s timer only controls Nightjar’s sound. For music or a podcast from another app, the Clock app’s Stop Playing timer or that app’s own timer is the tool, and it is already on your phone.

Sources

  1. Apple Support, Set timers in Clock on iPhone (iPhone User Guide)
  2. Apple Support, Play podcasts on iPhone (iPhone User Guide)
  3. Apple Support, Play background sounds on iPhone (iPhone User Guide)
  4. Cleveland Clinic, Is It OK To Sleep With Earbuds In? (8 April 2026)

Last checked 13 November 2026.

Questions

Does the iPhone timer stop Spotify, YouTube or other apps?

Apple describes Stop Playing as stopping audio or video playback when the timer ends. If an app keeps playing, check whether that app has its own sleep timer, and test with Apple Music or Podcasts to see whether the problem is the app.

Will my alarm still go off if I use Stop Playing?

Your alarms are separate from the timer, so they still ring. But a timer set to Stop Playing makes no sound when it ends, so switch it back to a sound before using it for cooking.

Does the Clock timer fade the music out?

Apple's guide describes it as stopping playback when the timer ends; it does not mention a fade. If a sudden stop wakes you, use an app whose own timer fades the sound.