The ideal orientation for solar panels is typically between 15° and 40° east or west of true south, depending on the location and time of year. This orientation allows the panels to receive the most direct sunlight throughout the day, resulting in maximum energy production. A deviation from this ideal orientation can lead to a reduction in energy production, with panels facing east or west producing around 10-20% less energy than those facing south.