Temporary ED may last as long as the cause is present. For example, individuals experiencing temporary ED due to a lifestyle habit, such as smoking or drinking alcohol could experience ED symptoms for as long as the habit continues.