We demonstrate a novel multijunction architecture, the heterojunction bipolar transistor solar cell (HBTSC), which exhibits the performance of a double-junction solar cell in a more compact npn (or pnp) semiconductor structure. The HBTSC concept has the advantages of being a three-terminal device, such as low spectral sensitivity and high tolerance to non-optimal band gap energies, while it reduces the fabrication and operation complexity with respect to other multi-terminal devices because, for example, it can produce independent power extraction from the two junctions without the need for extra layers for their isolation or inter-connection. The top and bottom junctions in our proof-of-concept HBTSC prototype, which is made of epitaxial GaInP/GaAs, exhibit independent current-voltage characteristics under AM1.5G illumination, with respective open-circuit voltages of 1.33 and 0.95 V. The voltage difference between the two junctions is notable considering that they share a thin (< 600 nm) GaInP layer which contributes to the photogeneration of both junctions. This can be explained by a gradient in the minority carrier quasi-Fermi level within the base layer, which is compatible with a high fill factor. We also offer a technological solution for contacting the intermediate layer and study the effect of series resistance on the device performance. The HBTSC opens a new perspective in the understanding of multi-junction devices and it is an excellent candidate for the application of low-cost fabrication techniques, and for the implementation of III-V on silicon tandems with parallel/series interconnection for high energy yield.