Electricity is an essential input in the modern economy and a necessity of modern life in the developed world. However, the production of electricity and many of its end uses can be subject to market failures. In this dissertation I study two such market failures related to electricity: (i) power plants exercising market power in response to congestion of the electricity transmission grid; and (ii) electricity consumption for groundwater extraction, which imposes a spatial externality on neighbors. I finally develop new methods for designing experiments and performing power calculations for use with panel data, which is particularly relevant in electricity research that uses high-frequency data on electricity production or consumption.In th...