Viagra is a brand name for the pill that contains sildenafil citrate. This medicine is used to treat male sexual function problems (including erectile dysfunction or ED) and pulmonary arterial hypertension (PAH) in men who have had an arterial blood gas test performed.