Often I find that people looking for STEM middle grade books receive a ton of non-fiction recommendations, but not nearly enough STEM middle grade fiction. This list is here to change that! If your kids are fascinated by science, technology, engineering or mathematics — and enjoy a side of those topics in their fiction, these are picks you should check out. This list features kids who code, science fans, tweens who love robotics, and kids who see the world through a math lens.
Best STEM Middle Grade Books (Fiction)
Here are 26 of the best STEM middle grade books:
Emmy in the Key of Code
Published: September 24, 2019
In a new city, at a new school, twelve-year-old Emmy has never felt more out of tune. Things start to look up when she takes her first coding class, unexpectedly connecting with the material—and Abigail, a new friend—through a shared language: music. But when Emmy gets bad news about their computer teacher, and finds out Abigail isn’t being entirely honest about their friendship, she feels like her new life is screeching to a halt. Despite these obstacles, Emmy is determined to prove one thing: that, for the first time ever, she isn’t a wrong note, but a musician in the world’s most beautiful symphony.
Yusuf Azeem Is Not a Hero
Published: September 7, 2021
Yusuf Azeem has spent all his life in the small town of Frey, Texas—and nearly that long waiting for the chance to participate in the regional robotics competition, which he just knows he can win.
Only, this year is going to be more difficult than he thought. Because this year is the twentieth anniversary of the 9/11 terrorist attacks, an anniversary that has everyone in his Muslim community on edge.
With “Never Forget” banners everywhere and a hostile group of townspeople protesting the new mosque, Yusuf realizes that the country’s anger from two decades ago hasn’t gone away. Can he hold onto his joy—and his friendships—in the face of heartache and prejudice?
The Science of Breakable Things
Published: March 6, 2018
When Natalie’s science teacher suggests that she enter an egg drop competition, she thinks it could be the perfect solution to all of her problems. With the prize money, she can fly her botanist mother to see the miraculous Cobalt Blue Orchids–flowers with the resilience to survive against impossible odds. Her mother has been suffering from depression, and Natalie is positive that the flowers’ magic will inspire her mom to fall in love with life again.
But she can’t do it alone. Her friends step up to show her that talking about problems is like taking a plant out of a dark cupboard and exposing it to the sun. With their help, Natalie begins an unforgettable journey to discover the science of hope, love, and miracles.
Published: January 8, 2019
The Unteachables are a notorious class of misfits, delinquents, and academic train wrecks. Like Aldo, with anger management issues; Parker, who can’t read; Kiana, who doesn’t even belong in the class—or any class; and Elaine (rhymes with pain). The Unteachables have been removed from the student body and isolated in room 117.
Their teacher is Mr. Zachary Kermit, the most burned-out teacher in all of Greenwich. He was once a rising star, but his career was shattered by a cheating scandal that still haunts him. After years of phoning it in, he is finally one year away from early retirement. But the superintendent has his own plans to torpedo that idea—and it involves assigning Mr. Kermit to the Unteachables.
The Unteachables never thought they’d find a teacher who had a worse attitude than they did. And Mr. Kermit never thought he would actually care about teaching again. Over the course of a school year, though, room 117 will experience mayhem, destruction—and maybe even a shot at redemption.
The Miscalculations of Lightning Girl
Published: May 1, 2018
Lucy Callahan was struck by lightning. She doesn’t remember it, but it changed her life forever. The zap gave her genius-level math skills, and ever since, Lucy has been homeschooled. Now, at 12 years old, she’s technically ready for college. She just has to pass 1 more test–middle school!
Lucy’s grandma insists: Go to middle school for 1 year. Make 1 friend. Join 1 activity. And read 1 book (that’s not a math textbook!). Lucy’s not sure what a girl who does calculus homework for fun can possibly learn in 7th grade. She has everything she needs at home, where nobody can make fun of her rigid routines or her superpowered brain. The equation of Lucy’s life has already been solved. Unless there’s been a miscalculation?
A celebration of friendship, Stacy McAnulty’s smart and thoughtful middle-grade debut reminds us all to get out of our comfort zones and embrace what makes us different.
The Friendship Code (Girls Who Code Series #1)
Published: August 22, 2017
Loops, variables, input/output – Lucy can’t wait to get started with the new coding club at school. Finally, an after school activity that she’s really interested in. But Lucy’s excitement turns to disappointment when she’s put into a work group with girls she barely knows. All she wanted to do was make an app that she believes will help someone very special to her.
Suddenly, Lucy begins to get cryptic coding messages and needs some help translating them. She soon discovers that coding – and friendship – takes time, dedication, and some laughs!
Published: September 5, 2017
Allie Navarro can’t wait to show her best friends the app she built at CodeGirls summer camp. CLICK’D pairs users based on common interests and sends them on a fun (and occasionally rule-breaking) scavenger hunt to find each other.
And it’s a hit. By the second day of school, everyone is talking about CLICK’D. Watching her app go viral is amazing. Leaderboards are filling up! Everyone’s making new friends. And with all the data Allie is collecting, she has an even better shot at beating her archenemy, Nathan, at the upcoming youth coding competition.
But when Allie discovers a glitch that threatens to expose everyone’s secrets, she has to figure out how to make things right, even if that means sharing the computer lab with Nathan. Can Allie fix her app, stop it from doing any more damage, and win back the friends it hurt–all before she steps on stage to present CLICK’D to the judges?
Spin the Golden Light Bulb
Published: January 9, 2018
It’s the year 2071 and eleven year-old Kia Krumpet is determined to build her 67 inventions, but she won’t have the opportunity to unless she earns a spot at PIPS, the Piedmont Inventor’s Prep School. Kia, who has trouble making friends at school, has dreamed of winning the Piedmont Challenge and attending PIPS ever since she learned that her Grandma Kitty won the very first Piedmont Challenge. After she and four of her classmates are selected to compete for a spot at PIPS, they travel by aero-bus to Camp Piedmont to solve a task against forty-nine other state teams to earn their place at the best inventor’s school in the country.
The Fourteenth Goldfish
Published: August 26, 2014
Galileo. Newton. Salk. Oppenheimer.
Science can change the world . . . but can it go too far?
Eleven-year-old Ellie has never liked change. She misses fifth grade. She misses her old best friend. She even misses her dearly departed goldfish. Then one day a strange boy shows up. He’s bossy. He’s cranky. And weirdly enough . . . he looks a lot like Ellie’s grandfather, a scientist who’s always been slightly obsessed with immortality. Could this pimply boy really be Grandpa Melvin? Has he finally found the secret to eternal youth?
With a lighthearted touch and plenty of humor, Jennifer Holm celebrates the wonder of science and explores fascinating questions about life and death, family and friendship, immortality . . . and possibility.
The Friendship Experiment
Published: November 1, 2016
Future scientist Madeline Little is dreading the start of middle school. Nothing has been right since her grandfather died and her best friend changed schools. Maddie would rather help her father in his research lab or write Standard Operating Procedures in her lab notebook than hang out with a bunch of kids who aren’t even her friends. Despite Maddie’s reluctance, some new friends start coming her way—until they discover what she’s written in that secret notebook. And that’s just part of the trouble. Can this future scientific genius find the formula for straightening out her life?
A Field Guide to Getting Lost
Published: April 14, 2020
Sutton is having robot problems. Her mini-bot is supposed to be able to get through a maze in under a minute, but she must have gotten something wrong in the coding. Which is frustrating for a science-minded girl like Sutton—almost as frustrating as the fact that her mother probably won’t be home in time for Sutton’s tenth birthday.
Luis spends his days writing thrilling stories about brave kids, but there’s only so much inspiration you can find when you’re stuck inside all day. He’s allergic to bees, afraid of dogs, and has an overprotective mom to boot. So Luis can only dream of daring adventures in the wild.
Sutton and Luis couldn’t be more different from each other. Except now that their parents are dating, these two have to find some common ground. Will they be able to navigate their way down a path they never planned on exploring?
Violet and the Pie of Life
Published: March 9, 2021
There’s no golden ratio for a family, despite what number-crunching Violet might think.
Twelve-year-old Violet has two great loves in her life: math and pie. And she loves her parents, even though her mom never stops nagging and her dad can be unreliable. Mom plus Dad doesn’t equal perfection. Still, Violet knows her parents could solve their problems if they just applied simple math.
#1: Adjust the ratio of Mom’s nagging to her compliments.
#2: Multiply Dad’s funny stories by a factor of three.
#3: Add in romantic stuff wherever possible.
But when her dad walks out, Violet realizes that the odds do not look good. Why can’t her parents get along like popular, perfect Ally’s parents? Would it be better to have no dad at all, like her best friend, McKenzie? Violet is considering the data when she and Ally get cast in the school play, and McKenzie doesn’t–a probability that Violet never calculated. Maybe friendship and family have more variables than she thought.
Published: April 7, 2020
Mary Murphy feels like she’s drowning. Her violent father is home from prison, and the social worker is suspicious of her new bruises. An aunt she’s never met keeps calling. And if she can’t get a good grade on her science project, she’ll fail her favorite class.
But Mary doesn’t want to be a victim anymore. She has a plan: build a real submarine, like the model she’s been making with Kip Dwyer, the secretly sweet class clown. Gaining courage from her heroine, Joan of Arc, Mary vows to pilot a sub across the Chesapeake Bay, risking her life in a modern crusade to save herself.
See You in the Cosmos
Published: February 28, 2017
11-year-old Alex Petroski loves space and rockets, his mom, his brother, and his dog Carl Sagan—named for his hero, the real-life astronomer. All he wants is to launch his golden iPod into space the way Carl Sagan (the man, not the dog) launched his Golden Record on the Voyager spacecraft in 1977. From Colorado to New Mexico, Las Vegas to L.A., Alex records a journey on his iPod to show other lifeforms what life on earth, his earth, is like. But his destination keeps changing. And the funny, lost, remarkable people he meets along the way can only partially prepare him for the secrets he’ll uncover—from the truth about his long-dead dad to the fact that, for a kid with a troubled mom and a mostly not-around brother, he has way more family than he ever knew.
Jack Cheng’s debut is full of joy, optimism, determination, and unbelievable heart. To read the first page is to fall in love with Alex and his view of our big, beautiful, complicated world. To read the last is to know he and his story will stay with you a long, long time.
Clues to the Universe
Published: January 12, 2021
The only thing Rosalind Ling Geraghty loves more than watching NASA launches with her dad is building rockets with him. When he dies unexpectedly, all Ro has left of him is an unfinished model rocket they had been working on together.
Benjamin Burns doesn’t like science, but he can’t get enough of Spacebound, a popular comic book series. When he finds a sketch that suggests that his dad created the comics, he’s thrilled. Too bad his dad walked out years ago, and Benji has no way to contact him.
Though Ro and Benji were only supposed to be science class partners, the pair become unlikely friends, and Ro even figures out a way to reunite Benji and his dad. But Benji hesitates, which infuriates Ro. Doesn’t he realize how much Ro wishes she could be in his place?
As the two face bullying, grief, and their own differences, Benji and Ro try to piece together clues to some of the biggest questions in the universe.
Published: April 18, 2005
Julia Song and her friend Patrick would love to win a blue ribbon, maybe even two, at the state fair. They’ve always done projects together, and they work well as a team. This time, though, they’re having trouble coming up with just the right project. Then Julia’s mother offers a suggestion: They can raise silkworms, as she did when she was a girl in Korea.
Patrick thinks it’s a great idea. Of course there are obstacles—for example, where will they get mulberry leaves, the only thing silkworms eat?—but nothing they can’t handle.
Julia isn’t so sure. The club where kids do their projects is all about traditional American stuff, and raising silkworms just doesn’t fit in. Moreover, the author, Ms. Park, seems determined to make Julia’s life as complicated as possible, no matter how hard Julia tries to talk her out of it.
Published: February 4, 2020
When Mia moves to Vermont the summer after seventh grade, she’s recovering from the broken arm she got falling off a balance beam. And packed away in the moving boxes under her clothes and gymnastics trophies is a secret she’d rather forget.
Mia’s change in scenery brings day camp, new friends, and time with her beloved grandmother. But Gram is convinced someone is trying to destroy her cricket farm. Is it sabotage or is Gram’s thinking impaired from the stroke she suffered months ago? Mia and her friends set out to investigate, but can they uncover the truth in time to save Gram’s farm? And will that discovery empower Mia to confront the secret she’s been hiding–and find the courage she never knew she had?
Danny Chung Sums It Up
Published: September 7, 2021
Eleven-year-old Danny’s life is turned upside down when his Chinese grandmother comes to live with his family in England. Things get worse when Danny finds out he’ll have to share his room with her, and she took the top bunk! At first, Danny is frustrated that he can’t communicate with her because she doesn’t speak English—and because he’s on the verge of failing math and Nai Nai was actually a math champion back in the day. It just feels like he and his grandmother have nothing in common. His parents insist that Danny help out, so when he’s left to look after Nai Nai, he leaves her at the bingo hall for the day to get her off his back. But he soon discovers that not everyone there is as welcoming as he expected . . . Through the universal languages of math and art, Danny realizes he has more in common with his Nai Nai than he first thought. Filled with heart and humor, Danny Chung Sums It Up shows that traversing two cultures is possible and worth the effort, even if it’s not always easy.
The Queen Bee and Me
Published: March 3, 2020
Meg has always found comfort in her best friend Beatrix’s shadow. Self-assured Beatrix is the one who makes decisions, and the girls have been a pair since kindergarten. But middle school has brought some changes in Beatrix, especially when Meg tries to step outside her role as sidekick.
A special science elective is Meg’s first step away, but when she’s paired with quirky new girl Hazel, Beatrix steps in to stake her claim on Meg. Meg is taken aback at how mean Beatrix can be–and how difficult it is to stand up to her friend. But as Meg gets to know Hazel while working on their backyard beehive project, she starts to wonder: Is being Beatrix’s friend worth turning down the possibility of finding her own voice?
The Thing About Jellyfish
Published: September 22, 2015
After her best friend dies in a drowning accident, Suzy is convinced that the true cause of the tragedy must have been a rare jellyfish sting–things don’t just happen for no reason. Retreating into a silent world of imagination, she crafts a plan to prove her theory–even if it means traveling the globe, alone. Suzy’s achingly heartfelt journey explores life, death, the astonishing wonder of the universe…and the potential for love and hope right next door.
Published: September 7, 2021
After her brother’s death from a congenital heart defect, twelve-year-old Lucy is not prepared to be the new kid at school―especially in a grade full of survivors of a shooting that happened four years ago. Without the shared past that both unites and divides her classmates, Lucy feels isolated and unable to share her family’s own loss, which is profoundly different from the trauma of her peers.
Lucy clings to her love of math, which provides the absolute answers she craves. But through budding friendships and an after-school mime class, Lucy discovers that while grief can take many shapes and sadness may feel infinite, love is just as powerful.
The Amelia Six
Published: June 30, 2020
Eleven-year-old Amelia Ashford—Millie to her friends (if she had any, that is)—doesn’t realize just how much adventure awaits her when she’s given the opportunity of a lifetime: to spend the night in Amelia Earhart’s childhood home with five other girls. Make that five strangers. But Millie’s mom is a pilot like the famous Amelia, and Millie would love to have something to write to her about…if only she had her address.
Once at Amelia’s house in Atchison, Kansas, Millie stumbles upon a display of Amelia’s famous flight goggles. She can’t believe her good luck, since they’re about to be relocated to a fancy museum in Washington, DC. But her luck changes quickly when the goggles disappear, and Millie was the last to see them. Soon, fingers are pointing in all directions, and someone falls strangely ill. Suddenly, a fun night of scavenger hunts and sweets takes a nosedive and the girls aren’t sure who to trust. With a blizzard raging outside and a house full of suspects, the girls have no choice but to band together. It’s up to the Amelia Six to find the culprit and return the goggles to their rightful place. Or the next body to collapse could be one of theirs.
Bees on the Roof
Published: September 1, 2016
Sam needs to find a seventh-grade science fair project and a way to save the restaurant where his father works. When he enrolls three friends in an effort to raise bees on a hotel roof in New York City, the complications multiply. Bee sting allergies, a great bee die-off, a rival team’s cheating, a mysteriously reclusive science teacher, and Sam’s romantic feelings for a classmate make the bee project anything but simple. This story includes lots of facts about bees and Colony Collapse Disorder.
Solving for M
Published: May 28, 2019
When Mika starts fifth grade at the middle school, her neat life gets messy. Separated from old friends and starting new classes, Mika is far from her comfort zone. And math class is the most confusing of all, especially when her teacher Mr. Vann assigns math journals. Art in math? Who’s ever heard of such a thing?
But when challenges arise at home, Mika realizes there are no easy answers. Maybe, with some help from friends, family, and one unique teacher, a math journal can help her work out problems, and not just the math ones.
My Life As an Ice-Cream Sandwich
Published: January 1, 2020
Twelve-year-old Ebony-Grace Norfleet has lived with her beloved grandfather Jeremiah in Huntsville, Alabama ever since she was little. As one of the first black engineers to integrate NASA, Jeremiah has nurtured Ebony-Grace’s love for all things outer space and science fiction–especially Star Wars and Star Trek. But in the summer of 1984, when trouble arises with Jeremiah, it’s decided she’ll spend a few weeks with her father in Harlem.
Harlem is an exciting and terrifying place for a sheltered girl from Hunstville, and Ebony-Grace’s first instinct is to retreat into her imagination. But soon 126th Street begins to reveal that it has more in common with her beloved sci-fi adventures than she ever thought possible, and by summer’s end, Ebony-Grace discovers that Harlem has a place for a girl whose eyes are always on the stars.
Planet Earth Is Blue
Published: May 14, 2019
Twelve-year-old Nova is eagerly awaiting the launch of the space shuttle Challenger–it’s the first time a teacher is going into space, and kids across America will watch the event on live TV in their classrooms. Nova and her big sister, Bridget, share a love of astronomy and the space program. They planned to watch the launch together. But Bridget has disappeared, and Nova is in a new foster home.
While foster families and teachers dismiss Nova as severely autistic and nonverbal, Bridget understands how intelligent and special Nova is, and all that she can’t express. As the liftoff draws closer, Nova’s new foster family and teachers begin to see her potential, and for the first time, she is making friends without Bridget. But every day, she’s counting down to the launch, and to the moment when she’ll see Bridget again. Because Bridget said, “No matter what, I’ll be there. I promise.”