RENEWIOSITY / EXPLAINER

How Do Solar Panels Work? The Science and Engineering of Photovoltaic Electricity

An engineering-guided explanation of how photovoltaic cells turn sunlight into DC electricity, how modules connect to inverters, and how to calculate performance.

Close-up of blue crystalline silicon photovoltaic panels illuminated by sunlight, showing individual solar cells and metallic electrical contacts.

Learning objectives

  • Explain how photon absorption, carrier generation and selective contacts enable photovoltaic electricity.
  • Describe silicon doping, the p–n junction and the difference between open-circuit voltage and short-circuit current.
  • Trace electrical power from cells through modules, arrays, maximum-power-point tracking and grid-connected inverters.
  • Interpret an I–V curve and calculate maximum power, fill factor and conversion efficiency.
  • Estimate module output and daily energy with clearly stated irradiance, temperature and system-loss assumptions.
  • Distinguish practical operating constraints from simplified textbook models.

Why can a silent sheet of silicon produce electricity when the Sun shines on it? The answer combines quantum physics, semiconductor engineering and electrical power conversion. A solar panel is not a miniature heat engine: its photovoltaic cells transform part of the energy carried by sunlight directly into electrical work.

This lesson follows that energy pathway from a single photon to usable alternating-current electricity. It explains not only what happens but why a device delivers current, why its output changes with temperature and sunlight, and how engineers estimate realistic performance. For the wider context of solar energy technologies, start with What Is Solar Energy?.

What Exactly Is a Solar Panel?

In everyday language, a solar panel usually means a photovoltaic (PV) module: a weather-resistant assembly of many electrically interconnected solar cells. A cell is the semiconductor device that converts incident light to electrical power. A module packages cells behind protective layers; a string connects modules in series; an array combines one or more strings. A complete PV system adds wiring, mounting, power electronics, protective equipment and often a grid connection.

These terms matter in calculations. A laboratory cell efficiency is not necessarily the efficiency of a commercial module, and module nameplate power is not the same as AC energy delivered to a building. Frame, glass, cell spacing, mismatch, temperature, conversion losses and site conditions all influence system performance. The U.S. Department of Energy provides a useful overview of this hierarchy [1, 2].

Sunlight Arrives as Photons

Sunlight is electromagnetic radiation. In a quantum description, light energy arrives in packets called photons. The energy of each photon depends on its wavelength: shorter-wavelength photons carry more energy. Solar cells do not collect every photon equally. Whether a photon can excite an electron across the semiconductor bandgap is central to the device design.

A conventional crystalline-silicon cell has a bandgap of approximately 1.12 electronvolts (eV) near room temperature. Photons with energy below the bandgap generally cannot create an electron–hole pair through ordinary band-to-band absorption in silicon. Above-bandgap photons can create carriers, but energy in excess of the bandgap is not all converted into electrical output; much of the excess relaxes as heat. Reflection and incomplete absorption create further losses.

Photon energy and wavelength
E_{\gamma}=h\nu=\frac{hc}{\lambda}

Eγ is photon energy in joules; h is Planck’s constant (6.626 × 10⁻³⁴ J·s); c is the speed of light (approximately 3.00 × 10⁸ m/s); λ is wavelength in metres. To convert joules to eV, divide by 1.602 × 10⁻¹⁹ J/eV.

Worked example 1: energy of a visible photon

A photon has a wavelength of 550 nm. Calculate its energy in eV and compare it with the approximate silicon bandgap.

  1. Convert wavelength: 550 nm = 550 × 10⁻⁹ m.
  2. Calculate E = hc/λ ≈ (6.626 × 10⁻³⁴ J·s)(3.00 × 10⁸ m/s)/(550 × 10⁻⁹ m) ≈ 3.61 × 10⁻¹⁹ J.
  3. Convert to electronvolts: (3.61 × 10⁻¹⁹ J)/(1.602 × 10⁻¹⁹ J/eV) ≈ 2.25 eV.
  4. Compare: 2.25 eV is greater than silicon’s approximately 1.12 eV bandgap.
