iPhone sleep tracking uses your phone's motion sensors and your bedtime routine
Your iPhone can track sleep without a watch by measuring how much you move during the night. The phone's accelerometer — a sensor that detects motion — picks up when you toss, turn, or get out of bed. Combined with the time you set as your bedtime and wake time in the Health app, iPhone builds a picture of your sleep patterns.
The system also uses your phone's location on your nightstand and whether you're using it. If your iPhone sits still on your bed or nightstand during your set sleep window, the phone assumes you're asleep. When you pick it up and start using it, the phone registers that as waking up. This is why iPhone sleep tracking works best when you keep your phone nearby — ideally on your nightstand or under your pillow.
This method is less precise than an Apple Watch, which has a dedicated heart-rate sensor and wears on your wrist all night. But for people without a watch, iPhone-only sleep tracking still captures whether you're getting roughly the hours you need.
Key Takeaways
- iPhone detects sleep by measuring motion through its built-in accelerometer sensor and tracking whether the phone moves during your set sleep hours.
- You must set a bedtime and wake time in the Health app for iPhone to know when to start and stop tracking.
- Keeping your phone on your nightstand or bed during sleep gives the most accurate readings, since distance or a closed door reduces the signal.
- iPhone sleep tracking shows total sleep time and time spent in bed, but cannot detect sleep stages like REM or deep sleep without a watch.
What the accelerometer actually measures
The accelerometer in your iPhone is the same sensor that rotates your screen when you turn the phone sideways. It measures acceleration — changes in speed and direction — in three dimensions. During sleep, your body moves constantly: you shift position, adjust your pillow, scratch an itch. Each movement creates a small acceleration that the accelerometer detects.
The phone's software looks for patterns in these movements. Steady, regular micro-movements suggest sleep. Sudden, larger movements or sustained activity suggest you're awake. The algorithm also factors in the time of day — it knows you set your bedtime for 11 p.m., so it weights nighttime stillness more heavily toward sleep than daytime stillness would.
This is why the system sometimes misses naps or marks time lying awake as sleep. If you lie still in bed without moving for 20 minutes, the phone may log that as sleep even if you're actually awake. Conversely, if you're asleep but your partner moves the bed, the phone might register that movement as your own.
How iPhone knows when you're awake
iPhone uses several signals to detect waking. The most obvious is when you pick up your phone and unlock it — the accelerometer registers the motion, and the screen detects your touch. But the phone also watches for sustained activity: if you get out of bed and walk around, the accelerometer picks up the different pattern of movement.
Your phone's location data also plays a role. If you leave the room or move far from where you usually sleep, the phone knows you've woken up. Some iPhones also use ambient light sensors to detect when you turn on a light, which usually means you're awake.
The system stops tracking at your set wake time, even if you're still in bed. This is why you can adjust your wake time in the Health app after the fact — if you actually woke at 6:30 a.m. but your phone was set to 7 a.m., you can correct it and the app will recalculate your sleep duration.
Why placement and phone settings matter
Where you put your phone changes how well it tracks. On your nightstand, the accelerometer picks up your movements clearly. Under your pillow, it works but may pick up more noise from your head movements. In another room, it cannot track you at all. If you close your bedroom door, the phone's motion detection becomes less reliable because the phone is farther from your body.
Your phone's settings also affect tracking. If you have Do Not Disturb turned on during sleep hours, the phone assumes you're asleep and stops registering notifications as wake signals. If you use your phone heavily during your set sleep window — checking email, scrolling — the phone will mark those periods as awake time, which can fragment your sleep record.
Battery life matters too. If your phone dies during the night, it cannot track the rest of your sleep. Charging your phone before bed ensures continuous tracking through the morning.
What iPhone sleep tracking shows versus what it misses
The Health app displays your total sleep time, the time you spent in bed, and a straightforward graph showing when the phone thought you were asleep or awake. You can see trends over weeks and months. Some iPhones also show sleep stages — light, deep, and REM sleep — but only if you're wearing an Apple Watch. Without a watch, iPhone shows only total sleep and in-bed time.
iPhone cannot measure heart rate, breathing, or blood oxygen during sleep, so it cannot detect sleep disorders like sleep apnea or restless leg syndrome. It also cannot tell the difference between light sleep and deep sleep, or between sleep and straightforward lying still. If you spend an hour in bed reading, the phone may log part of that as sleep if you're not moving much.
The data is useful for spotting patterns — whether you're consistently getting seven hours, whether your sleep is fragmented, whether you're going to bed earlier or later over time. But it is not a medical diagnosis and should not replace a doctor's assessment if you suspect a sleep problem.
How to set up sleep tracking on iPhone
Open the Health app and tap the Sleep tile, or go to Browse, select Sleep, and tap get your free guide. Set your bedtime and wake time — these are the hours when iPhone will start and stop tracking. You can set different times for weekdays and weekends.
Turn on Sleep Focus in Settings > Focus > Sleep. This silences notifications and calls during your sleep window so your phone does not wake you. When you reach your bedtime, your phone will remind you to wind down.
Keep your phone on your nightstand or bed during sleep. The closer it is to your body, the more accurately it tracks movement. Check the Health app in the morning to see your sleep record. You can edit the time if you woke or fell asleep at a different time than the app recorded.
iPhone sleep tracking versus Apple Watch
An Apple Watch tracks sleep much more precisely because it stays on your wrist all night and has a dedicated heart-rate sensor. The watch measures your heart-rate variability, which changes between sleep stages. It can distinguish light sleep, deep sleep, and REM sleep. It also detects when you get up to use the bathroom or get a glass of water, so it does not count that time as sleep.
iPhone-only tracking is simpler: it measures motion and assumes stillness during your set sleep hours means sleep. It works well enough to show whether you're sleeping roughly seven to nine hours, but it cannot give you the detailed breakdown a watch provides. If sleep tracking is important to you and you want stage data, an Apple Watch Series 6 or newer is the better choice.
For casual tracking — just knowing whether you're getting enough sleep — iPhone alone is sufficient. For detailed sleep analysis or if you suspect a sleep disorder, a watch or a dedicated sleep tracker gives more useful information.
Frequently Asked Questions
Does my iPhone track sleep if I don't have it on my nightstand?
iPhone can still track some sleep data if the phone is in your bedroom, but accuracy drops significantly if it's far from your body or in another room. The accelerometer needs to detect your movements, so distance reduces the signal. For best results, keep your phone within a few feet of where you sleep.
Can iPhone tell the difference between sleeping and just lying in bed?
Not reliably. If you lie still for an extended period, iPhone may log it as sleep even if you're awake. Conversely, if you're asleep but tossing and turning, the phone might mark some of that time as awake. This is a limitation of motion-based tracking without a heart-rate sensor.
What if I share a bed with a partner?
Your iPhone tracks your phone's motion, not your body's motion directly. If your partner moves the bed or you're close together, the phone may pick up their movement and misinterpret it. Keeping your phone on your side of the bed helps, but the data may be less accurate than if you slept alone.
Does sleep tracking drain my iPhone battery?
Sleep tracking uses minimal battery because the accelerometer is always running anyway. The Health app processes the data in the background. You may notice slightly faster battery drain if you leave your phone on all night without charging, but the difference is usually small.
Can I see my sleep data if I don't have an Apple Watch?
Yes. Open the Health app, tap Sleep, and you'll see your total sleep time, time in bed, and a graph of when you were asleep or awake. Without a watch, you won't see sleep stages, but you can still track trends and see whether you're meeting your sleep goals.