Leavy is a 1965 graduate of Santa Barbara High School in Santa Barbara, California and a 1970 graduate of San Jose State University in San Jose, California where he earned a degree in law enforcement. Just before earning his degree, he joined the San Jose Police Department in September 1969. During his high school and college years, Leavy's athletic interests included swimming and football.