E_{\gamma}\approx\frac{1240\,\mathrm{eV\,nm}}{550\,\mathrm{nm}}\approx2.25\,\mathrm{eV}

Answer: approximately 2.25 eV. This photon has sufficient energy for band-to-band absorption in silicon, although whether it is actually absorbed also depends on optical and material properties.

Why Silicon Is a Semiconductor

Silicon has a crystal structure whose electrons occupy allowed energy bands. At ordinary temperatures, the valence band is largely occupied and the conduction band is largely empty. The energy separation between them is the bandgap. When an absorbed photon promotes an electron into the conduction band, it leaves behind an electron vacancy called a hole.

Electrons and holes are mobile charge carriers. A hole is not a positively charged particle floating freely in the material; it is a useful description of an unoccupied electronic state that moves as neighboring electrons rearrange. If photogenerated carriers recombine before they are collected, their potential electrical contribution is lost. Good solar-cell engineering therefore involves optical absorption, carrier lifetime, passivation, contact design and resistance management.

Doping: Making P-Type and N-Type Silicon

Pure silicon is not enough to build a useful conventional junction cell. Engineers intentionally introduce tiny concentrations of impurity atoms in a process called doping. Phosphorus, for example, can supply extra electrons and produce n-type silicon; boron can create acceptor states associated with mobile holes and produce p-type silicon. The resulting carrier populations differ, even though the bulk semiconductor remains electrically neutral.

Doping changes the equilibrium electronic properties and enables selective junctions and contacts. In a simple textbook cell, n-type and p-type regions meet to form a p–n junction. Modern commercial cells can use more sophisticated passivated or heterojunction contacts, but the principle remains: photogenerated electrons and holes must be collected at different terminals with minimal recombination.

The P–N Junction and Built-In Electric Field

When p-type and n-type regions are brought into contact, majority carriers diffuse across the junction and recombine near the interface. Fixed ionized dopants remain in a depletion region, creating a built-in electric field. Under illumination, the field helps separate electron–hole pairs generated in or near this region. Carriers generated farther away can also reach their collecting contacts by diffusion if their lifetime and transport properties are favorable.

A useful subtlety: the built-in electric field is not a battery that continuously supplies energy by itself. Sunlight creates a nonequilibrium population of carriers, and the semiconductor junction plus selective contacts allow the device to establish a terminal voltage and deliver current to a load. The energy delivered to the external circuit ultimately comes from the absorbed photons [1, 3].

Simplified photovoltaic silicon cell cross-section showing incoming sunlight, n-type and p-type layers, charge separation, electrical contacts and external DC load.
Figure 1. Conceptual p–n-junction photovoltaic cell. Real cells may use more advanced passivated and selective-contact architectures.

How Does a Solar Cell Actually Produce Current?

A complete circuit is essential. Under illumination, photogenerated carriers are collected at opposite contacts. If a wire and load connect the terminals, charge moves through the external circuit and the load can receive electrical power. The solar cell develops a characteristic relationship between terminal current and voltage, rather than delivering a fixed current or voltage under all conditions.

At short circuit, terminal voltage is approximately zero while current is near its maximum short-circuit value, Isc. At open circuit, current is zero and voltage reaches the open-circuit value, Voc. Neither extreme produces useful output power because P = IV is zero at both endpoints. Between them lies a point at which the product of voltage and current is greatest: the maximum power point (MPP).

From Solar Cells to Modules, Strings and Arrays

A single silicon solar cell produces only a modest voltage, so modules connect many cells in series to increase voltage. Series-connected components carry the same current, while their voltages add. Multiple strings can be connected in parallel to increase current at approximately the same operating voltage, provided the equipment and design permit it.

