FHB Logo Facebook LinkedIn Email Pinterest Twitter X Instagram Tiktok YouTube Plus Icon Close Icon Navigation Search Icon Navigation Search Icon Arrow Down Icon Video Guide Icon Article Guide Icon Modal Close Icon Guide Search Icon Skip to content
Subscribe
Log In
  • How-To
  • Design
  • Tools & Materials
  • Restoration
  • Videos
  • Blogs
  • Forum
  • Magazine
  • Members
  • FHB House
  • Podcast
Log In

Fine Homebuilding Project Guides

Energy Retrofit

Guide Home
  • Energy Efficiency
  • HVAC Systems and Water Heaters
  • Air-Sealing and Insulation
  • Solar Power and Electrification
  • Deep Energy Retrofits
  • Energy-Efficient Houses
How-To

How Do Solar Panels Work?

Builder and developer Fernando Pagés Ruiz explains the science behind sun-powered electricity generation.

By Fernando Pagés Ruiz

For those not steeped in the field of chemistry, what follows is a quick-and-dirty rundown of how solar panels turn sunlight into electricity.

“Think of a solar cell as an LED in reverse,” explained Steffen Eikenberry, a researcher at the Arizona State University School of Mathematical and Statistical Sciences, during an hour-long phone interview. With the patience of a teacher explaining things to a C student, Dr. Eikenberry helped me gain a more complete understanding of how solar cells convert sun rays into energy.

The diode in an LED light is analogous to the two layers of silicon crystals in the solar cell. Except in a solar cell, the two layers of the diode are silicon, one on top and the other underneath. To generate an electrical current, these layers of silicon are treated through a chemical process called “doping” that causes an electron imbalance. In trying to achieve balance, the resulting electron dance becomes what we call an electrical current.

The top layer of silicon (exposed to the sun) is doped with phosphorus and the bottom layer with boron. Phosphorous has an extra electron, while boron is missing one. Electrons like to achieve stability in even pairs. Stable elements, such as argon, have even pairs. Unstable elements do not, but they seek to establish balance by sharing electrons with complementary elements. In a silicon wafer, electrons achieve equilibrium by pairing up in a matrix of shared electrons—or what we might call a crystal lattice (think snowflakes). But a photon, or a particle of light, precisely aimed and with just the right amount of energy, can knock a single silicon electron right out of its resting place.

When sunlight strikes the top layer of the silicon cell, particles of light, or photons, dislodge electrons from the crystal lattice. Were it not for the phosphorous doping, these free electrons would simply fly about and find their way back into their original position. Eikenberry explained that because of the electron imbalance created by the extra electrons in phosphorus and the missing electrons in boron, many of the electrons knocked out of the top layer travel to the bottom, seeking a resting place to settle into–a place known as an electron hole.

This movement of electrons between the top layer and the bottom layer (and back again) establishes a current, or flow of electrons, which we call electricity. When the top and bottom layers are connected through conductive plates and wires, the flow becomes a circuit and provides useful energy for lighting homes and charging batteries.

More precisely, photovoltaic cells are made of two layers of semiconductor material such as silicon—a material with some conductivity but not as much as metal. The semiconductor is chemically treated or doped to create a p-n (positive-negative) junction that acts as a diode. A diode is a device that allows the flow of current in only one direction—from positive to negative. The imbalance between the doped layers of silicon will enable electrons to pass only from positive to negative. As electrons from the p (positive, boron-doped side) move to the n (negative, phosphorus-doped side), they create a current. Eventually, circling back around through wiring, this electron dance is what we call a circuit. And voilà, we have the photoelectric effect.

It took no less than Einstein to figure out how this works, so don’t feel too bad if you, like me, are still scratching your head.

________________________________________________________________________

Originally published on GreenBuildingAdvisor.com.
Fernando Pagés Ruiz is a builder and an ICC-certified residential building inspector active in code development.

Sign up for eletters today and get the latest how-to from Fine Homebuilding, plus special offers.

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters
See all newsletters
Next: Designing for Solar Panels

Guide

Energy Retrofit

Chapter

Solar Power and Electrification

Log in or create an account to post a comment.

Sign up Log in

Become a member and get full access to FineHomebuilding.com

Energy Retrofit

Energy Retrofit

Trusted, comprehensive guidance from the pros for making energy-efficient updates to any home

View Project Guide

View All Project Guides »

Become a member and get unlimited site access, including the Energy Retrofit Project Guide.

Start Free Trial

Energy Efficiency
  • Understanding Energy Efficiency
  • Net-Zero & Passive Houses
