w

Pi Calculator Tool

Calculate π to arbitrary decimal precision in your browser.

Advanced Features

Multi-threaded Computation

Enable Multi-threaded mode to use multiple Web Workers for faster computation. This mode:

  • Splits Machin formula terms across workers
  • Uses up to your CPU core count
  • Is only available in Target Digits mode (not consecutive detection)

Adjust the Worker Threads slider to control how many parallel workers are used.

Either Condition Mode

Select Either Condition to stop when:

  • The target digit count is reached, OR
  • Consecutive identical digits are detected

Whichever occurs first terminates the computation.

Performance Tips

  • For digit counts under 10,000: single-threaded spigot is fast enough
  • For 10,000+ digits: enable multi-threaded mode
  • Consecutive digit search may require computing many digits — be patient
  • Close other heavy tabs to free CPU resources

History

Each completed calculation is saved to history with:

  • Digit count
  • Elapsed time
  • Stop reason
  • Timestamp

History records can be copied or deleted individually.

Was this page helpful?