
How Solar Panels Actually Work: The Physics Behind Turning Sunlight Into Electricity
Table of Contents
Einstein's Nobel Prize and Your Electricity Bill
Albert Einstein won the 1921 Nobel Prize in Physics not for relativity — but for explaining the photoelectric effect. His 1905 paper described how light, striking a metal surface, knocks electrons loose. That discovery is the scientific foundation of every solar panel installed on every rooftop today. The photovoltaic effect is just the photoelectric effect applied to semiconductor materials, and understanding it explains exactly what your panels are doing when the sun hits them.
Silicon: The Material That Makes It All Work
Solar panels are made almost entirely of silicon, the second most abundant element in Earth's crust. Pure silicon is a poor conductor — it holds onto its electrons too tightly. To make it useful, manufacturers dope it with trace amounts of other elements to create two distinct layers with different electrical properties.
N-Type and P-Type Silicon
N-type silicon is doped with phosphorus, which has one extra electron compared to silicon. That extra electron is loosely held and eager to move. P-type silicon is doped with boron, which has one fewer electron than silicon, leaving behind a "hole" — an absence of an electron that behaves like a positive charge carrier.
When N-type and P-type silicon are pressed together, they form a P-N junction. Electrons from the N-side drift into the P-side, and holes drift the opposite direction. This creates a built-in electric field at the junction — a one-way gate that only lets electrons flow in one direction.
How DC Current Is Generated
When a photon of sunlight strikes the silicon, it transfers its energy to an electron, knocking it free. The built-in electric field at the P-N junction then pushes that free electron toward the N-type layer, and the hole toward the P-type layer. Connect the two sides with a wire, and electrons flow through the circuit — that's direct current (DC) electricity.
A single silicon solar cell produces about 0.5 to 0.6 volts. To get useful voltage, manufacturers wire many cells in series (typically 60 or 72 cells per panel), producing a panel voltage of around 30–40 volts at maximum power point. Most residential systems string multiple panels in series to reach 200–600V DC before the inverter.
From DC to AC: The Inverter's Job
Your home runs on alternating current (AC) at 120/240V, 60Hz. The DC power from your solar panels has to be converted before anything in your house can use it. That's the inverter's job, and the type of inverter you choose has significant consequences for performance, monitoring, and cost.
String Inverters
A string inverter is a single box — usually mounted near your electrical panel — that converts DC from an entire string of panels. Panels in a string are wired in series, so they operate at the same current. The critical weakness: the entire string performs at the level of its worst-performing panel. One panel in partial shade can reduce output for every panel in the string by 15–30%. String inverters cost $1,000–$2,000 for a residential system and are the most common and least expensive option.
Microinverters
Microinverters attach to each panel individually, converting DC to AC at the panel itself. Because each panel operates independently, shading one panel has no effect on the others. Microinverters also provide panel-level monitoring — you can see exactly how each panel is performing. The downside: they cost roughly $150–$200 per panel (about $1,200–$1,600 more than a string inverter for a 6kW system) and are harder to service since they're on the roof. Enphase is the dominant manufacturer.
Power Optimizers + String Inverter
Power optimizers (SolarEdge is the main brand) attach to each panel and perform DC optimization — they maximize each panel's output independently, then send the conditioned DC to a central string inverter for conversion. Performance is similar to microinverters in shading scenarios, with panel-level monitoring included. Cost sits between string-only and full microinverters. The string inverter is still a single point of failure, but replacement is easier than swapping rooftop hardware.
Real Efficiency Numbers: What the Specs Actually Mean
Panel efficiency is the percentage of incoming sunlight converted to electricity under standard test conditions (1,000 W/m² irradiance, 25°C cell temperature). Here's how current technologies stack up:
| Technology | Typical Efficiency | Notes |
|---|---|---|
| Polycrystalline | 15–17% | Largely obsolete for residential use |
| Monocrystalline PERC | 20–22% | Current mainstream standard |
| TOPCon | 22–24% | New mainstream as of 2025–2026 |
| HJT (Heterojunction) | 21–23% | Premium, better low-light performance |
| Thin-film (CdTe) | 10–13% | Used primarily at utility scale |
Efficiency matters most when roof space is limited. A 400W TOPCon panel occupies the same physical footprint as a 350W polycrystalline panel from five years ago — you get more power without needing more roof. For more detail on panel technology trade-offs, see Monocrystalline vs Polycrystalline vs Thin-Film Solar Panels.
Why Panels Produce Less in Real Conditions
The gap between rated wattage and actual output frustrates many new solar owners. Standard test conditions rarely match real rooftop conditions:
- Temperature: Silicon efficiency drops about 0.35–0.45% per degree Celsius above 25°C. On a 90°F summer day, cell temperatures can reach 60–70°C — that's a 12–20% reduction in output from temperature alone.
- Angle and orientation: South-facing at a 30° tilt is optimal for most of the continental US. East or west-facing roofs receive 15–20% less energy annually than south-facing.
- Shading: Even a small shadow on one part of a panel can disproportionately cut output, especially with string inverters.
- Soiling: Dust, pollen, and bird droppings reduce output by 1–5% in most climates. Rain typically handles cleaning in most regions.
- Inverter losses: Conversion from DC to AC is 96–98% efficient for quality inverters.
As a rule of thumb, expect actual annual energy production to be 75–85% of what you'd calculate from panel wattage × peak sun hours.
Net Metering: The Grid as Your Battery
During the day, your solar panels often produce more electricity than you're using. Without battery storage, that surplus flows back into the grid through your utility meter. Net metering is the policy that determines how you're compensated for it.
Under full retail net metering — available in states like New Jersey, Massachusetts, and Maryland — your utility credits you at the same rate you'd pay to buy electricity. If you export 1 kWh at $0.20/kWh, you get a $0.20 credit. At night, when you draw from the grid, those credits offset the cost.
Not all states offer retail rate net metering. California's NEM 3.0 (effective April 2023) slashed export rates by roughly 75% for new customers. Hawaii ended traditional net metering entirely. These policy changes materially affect the economics of solar — and are increasingly steering buyers toward battery storage. The full picture of state net metering policies is covered in Net Metering in 2026: Which States Pay You the Most for Your Solar Power.
Panel Degradation: The 0.5% Rule
Solar panels don't last forever at full output. Silicon degrades slowly under UV exposure, thermal cycling, and humidity. The industry standard degradation rate is approximately 0.5% per year — meaning a panel rated at 400W today will produce about 398W next year and roughly 350W after 25 years. Most manufacturers offer linear power warranties guaranteeing 80–87% of rated output at year 25.
Premium TOPCon and HJT panels are beginning to offer 0.4% or lower degradation rates, extending their useful economic life. First-year degradation is often slightly higher (0.5–1%) due to light-induced degradation (LID), a phenomenon where certain silicon defects stabilize after initial light exposure.
After 25–30 years, panels don't suddenly stop working — they just produce less. Many panels from the 1980s and 1990s are still generating power, albeit at reduced efficiency. The more common reason panels get replaced is economics: newer, higher-efficiency panels may produce meaningfully more power in the same roof space.
What the System Looks Like End-to-End
A complete grid-tied residential solar system includes: solar panels converting sunlight to DC electricity; a racking system securing panels to the roof at the correct angle; DC wiring running to a combiner box or directly to the inverter; an inverter converting DC to AC; an AC disconnect and breaker; your utility meter (which now runs bidirectionally); and the utility grid connection. Add a battery (like those covered in our solar generator guide) and you can store excess power for use after dark or during outages.
The physics haven't changed since Einstein's 1905 paper. What has changed is the cost of turning those physics into real electricity — from $76 per watt in 1977 to under $0.30 per watt for the panels themselves today. That cost curve is why residential solar has gone from a curiosity to the fastest-growing electricity source in the United States.
Frequently Asked Questions
How do solar panels generate electricity?
Solar panels generate electricity through the photovoltaic effect. Photons from sunlight strike silicon cells and knock electrons loose. A P-N junction inside the cell creates an electric field that forces those electrons to flow in one direction, producing direct current (DC). An inverter then converts that DC into the AC electricity your home uses.
What is the difference between a string inverter and microinverters?
A string inverter is a single unit that converts DC from all your panels at once; shading one panel can reduce output for the entire string. Microinverters attach to each panel individually, so each panel operates independently — shading one panel doesn't affect the others. Microinverters cost $150–$200 per panel more but provide panel-level monitoring and better performance in shaded conditions.
How efficient are solar panels?
Current mainstream monocrystalline PERC panels achieve 20–22% efficiency, meaning they convert 20–22% of incoming sunlight into electricity. Newer TOPCon panels reach 22–24%. In real-world conditions — accounting for heat, angle, and inverter losses — expect actual output to be 75–85% of the calculated maximum based on rated wattage.
How long do solar panels last?
Most solar panels carry 25-year linear power warranties guaranteeing at least 80–87% of rated output at year 25. The typical degradation rate is about 0.5% per year. Panels don't stop working after 25 years — they just produce slightly less. Many panels installed in the 1980s and 1990s are still generating power today.
Does temperature affect solar panel output?
Yes, significantly. Solar panel efficiency drops roughly 0.35–0.45% for every degree Celsius above 25°C. On a hot summer day when roof temperatures reach 60–70°C, panels can produce 12–20% less than their rated output. Counterintuitively, cold sunny days — like a clear winter morning — often produce peak output because the cells are cool.
What direction should solar panels face?
In the continental United States, south-facing panels at a 30-degree tilt produce the most energy annually. East-facing and west-facing roofs typically produce 15–20% less annually than south-facing. West-facing panels, however, generate power during the late afternoon peak demand period, which can be advantageous in states that pay time-of-use rates.
What is net metering and how does it work with solar panels?
Net metering is a utility billing arrangement where excess electricity your solar panels produce flows back to the grid, and you receive credits on your bill. Under full retail net metering (available in states like New Jersey and Massachusetts), each kilowatt-hour you export earns the same credit as a kilowatt-hour you'd pay to buy. Policy varies significantly by state — California and Hawaii have moved to lower export rates.


