How Solar Panels Work: From Sunlight to Power in Your Home
A solar panel converts light energy directly into electrical energy. There is no fuel, no heat engine and no moving parts. Everything that happens between the sun and your kitchen outlet comes down to four stages: the cell, the panel, the inverter and the home's electrical panel and meter.
The energy transfer in one line
Light energy (radiant energy from the sun) becomes direct-current (DC) electrical energy in the solar cells. An inverter converts that DC into alternating current (AC), the kind your home uses. Your appliances then turn that electrical energy into light, heat, motion or sound. Some of the incoming light is lost as heat in the panel along the way; no panel converts all of it.
Stage 1: The solar cell
Most panels on homes use crystalline silicon cells. Each cell is a thin wafer of silicon treated so that one side has a slight excess of electrons and the other a slight shortage. Where the two layers meet, an electric field forms.
When light strikes the cell, it gives some electrons enough energy to break loose. The built-in field pushes those freed electrons in one direction, and metal contacts on the cell collect them. Connect a wire from the front contacts to the back contacts through a load, and current flows. This is the photovoltaic effect, and it is why solar panels are also called PV panels.
A single cell produces only about half a volt, so cells are wired together.
Stage 2: The panel (module)
A panel strings dozens of cells in series to build up a useful voltage, then seals them behind tempered glass with a frame and a weatherproof backing. A junction box on the back holds bypass diodes, which let current route around a shaded or damaged group of cells so one shadow does not shut down the whole panel.
What the watt rating means
A panel's rating (for example, 400 W) is its output under standard test conditions: sunlight of 1,000 watts per square meter hitting the panel straight on, with the cells at 77°F (25°C). Real rooftops rarely match that. Morning and evening sun is weaker, panels run hotter than 77°F in summer (which lowers output), and dust, shade and wiring all take a little. So a 400 W panel spends most of the day producing well under 400 W. That is normal, and it is why sizing a system uses "peak sun hours" and a loss factor rather than the label alone; see how many solar panels you need.
Panels also lose a little output each year. NREL's review of measured data found a median loss of about 0.5 percent per year for crystalline silicon panels, with some products worse.
Stage 3: The inverter
Panels make DC; homes and the grid run on AC. The inverter converts one to the other and synchronizes with the grid's voltage and frequency. Three common arrangements:
- String inverter: several panels are wired in series (a "string") to one central inverter, usually mounted near the electrical panel. Shade on part of a string can reduce the whole string's output.
- Microinverters: a small inverter behind each panel converts DC to AC right at the roof, so each panel works independently.
- Power optimizers: a device on each panel conditions its DC output before a central inverter, which reduces the effect of shading on one panel.
Inverters also track the "maximum power point," the combination of voltage and current at which the panels produce the most power as light and temperature change during the day.
Stage 4: Your home and the meter
The inverter's AC output connects to your electrical panel through a dedicated breaker. From there, solar power flows to whatever is running in the house first. If the panels produce more than the home is using, the extra flows out to the grid through your meter. At night, or when the home uses more than the panels make, power comes from the grid as usual.
How exported power is credited depends on your utility's rules: some offer net metering, others pay a lower export rate. See how net metering works.
A battery can be added to store daytime surplus for the evening or for outages. Without a battery, a grid-tied system shuts itself off when the grid goes down, so it does not send power into lines that utility crews are working on.
Why rooftop solar is never a DIY job
- Panels make voltage whenever light hits them. They cannot simply be switched off, and the DC wiring between panels can carry several hundred volts. DC arcs are dangerous and can start fires. Never unplug panel connectors, open a combiner box or touch damaged panels or wiring.
- Modern electrical codes require a rapid shutdown function on rooftop systems that reduces the voltage in conductors outside the array when activated, mainly to protect firefighters. The panels themselves still produce voltage in daylight.
- Installing panels, inverters and the connection to your home's electrical panel is a job for a licensed electrician or licensed solar contractor, to local code, with a permit and inspection, and with your utility's interconnection approval before the system is switched on.
- Do not go on the roof to inspect, clean or clear snow from panels. Falls from roofs cause serious injuries. Clean or clear only from the ground with tools made for it, or hire a professional, and follow the panel maker's cleaning instructions.
Common questions
Do solar panels work on cloudy days?
Yes, but output drops, sometimes sharply, depending on how thick the clouds are. Panels respond to light, not heat, so cold sunny days can be productive. More in what affects solar output.
Do panels store electricity?
No. Panels produce power only while light hits them. Storage needs a battery.
How do I estimate what panels would produce on my roof?
Use your location's sun data, the system size and realistic losses. NREL's free PVWatts tool estimates production from your address, and the solar ROI calculator turns production and your own electricity rate into an estimate you can compare against quotes.