Any trouble getting or keeping a solid erection to have sexual intercourse is considered Erectile dysfunction (ED). However, many men experience some type of inability to have or keep a firm erection from time to time (e.g. during times of stress) but that is not ED, because ED is progressive and happens frequently.