I've always thought it was a grain, but some places say vegetable. I know I use it as a starch when meal planning.