Understanding the four-sided die (d4)
A four-sided die, written d4, is the pyramid-shaped (tetrahedral) die used in tabletop role-playing games such as Dungeons & Dragons. Its four faces are numbered 1, 2, 3 and 4, and on a fair die each face is equally likely, so a single roll has probability 1/4 = 0.25 (25%) for any given number. This calculator handles both a single d4 and pools of several d4 rolled together, giving the exact probability of any total.
The single-die facts
- Probability of each face: P(1) = P(2) = P(3) = P(4) = 1/4 = 25%.
- Mean (expected value): (1 + 2 + 3 + 4) / 4 = 10/4 = 2.5.
- Variance: for a fair die with s faces the variance is (s² − 1)/12; for s = 4 that is (16 − 1)/12 = 15/12 = 1.25.
- Standard deviation: √1.25 ≈ 1.118.
Rolling several d4 at once (NdN sums)
When you roll N four-sided dice and add them up, the total ranges from N (all ones) to 4N (all fours). The dice are independent, so there are exactly 4N equally likely ordered outcomes. The probability of a given sum S is simply (number of ordered ways to make S) ÷ 4N. This calculator counts those ways exactly using the generating function (x + x² + x³ + x⁴)N — no simulation or approximation is involved.
Because sums are built from many small dice, the distribution is triangular for two dice and bell-shaped for three or more (a consequence of the central limit theorem). For N dice the mean total is 2.5N and the standard deviation is √(1.25N).
Reference distribution for 2d4
Two four-sided dice have 4² = 16 equally likely outcomes and totals from 2 to 8:
- Sum 2: 1 way — 1/16 = 6.25%
- Sum 3: 2 ways — 2/16 = 12.5%
- Sum 4: 3 ways — 3/16 = 18.75%
- Sum 5: 4 ways — 4/16 = 25% (the most likely total)
- Sum 6: 3 ways — 3/16 = 18.75%
- Sum 7: 2 ways — 2/16 = 12.5%
- Sum 8: 1 way — 1/16 = 6.25%
The counts (1, 2, 3, 4, 3, 2, 1) add to 16, and the distribution is symmetric around the mean of 5.