It starts the same way every night. You tell yourself you'll put the phone down at 10:30. Then it's 11:15 and you're still scrolling. Then midnight. Then you're exhausted the next morning wondering how it happened again.

The problem isn't willpower. The problem is that your iPhone is designed to keep you engaged, and there's nothing stopping it from doing exactly that the moment you pick it up "just for a second" before bed.

Setting a time limit on iPhone apps at night is one of the most effective ways to break this cycle — but only if the limit actually holds. Here's how to do it, what the built-in options get right, where they fall short, and how to close the gaps so your phone stops keeping you up past your bedtime.

Why You Keep Ignoring Your Own Bedtime Rules

Before getting into the how, it's worth understanding why the problem persists even when you've already tried to fix it.

Most people who struggle with late-night phone use have already set some kind of limit. They've turned on Do Not Disturb, set a Screen Time schedule, maybe even put the phone in another room for a few nights. And yet, here they are.

The core issue is that most built-in restrictions are easy to override. Apple's Screen Time tools give you a passcode-protected limit, but if you set the passcode yourself, you can disable it yourself — in about ten seconds, while half-asleep, with zero friction. The moment the urge hits, the exit is right there.

Late at night, your decision-making is already compromised. You're tired, your self-control is depleted, and the apps you're trying to avoid are engineered by teams of people whose job is to make them irresistible. A soft nudge from your own phone isn't going to win that fight consistently.

This is why setting a time limit that actually sticks requires more than just good intentions. It requires removing the easy override option from the equation entirely.

This is exactly the problem Sleep Lock solves. Download on the App Store

How to Set App Time Limits on iPhone Using Screen Time

Apple's built-in Screen Time feature is the right starting point. It's free, it's built into iOS, and it gives you real control over which apps run and when. Here's how to set it up for nighttime use.

Setting Up App Limits

  1. Open Settings and tap Screen Time.
  2. If Screen Time isn't already on, tap Turn On Screen Time and follow the prompts.
  3. Tap App Limits, then Add Limit.
  4. Choose the categories or specific apps you want to restrict — social media, entertainment, and browsers are the usual culprits.
  5. Set the daily time allowance. For nighttime blocking, many people set this low (15–30 minutes total) so the limit kicks in before their intended bedtime.
  6. Tap Add to save.

Once the daily limit is hit, the apps will show a blocked screen. The catch: there's a "One More Minute" option and an "Ignore Limit" button that lets you extend or bypass the restriction with a passcode. If you know that passcode, this is where the system breaks down.

Setting Up Downtime

Downtime is Screen Time's scheduled blocking feature — closer to what most people actually want for nighttime use.

  1. In Screen Time, tap Downtime.
  2. Toggle it on and set your start and end times — for example, 10:00 PM to 7:00 AM.
  3. During Downtime, only apps you've specifically allowed (plus phone calls) will be accessible.
  4. To tighten this up, go to Communication Limits and Always Allowed to control exactly what stays accessible.

Downtime is more aggressive than App Limits and works on a schedule rather than a usage cap, which makes it better suited for consistent nightly blocking.

The Passcode Problem

Both App Limits and Downtime can be protected with a Screen Time passcode. The critical step most people skip: use a passcode you won't easily remember, or better yet, have someone else set it.

If you live alone or don't have someone to hold the passcode for you, this is where the built-in system genuinely struggles. You can set the code, forget it intentionally, then bypass it through Apple ID recovery. There's always a way out if you're motivated enough to find it at 11:45 PM.

For a deeper look at the mechanics of making your phone genuinely hard to use at night, this guide on how to make your iPhone stop working at night walks through the specific friction points and how to harden them.

Which Apps to Prioritize Blocking at Night

Not all apps are equally damaging to your sleep. When setting up your nighttime limits, focus on the categories that actually pull you in and keep you there.

High Priority: Block These First

  • Social media — Instagram, TikTok, X, Reddit, Facebook. Infinite scroll with no natural stopping point.
  • Video streaming — YouTube, Netflix, Reels. Autoplay is specifically designed to remove the moment where you'd choose to stop.
  • News apps — Algorithmically curated to surface the most engaging (often anxiety-provoking) content.
  • Messaging apps — Not because messages are bad, but because opening a message thread often leads to opening everything else.

If social media is your main weakness at night, this breakdown of how to block social media on iPhone at night covers why Screen Time alone often isn't enough for those specific apps and what to layer on top of it.

Lower Priority: Use Judgment

  • Podcasts and audiobooks — Passive and often helpful for winding down, though still a delay tactic for some people.
  • Reading apps — Depends on the app. Kindle is different from browsing Substack recommendations at midnight.
  • Notes and productivity tools — Fine to keep accessible unless you use them as a gateway to check other things.

Making the Limit Actually Hold

The technical setup is the easy part. The harder part is making sure it doesn't quietly collapse after three days.

Remove the Override Path

The most effective thing you can do is eliminate the easy bypass. Options include:

  • Having a partner, roommate, or trusted friend set the Screen Time passcode so you genuinely don't know it.
  • Using a third-party app that adds a layer of friction you can't easily remove yourself.
  • Setting the passcode to something genuinely random (a string of digits you don't use for anything), writing it down somewhere physically inconvenient to access at night, and leaving it there.

Sleep Lock is built specifically for this use case. It schedules app blocking through Apple's Screen Time APIs with a lock window you define in advance, and it's designed so that bypassing it in a weak moment at midnight requires actual effort — not just tapping "ignore."

Start with a Later Cutoff Than You Think You Need

One reason people abandon these limits is that they set them too aggressively at the start. If you currently stay up until 1:00 AM on your phone, blocking everything at 10:00 PM is going to feel punishing, and you'll override it every night.

Start with a cutoff 30–45 minutes before your actual problem starts, not your ideal bedtime. Once that feels normal, move it earlier. Gradual works better than cold turkey for most people.

Create a Replacement Anchor

Blocking apps removes something from your night without replacing it. That gap will fill with the phone if you don't decide what goes there instead. This doesn't have to be elaborate — a book on the nightstand, a short walk, even just keeping the phone charger outside the bedroom so picking it up requires standing up.

Physical distance and a low-effort alternative are more powerful in combination than either one alone.

Review What Actually Woke You Up

After a week, look at your Screen Time report. The data will usually show you exactly where you're losing time. It's almost never spread evenly — there's one or two apps responsible for most of it. Narrow your restrictions to those specifically if broad blocking feels too restrictive to sustain.

A Note for Parents Setting Limits for Kids

If you're setting these limits for a child or teenager rather than yourself, the approach is similar but the stakes around enforcement are higher. Kids are often more motivated to find workarounds than adults, and the bypass options in Screen Time are well-documented online. This guide on how to block apps on iPhone at night for kids covers the specific configurations that hold up better under pressure and what to watch out for.

The Takeaway

Setting a time limit on iPhone apps at night works — but only if the limit has real teeth. Use Screen Time's Downtime and App Limits to set up the schedule, protect it with a passcode you don't have easy access to, and remove the one-tap override that makes every other system fall apart at 11 PM.

Pick a cutoff time tonight. Set it up before you go to bed. Make it slightly harder than zero effort to bypass. That's the whole system. The first night is the hardest; after a week it mostly runs on its own.