The usual dose of Levitra is taken one hour before sex, with or without food. The effect of the pill may last up to 4 hours. This means that an erection may occur up to 4 hours after taking the pill. It does not mean that the erection will last for 4 hours.