• Visit
    • Calendar
    • After Dark Thursdays
    • Buy Tickets
    • Exhibits
    • Museum Galleries
    • Artworks on View
    • Hours
    • Getting Here
    • Visitor FAQ
    • Event Rentals
    • Field Trips
  • Education
    • Professional Development Programs
    • Free Educator Workshops
    • Tools for Teaching and Learning
    • Learning About Learning
    • Community Programs
    • Educator Newsletter
  • Explore
    • Browse by Subject
    • Activities
    • Video
    • Exhibits
    • Apps
    • Blogs
    • Websites
  • About Us
    • Our Story
    • Partnerships
    • Global Collaborations
    • Explore Our Reach
    • Arts at the Exploratorium
    • Contact Us
  • Join + Support
    • Donate Today!
    • Membership
    • Join Our Donor Community
    • Engage Your Business
    • Attend a Fundraiser
    • Explore Our Reach
    • Thank You to Our Supporters
    • Donor & Corporate Member FAQ
    • Host Your Event
    • Volunteer
  • Store
  • Visit
    • Frequently Asked Questions
    • Calendar
      • Today
      • This Week
      • Online
      • After Dark Thursday Nights
      • Arts
      • Conferences
      • Cinema Arts
      • Free + Community Events
      • Fundraising Events
      • Kids + Families
      • Members
      • Special Hours
      • Private Event Closures
    • Prices
    • Hours
    • Getting Here
    • Museum Map
    • Free Admission and Reduced Admission
    • Accessibility
    • Tips for Visiting with Kids
    • How to Exploratorium
    • Exhibits
    • Tactile Dome
    • Artworks on View
    • Cinema Arts
    • Kanbar Forum
    • Black Box
    • Museum Galleries
      • Bernard and Barbro Osher Gallery 1: Human Phenomena
        • Tactile Dome
          • 1971 Press Release
        • Black Box
        • Curator Statement
      • Gallery 2: Tinkering
        • Curator Statement
      • Bechtel Gallery 3: Seeing & Reflections
        • Curator Statement
      • Gordon and Betty Moore Gallery 4: Living Systems
        • Curator Statement
      • Gallery 5: Outdoor Exhibits
        • Curator Statement
      • Fisher Bay Observatory Gallery 6: Observing Landscapes
        • Wired Pier Environmental Field Station
        • Curator Statement
    • Restaurant & Café
    • School Field Trips
      • Getting Here
        • Bus Routes for Field Trips and Other Groups
      • Admission and Tickets
      • Planning Guide
      • Reservations
        • Field Trip Request Form
      • Resources
    • Event Rentals
      • Full Facility & Gallery Bundles
      • Fisher Bay Observatory Gallery & Terrace
      • Moore East Gallery
      • Bechtel Central Gallery & Outdoor Gallery
      • Osher West Gallery
      • Kanbar Forum

      • Weddings
      • Proms and School Events
      • Daytime Meetings, Events, & Filmings

      • Rentals FAQ
      • Event Planning Resources
      • Rental Request Form
      • Download Brochure (pdf)
    • Groups / Tour Operators
      • Group Visit Request Form
    • Exploratorium Store
    • Contact Us
  • Education
    • Black Teachers and Students Matter
    • Professional Development Programs
      • Free Educator Workshops
      • Professional Learning Partnerships
      • Teacher Institute
        • About the Teacher Institute
        • Summer Institute for Teachers
        • Teacher Induction Program
        • Leadership Program
        • Teacher Institute Research
        • CA NGSS STEM Conferences
          • NGSS STEM Conference 2020
        • Science Snacks
          • Browse by Subject
          • Special Collections
          • Science Snacks A-Z
          • NGSS Planning Tools
          • Frequently Asked Questions
        • Digital Teaching Boxes
        • Meet the Teacher Institute Staff
        • Resources for Supporting Science Teachers
      • Institute for Inquiry
        • What Is Inquiry?
        • Watch and Do Science
        • Inquiry-based Science and English Language Development
          • Educators Guide
            • Conceptual Overview
              • Science Talk
              • Science Writing
            • Classroom Video Gallery
              • Magnet Investigation
              • Snail Investigation
            • Teacher Professional Development
            • Project Studies
            • Acknowledgments
          • Conference: Exploring Science and English Language Development
            • Interviews with Participants
            • Plenary Sessions
            • Synthesis, Documentation, and Resources
        • Workshops
          • Participant Portal
          • Fundamentals of Inquiry
            • Summary Schedule
          • BaySci Science Champions Academy
          • Facilitators Guides
          • Commissioned Workshops
        • Resource Library
        • Meet the IFI Staff
      • Resources for California Educators
      • K-12 Science Leader Network
      • Resources for Supporting Science Teachers
      • Field Trip Explainer Program
      • Cambio
    • Tools for Teaching and Learning
      • Learning Toolbox
      • Science Snacks
      • Digital Teaching Boxes
      • Science Activities
      • Tinkering Projects
      • Recursos gratuitos para aprender ciencias
      • Videos
      • Exhibits
      • Publications
      • Apps
      • Educator Newsletter
      • Exploratorium Websites
    • Educator Newsletter
    • Advancing Ideas about Learning
      • Visitor Research and Evaluation
        • What we do
        • Reports & Publications
        • Projects
        • Who we are
      • Center for Informal Learning in Schools
    • Community Programs
      • High School Explainer Program
      • Xtech
      • Community Educational Engagement
      • California Tinkering Afterschool Network
        • About
        • Partners
        • Resources
        • News & Updates
        • Further Reading
  • Explore
    • Browse by Subject
      • Arts
      • Astronomy & Space Sciences
        • Planetary Science
        • Space Exploration
      • Biology
        • Anatomy & Physiology
        • Ecology
        • Evolution
        • Genetics
        • Molecular & Cellular Biology
        • Neuroscience
      • Chemistry
        • Combining Matter
        • Food & Cooking
        • Materials & Matter
        • States of Matter
      • Data
        • Data Collection & Analysis
        • Modeling & Simulations
        • Visualization
      • Earth Science
        • Atmosphere
        • Geology
        • Oceans & Water
      • Engineering & Technology
        • Design & Tinkering
        • Real-World Problems & Solutions
      • Environmental Science
        • Global Systems & Cycles
        • Human Impacts
      • History
      • Mathematics
      • Nature of Science
        • Measurement
        • Science as a Process
        • Size & Scale
        • Time
      • Perception
        • Light, Color & Seeing
        • Listening & Hearing
        • Optical Illusions
        • Scent, Smell & Taste
        • Tactile & Touch
      • Physics
        • Electricity & Magnetism
        • Energy
        • Heat & Temperature
        • Light
        • Mechanics
        • Quantum
        • Sound
        • Waves
      • Social Science
        • Culture
        • Language
        • Psychology
        • Sociology
    • Browse by Content Type
      • Activities
      • Blogs
        • Spectrum
          • Arts
          • Behind the Scenes
          • News
          • Education
          • Community & Collaborations
          • Science
        • Eclipse
        • Studio for Public Spaces
        • Tangents
        • Resonance See & Hear Blog
        • Fabricated Realities
        • Tinkering Studio: Sketchpad
        • Exploratorium on Tumblr
      • Exhibits
      • Video
      • Websites
      • Apps
        • Total Solar Eclipse
  • About Us
    • Our Story
    • Land Acknowledgment
    • Explore Our Reach
    • Impact Report
    • Awards
    • Our History
      • 50 Years 1969–2019

    • Senior Leadership
    • Board of Trustees
    • Board of Trustees Alumni
    • Staff Scientists
    • Staff Artists

    • Arts at the Exploratorium
      • Artworks on View
      • Artist-in-Residence Program
      • Cinema Arts
        • History and Collection
        • Cinema Artists-in-Residence
        • Resources and Collaborating Organizations
        • Kanbar Forum
      • Center for Art & Inquiry
        • Begin Here
          • Lessons
            • Bob Miller/Light Walk
            • Ruth Asawa/Milk Carton Sculpture
          • Workshops
      • Resonance
        • About the Series
        • See & Hear
        • Past Seasons
      • Over the Water
      • Black Box
      • Upcoming Events
      • Temporary Exhibitions
      • Arts Program Staff
    • Teacher Institute
    • Institute for Inquiry
    • Explainer Programs
    • Studio for Public Spaces
    • Exhibit Making
    • Partnerships
      • Building Global Connections
        • Global Collaborations
          • Projects
          • Approach
          • People
          • Impact
      • Partnering with Science Agencies
        • NASA
        • NOAA
      • Partnering with Educational Institutions
      • Osher Fellows

    • Job Opportunities
    • Become a Volunteer

    • Contact Info
    • Newsletter
    • Educator Newsletter
    • Blogs
    • Follow & Share
    • Press Office

    • FY21 Audit Report
    • 990 FY20 Tax Return
    • Use Policy
      • Privacy Policy
      • Intellectual Property Policy
  • Join + Support
    • Donate Today!
    • Membership
      • Membership FAQ
      • Member Benefits
      • After Dark Membership
      • Member Events
      • May Is for Members
    • Join Our Donor Community
    • Engage Your Business
      • Corporate Membership
      • Luminary Partnerships
    • Attend a Fundraiser
      • Wonder Funday
      • Science of Cocktails
      • Party at the Piers
        • Event Leadership and Host Committee
    • Explore Our Reach
    • Thank You to Our Supporters
    • Donor & Corporate Member FAQ
    • Volunteer
      • How to Apply
      • Application for Internships
      • Our Contract
      • Application for Individuals
  • Press Office
    • Press Releases
    • News Coverage
    • Events Calendar
    • Photographs
    • Press Video
    • Press Kits
    • Press Visits
    • Exploratorium Logos
    • Recent Awards
    • Praise for the Exploratorium
    • Join Our Press List
  • Store

