An electro-optical device includes light-shielding portions interposed between pixel electrodes and transistors. Each light-shielding portion includes an overlapping portion that overlaps and is wider than the corresponding transistor. A contact hole that connects each pixel electrode with the corresponding transistor overlaps the overlapping portion of the light-shielding portion.