Drunk Calculator
The drunk calculator is a joke: an ordinary four-function calculator that adds a random error to each answer, bigger at each level. It does not measure alcohol or blood alcohol.
Sources: MDN, Wikipedia Updated
Novelty
This is a joke calculator. It adds a random error to each answer, and the error grows with the level you set. Do not use it for real sums, and it has nothing to do with blood alcohol.
How the drunk calculator works
- Adjust the drunk level slider (0 = sober, 10 = wasted)
- Higher drunk levels cause more calculation "mistakes"
- Watch for funny messages when the calculator gets confused!
- Numbers might wobble, calculations might be off - just like real drunk math!
How the drunk calculator gets answers wrong
At level 0 it is a plain four-function calculator, with no randomness anywhere in the code. Above level 0, every result is multiplied by an error factor: 1 + (random − 0.5) × (level × 0.02).
The random number is drawn evenly between 0 and 1 from the browser's crypto.getRandomValues. So the error is centred on zero, every value in its range is equally likely, and the range grows in step with the slider.
How to work out the error range at a drunk level
- Take the true answer: 7 + 8 = 15.
- Find the spread: half of level × 2%, which is level per cent. At level 10 that is 10%.
- Apply it both ways: 15 × 0.90 = 13.5 and 15 × 1.10 = 16.5. The shown answer lands anywhere in that range, rounded to 4 decimal places.
| Level | Spread | 7 + 8 can show |
|---|---|---|
| 0 | none | 15 |
| 3 (Tipsy, the default) | ±3% | 14.55 to 15.45 |
| 5 | ±5% | 14.25 to 15.75 |
| 10 | ±10% | 13.5 to 16.5 |
The gap between the shown answer and 15 is an absolute error; the percent error calculator turns it into a percentage.
Other ways the drunk calculator misbehaves
Above level 4, each key press has a level × 2% chance of typing the digit next to the one you pressed. Above level 7, each answer also has a 1 in 10 chance of up to 5 more added or taken away, which is why high levels sometimes show answers far from the real sum.
From level 6 the display may tilt, and from level 3 it shows the occasional message. None of this changes the maths at level 0.
What the drunk calculator is not for
Every answer above level 0 is wrong on purpose, so do not use it for anything where the number matters. For real arithmetic with the working shown, use the percentage calculator or the other arithmetic calculators. More odd tools are on the more tools page.
Drunk Calculator: FAQ
Does the drunk calculator have anything to do with alcohol?
No. It does not estimate blood alcohol or tell you whether you can drive. The level only sets how wrong the arithmetic gets.
How do I get a correct answer?
Set the slider to 0. At level 0 no randomness is applied. For a list of numbers, the sum calculator adds them properly.
Sources
- MDN Web Docs: Crypto.getRandomValues() — the browser's random number source used for the errors (checked October 16, 2026)
- Wikipedia: Continuous uniform distribution — every value in the error range is equally likely (checked October 16, 2026)