We’ve selected these apps based on their quality, user reviews, and overall reliability as a source of support for people with insomnia. If you want to nominate an app for this list, email us at nominations@healthline.com.

For people with insomnia, getting a restful night’s sleep is anything but easy. Insomnia is a sleep disorder that affects about 35 percent of the U.S. population, with 10 percent living with chronic insomnia. This can lead to negative effects on your physical and mental health, not to mention waking up bleary-eyed and foggy-headed.

If you’re looking for help with your insomnia, the last place you might think to look is your smartphone. But it could be a great resource for getting deeper, most restful sleep. We’ve rounded up the best iPhone and Android apps for tracking your sleep patterns, understanding your insomnia, and getting some much-needed Zzz’s.

Sleep Cycle

iPhone rating: ★★★★★

Android rating: ★★★★★

Price: Free with optional in-app purchases

Sleep Cycle features a patented technology that can track and evaluate your sleep patterns using sound or vibration analysis. The app then uses the data to generate graphs and reports to help you visualize your sleep cycles. It can also wake you at the optimal time so you feel less groggy during the day.

Relax & Sleep Well by Glenn Harrold

iPhone rating: ★★★★★

Android rating: ★★★★★

Price: Free with optional in-app purchases

Glenn Harrold has over 20 years of hypnotherapy experience, so it makes sense that he’s created an app that helps improve sleep quality. Enjoy more than 80 hypnotherapy and meditation recordings through in-app purchases, as well as programs for specific conditions like anxiety. The audio components feature stereo-echoed affirmations, which pan from ear to ear for a truly relaxing effect.

Pzizz

iPhone rating: ★★★★★

Price: Free with optional in-app purchases

Whether you’re looking to get more out of daytime naps or a more restful overnight sleep, this app generates sounds that can help you relax. Sleep tracks are designed specifically for nap and overnight use and more features are available with a subscription. Set out on a cosmic listening voyage through distant galaxies, with the option to select a female or male voice-over. You can even adjust the volume levels of the music and the voice individually.

Nature Sounds Relax and Sleep

Android rating: ★★★★★

Price: Free with optional in-app purchases

Enjoy the sounds of nature without needing to spend a night outdoors. This app has a large variety of nature sounds to help you slow down and get a restful night of sleep. Just set the start or stop timer and let the audio tracks transform your ability to rest well. Sounds can also be used on the alarm or ringtone settings in your phone.

Digipill

iPhone rating: ★★★★★

Android rating: ★★★★✩

Price: Free with optional in-app purchases

Digipill “prescribes” digital pills, or guided meditations, for different conditions like anxiety or insomnia. But unlike traditional pills, there are no unwanted side effects. If you have insomnia and you’ve used prescription sleeping pills, you’ll appreciate the drug-free sleeping assistance. Your health technology enthusiast side will appreciate that the app is compatible with the Apple Watch.

Sleep Genius

iPhone rating: ★★★★✩

Android rating: ★★★★✩

Price: $4.99

Sleep Genius was designed using neurosensory algorithms to create sounds that guide your brain through the complete sleep cycle. This helps your brain prepare for sleep, sleep more soundly, and then wake you at your body’s optimal time. More than just a collection of relaxing sounds, this app is based on the science that NASA uses to help astronauts get rest — certainly it can help those of us on Earth, too!

Sleep as Android

Android rating: ★★★★★

Price: Free with optional in-app purchases

Do you wake up at the right time in your sleep cycle? Sleep as Android is designed to wake you at the right moment for a better morning and day. Monitor talking or snoring during sleep and get better insights into your sleep cycle. The app is compatible with Pebble, Android Wear, or Galaxy Gear smartwatch tracking, and can be integrated with several other mobile health platforms.

Sleep Well Hypnosis

iPhone rating: ★★★★★

Android rating: ★★★★✩

Price: Free with optional in-app purchases

Insomnia and anxiety can interrupt sleep and lead to poor overall well-being. The answer isn’t always in sleeping pills. Sleep Well Hypnosis uses soothing sounds along with the voice of a hypnotist to help users unwind and rest. According to the creators, using the app can lower anxious thoughts and improve sleep in just one to three weeks.

White Noise

Android rating: ★★★★★

Price: $0.99

Do you live in a noisy space, sleep somewhere with a lot of background noise, or just rely on quiet to get to sleep? This app can drown out external sounds so you can relax well enough to sleep. There are different kinds of white noise and they’re all included. Whether you want to calm a fussy baby or sleep better despite tinnitus, this app produces a solid background noise that can help you sleep better — anywhere you go.

Sleep Easily Meditations

iPhone rating: ★★★★★

Price: Free with optional in-app purchases

Relax with original meditations by Shazzie, an acclaimed author of several books on the subject of meditation. This app also features music by musician and healer Ali Calderwood. The 26-minute session is designed to have a therapeutic effect, allowing you to unwind and venture into a deep meditative sleep. You can purchase additional meditations in the app. Napping and need to be awake by a certain time? Just set the in-app alarm and return to the day’s activities.

Sleepo

Android rating: ★★★★★

Price: Free

Looking for a soothing sound to play on the go? Choose from nature sounds, types of white noise, instruments, and other audio sounds on Sleepo. Mix sounds together for a custom track, and set the start and stop times you desire. Whether you use it for sleep or relaxing background music, the ambient sounds on Sleepo can help you unwind and get much-needed rest.

Relax Melodies

iPhone rating: ★★★★★

Android rating: ★★★★★

Price: Free with optional in-app purchases

Choose from more than 50 sounds to mix into tailored sleep audio tracks. It also includes guided meditations that specifically focus on helping you fall — and stay — asleep. When you find the right tunes that help you get some Zzz’s, don’t forget to share them with friends, as the app lets you tell the world about your insomnia cure.

Sleep Time

Android rating: ★★★★✩

Price: Free with optional in-app purchases

It’s time to sleep — but can you get your body to relax? And will it wake up at the optimal time so you feel your best all day? Sleep Time uses the sensitive accelerometer in Android smartphones to monitor sleep. Then it uses an algorithm to map out your sleep cycles so you analyze your sleep patterns. Use a simple gesture to set the alarm, which deploys based on your sleep so you wake at the ideal moment. In-app purchases let you add features.

Pillow

iPhone rating: ★★★★★

Price: Free with optional in-app purchases

Wake up completely refreshed each morning with this sleep tracking alarm clock app. It can gauge the quality of your sleep and help you improve your rest by comparing your sleep cycle data. It also offers a heart rate analysis as well as in-app purchases like audio recordings to enhance sleep.

Good Morning Alarm Clock

iPhone rating: ★★★★★

Android rating: ★★★★★

Price: $4.99 for iPhone, Free for Android

Determine if you’re getting enough sleep, discover how to get enough, and find out your ideal wake-up time with Good Morning Alarm Clock. This app leverages your smartphone’s accelerometer to monitor your sleep movements to determine the phase of sleep you’re in. It also creates an alarm to wake you up during your lightest phase of sleep, so waking up doesn’t feel so dreadful each day. View a report each morning about how you slept the night before and track your progress while getting tips to improve overall sleep quality.

Noisli

iPhone rating: ★★★★★

Android rating: ★★★★★

Price: $1.99

Improve your focus and concentration — and get a better night’s sleep — with Noisli. This app is ideal for people with insomnia who want to quiet their minds and let their bodies rest. Custom mix sounds that can drown out external noise so you can work and sleep better. The interface is simple to use and boasts a variety of ambient sounds that can provide a soothing background for your day or night.