Grier tested positive for a performance-enhancing substance that was found in an over-the-counter supplement, McElwain said. The positive test carries an automatic suspension of one calendar year from the NCAA, meaning Grier would not be eligible to return until Florida's seventh game of the 2016 season. He would have redshirt sophomore status at that time, a Florida spokesperson said.
"I took an over-the-counter supplement that had something in it," a tearful Grier said during a Monday news conference. "I did not check with the medical staff before taking it. I hope that people can learn from this, learn from my mistake. I'm really sorry to everyone, just really sorry."
McElwain said Florida will appeal the suspension. The appeal will be to have Grier eligible to play in the 2016 season opener instead of Week 7, the school told ESPN's Marty Smith.
McElwain said he was made aware of Grier's failed test on Sunday. He wanted to give Grier the chance to address his team during Monday's team meeting before speaking publicly about the suspension. McElwain said players embraced Grier and appreciated his honesty with them. Grier will continue to practice with the team, the coach said.
McElwain expressed remorse for Grier's situation, but he reiterated how important it is for student-athletes to be careful about taking any sort of supplements not provided by the team.
"It's something he feels horrible about," McElwain said. "It's an honest mistake, and yet can be prevented by checking with our medical staff. This is a mistake we'll learn from.
"Everybody knows the policy, you police yourself. You're no different. You either do or you don't. ... Before you even take cough medicine, you've got to check with the medical staff to allow you to be able to [take it]."
A freshman from Davidson, North Carolina, Grier has thrown for 10 touchdowns, three interceptions and 1,204 yards for the eighth-ranked Gators.
Florida (6-0, 4-0) will travel to Death Valley to face No. 6 LSU(5-0, 3-0) in an SEC showdown on Saturday at 7 p.m. on ESPN.
Grier had been a breath of fresh air for the Gators at quarterback. He became the first Florida quarterback since Tim Tebow in 2009 to pass for more than 200 yards in three consecutive games. Grier's completion percentage, passing yards per game and TD-to-interception ratio are also the best by a Gator since 2009. His completion percentage (65.8) and scramble yards (154) rank first in the SEC.
With Grier out, sophomore Treon Harris will take over at quarterback. Harris started the season opener before giving way to Grier, but he was also suspended one game earlier this season for an undisclosed violation of team rules.
Harris started Florida's final six games of the 2014 season, finishing with a 4-2 record. He completed 49.5 percent of his passes for 1,019 yards, nine touchdowns and four interceptions.
Harris was also suspended from the team in October 2014 during the week of the LSU game because of accusations of sexual battery, but he was later reinstated after the allegations were withdrawn.
Grier has a higher completion percentage (65.8) and lower percentage of passes off-target (10.2) than Harris (53.6 and 22.8), according to ESPN Stats & Information. However, Harris averages 1.8 more yards per attempt. Harris has appeared in two games this season and thrown for 269 yards and two touchdowns, with no interceptions.
The Wynn race and sportsbook moved LSU from a 6.5-point favorite to 7.5 over Florida after the news. Wynn executive director John Avello initially opened LSU -5 on Sunday night, but took two $2,000 limit bets on the Tigers to move the number to -6.5. He then bumped it up another point after news broke that Grier would be suspended.
Avello said he was not adjusting the Gators' odds to win the national championship at this time. Florida is 35-1 at the Wynn.
Information from ESPN.com's Brett McMurphy and David Purdum contributed to this report.
Grier choked up over suspension
Florida QB Will Grier reacts to the news of his suspension due to testing positive for PEDs.
Will Grier's suspension devastating for Florida
Danny Kanell and Ryen Russillo react to the news that Florida QB Will Grier has been suspended for the season after testing positive for performance enhancing drugs.