JPL
Careers
Education
Science & Technology
JPL LogoJPL Logo
Education
NASA OSTEM
JPL LogoJPL Logo
Education
K-12 Education
.4 min read

How Many Decimals of Pi Do We Really Need?

Written by NASA/JPL EduOct. 24, 2022
Pi to the 15th decimal is shown in a speckled starry band as a silhouetted face looks out over colorful concentric circles and black and white images of an atom, molecules, Earth, and the Voyager spacecraft. The left side of the image fades to black with

While world record holders may have memorized more than 70,000 digits of pi, a JPL engineer explains why you really only need a tiny fraction of that for most calculations – even at NASA.

Update: October 24, 2022 – This article, originally written in 2016, has been updated to reflect the latest values for NASA’s Voyager 1 spacecraft, which continues to venture farther into interstellar space. The author, Marc Rayman, has ventured on too, from the chief engineer for NASA’s Dawn mission, which concluded successfully in 2018, to the chief engineer for mission operations and science at NASA’s Jet Propulsion Laboratory.

The decimals of pi are listed out on an orange background with a large pi symbol in the background.
This graphic shows more than 500 of the infinite number of decimals in pi.
Credit: NASA/JPL-Caltech

We received this question from a fan on Facebook who wondered how many decimals of the never-ending mathematical constant pi (π) NASA-JPL scientists and engineers use when making calculations:

“Does JPL only use 3.14 for its pi calculations? Or do you use more decimals, like say [360 or even more]?”

Here’s JPL’s Chief Engineer for Mission Operations and Science, Marc Rayman, with the answer:

Thank you for your question! This isn't the first time I've heard a question like this. In fact, it was posed many years ago by a sixth-grade science and space enthusiast who was later fortunate enough to earn a doctorate in physics and become involved in space exploration. His name was Marc Rayman.

To start, let me answer your question directly. For JPL's highest accuracy calculations, which are for interplanetary navigation, we use 3.141592653589793. Let's look at this a little more closely to understand why we don't use more decimal places. I think we can even see that there are no physically realistic calculations scientists ever perform for which it is necessary to include nearly as many decimal points as you asked about. Consider these examples:

1. The most distant spacecraft from Earth is Voyager 1. As of this writing, it’s about 14.7 billion miles (23.6 billion kilometers) away. Let’s be generous and call that 15 billion miles (24 billion kilometers). Now say we have a circle with a radius of exactly that size, 30 billion miles (48 billion kilometers) in diameter, and we want to calculate the circumference, which is pi times the radius times 2. Using pi rounded to the 15th decimal, as I gave above, that comes out to a little more than 94 billion miles (more than 150 billion kilometers). We don't need to be concerned here with exactly what the value is (you can multiply it out if you like) but rather what the error in the value is by not using more digits of pi. In other words, by cutting pi off at the 15th decimal point, we would calculate a circumference for that circle that is very slightly off. It turns out that our calculated circumference of the 30-billion-mile (48-billion-kilometer) diameter circle would be wrong by less than half an inch (about one centimeter). Think about that. We have a circle more than 94 billion miles (more than 150 billion kilometers) around, and our calculation of that distance would be off by no more than the width of your little finger.

The illustration shows a cartoonish Voyager 1 flying in space with a conical signal eminating from its antenna. An inset shows a more distant view of Voyager with a line extending to Earth and a distance label between the Voyager and Earth marked ~131 AU.

Put your pi math skills to the test with this problem from NASA's Pi Day Challenge. Can you use pi to determine what fraction of a signal from Voyager 1 reaches Earth? | › View lesson page.

Credit: NASA/JPL-Caltech

2. We can bring this closer to home by looking at our planet, Earth. It is more than 7,900 miles (12,700 kilometers) in diameter at the equator. The circumference is roughly 24,900 miles (40,100 kilometers). That's how far you would travel if you circumnavigated the globe – and didn't worry about hills, valleys, and obstacles like buildings, ocean waves, etc. How far off would your odometer be if you used the limited version of pi above? The discrepancy would be the size of a molecule. There are many different kinds of molecules, of course, so they span a wide range of sizes, but I hope this gives you an idea. Another way to view this is that your error by not using more digits of pi would be more than 30,000 times thinner than a hair!

