5 Ways To Calculate Pi - WikiHow

Skip to ContentQuizzes
  • Home
  • Random
  • Browse Articles
  • Quizzes & Games
  • All QuizzesHot
  • Love Quizzes
  • Personality Quizzes
  • Fun Games
  • Dating Simulator
  • Learn Something New
  • Forums
  • Courses
  • Happiness Hub
  • Explore More
  • Support wikiHow
  • About wikiHow
  • Log in / Sign up
Terms of Use wikiHow is where trusted research and expert knowledge come together. Learn why people trust wikiHow How to Calculate Pi PDF download Download Article Calculate pi using the measurements of circle, an infinite series, Buffoon's Needle Problem, & more Reviewed by Grace Imson, MA

Last Updated: January 31, 2025 Fact Checked

PDF download Download Article
  • Using the Measurements of a Circle
  • |
  • Using an Infinite Series
  • |
  • Using Buffon's Needle Problem
  • |
  • Using a Limit
  • |
  • Using Arcsine Function/Inverse Sine Function
  • |
  • Video
  • |
  • Q&A
  • |
  • Tips
|Show more |Show less X

This article was reviewed by Grace Imson, MA. Grace Imson is a math teacher with over 40 years of teaching experience. Grace is currently a math instructor at the City College of San Francisco and was previously in the Math Department at Saint Louis University. She has taught math at the elementary, middle, high school, and college levels. She has an MA in Education, specializing in Administration and Supervision from Saint Louis University. There are 11 references cited in this article, which can be found at the bottom of the page. This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources. This article has been viewed 1,512,641 times.

Pi (π) is one of the most important and fascinating numbers in mathematics. Roughly 3.14, it is a constant that is used to calculate the circumference of a circle from that circle's radius or diameter.[1] It is also an irrational number, which means that it can be calculated to an infinite number of decimal places without ever slipping into a repeating pattern.[2] This makes it difficult, but not impossible, to calculate precisely.

Steps

Section 1 of 5:

Calculating Pi Using the Measurements of a Circle

