In 2012, Slovakia produced a total of 28,393 GWh of electricity while at the same time consumed 28 786 GWh. The slightly higher level of consumption than the capacity of production (- 393 GWh) meant the country was not self-sufficient in energy sourcing. Slovakia imported electricity mainly from the Czech Republic (9,961 GWh—73.6% of total import) and exported mainly to Hungary (10,231 GWh—78.2% of total export).