Masks and vaccinations are recommended. Plan your visit  

Visitor FAQ Buy Tickets Donate Today
Exploratorium
Exploratorium
  • Visit
    • Calendar
    • After Dark Thursdays
    • Buy Tickets
    • Exhibits
    • Museum Galleries
    • Artworks on View
    • Hours
    • Getting Here
    • Visitor FAQ
    • Event Rentals
    • Field Trips
  • Education
    • Professional Development Programs
    • Free Educator Workshops
    • Tools for Teaching and Learning
    • Learning About Learning
    • Community Programs
    • Educator Newsletter
  • Explore
    • Browse by Subject
    • Activities
    • Video
    • Exhibits
    • Apps
    • Blogs
    • Websites
  • About Us
    • Our Story
    • Partnerships
    • Global Collaborations
    • Explore Our Reach
    • Arts at the Exploratorium
    • Contact Us
  • Join + Support
    • Donate Today!
    • Membership
    • Join Our Donor Community
    • Engage Your Business
    • Attend a Fundraiser
    • Explore Our Reach
    • Thank You to Our Supporters
    • Donor & Corporate Member FAQ
    • Host Your Event
    • Volunteer
  • Store
Science Snacks
Science activity to estimate pi with the random tossing of toothpicks

Pi Toss

Randomly toss some toothpicks, with pi as your reward.

