Machotka was born in 1936 in Prague, Czechoslovakia. He emigrated to the United States with his family in 1948 to escape communist repression, following the communist coup d'état. Machotka attended college at the University of Chicago at 16, and he earned a PhD in Psychology from Harvard University.