Module wiring is not arbitrary. A designer must account for cold-weather open-circuit voltage, hot-weather operating voltage, inverter input limits, cable losses, string mismatch, shading, protection requirements and applicable electrical codes. Partial shading can reduce string current and may activate bypass diodes, producing multiple local maxima in the array power–voltage curve. This is one reason real systems require appropriate maximum-power-point tracking.

DC Electricity, Inverters and the Electrical Grid

Solar cells generate direct current (DC). Most building distribution systems and utility grids use alternating current (AC). A grid-connected inverter converts DC to synchronized AC, controls the power operating point, monitors grid conditions and incorporates safety functions. Many systems include one or more DC–DC or DC–AC stages that perform maximum-power-point tracking (MPPT).

A conventional grid-tied system usually shuts down or disconnects during a grid outage under anti-islanding protection rules. A battery alone does not automatically provide backup; safe backup operation requires an appropriate backup-capable inverter and isolation arrangement. Inverter output power is also limited by its AC rating, which can lead to clipping during high DC production. These practical issues are as important as cell physics when estimating delivered electricity [2].

Simplified rooftop photovoltaic system connecting modules, DC protection, inverter, AC electrical distribution and the utility grid.
Figure 2. A representative rooftop PV system. Specific protection, metering and battery arrangements vary by installation and jurisdiction.

Understanding the Solar Cell I–V Curve

The current–voltage (I–V) curve shows the electrical current available at each operating voltage for specified irradiance and cell temperature. Near short circuit, current is comparatively high; approaching open circuit, current falls toward zero. The curve has a rounded knee where output power is maximized. The companion power–voltage (P–V) curve peaks at the MPP.

Manufacturers publish characteristic values such as Isc, Voc, Imp and Vmp for standardized test conditions. They also publish temperature coefficients and, in many cases, curves for multiple operating conditions. Engineers should use the full datasheet and appropriate performance models for design; a single efficiency number cannot describe all operating conditions [4, 5].

Electrical power at the maximum power point
P_{\mathrm{mp}}=V_{\mathrm{mp}}\,I_{\mathrm{mp}}

Vmp is the operating voltage at the maximum power point (V), Imp is the current at that point (A), and Pmp is maximum DC power (W) under the stated test conditions.

Fill factor
FF=\frac{V_{\mathrm{mp}}I_{\mathrm{mp}}}{V_{\mathrm{oc}}I_{\mathrm{sc}}}

Fill factor is dimensionless and describes how rectangular the I–V characteristic is relative to the Voc × Isc bounding rectangle. It is not the same as conversion efficiency.

Worked example 2: maximum power and fill factor

A module datasheet gives Vmp = 31.0 V, Imp = 12.0 A, Voc = 41.0 V and Isc = 12.8 A. Find maximum DC power and fill factor.

  1. Calculate maximum power: Pmp = 31.0 V × 12.0 A = 372 W.
  2. Calculate the bounding product: Voc × Isc = 41.0 V × 12.8 A = 524.8 W.
  3. Calculate fill factor: FF = 372 W / 524.8 W = 0.709.
P_{\mathrm{mp}}=372\,\mathrm{W},\qquad FF\approx0.709

Answer: 372 W and fill factor ≈ 0.709 (70.9%). These are illustrative datasheet values, not specifications of a particular commercial module.

What Determines Photovoltaic Efficiency?

Photovoltaic conversion efficiency is the fraction of incident solar power converted into electrical power under specified conditions. It depends on how much light enters and is absorbed by the cell, how many generated carriers survive to be collected, and how much voltage and current can be delivered at the operating point.

Important loss pathways include reflection, transmission of sub-bandgap photons, thermalization of above-bandgap photon energy, radiative and nonradiative recombination, series resistance, shunt leakage, and module-level optical or wiring losses. Researchers improve performance with surface texturing, antireflection coatings, passivation, selective contacts and tandem absorbers. Research-cell record efficiencies should never be presented as typical efficiencies of installed modules [6].