Asked to get an estimate for the famed mathematical constant pi (π), you might do what the ancient Greeks did: Divide the circumference of a circle by its diameter. Here you can estimate pi by a less conventional method: the random tossing of toothpicks.


Grade Bands: 
6-8
9-12
Subject: 
Mathematics
Keywords: 
probability
random
patterns
constant
pi
graph
exhibit-based
video
NGSS and EP&Cs: 
CCCs
Patterns
Cause and Effect
Scale, Proportion, and Quantity

  • Facebook logo
  • Reddit logo
  • Twitter logo


Video Demonstration


Tools and Materials

  • Paper
  • Ruler
  • Pencil
  • Toothpicks
  • Optional: protractor, graph paper

Assembly

Draw two parallel lines on your paper. Make sure the distance between the lines is exactly equal to twice the length of your toothpicks (click to enlarge the photo below).


To Do and Notice

One by one, randomly toss toothpicks onto the lined paper. Keep tossing until you’re out of toothpicks—or tired of tossing (see photo below).

Count the total number of toothpicks you tossed. Also count the number of toothpicks that touch or cross one of your lines. Do not count any toothpicks that missed the paper or poked out beyond the paper’s edge.

Divide the total number of toothpicks you threw by the number that touched a line.

This is your approximation of pi, or 3.14. How close did you come?


