Quantum interference lies at the foundation of many protocols for scalable quantum computing and communication with linear optics. To observe these effects the light source must emit photons that are indistinguishable. From a technological standpoint, it would be beneficial to have electrical control over the emission. Here we report of an electrically driven single-photon source emitting indistinguishable photons. The device consists of a layer of InAs quantum dots embedded in the intrinsic region of a p-i-n diode. Indistinguishability of consecutive photons is tested in a two-photon interference experiment under two modes of operation, continuous and pulsed current injection. We also present a complete theory based on the interference of photons with a Lorentzian spectrum which we compare to both our continuous wave and pulsed experiments. In the former case, a visibility was measured limited only by the timing resolution of our detection system. In the case of pulsed injection, we employ a two-pulse voltage sequence which suppresses multi-photon emission and allows us to carry out temporal filtering of photons which have undergone dephasing. The characteristic Hong-Ou-Mandel 'dip' is measured, resulting in a visibility of 64 +/- 4%.