Citric acid does not produce electricity by itself. Rather, this weak acid turns into an electrolyte -- an electrically conductive substance -- when it's dissolved in fluid. The charged ions of the electrolyte allow electricity to travel through the fluid.