What's Going On?

Depending on how many toothpicks you tossed, your approximation of pi may or may not be impressively close. But if you had the patience to toss toothpicks all day—or all week—and then averaged your results, you’d get an increasingly accurate estimate.

This surprising method of calculating pi, known as Buffon’s Needle, was first discovered in the late 18th century by French naturalist Georges-Louis Leclerc, Comte de Buffon. Count Buffon was inspired by a then-popular game of chance that involved tossing a coin onto a tiled floor and betting on whether it would land entirely within one of the tiles.

The method can work on any lined surface (hardwood floors are handy) as long as the separation between the lines is greater than the length of the object thrown. A general expression of the approximation is below (click to enlarge):

In this Snack, we made the distance between the lines two times the length of a toothpick so we could just divide the total number of toothpicks tossed by the number that touched a line.

The proof of why this works involves a bit of meaty math, and makes a delightful diversion for those so inclined (see the Math Root below). In general, this experiment in geometric probability is an example of a Monte Carlo method, in which a random sampling of a system yields an approximate solution.


Going Further

You can get a better understanding of why this works using a graphical approach. The position of each toothpick can be described using just two coordinates: x, the distance from the farthest edge of a toothpick with length L to the nearest line, and θ, the angle (in radians) between the toothpick and the line (click to enlarge the figure below).

The symmetry of the problem allows us to only consider values of x between 0 and 2L, and values of θ between 0 and π/2. Notice that the coordinates that result in a toothpick crossing a line are those for which x is less than Lsinθ (click to enlarge the figure below).

Using a graph with θ on the vertical axis and x on the horizontal axis, plot the points for which there is a line crossing. As you add points, you’ll start to see a pattern (click to enlarge the photo below).

Divide the total area of possible toothpick positions, >2L * π/2, by the area taken up by the plotted line crossings. Once again, you’ll find you get a number roughly equal to pi.


Math Root

Geometrically, we can see that the toothpick will hit the line if 0 < x < Lsinθ for the angles 0 < θ < π/2 (click to enlarge the figure below).

Using calculus, we can integrate to find the area of the solutions that cross, and divide by the total area of possible solutions to find the probability of having a toothpick cross a line (click to enlarge the equation below).



Related Snacks

Science activity that models radioactive decay
Radioactive-Decay Model

Substitute coins for radiation.

Science activity that demonstrates calculating the acceleration of gravity using simple materials
Falling for Gravity

“g,” that’s interesting! Investigating gravity.

Science activity that explores how graphing can reveal patterns in data
Plot the Dot

Graphing can be a slippery slope to understanding.



Creative Commons License



This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Attribution: Exploratorium Teacher Institute

  • Education
    • Teacher Institute
    • Tools for Teaching and Learning
      • Science Snacks
        • Browse by Subject
        • Special Collections
        • Science Snacks A-Z
        • NGSS Planning Tools
        • Frequently Asked Questions



Connect with us!



  •   Sign up for our educator newsletter

  •   Follow #ExploEDU

  •   Teacher Institute YouTube

  •   Teacher Institute Facebook

  •  teacherinstitute @exploratorium.edu

Exploratorium
Visit
Join
Give

Pier 15
(Embarcadero at Green Street)
San Francisco, CA 94111
415.528.4444

Contact Us

  • Plan Your Visit
  • Calendar
  • Buy Tickets
  • Getting Here
  • Store
  • Event Rentals
  • About Us
  • Become a Member
  • Donate
  • Jobs
  • Volunteer
  • Press Office
  • Land Acknowledgment

Get at-home activities and learning tools delivered straight to your inbox

The Exploratorium is a 501(c)(3) nonprofit organization. Our tax ID #: 94-1696494
© 2023 Exploratorium | Terms of Service | Privacy Policy | Your California Privacy Rights |