Skip to main content

Medicine guide

Sildenafil (Viagra): uses, safety and side effects

Sildenafil, best known as Viagra, is mainly used to treat erection problems and also treats pulmonary arterial hypertension. It is taken about an hour before sex, never more than once a day, and it must not be combined with nitrates.

Last checked: 2026-10-03

Key facts

At a glance.

  • Main use

    Erection problems; it also treats pulmonary arterial hypertension.

  • Timing

    People with erection problems are usually told to take 1 tablet about 1 hour before sex.

  • Maximum

    No more than 1 tablet a day, since effects can last up to 36 hours.

  • Nitrates

    It is not usually prescribed with nitrates.

  • Priapism

    A painful erection lasting longer than 4 hours needs emergency care.

  • Food and drink

    Avoid grapefruit; a large meal can delay onset; heavy drinking reduces effect.

What sildenafil is used for

Sildenafil is mainly used to treat erectile dysfunction and also to treat pulmonary arterial hypertension, high blood pressure in the arteries of the lungs. Viagra is the brand name mentioned by the NHS. For erection problems it comes as tablets, and for pulmonary hypertension it can also come as a liquid.

It works by relaxing blood vessels and increasing blood flow, and it needs sexual stimulation to produce an erection.

It is a prescription medicine, and the NHS notes it may also be supplied after a consultation with a pharmacist.

Timing and dose limits

The NHS says people with erection problems are usually told to take 1 tablet about 1 hour before sex. The effect can last up to 36 hours, and you should not take more than 1 tablet a day. Doses for pulmonary arterial hypertension are different and are set by the specialist.

Food matters: a large meal can delay the effect, and drinking too much alcohol reduces how well it works.

  • For pulmonary hypertension, if you miss a dose take it when you remember unless the next is near; skip it otherwise, and never double up.

  • If you take more than prescribed, call NHS 111, or 999 for an ambulance if you are seriously unwell.

Nitrates, poppers and other things to avoid

Sildenafil is not usually prescribed together with nitrates, such as those used for chest pain, because the combination can drop blood pressure dangerously. Tell any clinician treating you that you have taken it.

The NHS also lists anticonvulsants, certain blood pressure medicines, the antibiotics rifampicin, erythromycin and clarithromycin, antifungals and the herbal remedy St John's wort as interacting. Poppers and illegal stimulants such as amphetamines and cocaine increase the risk of serious effects. Do not have grapefruit or grapefruit juice.

Who cannot take it

Sildenafil may be unsuitable if you have had a recent heart attack or stroke, low or uncontrolled high blood pressure, liver or kidney disease, a blood cancer, sickle cell anaemia, previous loss of vision from reduced blood supply to the optic nerve, or a bend in the penis that makes erections painful.

It is not usually used during pregnancy or breastfeeding, although a doctor may recommend it for pulmonary hypertension if the benefits outweigh the risks.

Side effects

Common effects include headache, dizziness, a blocked nose, stomach upset, anxiety and temporary changes in vision. If your vision is affected, do not drive or use machinery.

Serious effects are rare: allergic reaction, blistering skin, heart attack, irregular heartbeat, seizures, fainting, and a painful erection lasting longer than 4 hours (priapism). Call 999 for anaphylaxis, heart attack symptoms or a seizure, and NHS 111 for other serious effects.

Suspected side effects can be reported through the Yellow Card scheme.

Why a check-up matters

Erection problems can be the first sign of conditions such as heart disease or diabetes. The NHS advises a check-up with a doctor within 6 months of starting sildenafil if you did not get it on prescription.

The guide on erectile dysfunction covers causes and assessment. Tadalafil is a related medicine with its own guide, and the NHS gives a similar 36-hour duration for both.

Whatever the supply route, the medicine is only one part of managing erection problems. Blood pressure, cholesterol, blood sugar, smoking, alcohol, weight and stress can all contribute, and addressing them is often as important as the tablet. Anyone who develops chest pain, severe dizziness or a sudden change in vision after taking sildenafil should stop and seek urgent help.

Frequently asked

Questions people ask.

Quick, plain-English answers to the questions we hear most.

  • What is sildenafil used for?

    Mainly erectile dysfunction, and also pulmonary arterial hypertension.

  • When should I take it?

    People with erection problems are usually told to take 1 tablet about 1 hour before sex.

  • How often can I take it?

    No more than 1 tablet a day, as the effects can last up to 36 hours.

  • Is Viagra the same thing?

    Viagra is a brand name for sildenafil.

  • Can I take it with nitrates?

    It is not usually prescribed with nitrates because blood pressure could fall dangerously.

  • Should I take it with food?

    A large meal can delay the effect. Avoid grapefruit and grapefruit juice.

  • What is a dangerous erection?

    A painful erection lasting longer than 4 hours needs emergency care.

  • Can I drink alcohol?

    Drinking too much alcohol reduces its effectiveness.

  • Does it affect my vision?

    Temporary vision changes can occur. Do not drive or use machinery if you are affected.

  • Is it used in pregnancy?

    It is not usually used during pregnancy or breastfeeding, though a doctor may recommend it for pulmonary hypertension if benefits outweigh risks.

Where this comes from

Sources and checking.

This guide is for information, not medical advice.

Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.

Published 2026-10-03, next review 2027-10-03.