Electrical conversion efficiency
\eta=\frac{P_{\mathrm{mp}}}{G\,A}

η is dimensionless efficiency, G is irradiance incident on the relevant area (W/m²), A is the corresponding area (m²), and Pmp is measured electrical output (W). Specify whether A refers to a cell, aperture or total module area.

Worked example 3: calculate module efficiency

A module produces 372 W at a measured irradiance of 1,000 W/m² over a total module area of 1.90 m². Estimate the module-area efficiency.

  1. Compute incident optical power: 1,000 W/m² × 1.90 m² = 1,900 W.
  2. Divide electrical output by incident power: η = 372 / 1,900 = 0.1958.
  3. Express as a percentage: η ≈ 19.6%.
\eta=\frac{372}{1000\times1.90}\approx0.196

Answer: approximately 19.6% module efficiency. The stated area basis and measurement conditions matter when comparing products or research results.

Illustrative relation between solar irradiance, illuminated area, conversion efficiency and DC electrical output.
Figure 3. The basic power-balance concept also applies to module efficiency; the numbers in this illustration are an independent example.

Standard Test Conditions Versus Real Rooftop Conditions

Module nameplate power is generally measured at standard test conditions (STC): 1,000 W/m² irradiance, 25°C cell temperature and a standardized reference solar spectrum (AM1.5). The 25°C refers to cell temperature, not outdoor air temperature. In full sun, cells often operate much hotter than the surrounding air.

A rated 400 W module therefore does not continuously produce 400 W whenever it is sunny. Output depends on plane-of-array irradiance, cell temperature, incidence angle, spectrum, dirt, shading, degradation, and electrical operating conditions. Real-world monitoring and design tools model these factors explicitly [4, 7].

How Irradiance and Temperature Change Output

To a first approximation, photovoltaic current increases with incident irradiance. Voltage responds more weakly to irradiance, and temperature changes the voltage more strongly. For typical crystalline-silicon modules, higher cell temperature usually reduces maximum power. Manufacturers provide a temperature coefficient γPmp, often expressed per degree Celsius.

A simple approximation scales STC power with irradiance and adjusts for cell temperature. It is useful for intuition at moderate irradiance, but not a replacement for a validated model at very low light, partial shading, rapidly changing conditions or unusual module technologies. The Sandia PV Performance Modeling Collaborative documents more detailed approaches [4, 5].

Simplified irradiance and temperature correction
P\approx P_{\mathrm{STC}}\frac{G}{1000\,\mathrm{W/m^2}}\left[1+\gamma_P(T_c-25^{\circ}\mathrm C)\right]

PSTC is module nameplate power; G is effective plane-of-array irradiance; γP is the power temperature coefficient in 1/°C; Tc is cell temperature in °C. The relation is an approximation for suitable operating conditions.

Worked example 4: estimate power on a hot afternoon

A crystalline-silicon module is rated at 400 W STC. Effective irradiance is 800 W/m², cell temperature is 45°C and γP = −0.0035 per °C. Estimate DC power.

  1. Irradiance scaling: 400 W × (800/1,000) = 320 W.
  2. Temperature difference: 45°C − 25°C = 20°C.
  3. Temperature factor: 1 + (−0.0035/°C)(20°C) = 0.93.
  4. Corrected DC power: 320 W × 0.93 = 297.6 W.
P\approx400(0.8)[1-0.0035(20)]=297.6\,\mathrm W

Answer: approximately 298 W DC. This illustrative estimate excludes additional mismatch, wiring and inverter losses; it should not be used as a guaranteed field prediction.

Maximum-Power-Point Tracking and Inverter Losses

As sunlight and temperature vary, the I–V curve changes and so does the maximum-power point. MPPT is a control process that adjusts the electrical operating point to extract as much available DC power as practical. Common algorithms include perturb-and-observe and incremental conductance; modern equipment may employ more sophisticated methods.

