Erection

When the penis becomes hard and stiff due to increased blood flow. Happens during arousal, sleep, or sometimes for no reason.

An erection is when the penis goes hard and stiff. It happens because extra blood flows into it. It can happen when someone is turned on, during sleep, or sometimes for no reason at all.


An erection is when the becomes hard and stiff, standing up or outward from the body. It happens because blood flows into the spongy tissue inside the penis and fills it up. Erections happen during sexual , but they also happen randomly — especially during — and during sleep.

  • An erection is caused by increased blood flow to the penis.
  • They happen during arousal, during sleep, and sometimes for absolutely no reason.
  • Random erections are extremely common during puberty and are nothing to worry about.
  • Erections vary — sometimes very hard, sometimes semi-hard. Both are normal.
  • Not getting an erection doesn't always mean something is wrong. Nerves, tiredness, and stress all play a role.

How it works

The penis contains two columns of spongy tissue called the corpora cavernosa. When you become aroused (or sometimes just randomly), signals from the brain cause blood to flow into this tissue. The blood fills the spongy spaces and the penis expands and stiffens. A valve-like mechanism traps the blood inside, keeping the erection going. When the arousal passes or the signals stop, the blood drains back out and the penis goes soft again.

Random erections

During puberty, your body is flooded with new (especially ), and one side effect is that erections can happen at the most inconvenient times — in class, on the bus, standing up to give a presentation. These have nothing to do with being turned on. They're just your body adjusting to hormonal changes, and they're completely normal.

Most people with a penis go through a phase where random erections happen frequently. It calms down as you get older, though unexpected erections can still happen occasionally throughout life. If it happens, it usually goes away within a few minutes on its own. Thinking about something boring, adjusting how you're sitting, or holding something in front of you are all classic coping strategies.

Morning erections

Waking up with an erection is very common. It happens because you go through cycles of sleep that include REM (rapid eye movement) phases, during which erections naturally occur — usually 3-5 times a night. It's a sign that the blood flow and nerve function in your penis are working normally. It's got nothing to do with sexual dreams (though those can happen too).

When erections don't happen

Sometimes erections don't happen when you want them to — during a sexual situation, for example. This can feel stressful or embarrassing, but it's incredibly common, especially with nerves, anxiety, tiredness, alcohol, or stress. For young people, the most common cause is simply being nervous. It doesn't mean something is physically wrong.

If it keeps happening and it's bothering you, a GP can help rule out any underlying issues. But occasional difficulty getting or keeping an erection is a normal part of life, not a medical emergency.

Things people get wrong

"If you get an erection, it means you're turned on." Not necessarily. Random erections happen all the time, especially during puberty. An erection is a physical response — it doesn't always reflect what you're thinking or feeling.

"A 'real' erection should be rock hard." Erections vary. Sometimes they're very firm, sometimes less so. Both can be normal and functional. Porn shows a very narrow version of what erections look like.

"If you can't get an erection, something is wrong with you." Occasional difficulty is completely normal, especially with nerves or alcohol. It's only a concern if it happens consistently over a long .

Things people ask about erections

How do I hide a random erection?

Untucking your shirt, holding a bag or book in front of you, sitting down, or putting your hands in your pockets can all help. It usually goes away within a few minutes. Almost everyone with a penis has been there.

Is it normal to get erections during sleep?

Yes. Multiple erections during sleep are a normal part of sleep cycles. Waking up with one (morning wood) is very common and is actually a sign things are working properly.

Can you get an erection without being touched?

Yes. Erections can happen from thoughts, visual stimulation, or completely randomly — no physical touch needed.

Do erections hurt?

They shouldn't. If an erection is painful, especially if it lasts a long time (more than a couple of hours) and won't go away, that's a condition called priapism and needs medical attention urgently. But normal erections aren't painful.

Does penis size change with an erection?

Yes — the penis gets larger when erect. People whose penis is smaller when soft often see a bigger proportional increase than those who are already larger when soft. This means there's less difference in erect size between people than you'd think from looking at soft penises.

An erection is when the gets hard and stands up or sticks out from the body. It happens because blood rushes into the soft tissue inside the penis and fills it up. When the blood drains back out, the penis goes soft again.

Erections happen when someone is sexually excited. But they also happen for no reason at all, especially during . If you're going through puberty, you might get erections at random times — in class, on the bus, whenever. This isn't because you're thinking about anything sexual. It's just your body getting used to new . It's very common and it calms down as you get older.

Waking up with an erection is also normal. It happens during certain stages of sleep and is a sign that everything is working properly.

Sometimes an erection doesn't happen when you want it to, like during a sexual situation. This is usually because of nerves, stress, tiredness, or alcohol. It's very common and doesn't mean anything is wrong with you.

Erections can be very hard or just partly hard. Both are normal. They usually last a few minutes and go away on their own. If an erection is ever painful or lasts for hours and won't go away, that needs medical help.

Questions about this

Need to talk to someone?

For Teachers

Explore Puberty