MADISON, Wis. (AP) — Wisconsin quarterback Alex Hornibrook is transferring after three seasons as the starter.

Hornibrook posted Wednesday on Instagram he intends to transfer after he graduates in May. He will be immediately eligible to play.

“I would like to thank the University of Wisconsin, the football coaches, the training staff, my teammates and the fans for four great years as a Wisconsin Badger,” Hornibrook said in the post.

Hornibrook started 32 games for Wisconsin and ranks third in school history in touchdown passes (47) and fifth in yards passing (5,438). He missed four games last season with a concussion, and passed for 1,532 yards with 13 touchdowns and 11 interceptions.

Coach Paul Chryst said Hornibrook told the Wisconsin staff Wednesday he planned to leave the team.

“He contributed a lot to our recent success and we want to thank him for all he did for our program,” Chryst said in a statement.

The Badgers have four scholarship quarterbacks left, but only one with significant experience. Junior Jack Coan played five games last year and passed for 515 yards and five touchdowns. Graham Mertz, a four-star freshman, has enrolled early.

The Badgers are coming off a disappointing 8-5 season after beginning the year ranked No. 4 in the country. Wisconsin opens the season at South Florida on Aug. 30.