An inverter also consumes some energy in conversion. Its efficiency varies with loading and operating conditions, and AC output cannot exceed its hardware rating. System designers sometimes intentionally install more DC nameplate capacity than AC inverter capacity, balancing additional energy harvest at low irradiance against clipping during high production. The correct choice depends on the site, tariff, equipment and project economics.

Calculating Daily and Annual Solar Electricity

Instantaneous power is measured in watts or kilowatts. Energy accumulates power over time and is measured in watt-hours or kilowatt-hours. A simple educational estimate uses installed DC nameplate power, average daily peak sun hours (equivalent hours at 1,000 W/m²), and an overall performance ratio that represents system losses.

Peak sun hours are not the same as the number of hours of daylight. Four peak sun hours means that daily plane-of-array solar irradiation is equivalent to 4 kWh/m² of energy received under a constant 1 kW/m² reference irradiance. For project planning, use location-specific solar resource data, orientation, shading analysis and time-series modeling rather than a generic daily-average value [7, 8].

Simplified daily AC energy estimate
E_{\mathrm{AC,day}}\approx P_{\mathrm{DC,rated}}\,H_{\mathrm{PSH}}\,PR

EAC,day is approximate delivered daily energy in kWh/day; PDC,rated is installed DC capacity in kW; HPSH is peak sun hours per day (h/day); PR is a dimensionless aggregate performance ratio. Avoid counting a loss twice.

Worked example 5: energy from a 6 kW rooftop array

A grid-connected PV array has 6.0 kW DC nameplate capacity. Assume 4.5 average peak sun hours per day and an overall performance ratio of 0.78. Estimate daily and annual AC energy.

  1. Idealized daily DC energy: 6.0 kW × 4.5 h/day = 27.0 kWh/day.
  2. Apply aggregate losses: 27.0 × 0.78 = 21.06 kWh/day.
  3. For an illustrative year with these same daily-average conditions: 21.06 × 365 = 7,686.9 kWh/year.
  4. Recognize that seasonal variation, outages, degradation and weather can make actual annual generation different.
E_{\mathrm{AC,day}}=6.0\times4.5\times0.78=21.06\,\mathrm{kWh/day}

Answer: approximately 21.1 kWh/day, or 7,690 kWh/year under the stated annual-average assumption. This is a screening estimate, not a site-specific production guarantee.

Series and Parallel Connections: A Design Example

Connecting modules in series adds voltage while maintaining approximately the same string current. Parallel strings add current while maintaining approximately the same operating voltage. Suppose each module operates near 32 V and 12.5 A at its maximum power point. Ten modules in series give approximately 320 V and 12.5 A, or 4.0 kW. Two matching strings in parallel give approximately 320 V and 25 A, or 8.0 kW DC.

This is an operating-point illustration only. Real designs must separately check maximum cold-temperature open-circuit voltage, module and string current ratings, fusing and isolation, wire sizing, equipment certifications and local electrical codes. Never use nominal MPP voltage alone to determine whether an array is safe for a particular inverter.

Major Solar Cell Technologies

Crystalline silicon dominates installed PV systems and includes several commercial cell architectures, such as passivated-emitter, tunnel-oxide passivated-contact and heterojunction designs. These improve charge-carrier collection and reduce recombination while retaining a silicon absorber. Thin-film technologies, including cadmium telluride (CdTe) and copper indium gallium diselenide (CIGS), use different materials and manufacturing approaches.

Perovskite absorbers and tandem cells are active research and commercialization areas because stacked absorbers can capture different parts of the spectrum more efficiently. However, long-term stability, scalable manufacturing, encapsulation and bankability remain critical. Compare technologies using verified module data and field performance, not only a record laboratory cell efficiency [1, 6].

Common Misconceptions About Solar Panels

