As of 2016, 96% of global hydrogen production is from fossil fuels via steam reforming (48% from natural gas, 30% from oil, and 18% from coal); water electrolysis accounts for only 4%.
Electrolysis method uses approximately 50 kilowatt-hours of electricity per kilogram of hydrogen produced.
At $0.08/kWh (approx. $4/kg), producing hydrogen with electrolysis is is 3 to 10 times costlier than with steam reformation of natural gas.
Thanks!