19 of the Best Math Movies About Science
Math and science intersect constantly on screen, from mathematicians racing to crack wartime codes to astronauts relying on physics, orbital mechanics, and complex equations to survive.
Whether you’re looking for inspiring biographical dramas, family-friendly adventures, or movies based on remarkable discoveries, this collection highlights some of the best math-related films ever made.

19 of the Best Math Movies About Science
This list covers 19 movies where math, mathematics, or scientific thinking plays a central role in the story.
You’ll find films about brilliant scientists and math pioneers, groundbreaking discoveries, gifted students, and everyday people learning to solve seemingly impossible problems.
From real-life pioneers to fictional genius characters, these movies show that numbers can be just as exciting as action scenes.
Whether you’re planning a family movie night, looking for educational entertainment, or hoping to help students see how mathematics applies in the real world, these films offer plenty of inspiration.
A Note on Content
This list ranges from G-rated shorts to R-rated dramas. Ratings and a brief content note are included with each entry so you can choose the right fit for your family, homeschool, or school math lesson.

Biopics and True Stories
1. Hidden Figures (2016) — Rated PG
Based on Margot Lee Shetterly’s book, this film tells the story of Dorothy Vaughan, Katherine Johnson, and Mary Jackson, three Black women mathematicians whose work at NASA was essential to launching America’s first astronauts into orbit. Octavia Spencer, Taraji P. Henson, and Janelle Monáe star as the three women.
2. The Theory of Everything (2014) — Rated PG-13
This biographical drama follows physicist Stephen Hawking’s early academic breakthroughs at Cambridge and his life with ALS, as well as his relationship with his first wife, Jane.
3. A Beautiful Mind (2001) — Rated PG-13
Russell Crowe stars as John Nash, a brilliant mathematician whose groundbreaking work in game theory earned him a Nobel Prize, while he battled schizophrenia throughout his life. Jennifer Connelly, Christopher Plummer, and Paul Bettany co-star.
4. Stand and Deliver (1988) — Rated PG
Edward James Olmos stars as Jaime Escalante, a real high school math teacher who successfully taught calculus to a group of underestimated students in East Los Angeles, proving what’s possible with high expectations and dedicated teaching.
5. Good Will Hunting (1997) — Rated R
Matt Damon stars as Will Hunting, a janitor at MIT who secretly solves advanced mathematical problems left on a hallway chalkboard, which a professor discovers and helps him confront his past. Robin Williams and Stellan Skarsgård co-star. Rated R for strong language.
6. The Imitation Game (2014) — Rated PG-13
Benedict Cumberbatch stars as Alan Turing, the mathematician who led the team that cracked the Nazi Enigma code during World War II, alongside Keira Knightley. The film explores both his groundbreaking contributions to computing and the discrimination he faced.
7. Moneyball (2011) — Rated PG-13
Brad Pitt stars as Oakland A’s general manager Billy Beane, who uses statistical analysis (sabermetrics) to build a competitive baseball team on a shrinking budget, based on a true story.
8. Adventures of a Mathematician (2020) — Not Rated
This lesser-known biopic follows Stan Ulam, a Polish mathematician who joined the Manhattan Project and later played a key role in developing the hydrogen bomb. It’s a quieter, more somber film than most on this list, dealing directly with the moral weight of nuclear weapons research, worth previewing first given its heavier themes.
9. “21” (2008) — Rated PG-13
Based on the true story of the MIT Blackjack Team, this thriller follows a group of students, led by Jim Sturgess’s character and mentored by a professor played by Kevin Spacey, who use probability and card counting to win big in Las Vegas.
10. Infinity (1996) — Rated PG
Matthew Broderick directs and stars in this biographical drama covering the early life of physicist Richard Feynman and his relationship with his first wife, touching on his path toward major scientific contributions.
11. Oppenheimer (2023) — Rated R
Cillian Murphy stars as J. Robert Oppenheimer, the physicist who led the development of the atomic bomb during the Manhattan Project, exploring the scientific breakthroughs and the moral weight of one of history’s most consequential projects. Rated R for language and some sexual content.
12. Rain Man (1988) — Rated R
Dustin Hoffman stars as Raymond, an autistic savant with extraordinary mental math abilities, who bonds with his estranged, self-centered brother Charlie (Tom Cruise) on a cross-country road trip. Rated R for language and some content, better suited for older teens and adults.
13. Gifted (2017) — Rated PG-13
A single man raises his math-prodigy niece and must decide whether to nurture her extraordinary talent or let her have a typical childhood, when a custody battle brings the question to a head.
14. October Sky (1999) — Rated PG
Based on the true story of Homer Hickam, this film follows a coal miner’s son, inspired by the launch of Sputnik, who builds homemade rockets against his father’s wishes and eventually becomes a NASA engineer.
15. Agora (2009) — Rated R
Rachel Weisz stars as Hypatia, a mathematician and philosopher in ancient Alexandria, who fights to preserve knowledge and reason during a time of political and religious upheaval. Note the R rating; better suited for older teens and adults.
16. The Martian (2015) — Rated PG-13
Matt Damon stars as an astronaut stranded on Mars who uses math, chemistry, and problem-solving to survive and signal for rescue, in one of the most scientifically grounded space survival films made.
Fiction and Family Films
17. Jurassic Park (1993) — Rated PG-13
While primarily a science fiction adventure, the film’s mathematician character, Ian Malcolm (Jeff Goldblum), introduces chaos theory and the “butterfly effect” as a warning about the unpredictability of complex systems.
18. Donald in Mathmagic Land (1959) — Rated G
Donald Duck ventures into a magical realm where math comes alive through billiards (geometry), music (ratios and patterns), and nature (the golden ratio). A classic, accessible introduction to math for viewers of any age.
19. Proof (2005) — Rated PG-13
Gwyneth Paltrow stars as a woman grieving her father, a brilliant but mentally ill mathematician, while trying to determine whether a groundbreaking proof found among his papers is his work or her own. Anthony Hopkins, Hope Davis, and Jake Gyllenhaal co-star.
Honorable Mentions
Although they didn’t make the main list, these titles are excellent choices for anyone interested in mathematics and science.
The Man Who Knew Infinity (2015)
This inspiring drama follows Srinivasa Ramanujan, the self-taught Indian math prodigy whose extraordinary discoveries earned him the opportunity to study at Cambridge.
The Man Who Knew Infinity beautifully explores his collaboration with G.H. Hardy and remains one of the finest films ever made about a mathematician.
Interstellar (2014)
Christopher Nolan’s Interstellar blends astrophysics, relativity, and advanced mathematics into an unforgettable science fiction adventure. While it’s primarily a space epic, the film demonstrates how scientific theories and mathematical thinking shape humanity’s future.
Numb3rs (TV Series)
Although Numb3rs is a television series rather than a movie, it’s a favorite among math enthusiasts. Each episode follows a mathematics professor who helps the FBI solve difficult crimes using statistics, probability, and mathematical reasoning.