“Solar panels need heat.” They need light, not high ambient temperature. Strong sunlight helps, but elevated cell temperature often reduces silicon module power. “Panels stop working when clouds appear.” Diffuse light can still generate electricity, although output is typically reduced. “Every rated 400 W panel produces 400 W all day.” Nameplate power is tied to defined test conditions, not a constant field output.

“A solar panel automatically powers my house during a blackout.” Conventional grid-tied systems normally disconnect during outages. “More efficient always means more annual electricity for every dollar.” Efficiency, area constraints, climate, installation cost, degradation and system design all affect project value. A good engineering comparison evaluates the full system rather than one headline specification.

Frequently Asked Questions

Do solar panels work on cloudy days? Yes. Photovoltaic cells respond to diffuse as well as direct sunlight, though power typically falls when irradiance decreases.

Why are solar panels dark? Dark surfaces and antireflection treatments help reduce reflection and improve light absorption; color alone does not determine efficiency.

Do solar panels create AC electricity? PV cells produce DC. Inverters convert DC to grid-compatible AC.

Why does shade on one cell matter? Series-connected cells share current, so localized shading can restrict string output; bypass diodes and electronics can mitigate some losses.

Can I estimate annual output from rated power alone? No. You also need a solar resource estimate and realistic losses. Tools such as NREL PVWatts support more location-specific estimates [8].

Check Your Understanding

A 650 nm photon reaches a silicon solar cell. Estimate its energy in eV. Is it above a 1.12 eV bandgap?

Reveal worked answer

Using E(eV) ≈ 1240/λ(nm), E ≈ 1240/650 = 1.91 eV. Yes, this exceeds 1.12 eV; absorption still depends on optical properties and thickness.

A module operates at 34 V and 11 A at its maximum power point. What is Pmp?

Reveal worked answer

Pmp = 34 V × 11 A = 374 W. This is DC power at the specified operating point.

A module produces 360 W with irradiance 1,000 W/m² and area 1.8 m². Find its module-area efficiency.

Reveal worked answer

η = 360/(1,000 × 1.8) = 0.20 = 20%.

A 500 W STC module experiences 900 W/m² irradiance, cell temperature 35°C and γP = −0.004/°C. Estimate output using the simplified model.

Reveal worked answer

P ≈ 500 × 0.9 × [1 − 0.004(35 − 25)] = 450 × 0.96 = 432 W DC, before additional losses.

A 4 kW DC array receives 5 peak sun hours per day and has performance ratio 0.80. Estimate daily delivered energy.

Reveal worked answer

E ≈ 4 kW × 5 h/day × 0.80 = 16 kWh/day. This is an educational estimate, not a production guarantee.

Explain why a grid-connected PV system with no backup capability normally shuts down during a utility outage.

Reveal worked answer

Anti-islanding and related grid-interconnection protections prevent unintended energization of an isolated grid. Backup requires appropriately designed equipment that can safely isolate from the utility and form a local supply.

Key Takeaways and Next Steps

A solar cell converts photon energy into electrical power by creating and collecting electron–hole pairs in a semiconductor. Junctions and selective contacts make useful carrier separation possible; connected cells form modules, and inverters convert DC into AC suitable for building loads and the grid.

For engineers, the most important distinction is between instantaneous module power and delivered energy over time. The I–V curve, maximum power point, irradiance, cell temperature and system losses all matter. A rigorous design moves beyond simplified formulas to site-specific irradiance, component datasheets, safety standards and validated modeling.

Continue learning: Read What Is Solar Energy? for the broader solar-energy landscape. For a detailed quantitative treatment of solar-panel efficiency and performance losses, continue to Solar Panel Efficiency Explained.

Continue learning: For a deeper understanding of real-world photovoltaic performance, read our next engineering lesson, Solar Panel Efficiency Explained: Temperature, Losses and Engineering Calculations. It covers temperature coefficients, shading, electrical losses, performance ratios and practical engineering calculations.

Technical discussions describe general principles; site-specific engineering decisions require appropriate professional evaluation.