A solar cell includes a first electrode on a substrate; a plurality of pillars on the first electrode; a semiconductor layer on the first electrode, wherein a surface area of the semiconductor layer is greater than a surface area of the first electrode; and a second electrode over the semiconductor layer.