Solar panels work by harvesting energy from the sun and converting it into usable electricity for your home. Any unused excess electricity from your panels can either flow back to your power meter to offset the cost of your future electric bills, depending on your area and utility provider, or be stored in a battery backup for use during a power outage or at night when your panels aren’t generating electricity.