Levitra and Viagra are both PDE 5 inhibitors and both work similarly to each other. These medications are used to treat erectile dysfunction in men during sexual intercourse. Erectile Dysfunction (Impotence) is the inability to get or maintain an erection during sexual intercourse. It increases the blood flow to the penis to help men get or maintain an erection. Levitra works longer than Viagra. The side effects of Levitra and Viagra are headache, flushing, dizziness, muscle pain, vision problems, nausea, vomiting, indigestion, and more.