Ambien works relatively quickly, and it remains in the body for a short period of time. It has a rapid onset of action within 30 minutes, with peak effects reached within 1–2.5 hours for most people, depending on whether the person took an immediate- or extended-release version of the drug.