HomeProbability & StatisticsMonte Carlo Pi Calculation

🧪 Monte Carlo Pi Calculation

This simulation allows you to explore the Monte Carlo method for calculating Pi by simulating random point generation within a square and estimating the ratio of points falling inside a circle inscribed within that square. By adjusting parameters like the number of simulations, you can observe how the accuracy of the approximation changes.

Probability & Statistics2DModerate60 FPS
pi ↗ Open standalone
⚙ Under the hood

This simulation allows you to explore the Monte Carlo method for calculating Pi by simulating random point generation within a square and estimating the ratio of points falling inside a circle inscribed within that square. By adjusting parameters like the number of simulations, you can observe how the accuracy of the approximation changes.

Monte CarloRandom SamplingPi Estimation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)