Reading Time: 6 minutes
How to Get and Keep an Erection: A Clinical Guide

Medically reviewed by Dr. Meinolf Dorka, Medical Director, last reviewed [October, 2026]

Trouble getting or keeping an erection is one of the things people read about quietly for a long time before saying it to anyone. It is common to look for answers in private, to try a few things alone, and to still put off the conversation that would help most. That delay is rarely a matter of willpower. It usually reflects how the subject is talked about, or avoided, rather than anything about the person living with it.

This is a plain, clinical guide to how an erection works, what can make it harder to get or keep one, and what tends to help. The aim is to give you enough to decide what to do next, at your own pace.

If this is weighing on you

Occasional worry is ordinary. If you are finding things hard, support is available. In an emergency, or if you or someone else is in immediate danger, call 144 for medical help or 117 for the police. For emotional support, 143 (Die Dargebotene Hand) is available 24 hours a day in German, French and Italian; support in English is available through Heart2Heart on 0800 143 000, daily from 18:00 to 23:00. For children and young people, 147 offers support. ahtida Health is not an emergency service.

How an erection actually works

An erection is less about effort and more about the conditions being right. It begins in the brain and the senses: signals of arousal travel through the nervous system to the blood vessels in the penis, which relax and let blood flow in. As the tissue fills, it presses on the veins that would normally carry blood away, so the blood stays and the erection holds. When arousal fades, or the signal is interrupted, the vessels tighten again and the erection subsides.

Three things have to cooperate for that to happen: the nerves that carry the signal, the blood vessels that respond to it, and the hormones and state of mind that set it in motion. Because so much has to line up, an erection can be a fairly sensitive marker of general health. That is worth keeping in mind, because it explains why getting and keeping one is rarely a question of trying harder.

When difficulty becomes a pattern worth noticing

An occasional off night is ordinary. Tiredness, stress, alcohol, or simply having a lot on your mind can all get in the way on a given evening, and that is not a medical problem. Εrectile dysfunction describes something more consistent: difficulty getting or keeping an erection firm enough for sex that is present often, over a period of several months, and that causes distress. The World Health Organization classifies it among conditions related to sexual health.

The distinction between a single occasion and a pattern is the one that matters. It is the pattern, not the bad night, that is worth looking into, and it is also the pattern that tends to respond to the kinds of change described below.

What helps you get and keep an erection

Because an erection depends on blood flow, nerves, hormones and state of mind, what helps usually works on one or more of those. For many people more than one of the following plays a part, and they often work together rather than alone.

Everyday habits, and the levers you can change. A good deal of what supports an erection is the same as what supports the heart and blood vessels, which is not a coincidence. Regular physical activity, stopping smoking and keeping alcohol moderate each affect blood flow directly. Enough sleep and some attention to stress matter too, since both influence the hormones and the nervous-system state an erection depends on. Where excess weight, high blood pressure, high cholesterol or diabetes are part of the picture, managing them can improve erections as well as general health. None of this is dramatic and none of it works overnight, but it is often where the most durable change comes from, and it improves the odds that any medical treatment will help.

The psychological side. The mind starts an erection, so anything that makes it hard to feel relaxed and present can get in the way, and it is a mistake to reduce this to performance anxiety alone. General stress, including work-related stress, can spill into the bedroom with no physical cause present. Anxiety, low mood and depression can reduce desire and interfere with arousal, and the link between depression and erectile difficulty can run in both directions. Tension within a relationship, or the quiet expectation that sex should always work on demand, can also play a part. You can read more about the psychological causes of erectile difficulty if that is where you recognise yourself.

If you do recognise yourself there, one thing is worth holding onto: a psychological cause is not a character flaw, and it is not imagined. The mind and the body are not separate systems in this. That is information, not failure, and it usually points clearly towards what tends to help, whether that is addressing stress directly, talking therapy, or support for a relationship.

Medical options when other measures are not enough. When habits and the psychological side are not the whole answer, there are medical options, and the right one depends on the cause, which is why a doctor usually looks for the cause before reaching for a prescription. The most common medical treatment is a group of tablets called PDE5 inhibitors, which improve blood flow so an erection is easier to reach and hold. The generic substances in this group are sildenafil, tadalafil, vardenafil and avanafil. Two points matter as much as the names: they do not create an erection on their own and work only alongside sexual arousal, and they are not right for every man. They can be dangerous when combined with nitrate medicines used for chest pain, and may be unsuitable with certain other medicines or after a recent heart problem. Common side effects include headache, flushing, indigestion and a blocked nose. Where tablets are not suitable or do not help, other approaches exist, from vacuum devices and injection treatments to testosterone where a blood test shows it is low and, for a smaller number of people, a surgically placed implant. You can read more about the range of ED treatments and how they are chosen.

