In Apeldoorn, he attended the Institute of Martinus Herman van Doorn, a boarding school. In 1862, he attended a technical school at Utrecht, but was expelled. He then entered the University of Utrecht in 1865 to study physics.