The short answer is that, theoretically, a surprisingly small percentage of the Earth's surface—roughly 0.21%—would need to be covered with solar panels to generate enough electricity for all human civilization today.

That's a square of about 630 km per side (390 miles), or an area slightly larger than Germany.