Sildenafil is the generic version of Viagra, containing the same active ingredient as Viagra and Viagra Connect. Because all three treatments contain sildenafil citrate as their active ingredient, they all work in exactly the same way.