An erection can happen when the penis is touched or caressed, or when you are excited by a sexual thought or by the sight of someone you find attractive. Erections can also be caused by anxiety and stress. It is also very common for boys to wake up with an erection in the morning. While you are asleep at night, your penis will probably become erect and then go down about 5 to seven times. This is completely normal and healthy.
Erections occur in males of all ages, including babies and old men.
Sometimes boys worry that they are having too many erections. They are disturbed by very frequent erections in class, on the bus or when they are walking. Sometimes there seems to be an obvious reason for the erection. Maybe you are sitting next tro someone you find attractive. At other times, however, erections may come for no reason at all.