PDF download Download Article
  1. Step 1 Make sure you are using a perfect circle. 1 Make sure you are using a perfect circle. This method won't work with ellipses, ovals, or anything but a real circle. A circle is defined as all the points on a plane that are an equal distance from a single center point. The lids of jars are good household objects to use for this exercise. You should be able to calculate pi roughly because in order to get exact results of pi, you will need to have a very thin lead (or whatever you are using). Even the sharpest pencil graphite could be huge to have exact results.[3]
  2. Step 2 Measure the circumference of a circle as accurately as you can. 2 Measure the circumference of a circle as accurately as you can. The circumference is the length that goes around the entire edge of the circle. Since the circumference is round, it can be difficult to measure (that's why pi is so important).[4]
    • Lay a string over the circle as closely as you can. Mark the string off where it circles back around, and then measure the string length with a ruler.
    Advertisement
  3. Step 3 Measure the diameter of the circle. 3 Measure the diameter of the circle. The diameter runs from one side of the circle to the other through the circle's center point.[5]
  4. Step 4 Use the formula. 4 Use the formula. The circumference of a circle is found with the formula C=πd=2πr. Thus, pi equals a circle's circumference divided by its diameter. Plug your numbers into a calculator: the result should be roughly 3.14.[6]
  5. Step 5 Repeat this process with several different circles, and then average the results. 5 Repeat this process with several different circles, and then average the results. This will give you more accurate results. Your measurements might not be perfect on any given circle, but over time they should average out to a pretty accurate calculation of pi.[7]
  6. Advertisement
Section 2 of 5:

Calculating Pi Using an Infinite Series

PDF download Download Article
  1. Step 1 Use the Gregory-Leibniz series. 1 Use the Gregory-Leibniz series. Mathematicians have found several different mathematical series that, if carried out infinitely, will accurately calculate pi to a great number of decimal places. Some of these are so complex they require supercomputers to process them. One of the simplest, however, is the Gregory-Leibniz series.[8] Though not very efficient, it will get closer and closer to pi with every iteration, accurately producing pi to five decimal places with 500,000 iterations. Here is the formula to apply.
    • π=(4/1)-(4/3)+(4/5)-(4/7)+(4/9)-(4/11)+(4/13)-(4/15) ⋯
    • Take 4 and subtract 4 divided by 3. Then add 4 divided by 5. Then subtract 4 divided by 7. Continue alternating between adding and subtracting fractions with a numerator of 4 and a denominator of each subsequent odd number. The more times you do this, the closer you will get to pi.
  2. Step 2 Try the Nilakantha series. 2 Try the Nilakantha series. This is another infinite series to calculate pi that is fairly easy to understand. While somewhat more complicated, it converges on pi much quicker than the Leibniz formula.[9]
    • π=3+4/(2·3·4)-4/(4·5·6)+4/(6·7·8)-4/(8·9·10)+4/(10·11·12)-4/(12·13·14) ⋯
    • For this formula, take three and start alternating between adding and subtracting fractions with numerators of 4 and denominators that are the product of three consecutive integers which increase with every new iteration. Each subsequent fraction begins its set of integers with the highest one used in the previous fraction. Carry this out even a few times and the results get fairly close to pi.
  3. Advertisement
Section 3 of 5:

Calculating Pi

PDF download Download Article
  1. Try this experiment to calculate pi by throwing hotdogs. Try this experiment to calculate pi by throwing hotdogs. Pi, it turns out, also has a place in an interesting thought experiment called Buffon's Needle Problem,[10] which seeks to determine the likelihood that randomly tossed uniform elongated objects will land either between or crossing a series of parallel lines on the floor. It turns out that if the distance between the lines is the same as the length of the tossed objects, the number of times the objects land across the lines out of a large number of throws can be used to calculate pi. Check out the above wikiHow article link for a fun breakdown of this experiment using thrown food.
    • Scientists and mathematicians have not figured out a way to calculate pi exactly, since they have not been able to find a material so thin that it will work to find exact calculations.[11]
Section 4 of 5:

Calculating Pi Using a Limit

PDF download Download Article
  1. Step 1 Pick a large number. 1 Pick a large number. The bigger the number, the more accurate your calculation will be.
  2. Step 2 Plug your number, which we'll call x, into this formula to calculate pi: 2 Plug your number, which we'll call x, into this formula to calculate pi: x * sin(180 / x). For this to work, make sure your calculator is set to Degrees. The reason this is called a Limit is because the result of it is 'limited' to pi. As you increase your number x, the result will get closer and closer to the value of pi.
  3. Advertisement
Section 5 of 5:

Calculating Pi Using Arcsine Function/Inverse Sine Function

PDF download Download Article
  1. Step 1 Pick any number between -1 and 1. 1 Pick any number between -1 and 1. This is because the Arcsin function is undefined for arguments greater than 1 or less than -1.[12]
  2. Step 2 Plug your number into the following formula, and the result will be roughly equal to pi. 2 Plug your number into the following formula, and the result will be roughly equal to pi.[13]
    • π={arcsin[√(1 - x²)]+ abs[arcsin x]}·2.
      • Arcsin refers to the inverse sine in radians
      • Sqrt is short for square root
      • Abs is short for absolute value
      • x^2 refers to an exponent, in this case, x squared.
  3. Advertisement

Community Q&A

Search Add New Question
  • Question Is twenty two over seven equal to pi? Community Answer Community Answer It is not precisely equal to pi. While it does look like pi at first (3.14285...), pi is 3.14159... It cannot be equal to pi because 3.14285 ends up repeating. Pi is an irrational number, meaning it goes on forever and does not repeat. Remember that irrational numbers are defined as "not being able to be written as a ratio between two numbers." 22/7 is a ratio of two numbers, so it cannot be exactly equal to pi. Thanks! We're glad this was helpful. Thank you for your feedback. If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow Yes No Not Helpful 122 Helpful 360
  • Question How can I figure out pi as a fraction? Community Answer Community Answer You can't. Pi cannot be a fraction because it is irrational. This means that it cannot be expressed as a ratio of two rational numbers. Pi is sometimes expressed as the fraction 22/7, but that is just an approximation. Thanks! We're glad this was helpful. Thank you for your feedback. If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow Yes No Not Helpful 108 Helpful 293
  • Question What does the word irrational mean? Community Answer Community Answer An irrational number is a number that cannot be expressed as a ratio of whole numbers (i.e., as a fraction). The root of the word 'irrational' is 'ratio', and the prefix 'ir' means 'not'. The word can have different meanings outside of math. Thanks! We're glad this was helpful. Thank you for your feedback. If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow Yes No Not Helpful 71 Helpful 202
See more answers Ask a Question 200 characters left Include your email address to get a message when this question is answered. Submit Advertisement

Video

Tips

  • Calculating pi can be fun and challenging, but doing so too deeply has diminishing returns. Astrophysicists say they only need to use pi to 39 decimal places in order to do cosmological calculations that are accurate to the size of an atom. Thanks Helpful 7 Not Helpful 0
Submit a Tip All tip submissions are carefully reviewed before being published Name Please provide your name and last initial Submit Thanks for submitting a tip for review! Advertisement

You Might Also Like

Calculate Pi by Throwing Frozen Hot DogsHow to Compute Pi with Frozen Hot Dog Wieners Write a Python Program to Calculate PiHow toWrite a Python Program to Calculate Pi Work Out the Circumference of a CircleHow to Figure Out the Circumference of a Circle: Easy Math Tutorial Pi QuizHow Many Digits of Pi Do I Know Quiz Find the Circumference and Area of a CircleHow toFind the Circumference and Area of a Circle Celebrate Pi DayHow to Celebrate Pi Day: Best Food, Decor & Party Ideas Calculate the Area of a CircleHow toCalculate the Area of a Circle Calculate the Circumference of a CircleHow toCalculate the Circumference of a Circle Memorize PiHow to Memorize Pi: All the Best Methods Calculate the Radius of a CircleHow to Find the Radius of a Circle Find the Area of a Circle Using Its CircumferenceHow toFind the Area of a Circle Using Its Circumference Memorize the Unit CircleHow toMemorize the Unit Circle Calculate the Fibonacci SequenceHow to Calculate the Fibonacci Sequence: Regular Method and Golden Ratio Trick Find the Circumference of a Circle Using Its AreaHow toFind the Circumference of a Circle Using Its Area Advertisement

References

  1. https://www.mathsisfun.com/definitions/pi.html
  2. https://mathworld.wolfram.com/IrrationalNumber.html
  3. https://www.mathscareers.org.uk/calculating-pi/
  4. https://www.mathscareers.org.uk/calculating-pi/
  5. https://www.mathsisfun.com/numbers/pi.html
  6. https://www.mathsisfun.com/numbers/pi.html
  7. https://digitalcommons.ursinus.edu/cgi/viewcontent.cgi?article=1006&context=triumphs_calculus
  8. https://crypto.stanford.edu/pbc/notes/pi/glseries.html
  9. https://www.geeksforgeeks.org/calculate-pi-using-nilkanthas-series/
More References (4)
  1. https://mste.illinois.edu/activity/buffon/
  2. https://mathworld.wolfram.com/BuffonsNeedleProblem.html
  3. https://www.alamo.edu/contentassets/35e1aad11a064ee2ae161ba2ae3b2559/trigonometric/math2412-inverse-trig-functions.pdf
  4. https://www.omnicalculator.com/math/arcsin

About This Article

Grace Imson, MA Reviewed by: Grace Imson, MA Math Teacher This article was reviewed by Grace Imson, MA. Grace Imson is a math teacher with over 40 years of teaching experience. Grace is currently a math instructor at the City College of San Francisco and was previously in the Math Department at Saint Louis University. She has taught math at the elementary, middle, high school, and college levels. She has an MA in Education, specializing in Administration and Supervision from Saint Louis University. This article has been viewed 1,512,641 times. 31 votes - 78% Co-authors: 64 Updated: January 31, 2025 Views: 1,512,641 Categories: Mathematics Article SummaryX

Pi is roughly 3.14, but it's actually an infinite number that never slips into a repeating pattern. If you want to calculate pi, first measure the circumference of a circle by wrapping a piece of string around the edge of it and then measuring the length of the string. Then, measure the diameter of the circle, which is the distance between one side and the other that runs through the center. Once you've got the circumference and diameter, plug them into the formula π=c/d, where "π" is pi, "c" is circumference, and "d" is diameter. Just divide the circumference by the diameter to calculate pi! To learn how to calculate pi using a limit or sine function, keep reading the article! Did this summary help you?YesNo

In other languages Italian Spanish Portuguese German Russian Chinese French Indonesian Dutch Arabic Korean Hindi Turkish Japanese Persian Czech
  • Print
  • Send fan mail to authors
Thanks to all authors for creating a page that has been read 1,512,641 times.

Reader Success Stories

  • Christi Carl

    Christi Carl

    Nov 24, 2020

    "I was always the top math student in class, until I reached algebra. Now after reading your examples I realize that..." more
More reader stories Hide reader stories Share your story

Did this article help you?

Yes No Advertisement Cookies make wikiHow better. By continuing to use our site, you agree to our cookie policy. Grace Imson, MA Reviewed by: Grace Imson, MA Math Teacher 31 votes - 78% Click a star to vote Co-authors: 64 Updated: January 31, 2025 Views: 1,512,641 Christi Carl

Christi Carl

Nov 24, 2020

"I was always the top math student in class, until I reached algebra. Now after reading your examples I realize that..." more John Tod

John Tod

Jun 22, 2019

"I expected relatively easy formulae, but it is anything but easy. The article shows there are several ways to..." more Anonymous

Anonymous

Mar 18, 2018

"First time using. I understand what pi is. What an irrational number is. Excellent explanation for those who need..." more Clayton C.

Clayton C.

Dec 16, 2019

"I used the limit technique to calculate pi for an alternative math library in Python. Thanks to the writers for..." more Noori Thompson

Noori Thompson

Mar 8, 2016

"Pi day is on March 14th. I am a fan of math, so I wanted to celebrate pi day by calculating pi (and eating pie..." more Share yours! More success stories Hide success stories

Quizzes & Games

How Many Digits of Pi Do I Know QuizHow Many Digits of Pi Do I Know QuizTake QuizThe Impossible QuizThe Impossible QuizTake QuizPizza CalculatorPizza CalculatorGeneral Knowledge QuizGeneral Knowledge QuizTake QuizIQ TestIQ TestTake QuizAccurate IQ Checker Quiz: How Smart Am I?Accurate IQ Checker Quiz: How Smart Am I?Take Quiz

You Might Also Like

Calculate Pi by Throwing Frozen Hot DogsHow to Compute Pi with Frozen Hot Dog WienersWrite a Python Program to Calculate PiHow toWrite a Python Program to Calculate PiWork Out the Circumference of a CircleHow to Figure Out the Circumference of a Circle: Easy Math TutorialPi QuizHow Many Digits of Pi Do I Know Quiz

Trending Articles

Answer These Questions, And We'll Judge YouAnswer These Questions, And We'll Judge YouMental Illness TestMental Illness TestGuess My Age QuizGuess My Age QuizWhat Emojis Mean Sex?What Emojis Mean Sex?How Sexual Am I QuizHow Sexual Am I Quiz5 Different Types of Butts: Find Your Shape5 Different Types of Butts: Find Your Shape

Watch Articles

Impress a Girl on a First DateHow toImpress a Girl on a First DateWhat Are Tear Burns on TikTok and What Causes Them?What Are Tear Burns on TikTok and What Causes Them?Wear a HoodieHow toWear a HoodieChiffonadeHow toChiffonadeMake a Fabric RoseHow toMake a Fabric RoseConfront a BullyHow toConfront a Bully

Trending Articles

What Would My Nickname Be QuizWhat Would My Nickname Be QuizWhat's My Hottest Feature QuizWhat's My Hottest Feature QuizHow Weird Am I QuizHow Weird Am I QuizWhat 16 of the Most Common Hugs MeanWhat 16 of the Most Common Hugs MeanKiss PassionatelyHow toKiss Passionately210+ Shower Thoughts: Funny, Deep, Weird & Mind-Blowing210+ Shower Thoughts: Funny, Deep, Weird & Mind-Blowing

Quizzes & Games

IQ Test For KidsIQ Test For KidsTake QuizGreek Alphabet QuizGreek Alphabet QuizTake QuizQuick IQ TestQuick IQ TestTake QuizWhat Wild wikiHow Article Am I QuizWhat Wild wikiHow Article Am I QuizTake QuizAm I a Genius QuizAm I a Genius QuizTake QuizHow Much Do I Know About Space QuizHow Much Do I Know About Space QuizTake Quiz wikiHow
  • Categories
  • Education and Communications
  • Studying
  • Mathematics
wikiHow Newsletter You're all set! Helpful how-tos delivered toyour inbox every week! Sign me up! By signing up you are agreeing to receive emails according to our privacy policy.
  • Home
  • About wikiHow
  • Experts
  • Jobs
  • Contact Us
  • Site Map
  • Terms of Use
  • Privacy Policy
  • Do Not Sell or Share My Info
  • Not Selling Info
  • Contribute

Follow Us

×

Get all the best how-tos!

Sign up for wikiHow's weekly email newsletter

Subscribe You're all set! X --734

Tag » Approximate Value Of Pi Square