How soon before sex should ED pills be taken?

Timing is the first practical question many men ask after getting a prescription for an ED pill. This page uses the MedlinePlus guidance for sildenafil.
About an hour, within a window
MedlinePlus drug information for sildenafil gives a window and a best time. The best time to take sildenafil is about 1 hour before sexual activity, but you can take the medication any time from 4 hours to 30 minutes before sexual activity.
For the full drug entry, see MedlinePlus on sildenafil.
What can change the timing
MedlinePlus adds one condition about food. However, if you take sildenafil with a high-fat meal, it will take longer for the medication to start to work.
That means a planned dinner can move the clock. A reader who has dinner plans may want to ask a pharmacist or prescriber how the meal fits the schedule.
If you take a different medicine
The window above belongs to sildenafil. MedlinePlus has a separate page for tadalafil for readers whose prescription is for that drug.
The prescription label and your prescriber have the final say on how you take any medicine.
What to do next
Read the label that came with your prescription, then ask your prescriber or pharmacist if anything is unclear. For background on the condition itself, the MedlinePlus page on erectile dysfunction is a good place to start. The NHS also publishes a page on erectile dysfunction.
Related questions: who should not take ED pills and do ED pills work.
A locally minded note
Timing questions are easy to settle at an appointment and harder to settle later. Readers in Westfield and nearby towns such as Cranford, Summit and Millburn can bring the question to their own prescriber. More topics are on the erectile dysfunction pills page.