Solar panels work by absorbing the sun’s energy throughout the day and then converting it into direct current (DC) electricity. Typically, homes and businesses use alternating current (AC) electricity, so the solar panels’ DC electricity goes through an inverter and is converted to AC electricity. From there, one of two things happens, you either use the electricity or it is sent back to the electric grid.