Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Random Gaussian number generator

Make random numbers from a normal (bell-curve) distribution with your mean and standard deviation, then check the sample.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Check where a value sits on the bell curve with the z-score calculator, or analyze your numbers with the standard deviation calculator.

What it does

This generator makes random numbers that follow a normal (Gaussian) distribution, the bell curve, with the mean and standard deviation you choose. Use it to make test data, simulate measurements such as heights or test scores, or show students what a normal sample looks like. Below the numbers you get a check: the sample's own mean and standard deviation, and how many values landed within 1 and 2 standard deviations.

How it's calculated: the Box–Muller transform

Take two independent uniform random numbers U₁ and U₂ between 0 and 1. Box and Muller (1958) showed that

Z₀ = √(−2 ln U₁) × cos(2π U₂)    Z₁ = √(−2 ln U₁) × sin(2π U₂)

are two independent standard normal numbers (mean 0, standard deviation 1). Each one is then scaled to your settings:

x = μ + σ × Z

The uniform numbers are built from 53 random bits from your browser's cryptographic generator, and U₁ is never exactly 0, so ln U₁ is always defined.

The sample statistics are worked out from the rounded numbers you see, so you can paste them into a spreadsheet and get the same answer. The sample standard deviation divides by n − 1:

s = √( Σ(xᵢ − x̄)² ÷ (n − 1) )

Worked example

With μ = 100 and σ = 15 (the scale used for many IQ tests), about 68.27% of values fall between 85 and 115, about 95.45% between 70 and 130, and about 99.73% between 55 and 145. With 20 numbers, your sample mean will usually be within 15 ÷ √20 ≈ 3.35 of 100. That figure is the standard error. A sample of 1,000 narrows it to about 0.47.

RangeShare of a normal distribution
μ ± 1σ68.27%
μ ± 2σ95.45%
μ ± 3σ99.73%

Limitations

  • A small sample won't look like a perfect bell curve. Its mean and standard deviation will differ from μ and σ by chance, and that's expected.
  • Normal numbers can be any size, so a few may fall far from the mean. If your quantity can't be negative, such as weight, a normal model may not fit when σ is large compared with μ.
  • Up to 10,000 numbers at a time, rounded to 0 to 10 decimal places.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • σ = 0 gives the mean every time: 5.00, 5.00, 5.00 ✓
  • Standard error for σ = 15 and 20 numbers: 15 ÷ √20 = 3.354 ✓
  • Normal curve: 68.27% expected within ±1σ ✓
  • Edge: a negative standard deviation is rejected ✓
  • Edge: 10,001 numbers is over the limit ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How do I generate normally distributed random numbers?

Use the Box–Muller transform: from two uniform random numbers U₁ and U₂, Z = √(−2 ln U₁) × cos(2πU₂) is standard normal. Multiply by σ and add μ. This page does that for you.

How do I make normal random numbers in Excel?

=NORM.INV(RAND(), mean, sd) gives one normal value per cell. Or generate them here and use "New lines" to paste a column.

Why isn't my sample's standard deviation exactly what I asked for?

Every random sample differs a little from the distribution it came from. The bigger the sample, the closer its mean and standard deviation get to μ and σ.

What is a Gaussian distribution?

Another name for the normal distribution, the symmetric bell curve described by its mean and standard deviation. It's named after Carl Friedrich Gauss.

Related calculators