  Mach attended an Austrian Gymnasium in Moravia, graduating at seventeen, entering the University of Vienna as a student of mathematics and physics in 1855, and matriculating in 1860. After graduation, he stayed in Vienna as a privat dozent, supporting himself through giving lectures paid for directly by students (which means he made very little money).