Most experts advise you to take melatonin around thirty to sixty minutes before your bedtime. Since it is a fast-acting drug, melatonin takes as little as thirty minutes to kick in before you begin to feel the effects.