How Solar Panels Turn Sunlight Into Usable Electricity
Learn how solar panels convert sunlight into electricity, how inverters and batteries work, and the key concepts every solar beginner should understand.
Guide · July 10, 2026 · 8 min read
A solar module produces DC electricity, but a kettle plugged into a wall outlet cannot use a bare module's output as though it were the utility grid. Between sunlight and the kettle may be an MPPT stage, a battery, an inverter, protection devices, conductors, and controls. Each stage changes—or constrains—the voltage, current, power, and timing of the energy available to the load.
Following that path prevents a common misunderstanding: panel wattage is not the same as continuously available appliance wattage. A cloud can reduce PV input while the battery temporarily keeps the AC load steady; an undersized inverter can reject a load even when the day's solar-energy total looks ample.
This guide follows one unit of energy from a photon reaching a silicon cell to usable DC or AC power, then shows where the simple explanation stops and system design begins.
The Photovoltaic Effect: Turning Sunlight Into Electricity
Solar photovoltaic (PV) cells are semiconductor devices, most commonly made from silicon.
Inside a typical crystalline-silicon solar cell is a semiconductor junction that creates an internal electric field.
When photons from sunlight are absorbed by the semiconductor, their energy can excite electrons and create mobile charge carriers. The electric field within the cell helps separate these charges.
When an external electrical circuit is connected, the movement of charge through that circuit produces direct current (DC) electricity.
Individual cells are electrically interconnected and packaged together to form a solar module, commonly called a solar panel.
Multiple panels can then be connected to create a larger PV array.
How Solar Panels Generate Electricity Step by Step
1. Sunlight Reaches the Solar Panel
Solar generation begins when solar radiation reaches the PV cells.
The amount of electricity a panel can produce depends heavily on the solar irradiance reaching its surface.
Production can be affected by:
- Solar irradiance
- Cloud cover
- Panel orientation and tilt
- Cell temperature
- Shading
- Dirt and soiling
- System losses
A panel therefore does not produce the same amount of power throughout the entire day.
2. Solar Cells Produce DC Electricity
Solar panels produce direct current (DC).
Their electrical behavior is usually described using voltage, current, and power.
The basic relationship is:
Power (W) = Voltage (V) × Current (A)
For example, if a panel is operating at:
- Voltage: 35 V
- Current: 8.5 A
then its operating power is approximately:
35 V × 8.5 A = 297.5 W
This does not mean a nominally 300 W panel will continuously produce 300 W.
Its actual output changes with operating conditions.
Rated Power vs. Actual Solar Output
Solar modules are assigned rated power under standardized laboratory test conditions.
Real rooftops rarely remain at those exact conditions.
For example, a 400 W module should not be expected to continuously deliver exactly 400 W whenever the sun is visible.
Output can change because of:
- Irradiance
- Cell temperature
- Shading
- Soiling
- Module orientation
- Electrical losses
- Equipment efficiency
Temperature is particularly important.
As the temperature of a typical crystalline-silicon PV cell increases, its voltage generally decreases. This is one reason a panel's real-world output can differ from its nameplate rating even during strong sunshine.
The module datasheet provides temperature coefficients that can be used for more detailed calculations.
Understanding Voltage, Current, and Power
Voltage and current are different electrical quantities.
A useful beginner analogy is to think of voltage as electrical "pressure" and current as the rate of electrical charge flow. The analogy is imperfect, but it can help introduce the concepts.
Power represents the rate at which electrical energy is being transferred.
Again:
P = V × I
where:
- P = power in watts
- V = voltage in volts
- I = current in amperes
Understanding this relationship becomes especially important when connecting multiple solar panels.
Connecting Solar Panels in Series and Parallel
Solar modules can be electrically combined to obtain the voltage and current required by the system.
Series Connection
When compatible panels are connected in series, their voltages add while the string current is limited by the current flowing through the series circuit.
For a simplified example, two identical modules each operating at:
- 35 V
- 10 A
would ideally produce approximately:
Series: 70 V at 10 A
Power:
70 V × 10 A = 700 W
Series connections are commonly used to obtain the higher DC voltage required by MPPT charge controllers and solar inverters.
However, the resulting string voltage must remain within the equipment's permitted input-voltage range under expected environmental conditions.
Parallel Connection
When identical strings or modules are connected in parallel, voltage remains approximately the same while their currents add.
Using the same simplified modules:
Parallel: 35 V at 20 A
Power:
35 V × 20 A = 700 W
Parallel connections therefore increase current.
Real PV-array design requires more than simply adding numbers. Equipment ratings, conductor sizing, overcurrent protection, temperature effects, module specifications, and applicable electrical codes must also be considered.
What Happens After the Panels Produce Electricity?
What happens next depends on the type of solar installation.
A system may include:
- PV modules
- Solar inverter
- Charge controller
- Battery storage
- Disconnects and protection devices
- Monitoring equipment
- Utility-grid connection
Not every system uses every component.
For example, a conventional grid-connected PV system without batteries does not require a separate battery charge controller.
1. Solar Charge Controller
Charge controllers are primarily used in systems where solar panels charge batteries.
The controller regulates energy flowing from the PV array to the battery system according to the battery's charging requirements and the controller's operating limits.
Two commonly discussed technologies are PWM and MPPT.
PWM Charge Controllers
PWM stands for Pulse Width Modulation.
PWM controllers are generally simpler and may be suitable for certain small systems, but the PV array operates much closer to battery voltage during charging.
This can prevent the system from utilizing all of the power that could otherwise be available from a higher-voltage PV array.
MPPT Charge Controllers
MPPT stands for Maximum Power Point Tracking.
An MPPT controller electronically adjusts the operating point of the PV array to extract power near its maximum available power point under the current conditions.
It then converts the input voltage and current to levels appropriate for charging the battery.
For example, suppose the controller receives approximately:
40 V × 10 A = 400 W
from the PV array.
Ignoring conversion losses for a simplified example, converting 400 W to approximately 25 V on the battery side could theoretically provide:
400 W ÷ 25 V = 16 A
This does not create extra energy. The controller is converting voltage and current while approximately conserving power, minus conversion losses.
2. Battery Storage
Batteries allow energy to be stored for later use.
This can be useful at night, during periods of low solar production, or during outages when the system is specifically designed to provide backup power.
Common battery technologies include lead-acid and lithium-based batteries such as lithium iron phosphate (LiFePO₄).
Understanding Battery Energy
Battery capacity is often specified in amp-hours (Ah), but amp-hours alone do not tell you the battery's total nominal energy.
A simplified calculation is:
Nominal energy (Wh) = Nominal voltage (V) × Capacity (Ah)
For example:
12 V × 100 Ah = 1,200 Wh
or approximately:
1.2 kWh nominal energy
But 1.2 kWh does not necessarily mean 1.2 kWh is available to your appliances.
Usable energy depends on factors such as:
- Permitted depth of discharge
- Battery chemistry
- Battery-management limits
- Discharge rate
- Temperature
- Battery condition
- Inverter and wiring losses
For example, if a battery provides 1.2 kWh of nominal energy and the system allows 80% of that capacity to be used:
1.2 kWh × 0.80 = 0.96 kWh
Further conversion losses may reduce the energy ultimately available to AC loads.
Always use the battery manufacturer's specifications when designing a real system.
3. Solar Inverter
Solar panels produce DC electricity, while most household electrical systems and appliances operate on alternating current (AC).
An inverter converts:
DC → AC
Different solar installations use different inverter architectures.
Grid-Tied Inverters
A grid-connected inverter synchronizes its AC output with the utility grid.
Solar energy can supply household loads, while additional electricity may be imported from the grid when solar generation is insufficient.
Depending on the system configuration and applicable utility rules, excess solar generation may also be exported to the grid.
Standard grid-tied systems generally shut down during a grid outage for safety unless the equipment is specifically designed to provide backup or grid-forming operation.
Off-Grid Inverters
Off-grid systems operate independently of the utility grid.
They commonly rely on batteries or another energy source to maintain electricity when solar production is insufficient.
Hybrid Inverters
Hybrid inverters can integrate several functions involving solar PV, battery storage, household loads, and the utility grid.
Capabilities vary significantly between manufacturers and models, so the term "hybrid" does not guarantee that every inverter supports the same features.
What Happens During the Day?
During sunny periods, solar panels generate DC electricity.
Depending on the system design, that energy can:
- Supply household loads
- Charge batteries
- Be exported to the utility grid where permitted
- Be curtailed if there is nowhere for the excess energy to go
The exact priority depends on the inverter or energy-management settings.
For example, one system might prioritize household loads, then battery charging, and finally grid export.
Another system may behave differently.
What Happens at Night?
PV modules do not generate useful solar energy when sunlight is unavailable.
At night, household electricity may therefore come from:
- Battery storage
- The utility grid
- Another generator or energy source
An off-grid system without sufficient stored energy may be unable to power all loads until another energy source becomes available.
How Shading Affects Solar Panels
Shading is particularly important in PV-system design.
Because cells and modules are electrically interconnected, shading one portion of an array can affect more than just the physical area covered by the shadow.
Modern modules commonly contain bypass diodes that can reduce some of the negative effects of partial shading, but shading can still significantly reduce energy production.
The exact effect depends on:
- Which cells are shaded
- Module electrical layout
- String configuration
- Bypass-diode arrangement
- Inverter or optimizer architecture
- How the shadow moves throughout the day
For this reason, a proper site assessment should consider not only whether shade exists, but when and where it occurs.
Panel Orientation and Tilt
The best module orientation depends on geographic location, roof geometry, shading, electricity-consumption patterns, and the objectives of the system.
Maximizing annual energy production is not always identical to maximizing production at a particular time of day.
For example, some system owners may value afternoon production more highly because their electricity demand is greatest later in the day.
Solar design should therefore consider both available sunlight and how the generated energy will actually be used.
Dirt, Dust, and Soiling
Dust, leaves, bird droppings, pollution, and other material can reduce the amount of sunlight reaching solar cells.
The significance varies greatly with climate and location.
Cleaning may improve production when panels are meaningfully soiled, but cleaning methods should follow module-manufacturer guidance and appropriate safety practices.
Homeowners should not take unnecessary risks by accessing rooftops solely to clean panels.
How Much Energy Does a Solar Panel Produce?
Power and energy are related but different.
A solar panel might have a power rating of 400 W, while the energy it produces over time is measured in watt-hours (Wh) or kilowatt-hours (kWh).
For a simplified example, imagine a 400 W panel effectively producing its rated power for the equivalent of 5 peak-sun-hours:
400 W × 5 h = 2,000 Wh
or:
2 kWh
This is a simplified energy estimate, not a prediction of actual daily production.
Real output must account for weather, temperature, orientation, shading, equipment losses, and other system conditions.
A Simple Solar Power System Example
Suppose a home uses approximately:
10 kWh per day
and the location receives an average equivalent of:
5 peak-sun-hours per day
A very basic starting calculation would be:
10 kWh ÷ 5 h = 2 kW
However, installing exactly 2 kW of panels would not necessarily produce 10 kWh of usable electricity every day.
Real systems experience losses and variable weather.
If we use an illustrative overall performance factor of 80%:
10 kWh ÷ (5 h × 0.80) = 2.5 kW
This gives an initial estimate of approximately 2.5 kW of PV capacity.
This is still only a simplified example. Professional system sizing should consider location-specific solar-resource data, seasonal variation, equipment specifications, shading, electrical requirements, load profiles, and applicable regulations.
What Beginners Should Know Before Installing Solar
A PV system should be designed around the energy requirements and electrical characteristics of the property—not simply around the number of panels that will fit on the roof.
Important considerations include:
- Daily and seasonal electricity consumption
- Peak appliance loads
- Available roof or ground area
- Solar resource
- Shading
- PV array capacity
- Inverter ratings and voltage windows
- Battery capacity, if applicable
- Backup-power requirements
- Electrical protection
- Utility interconnection requirements
- Future expansion
A system that is undersized may not achieve the owner's energy goals.
An unnecessarily oversized system can increase cost without providing proportional value, particularly if excess energy cannot be effectively stored, consumed, or exported.
Understanding Solar Before Designing a System
The basic energy path is straightforward:
Sunlight → PV cells → DC electricity → power electronics → household electricity and/or battery storage
But designing a safe and effective solar installation requires understanding how all of those components interact.
Beginners should focus first on four concepts:
- Power — how quickly electricity is being produced or consumed, measured in watts or kilowatts.
- Energy — how much electricity is produced or consumed over time, measured in Wh or kWh.
- Voltage and current — electrical characteristics that determine how panels and equipment can be connected.
- System losses and limitations — real equipment never operates under ideal conditions all of the time.
Once these concepts are understood, topics such as panel sizing, battery capacity, inverter selection, and energy management become much easier to follow.
Solar simulation and design tools can also help users experiment with PV capacity, panel configurations, battery storage, loads, and energy flow before evaluating a real installation.
Important Note
The calculations in this guide are simplified educational examples. Actual PV-system design must use equipment datasheets, site-specific conditions, manufacturer requirements, applicable electrical codes, and local utility or regulatory requirements.
Electrical and rooftop work can present serious hazards and should be performed by appropriately qualified personnel where required.
Reproduce the basic electrical relationship in PVAlign
Place a panel rated at 18 V Vmp and 16.67 A Imp. At its modeled maximum-power point, voltage multiplied by current is approximately 300 W. Reduce irradiance while keeping the circuit unchanged, then compare the new operating voltage, current, and power. This controlled test makes the distinction between nameplate ratings and an operating point visible.
Sources and methodology
Test the variables in PVAlign
Open a reference circuit, then change one input at a time—such as irradiance, temperature, component rating, wiring, or load—and compare the simulated voltage, current, power, losses, and operating state.