Random erections are erections that show up without any sexy thought or touch: in maths class, on the bus, when you wake up. They are a normal part of puberty, they happen to almost every boy, and they become less frequent as your hormones settle. You cannot switch them off, but you can make them pass quietly, and nobody notices as much as you think.
In brief:
- Puberty hormones make unplanned erections common, even during boring lessons.
- Slow breathing, a dull thought and a new sitting position usually help.
- Morning erections come from sleep cycles, not from dreams you remember.
- They become less frequent as puberty goes on.
- Pain or an erection lasting hours needs a doctor straight away.

In this article · 10 min read
- Why random erections happen in puberty
- What to do when it happens at school
- Morning erections and what happens at night
- Random erections and wet dreams: how they differ
- Talking about it with a parent or another adult
- Where the book fits
- When to talk to a doctor
- Who it is for
- Key terms
- Frequently asked questions
- Sources
An erection happens when the sponge-like tissue of the penis fills with blood, so it gets harder and stands away from the body. Nemours KidsHealth, a children's health service whose page is reviewed by a doctor, explains that the hormones that trigger puberty cause this change, and that a lot of erections "seem to happen for no real reason" (KidsHealth, Nemours). If it happens to you in the middle of a lesson, there is nothing wrong with you: your body is doing what bodies your age do.

Why random erections happen in puberty
Puberty usually starts somewhere between 8 and 14, says the NHS, and in boys one of the first signs is a larger penis and testicles (NHS). The same rise in hormones that makes your voice deeper and your body hair grow also makes the erection system more active. It reacts to small things: the rub of your trousers, a full bladder, warmth, nerves, or nothing at all.
The American Academy of Pediatrics puts it simply: during puberty boys get erections spontaneously, "without touching their penis and without having sexual thoughts", and these unexpected erections can be embarrassing, especially at school (HealthyChildren.org, American Academy of Pediatrics). The same page says they happen to boys during puberty and become less frequent over time.
So an erection in class does not say anything about what you were thinking. It is a reflex, a bit like a hiccup: annoying, out of your control, and harmless.
No normal number
No. KidsHealth says some people have many erections a day and others have none, and that the hormones behind them change with age, how far you are into puberty, how active you are and even how much you sleep. Unless they hurt or bother you, the number is not something to worry about. If something does worry you, a doctor is the right person to ask.
What to do when it happens at school
Here is the good news: a random erection usually goes away on its own within a few minutes, and the tricks below help it go faster. KidsHealth suggests thinking about something else, shifting your position, adjusting your clothes or excusing yourself to the bathroom. Here is a plan you can use without anyone noticing.
- Breathe slowly. Breathe in through your nose, then breathe out a little longer than you breathed in. Let your shoulders drop. Panic keeps your body on alert; slow breathing calms it down.
- Think about something dull. Do a times table in your head, list the countries you know, read the whiteboard carefully, or plan your next game level step by step. The aim is to fill your brain with something neutral.
- Change how you sit. If you are sitting, move your legs, sit up straighter or lean forward over your desk. A new position often makes it pass more quickly.
- Cover calmly. Keep your bag, a folder or a jumper on your lap. A longer T-shirt or a loose shirt left untucked also helps.
- Wait before you stand. If the bell rings, pack your things slowly. Those extra 30 seconds are often enough.
- Take a break if you need it. Asking to go to the toilet is normal. Nobody needs to know why.
What does not help: staring down at it, trying to "fight" it with stress, or worrying that everyone saw. Most people are busy with their own day.
Small habits that make it easier
- Clothes. Tel-jeunes, a youth support service, suggests looser clothing, looking somewhere else and thinking about something else (Tel-jeunes). Comfortable trousers and a longer top make a surprise erection much less visible.
- Patience. Tel-jeunes also points out that the better you get to know your body, the easier erections become to manage. It mostly happens during adolescence, and it will not always be like this.
- Swimming and sports. Wear sports underwear or swim shorts with a lining, and keep a towel close when you get out of the pool.
- Before presentations. If you stand up to talk in front of the class, hold your notes in front of you and breathe slowly before you start. Nerves alone can trigger it, and calm breathing helps on both fronts.
Morning erections and what happens at night
Waking up with an erection is also normal. It has nothing to do with being "too excited", and it does not mean you had a sexy dream. During sleep, your brain goes through cycles, including REM sleep (rapid eye movement sleep, the stage when most dreams happen), and erections come and go with these cycles. KidsHealth notes that you can have several erections each night during sleep.
A sleep laboratory study gives an idea of how much. In 1972, a team of sleep researchers recorded the sleep of ten boys aged 12.8 to 15.3 for three nights in a row. On average, the boys had erections for about 159 minutes per night, spread over about 7 episodes, while REM sleep lasted about 137 minutes. An erection during REM sleep lasted about 31 minutes on average, and one outside REM about 12 minutes (Karacan et al., Pediatric Research, 1972). It was a small, old study, but it shows clearly that night-time erections are a normal, regular part of sleep at your age, not a sign that something is wrong.