A view of Earth from space showing East Africa, the Middle East, and Asia with swirls and splotches of clouds across the planet.

3. Let's go to the largest size there is: the known universe. The radius of the universe is about 46 billion light years. Now let me ask (and answer!) a different question: How many digits of pi would we need to calculate the circumference of a circle with a radius of 46 billion light years to an accuracy equal to the diameter of a hydrogen atom, the simplest atom? It turns out that 37 decimal places (38 digits, including the number 3 to the left of the decimal point) would be quite sufficient. Think about how fantastically vast the universe is. It’s certainly far beyond what you can see with your eyes even on the darkest, most beautiful night of sparkling stars. It’s yet farther beyond the extraordinary vision of the James Webb Space Telescope. And the vastness of the universe is truly far, far, far beyond what we can even conceive. Now think about how incredibly tiny a single atom is. Isn’t it amazing that we wouldn’t need to use many digits of pi at all to cover that entire unbelievable range?

Link to text description available below

If you were to hold a single grain of sand at arm's length, you could cover the entire area of space taken up by this image, which was captured by the James Webb Space Telescope and contains thousands of galaxies. The oldest-known galaxy identified in the image is 13.1 billion years old. | › More about the image.

Credit: NASA, ESA, CSA, STScI

Pi is an intriguing number with interesting mathematical properties. It’s fun to think about its truly endless sequence of digits, and it may be surprising how often it appears in the equations scientists and engineers use. But there are no questions – prosaic or esoteric – in humankind’s noble efforts to explore or comprehend the marvels of the cosmos, from the unimaginably smallest scales to the inconceivably largest, that could require very many of those digits.

Hear more from Marc in his inspiring TEDx talk, “If It Isn’t Impossible, It Isn’t Worth Trying” and in his Dawn Journal, where he wrote frequent updates about the Dawn mission’s extraordinary extraterrestrial expedition to the protoplanet Vesta and dwarf planet Ceres.

Explore More

Educator Resources

students.

NASA Pi Day Challenge

This collection of illustrated math problems gets students using pi like NASA scientists and engineers exploring Earth and space.

educators.

Pi in the Sky Lessons

Find everything you need to bring the NASA Pi Day Challenge into the classroom, including printable handouts of each illustrated math problem.

Articles

students.

18 Ways NASA Uses Pi

Whether it's sending spacecraft to other planets, driving rovers on Mars, finding out what planets are made of or how deep alien oceans are, pi takes us far at NASA. Find out how pi helps us explore space.

educators.

10 Ways to Celebrate Pi Day With NASA on March 14

Find out what makes pi so special, how it’s used to explore space, and how you can join the celebration with resources from NASA.

Multimedia & Downloads

students.

Infographic: Planet Pi

This poster shows some of the ways NASA scientists and engineers use the mathematical constant pi (3.14) and includes common pi formulas.

Recursos en español

students.

18 Maneras en Que la NASA Usa Pi

Pi nos lleva lejos en la NASA. Estas son solo algunas de las formas en que pi nos ayuda a explorar el espacio.

About the Author

NASA/JPL Edu

NASA/JPL Edu

NASA/JPL Edu supports science, technology, engineering and mathematics (STEM) education by providing NASA and JPL activities, resources and materials to educators and students in grades K-12 as well as STEM internships and research opportunities to higher education students and faculty.
K-12 Resources
Education Resources
Lesson Plans
Student Projects
Teachable Moments
Collections
Internships
JPL Internships
Explore Programs & Apply
Internships FAQ
News & Events
All Education News
All Education Events
About
JPL Education
K-12 Education
Higher Education
Informal Education
NASA OSTEM
Get the Latest from JPL
Follow JPL Education
More from JPL
About JPLJPL NewsMissionsImagesVirtual TourCareers
About JPL
JPL News
Missions
Images
Virtual Tour
Careers
Related NASA Education Sites
Space Place
Climate Kids
Kids' Club
Space Math
Universe of Learning
STEMonstrations
Basics of Spaceflight
NASA’s Eyes Interactives
NASA
Caltech
Privacy
Image Policy
FAQ
Feedback
Version: v3.0.29 -
Site Managers:David Seidel, Ota Lutz
Site Editor:Kim Orr