Of the total, 3,557 GWh was generated by hydro power plants and 10,915 GWh by thermal power plants, the Agency for Statistics said in a statement.
Bosnia imported 3,345 GWh of electricity in 2017, while exporting 5,188 GWh.
In December alone, net electricity production totalled 1,503 GWh, down 2.6% on the year but up 18.8% on the month. A total of 576 GWh of electricity was produced by hydro power plants in December, up 25.7% on the year and 140.4% higher month-on-month.
Thermal power plants generated 927 GWh of electricity, down 14.5% on the year and 9.7% lower on the month.
A total of 12,629 GWh of electricity was available for consumption in the January-December period.
Bosnia and Herzegovina is made up of two autonomous entities - the Serb Republic and the Federation.
It has three power utilities - Elektroprivreda BiH and Elektroprivreda HZHB, which operate in the Federation, and Elektroprivreda RS which operates in the Serb Republic.