Triangular Distribution Generator & Visualizer

Generate samples using min/mode/max (PERT-like inputs), then visualize a density histogram and PDF curve.

Everything runs in your browser; nothing is uploaded. Share URLs contain settings only (no generated samples).

Secure mode uses CSPRNG. Seeded mode is for reproducibility, not secrecy.

Other languages 日本語 | English | Español | Français

What is a triangular distribution?

The triangular distribution models uncertainty when you can specify min, most likely (mode), and max values. It’s commonly used for quick estimates and PERT-like inputs.

PDF: for a≤x<c, 2(x-a)/((b-a)(c-a)); for c≤x≤b, 2(b-x)/((b-a)(b-c)). Mean: (a+b+c)/3. Variance: (a²+b²+c²-ab-ac-bc)/18.

You don’t need to enter personal information to use this tool.

Presets

Quickly set common estimation shapes (you can tweak values after applying).

Generator

Set min/mode/max, sample size, bins, and RNG. Then generate samples and export results.

Sample stats

Samples (first 20)


      

How to use this tool

Use this page when you know a minimum, a most likely value, and a maximum and need a fast bounded model.

Use in 3 steps

  1. Enter a, c, and b so that a ≤ c ≤ b.
  2. Generate a sample and compare the histogram with the theoretical PDF and summary statistics.
  3. Change only one input at a time to separate shifts in the center, skew, and total range.

How to read the result

The histogram shows the sampled shape. The theory panel shows the exact mean and variance implied by your inputs. If c moves toward a or b, the shape becomes visibly skewed.

Boundary checks

Frequently asked questions

What do a, c, and b mean?
a is the minimum, c is the mode or most likely value, and b is the maximum.
Why does the shape become skewed?
If c is not centered between a and b, more density shifts toward the side closer to c.
How is this different from Beta or PERT?
Triangular uses straight-line density between the bounds, while Beta or PERT smooth the curve and change the shape near the center and edges.
Why might another tool show different numbers?
Different defaults, units, sample sizes, or rounding rules can change the displayed mean, variance, or sampled histogram.
What should I do first on this page?
Start with a simple baseline, then change only the mode or one bound so the reason for each shift stays clear.