It is fair to want to know how quickly any of this will help. Here honesty serves you better than reassurance: no responsible clinician will offer a timeline in advance. What can be offered is an assessment, a plan matched to the cause, and a point at which it is reviewed.

A safety note

A firm erection that will not go down and lasts longer than a few hours needs emergency care rather than watchful waiting. This is called priapism, and it can occur after some ED treatments, particularly injections and, less often, oral medicines. In Switzerland, call 144. ahtida Health is not an emergency service.

When to see a doctor

Occasional difficulty does not need a doctor. It is worth speaking to one when the pattern is ongoing, when it is affecting you or a relationship, or when it comes with other symptoms, and sooner rather than later if you have diabetes, heart disease, or another condition that can be linked to erectile difficulty.

There is a further reason not to wait. Because an erection depends on healthy blood flow, erectile dysfunction can be an early sign of a problem with the heart and blood vessels, sometimes before anything else appears. That is not a reason to panic. It is a reason to have it looked at, because doing so can be good for more than your sex life. One situation is not about waiting at all: a painful erection that will not subside, as described above, is a reason to seek emergency care the same day.

If you decide to go, a little preparation helps. It is worth noting when the difficulty started, whether it happens every time or only in some situations, what else has changed in your health, and which medicines you take, since some can contribute. None of this is a test to pass. It is simply what a doctor would otherwise have to draw out, and having it ready makes a short conversation more useful.

How do you get support in Switzerland?

A good place to start is a doctor: a GP, or a urologist, who can look for the cause, check whether anything else needs attention, and set out the options with you.

If you would rather begin more privately, ahtida Health is a Swiss digital medical clinic that includes sexual health among its areas of care, with consultations available in German and English. You can learn more about sexual health care before deciding anything.

A reminder that applies throughout: ahtida Health is not an emergency service. For a medical emergency in Switzerland, call 144.

Frequently asked questions

Why can I sometimes get an erection but not keep it?
Losing one after getting it is common, and it does not point to a single cause. It can be a matter of blood flow not being sustained, or of attention and anxiety pulling you out of the moment once things begin. A doctor can help tell which, often from a few questions and a brief check.
Can younger men have erection problems?
Yes. Erectile difficulty can affect men of all ages, although the risk rises with age. In younger men, stress, daily habits and psychological factors are more often part of the picture, but that is a tendency rather than a rule: a physical cause is still possible, is worth checking, and the problem is rarely explained by a single factor.
Do the tablets work for every man?
No. Oral medicines help many people but not all, and they are not safe for every man, particularly those taking nitrate medicines for the heart. They also need sexual arousal to work rather than producing an erection on their own. An assessment is how you find out whether they fit.
Can changes to my habits alone make a difference?
Sometimes. In milder cases, more physical activity, stopping smoking, cutting back on alcohol and managing conditions like blood pressure can help on their own. In others they help but are not the whole answer. A doctor can give you a sense of where you are likely to fall.
Does erectile difficulty always need medication?
No. Medication is one option among several, and it is not always the first. Where lifestyle factors or stress are central, addressing those can be enough on its own, and where a medical treatment is needed, tablets are only one of the choices. What fits depends on the cause.
What does treatment cost?
It depends on which treatment you and a doctor decide on, and costs vary between the options. Rather than assume, it is worth asking directly what a particular option involves when you speak to a doctor.

Taking the next step, if you want to

Getting and keeping an erection depends on more than effort, and when it becomes a pattern it is usually something that can be understood and worked with. If you have read this far, you already have most of what you need to decide whether the next step is worth taking.

When you are ready, you can take a look at sexual health care with ahtida Health. It commits you to nothing beyond the conversation.

References

  1. World Health Organization. ICD-11 for Mortality and Morbidity Statistics: Male erectile dysfunction (HA01.1). 2025.
  2. Cleveland Clinic. Erectile Dysfunction (ED). Last updated 28 August 2023.
  3. Mayo Clinic. Erectile dysfunction: Symptoms and causes. 1 March 2025.
  4. Mayo Clinic. Erectile dysfunction: oral medications. 2024.
  5. ch.ch (Swiss Confederation). Emergencies and danger: emergency numbers. 2026.
  6. Die Dargebotene Hand (Tel 143). How to contact us: languages and Heart2Heart hours. 2026.
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.