Thirty-eight states and the District of Columbia have rules protecting the ability of solar consumers to sell excess solar electricity production back to the energy system for use by other energy consumers, a practice known as net metering.