Polysomnography, known as a sleep study, is a test used to diagnose sleep disorders. Polysomnography records your brain waves, the oxygen level in your blood, and your heart rate and breathing during sleep. It also measures eye and leg movements.

A sleep study may be done at a sleep disorders unit within a hospital or at a sleep center. The test is usually performed at night. But it may be done during the day for shift workers who usually sleep in the daytime.

In addition to diagnosis, a sleep study might help determine a treatment plan if you've been diagnosed with a sleep disorder. It also might be used to adjust your treatment.

Sometimes you may be able to do the sleep study at home. Home sleep apnea tests are used to help diagnose obstructive sleep apnea.

If you're doing a sleep study from home, there are different types of devices that may be used. Each device uses a different combination of sensors. Home sleep apnea tests generally record your breathing rate and airflow, as well as oxygen levels and heart rate. One style also includes information on blood vessels.

Why it's done

Polysomnography monitors your sleep stages and cycles. It can identify if or when your sleep patterns are disrupted and why.

The typical process of falling asleep begins with a sleep stage called non-rapid eye movement (NREM) sleep. During this stage, brain waves slow down. This is recorded during a sleep study with a test called an electroencephalogram (EEG).

After an hour or two of NREM sleep, brain activity picks up again. This sleep stage is called rapid eye movement (REM) sleep. Your eyes quickly move back and forth during REM sleep. Most dreaming occurs during this stage of sleep.

You typically go through multiple sleep cycles a night. You cycle between NREM and REM sleep in about 90 minutes. But sleep disorders can interfere with this sleep process.

Your health care provider may recommend a sleep study if it's suspected that you have:

  • Sleep apnea or another sleep-related breathing disorder. In this condition, breathing stops and starts repeatedly during sleep.
  • Periodic limb movement disorder. People with this sleep disorder flex and extend their legs while sleeping. This condition is sometimes linked to restless legs syndrome. Restless legs syndrome causes an uncontrollable urge to move the legs while you're awake, usually in the evenings or at bedtime.
  • Narcolepsy. People with narcolepsy experience overwhelming daytime drowsiness. They can fall asleep suddenly.
  • REM sleep behavior disorder. This sleep disorder involves acting out dreams during sleep.
  • Unusual behaviors during sleep. This includes walking, moving around or rhythmic movements during sleep.
  • Unexplained long-lasting insomnia. People with insomnia have trouble falling asleep or staying asleep.


Polysomnography is a noninvasive, painless test. The most common side effect is skin irritation. This can be caused by the adhesive used to attach the test sensors to your skin.

How you prepare

Don't consume drinks or food containing alcohol or caffeine during the afternoon and evening before a sleep study. Alcohol and caffeine can change your sleep patterns. They may make symptoms of some sleep disorders worse. Also don't nap in the afternoon before a sleep study.

You may be asked to bathe or shower before your sleep study. But don't put on lotions, gels, colognes or makeup before the test. They can interfere with the test's sensors, called electrodes.

For a home sleep apnea test, the equipment is delivered to you. Or you might pick up the equipment at your provider's office. You'll be given instructions on how to use the equipment. Ask questions if you're unsure about how the test or equipment works.

What you can expect

During polysomnography

If you're having a sleep study in a sleep center, you'll arrive in the evening and stay overnight. You can bring items you use for your bedtime routine. You also can sleep in your own nightclothes.

If you're having a home sleep apnea test, follow your regular bedtime schedule. You'll need to place the sensors on your body and turn on the machine according to the instructions you've been given. Your health care provider may ask you to keep a sleep log.

If you're at a sleep center, the room where polysomnography is done is similar to a hotel room. It's dark and quiet during the test. You won't share the room with anyone else. Each room has its own bathroom.

The sleeping area will typically have a low-light video camera. This allows the polysomnography technologists to see what's happening in the room when the lights are out. It also has an audio system. This allows them to talk to you and hear you from their monitoring area outside the room.

After you get ready for bed, one of the technologists will place the sensors. They're applied to your scalp, temples, chest and legs using a mild adhesive such as glue or tape. The sensors are connected by wires to a computer. The wires are long enough to let you move around in bed. A small clip also is placed on your finger or ear. This monitors the level of oxygen in your blood.

While you sleep, a technologist monitors your:

  • Brain waves.
  • Eye movements.
  • Heart rate.
  • Breathing pattern.
  • Blood oxygen level.
  • Body position.
  • Chest and abdominal movement.
  • Limb movement.
  • Snoring and other noises.

The technologists monitor you during the night. If you need help, you can talk to them through the monitoring equipment. They can come into the room to free up the wires if you need to get up.