The one you notice in the morning is simply the last one of the night. It usually goes down by itself a few minutes after you get up.
Random erections and wet dreams: how they differ
Sometimes a night-time erection ends with ejaculation while you sleep. This is called a wet dream, or nocturnal emission. It is a different thing from a random erection, but both come from the same changes in puberty, and both are normal.
| Random erection | Wet dream | |
|---|---|---|
| When | Any time, awake or asleep | During sleep |
| What happens | The penis gets hard for a few minutes, then goes down | Semen comes out during sleep |
| Can you stop it? | Not really, but you can help it pass | No, and there is no need to |
| What to do | Breathe, think of something else, change position | Change underwear, rinse, carry on |
Magda Pabst's view
In 100 Mysteries of Puberty for Boys, Magda Pabst explains that the night-time side of puberty is common and normal, and that wet dreams are often the first sign that the body has become fertile. Her plan against embarrassment is practical, not dramatic: keep a few tissues and a spare pair of underwear near your bed, so you can change quickly and go back to sleep. She also encourages boys to tell a parent, even if it feels awkward at first, because parents went through the same thing and can help. In the same chapter, she says that random and morning erections are normal and suggests the same tricks to make one go away: distraction, deep breathing and changing position. This is general information only; if something about your body worries you, talk to a doctor.
Talking about it with a parent or another adult
You do not need permission to have a body that changes. But having one adult you can ask is useful, because questions often come up at odd moments. Magda Pabst suggests the dad or another trusted man, and any trusted adult can do it: a parent, an uncle, an older cousin, the school nurse or your doctor.
Some easy ways to start:
- "Can I ask you something a bit awkward about puberty?"
- "Is it normal that…?" and then just say the rest quickly.
- Send a message first if saying it out loud feels too hard.
For parents reading this: a short, calm "that happens to every boy at your age, it passes, and you can ask me anything" is worth more than a long talk. Our guides on how to talk to your son about puberty and wet dreams and on talking to teens about sex give more ideas.
Puberty for Boys with The Parenting Center (Manning Family Children's)
Where the book fits
100 Mysteries of Puberty for Boys by Magda Pabst talks straight to the boy, in a frank and funny way. Its chapter on sexuality explains erections, random and morning ones included, wet dreams and other questions that are hard to ask out loud, and it insists that there is no perfect size and no reason to compare yourself with videos online. Other chapters cover the voice, sweat, acne, mood, sleep, friends, school and the internet. Some parts are quite frank, so a parent may want to browse it first. At Books Go Publications, our puberty guides are built on reliable sources and checked by native-speaker editors in each language.
When to talk to a doctor
Random erections are not a medical problem. Still, see a doctor if:
- an erection is painful, or keeps hurting after it goes down;
- an erection lasts more than about 3 to 4 hours: the NHS says this needs urgent treatment in hospital to avoid permanent damage, so get help straight away (NHS);
- you notice a bend, a lump, a rash, swelling or pain in the penis or testicles;
- you feel very anxious about your body, or you are being teased or bullied about it;
- you are worried that puberty started very early or has not started yet: the NHS mentions before 8 and after 15 as ages to check.
A doctor has heard these questions many times. You can also ask a parent to book the appointment and wait outside if you prefer. For other changes, read our guide on voice changes in boys. More guides are on the Books Go Publications blog and more books on the Books Go Publications home page.
Who it is for
This guide is for anyone who wants clear, calm facts about erections in puberty.
- Boys aged about 10 to 16: use the four steps and the small habits to get through class without stress.
- Teens who wake up worried: the section on sleep explains why mornings are like this.
- Parents and carers: find words for a short, relaxed talk, and know when a doctor is needed.
- Teachers and youth workers: answer the question kindly if a student asks it, or point to a reliable page.
Key terms
- Erection: the penis gets harder and bigger because its tissue fills with blood.
- Random (spontaneous) erection: an erection with no sexual thought or touch behind it.
- REM sleep: rapid eye movement sleep, the stage of sleep when most dreams happen.
- Nocturnal emission: the medical name for a wet dream, ejaculation during sleep.
- Priapism: an erection that lasts hours and does not go down; a medical emergency.
- Testosterone: the main hormone of male puberty.
Frequently asked questions
Are random erections normal at 12, 13 or 14?
Yes. Health sources such as KidsHealth and the American Academy of Pediatrics say they are common during puberty, even without sexual thoughts. They usually become less frequent as puberty goes on.
Can people see a random erection?
Much less than you fear. Sitting down, a bag or folder on your lap, a loose top and a change of position hide it well, and it usually passes in a few minutes.
How do I make an erection go away quickly?
Breathe slowly, think about something dull such as a times table, and change how you sit. KidsHealth also mentions adjusting your clothes or taking a short break in the bathroom.
Does a random erection mean I was thinking about sex?
No. The American Academy of Pediatrics explains that boys in puberty get erections without touching and without sexual thoughts. It is a reflex of a body in change.
Why do I wake up with an erection every morning?
Erections come and go with sleep cycles, mostly during REM sleep. A 1972 sleep study found that boys aged about 13 to 15 had erections for around 159 minutes a night. The morning one is simply the last of the night.
Will random erections ever stop?
They become less frequent as your hormones settle, according to KidsHealth. Erections in general stay part of life, but the surprise ones in class fade with time.
When is an erection a reason to see a doctor?
When it hurts, when you notice changes such as a lump or a bend, or when it lasts more than about 3 to 4 hours. In that last case, get medical help straight away.
Sources
- Is It Normal to Get Erections? (for Teens), Nemours KidsHealth (2024)
- Concerns Boys Have About Puberty, HealthyChildren.org, American Academy of Pediatrics
- Some characteristics of nocturnal penile tumescence during puberty, Karacan et al., Pediatric Research (1972)
- How can I control embarrassing erections?, Tel-jeunes
- Early or delayed puberty, NHS
- Priapism (painful erections), NHS
This article is for general information only and does not replace advice from a doctor, dietitian or other qualified professional.



