How does sunlight become electricity I can use?

Light hitting a solar cell sets electric charge in motion. An inverter changes the electricity from the panel into the form your wall sockets supply.

From a sunlit panel to a household circuit
  1. Light hits the cell
  2. Charge flows in one direction
  3. Inverter changes the current

Inside the panel

A panel contains photovoltaic cells. Photovoltaic means turning light into electricity. When a cell absorbs light, its internal electric field pushes charges apart. Connect it to a circuit—a complete path—and charge can flow.

Evidence: U.S. Department of Energy: how solar cells work

From the panel to the socket

The panel supplies direct current: charge flows in one direction. An inverter turns that into alternating current, which repeatedly changes direction. That is the kind of electricity used by the grid, the network that carries electricity to homes and businesses.

Evidence: U.S. Department of Energy: what an inverter does

A solar farm on Prince Edward Island

On 16 January 2024, the City of Summerside announced the energizing and grand opening of Sunbank, a solar farm paired with a battery. The panels and the battery have different jobs: the panels generate electricity; the battery can save some energy for later.

Evidence: City of Summerside: Sunbank opening announcement · U.S. Department of Energy: solar energy and storage

What changes after sunset?

An inverter changes the form of electricity, not when sunlight is available. A passing cloud can reduce panel output. After dark, a home needs another supply, such as electricity from the grid or energy stored earlier.

Evidence: U.S. Department of Energy: solar energy and storage

Next read

What happens to surplus electricity when a battery charges?