In his freshman season under first-year Tar Heel head coach Scott Forbes, Horvath appeared in 46 games, starting 35.[3] With multi-year starter Danny Serretti the everyday shortstop, Horvath moved over to third base in Chapel Hill. In his freshman season, Horvath hit .227, with 5 home runs and 22 RBIs.[3][4] He played summer ball for the Rochester Honkers in his hometown following the NCAA season, and hit .287 with four home runs over the Northwoods League season.[4]
Sophomore
Horvath started all 63 games in which he played in his sophomore season, helping lead the 2022 Tar Heels to the NCAA Super Regionals. On the season, he hit .268, with a .390 on-base percentage and a .557 slugging percentage.[4] His power numbers improved as well, as he hit 18 home runs and drove in 53 RBIs. He also showcased his speed, stealing 19 bases over the course of the 2022 season.[3] Prior to the second game of the Super Regional against Arkansas, Horvath had to undergo emergency appendectomy surgery and missed the game, a 4–3 walk-off loss to end the Tar Heels' season.[5]
Once again the Tar Heels' starting third baseman to begin the season, Horvath showed his versatility by moving into the outfield when teammate Johnny Castagnozzi, who also plays third base, returned from an injury. Castagnozzi had filled in for Horvath in the 2022 Super Regionals against Arkansas when Horvath had appendicitis.[7] Horvath's third season in Chapel Hill proved to be his best, as he recorded a slash line of .305/.418/.711[4] in 60 games played. Like his teammate Vance Honeycutt the season prior, Horvath became a member of the "20-20" club, hitting 24 home runs on the season and stealing 25 bases.[3]