More Math and STEM Movie Lists
If you enjoyed discovering these math-focused films, here are a few more movie lists filled with inspiring stories that make learning about math, science, and STEM even more exciting.
- Movies About Math for Kids – A family-friendly collection of films that introduce math concepts through fun characters and engaging stories.
- Best Science Movies for Middle School – Explore science-inspired films that encourage curiosity, critical thinking, and a love of discovery.
- Top Math Movies on Netflix – Find math-related movies currently streaming on Netflix, making it easy to plan your next educational movie night.
- STEM Movies for Kids – Discover entertaining films that introduce science, technology, engineering, and math in fun and engaging ways.
These films prove that math isn’t confined to textbooks or classrooms—it helps explain the universe, inspires groundbreaking discoveries, and drives some of the most compelling stories ever told.
Whether you’re watching a brilliant mathematician, following a determined math genius, or seeing ordinary people overcome extraordinary challenges through problem-solving, each film offers a unique perspective on the power of mathematics.
Whether you’re a parent, teacher, student, or simply someone who enjoys inspiring films, this collection offers something for every viewer. You may even find that the next great movie night sparks a new appreciation for mathematics, science, and the remarkable people whose ideas continue to shape our world.
What’s a good starting point for a classroom or family movie night from this list?
Hidden Figures, Stand and Deliver, and October Sky are all excellent starting points. They’re family-friendly, inspiring, and based on real events, making them great conversation starters about math, perseverance, and scientific discovery. These films also help kids and help students see how mathematics can open doors to exciting careers.
Which of these movies are not appropriate for younger viewers?
Good Will Hunting, Oppenheimer, Rain Man, and Agora are all rated R and are generally better suited for older teens and adults because of mature language, themes, or content. Always preview a film first if you’re unsure whether it’s appropriate for your audience.
Why is Jurassic Park included on a “math movies” list?
Although dinosaurs are the main attraction, mathematician Ian Malcolm explains chaos theory throughout the film. His discussions introduce audiences to real mathematical ideas about unpredictable systems, showing how mathematics applies to biology and complex scientific questions.
Is there a good option for very young kids on this list?
Yes. Donald in Mathmagic Land is the most family-friendly choice. This Disney classic introduces geometry, ratios, patterns, and other basic mathematical concepts in a fun and engaging way that’s easy for younger viewers to understand.
What if I want more math movie recommendations?
If you enjoyed these picks, be sure to check out our 43 Best Math Movies for Adults, Teens, and Kids, Best Math Movies for Middle School, and Best Math Movies for High School Students. If you’re interested in science as a whole, our collection of 53 STEM Movies About Science for Teens and Kids offers even more educational viewing options.
