Elavil can remain detectable on a urine drug test for up to 5 days. Detection can be as fast as 5 minutes after the first dose of the drug is taken.