More thoughts on the subject: Young Adult: Young adult fiction allows for a lot of flexibility in word count. Middle Grade, Young Adult Fiction Length:
The average middle grade is 30k-40k. Upper middle grade can hit in the 50k word count range (possibly longer, if it’s something really special).
Resource: Ask The Agent: Your Novel Word Count Guide and More: Feb 18, 2013