HVAC Systems and Water Heaters
  • Heating and Cooling Systems
  • Ventilation and Dehumidification for Good Air Quality
  • Water Heaters
  • Heat Pump HVAC
  • Minisplits
Air-Sealing and Insulation
  • Air-Sealing
  • Insulation
Solar Power and Electrification
  • Solar Power
  • Energy Storage Options
  • All-Electric Homes
Deep Energy Retrofits
  • Deep Energy Retrofits 101
  • Featured Deep Energy Retrofits
Energy-Efficient Houses
  • Energy-Efficient Houses

Fine Home Building

Newsletter Sign-up

  • Fine Homebuilding

    Home building tips, offers, and expert advice in your inbox.

  • Green Building Advisor

    Building science and energy efficiency advice, plus special offers, in your inbox.

  • Old House Journal

    Repair, renovation, and restoration tips, plus special offers, in your inbox.

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters

Follow

  • Fine Homebuilding

    Dig into cutting-edge approaches and decades of proven solutions with total access to our experts and tradespeople.

    Start Free Trial Now
    • Facebook
    • Instagram
    • X
    • LinkedIn
  • GBA Prime

    Get instant access to the latest developments in green building, research, and reports from the field.

    Start Free Trial Now
    • Facebook
    • YouTube
  • Old House Journal

    Learn how to restore, repair, update, and decorate your home.

    Subscribe Now
    • Facebook
    • Instagram
    • X
  • Fine Homebuilding

    Dig into cutting-edge approaches and decades of proven solutions with total access to our experts and tradespeople.

    Start Free Trial Now
    • Facebook
    • Instagram
    • X
    • LinkedIn
  • GBA Prime

    Get instant access to the latest developments in green building, research, and reports from the field.

    Start Free Trial Now
    • Facebook
    • YouTube
  • Old House Journal

    Learn how to restore, repair, update, and decorate your home.

    Subscribe Now
    • Facebook
    • Instagram
    • X

Membership & Magazine

  • Online Archive
  • Start Free Trial
  • Magazine Subscription
  • Magazine Renewal
  • Gift a Subscription
  • Customer Support
  • Privacy Preferences
  • About
  • Contact
  • Advertise
  • Careers
  • Terms of Use
  • Site Map
  • Do not sell or share my information
  • Privacy Policy
  • Accessibility
  • California Privacy Rights

© 2025 Active Interest Media. All rights reserved.

Fine Homebuilding receives a commission for items purchased through links on this site, including Amazon Associates and other affiliate advertising programs.

X
X
This is a dialog window which overlays the main content of the page. The modal window is a 'site map' of the most critical areas of the site. Pressing the Escape (ESC) button will close the modal and bring you back to where you were on the page.

Main Menu

  • How-To
  • Design
  • Tools & Materials
  • Video
  • Blogs
  • Forum
  • Project Guides
  • Reader Projects
  • Magazine
  • Members
  • FHB House

Podcasts

  • FHB Podcast
  • ProTalk

Webinars

  • Upcoming and On-Demand

Podcasts

  • FHB Podcast
  • ProTalk

Webinars

  • Upcoming and On-Demand

Popular Topics

  • Kitchens
  • Business
  • Bedrooms
  • Roofs
  • Architecture and Design
  • Green Building
  • Decks
  • Framing
  • Safety
  • Remodeling
  • Bathrooms
  • Windows
  • Tilework
  • Ceilings
  • HVAC

Magazine

  • Current Issue
  • Past Issues
  • Magazine Index
  • Subscribe
  • Online Archive
  • Author Guidelines

All Access

  • Member Home
  • Start Free Trial
  • Gift Membership

Online Learning

  • Courses
  • Project Guides
  • Reader Projects
  • Podcast

More

  • FHB Ambassadors
  • FHB House
  • Customer Support

Account

  • Log In
  • Join

Newsletter

Get home building tips, offers, and expert advice in your inbox

Signing you up...

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
See all newsletters
See all newsletters

Follow

  • X
  • YouTube
  • instagram
  • facebook
  • pinterest
  • Tiktok

Join All Access

Become a member and get instant access to thousands of videos, how-tos, tool reviews, and design features.

Start Your Free Trial

Subscribe

FHB Magazine

Start your subscription today and save up to 70%

Subscribe

We hope you’ve enjoyed your free articles. To keep reading, become a member today.

Get complete site access to expert advice, how-to videos, Code Check, and more, plus the print magazine.

Start your FREE trial

Already a member? Log in