Sometimes I like to play calming music or white noise to help me fall asleep. I just select a playlist and play it directly on my iPhone, which is resting next to me on the night stand. The thing is, I don’t want to play music for an extended period of time. I usually need no more than 20-30 minutes to fall asleep.

There is a subtle feature in the Clock app that lets you set a timer that will stop any media currently playing on your device, whether it is music or video. In this post, we will show you how to set a sleep timer to automatically stop playing music or videos on your iPhone or iPad after a specific time.

How to set a sleep timer for music, videos, and movies

Step 1: Go to the Clock app and select the Timer tab.

Step 2: Tap on “When Timer Ends.” This is where you would normally select what ringtone you want the timer to use when the time is up.

Step 3: Scroll all the way to the bottom and select “Stop Playing” and tap “Set” in the upper right corner to confirm.

Step 4: Set the timer to whatever time you want, and hit the “Start” button.

If you’re playing music or a movie on your iPhone, the music or the movie will now stop playing when the time is up.

Be careful though! If in the future you need to set a timer with a ringtone, remember to go back in the Timer settings and change the “Stop Playing” action to an actual ringtone. I can’t tell you how many times I set timers while cooking that never rang because the Timer was still set on Stop Playing.

Share you tips

The most simple tips are usually the best ones. If you have a tip you’d like to share, you may do in the comment section below, or email [email protected]

  • AndroidDogHeatandSteelersFan

    Awesome. Any thoughts if iPhone 6 does not come with sapphire. And the 6S will be introduced for S for screen or S for sapphire? And then the cycle will be broken and they will introduce the iwatch on the iPhone 6s time line

    • ✯Mike✯

      the s doesn’t stand for anything. sorry to break the news

      • AndroidDogHeatandSteelersFan

        Yes it does. We don’t know yet. But previous models do have meaning behind it.

  • Abbas

    2 years of using an Iphone now for me and i always wondered if iphone have this function, although my Iphone did break out of the bars but i actually never searched Cydia for a tweak. Thank You for this post Sebastien !!!

    • Anmol Malhotra

      Using it for more than 4 years.. never thought of this feature on ios stock..
      Thanks Sebastien sir 🙂

      • im2slick4u

        I’ve known this ever since it got introduced in iOS 7 :p. Does not work with all apps, such as Rdio.

  • f1ght3r

    Awesome tip! At first I thought it was a jb tweak, but this is a fantastic stock feature. Defenitely help me out when I’m at the gym.

  • Jeffrey Feuerstein

    I use this every night to get to sleep, I put some music on and I let it stop by itself after 20 minutes.

  • Steven Greer

    Only downside is spotify doesn’t support it (last time I tried anyways)

    • You are correct. Too bad.

    • im2slick4u

      Rdio doesnt work either.

    • Rahimo

      Oh Man !!

  • I actually thought this was common knowledge, clearly I was wrong. Great job iDB sharing what is an invaluable tip!

  • Rares

    Sebastian, this tip was great, I never knew about this feature. Thank you, you’re the man!

  • Willyman99

    Does rhapsody work with this (also do you mean any media, such as a browser video playing in the background or only the stock and Apple apps?

  • Paulo Ricardo Marques

    My first iDevice came with iOS5, and I think this function was already there. Although it does not work well with Spotify (at least), I found a tweak that’s called Slumber, and it will do the trick! It also has some other useful options.

  • Gregory D Foster

    Does this work for Spotify or just stock apps? I could just as easily try before possibly receiving a response here so maybe I should just do that… 🙂

    • Gregory D Foster

      It does not… in case anyone else was wondering. Does not work with Spotify I mean.

  • Ted Forbes

    Dont know what happened

  • Ted Forbes

    Nice trick, but I tested this with Voice Dream (text to speech app). The volume faded out then in again. The app did not stop, it continue playing.

  • Steve S

    iOS 8 appears to have broken this feature. Music stops, yes, but there’s no easy way to restart it. The Music app completely forgets which playlist you were playing, and where you left off in that playlist.

    • Lily

      I have the same problem. So annoying when you are listening to an audiobook and want to go back to where you left off the night before. Is there a fix for this?

      • Steve S

        Still broken in iOS 8.2 🙁

      • Steve S

        Fixed in iOS 9!