Fux's exact date of birth is unknown. He was born to a peasant family in Hirtenfeld, Styria, Austria. Relatively little is known about his early life, but likely he went to nearby Graz for music lessons. In 1680 he was accepted at the Jesuit Ferdinandeum University there, where his musical talent became apparent. From 1685 until 1688 he served as organist at St. Moritz in Ingolstadt. Sometime during this period he must have made a trip to Italy, as evidenced by the strong influence of Corelli and Bolognese composers on his work of the time.