During the study, the technologist may have you try a positive airway pressure (PAP) machine for sleep apnea. This is a device that consists of a tight-sealing nosepiece or face mask through which a gentle stream of air is delivered to help you breathe.

Continuous positive airway pressure (CPAP) is one type of PAP machine. CPAP devices deliver a constant stream of air that keeps the airway passages open while you sleep.

For some people, bilevel positive airway pressure (BPAP) machines may be a more comfortable choice. These devices deliver more pressure while you're breathing in, and lower pressure when you exhale.

You may have the opportunity to try on a PAP device before the sleep study begins. This makes you familiar with the device if the technologist suggests you try it later in the night. If necessary, oxygen also may be used during the study to bolster your breathing.

Although you probably won't fall asleep as easily or sleep as well at the sleep center as you do at home, this usually doesn't affect the test results. A full night's sleep isn't required to obtain accurate polysomnography results.

After polysomnography

After polysomnography in a sleep center, the sensors are removed and you may leave the sleep center. You're given an appointment for a follow-up visit with the heath care provider who recommended the test. You can return to your usual activities after polysomnography.

In the morning following a home sleep apnea test, you can remove the sensors when you wake. You'll return the testing equipment to your provider's office or by mail. Some home sleep apnea tests are now disposable, so they can be discarded when the test is over.


The measurements recorded during a sleep study provide a great deal of information about your sleep patterns. For example:

  • Brain waves and eye movements during sleep can help your health care team assess your sleep stages. This helps identify disruptions in the stages. These disruptions may occur due to sleep disorders such as narcolepsy or REM sleep behavior disorder.
  • Heart and breathing rate changes and changes in blood oxygen that aren't typical during sleep may suggest sleep apnea.
  • Using PAP or oxygen can indicate which device settings work best for you. This helps if your health care provider would like to prescribe the device for home use.
  • Frequent leg movements that disrupt your sleep may indicate periodic limb movement disorder.
  • Unusual movements or behaviors during sleep may be signs of REM sleep behavior disorder or another sleep disorder.

The information gathered during a sleep study is evaluated first by a polysomnography technologist. The technologist uses the data to chart your sleep stages and cycles. Then the information is reviewed by your sleep center provider.

If you've had a home sleep apnea test, your health care provider will review the information collected during the test. It may take a few days or weeks to get your results.

At a follow-up appointment, your provider reviews the results with you. Based on the data gathered, your health care provider will discuss any treatment or further evaluation that you may need.

If you've had a home sleep apnea test, sometimes the results don't provide enough information. If this happens, your provider may recommend a sleep study in a sleep center.

Clinical trials

Explore Mayo Clinic studies of tests and procedures to help prevent, detect, treat or manage conditions.

Feb. 17, 2023
  1. Broaddus VC, et al., eds. Obstructive sleep apnea. In: Murray and Nadel's Textbook of Respiratory Medicine. 7th ed. Elsevier; 2022. https://www.clinicalkey.com. Accessed Jan. 16, 2023.
  2. Kramer NR, et al. Overview of polysomnography in adults. https://www.uptodate.com/contents/search. Accessed Jan. 16, 2023.
  3. Sleep studies: In the sleep laboratory and in the home 2019. American Thoracic Society. http://www.thoracic.org/patients/patient-resources/fact-sheets-az.php. Accessed Jan. 16, 2023.
  4. Brain basics: Understanding sleep. National Institute of Neurological Disorders and Stroke. https://www.ninds.nih.gov/health-information/public-education/brain-basics/brain-basics-understanding-sleep?search-term=understanding%20sleep#. Accessed Jan. 16, 2023.
  5. Sleep study. American Academy of Sleep Medicine. https://sleepeducation.org/patients/sleep-study/. Accessed Jan. 16, 2023.
  6. Sleep studies. National Heart, Lung, and Blood Institute. https://www.nhlbi.nih.gov/health-topics/sleep-studies. Accessed Jan. 16, 2023.
  7. Home sleep apnea test. American Academy of Sleep Medicine. https://sleepeducation.org/patients/home-sleep-apnea-test/. Accessed Jan. 16. 2023.
  8. Kryger M, et al., eds. Section introduction: Polysomnography and beyond. In: Principles and Practice of Sleep Medicine. 7th ed. Elsevier; 2022. https://www.clinicalkey.com. Accessed Jan. 16, 2023.
  9. Chang JL, et al. International consensus statement on obstructive sleep apnea. International Forum of Allergy and Rhinology. 2022; doi:10.1002/alr.23079.

Polysomnography (sleep study)