To learn more about solar panels, read our guide, How Do Solar Panels Work? Step 2: Solar Inverters Convert DC to AC. Next up in our quest to answer "How does solar energy work?" is a lesson about inverters. Solar panels produce electricity in the form of direct current (DC), which means the electricity only flows in one direction.