Some ED medications take effect right away. This makes it possible to have an erection right after taking the pill. Other medications require 15 to 60 minutes before they take effect.