Reaction Time Test
Time your reaction to a colour change or a beep, or take the choice test and get your own Hick's law slope: how many milliseconds each doubling of the choices costs you.
Reaction test
Sound is off until you press this button or start a try. Play the test beep first to check that you hear it and that the level is comfortable.
The time includes delays of your screen, input device and browser, and in sound mode of the audio output (wireless headphones add the most). Results differ between devices. This is not a laboratory or medical measurement.
Your result
| Try | Time |
|---|
Your result (choice test)
| Boxes | Bits | Median | Line | Wrong |
|---|
History on this device
No runs saved yet. Finish a run and it appears here.
| Date | Mode | Result | Device mark |
|---|
Delete all saved runs and personal bests on this device?
Nothing you type or record is uploaded. The history is kept only in this browser on this device, and you can delete it with “Clear history”. The page makes one calm colour change per try, with no flashing.
Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves the test type, your last 10 runs with their device mark (input, screen Hz) and best colour and sound times on this device; Clear history removes them.
Added · Updated : new choice test with your own Hick's law slope, device mark on results and history, age norms with source
How to use the reaction time test
Simple test: Colour change or Sound
- Choose Colour change or Sound. In sound mode, press “Play test beep” first and set your device volume to a comfortable level.
- Press the large area to start a try: click it, tap it, or press Space or Enter. It says “Wait...”.
- After a random pause of roughly 1.5 to 5 seconds the area turns green and says “Now! Press” (in sound mode a short beep plays instead). React as fast as you can with the same input; your time in milliseconds appears.
- Press again for the next try. Pressing before the signal gives “Too soon”; a reaction under 100 ms gives “Too fast”. Neither is counted, and the try is repeated.
- After five valid tries you see every try, the average, the median and the best time. “Try again” starts a new run.
Choice test
- Choose Choice and press Start. A run has eight short blocks of four counted tries: 1, 2, 4 and 8 boxes, then 8, 4, 2 and 1.
- When a box lights up, press its number key (top row or number pad), or tap or click the box. The next try follows on its own; a wrong box, an early press or a reaction under 100 ms is not counted. Esc pauses, and between blocks you press “Start block”.
- At the end you see the median for each number of boxes, a chart with the fitted line and your slope in milliseconds per bit.
How it works
Every try draws a new random waiting time between 1.5 and 5 seconds, so there is no rhythm to
learn. In colour mode the page changes the colour inside a requestAnimationFrame
callback, which runs just before the browser draws a frame, and starts the timer at the
beginning of the next frame, close to the moment the new colour is first drawn. A web page
cannot know when pixels really light up, so that screen delay stays in your result.
Your press is read from the pointerdown or keydown event, the moment
you press down, not the release. The event timestamp uses the same clock as the timer, so the
reaction time is the press timestamp minus the start timestamp, rounded to a whole millisecond.
Holding a key down counts once. In sound mode the beep (1,000 Hz, about 0.16 seconds, fixed
moderate level) is scheduled on the audio clock about 80 ms ahead, and the start time is that
scheduled moment; the delay of the audio output is not compensated.
A press during the wait cancels the pending signal. A try is also cancelled if you hide the tab or press Esc, and discarded as “No reaction” if nothing happens within 4 seconds. The average is the sum of the five times divided by five; the median is the middle of the five sorted times; both are rounded to a whole millisecond.
In the choice test a box lights up 1 to 2.5 seconds after the previous message, with the same
frame timing as colour mode, and every box of a block is equally likely. Going from 1 to 8
boxes and back down spreads practice and tiredness evenly. For each number of boxes
n the page takes the median of your eight counted times (whole milliseconds) and
fits the line t = a + b × log2(n) through the four medians by least
squares:
b = Σ(x − x̄)(t − t̄) / Σ(x − x̄)²
and a = t̄ − b × x̄
Here x = log2(n) is the information of the choice in bits (0 to 3 for 1 to 8 boxes), t the median, and x̄ and t̄ their means. The slope b is your time per bit and a the line's value for one box, both rounded to a whole millisecond; r² shows how well the line fits (1 = all four medians on it).
The device mark of a run, such as “Keyboard · 60 Hz”, is the input you answered with most often and the screen refresh rate, measured from the browser's frame times while you waited and shown as 60, 120, 144 Hz and so on when it is within 3 % of such a rate. Below 50 Hz or with uneven frames the result says that the times are less precise.
Examples
Example 1: steady. Tries 245, 232, 261, 228 and 254 ms. The sum is 1,220, so
the average is 1,220 / 5 = 244 ms. Sorted: 228, 232, 245, 254, 261, so the median
is 245 ms and the best is 228 ms.
Example 2: one slow try. Tries 310, 285, 402, 295 and 288 ms. The sum is
1,580, so the average is 316 ms. Sorted: 285, 288, 295, 310, 402, so the median is
295 ms. The single 402 ms try lifts the average by 21 ms above the median.
Example 3: a choice run. Medians of 262, 330, 385 and 455 ms for 1, 2, 4 and
8 boxes give x̄ = 1.5 and t̄ = 358. The products of the
deviations add up to 317 and the squared deviations of x to 5, so b =
317 / 5 = 63.4, shown as 63 ms per bit, and a = 358 − 63.4
× 1.5 = 262.9, shown as 263 ms, with r² = 0.998.
What reaction time is and what the test measures
Simple reaction time is the time between a signal and the start of your response when you know what the signal will be and what to do. It adds up from several steps: the sense organ turns light or sound into nerve signals, the brain notices the signal and decides to act, a command travels to the muscles, and the finger presses. Choice reaction time, where different signals need different responses, is longer. The result here also includes the technical delays described below.
Hick (1952) and Hyman (1953) found that choice reaction time grows in a straight line with the information in the signal: for n equally likely signals, t = a + b × log2(n), so each doubling of the choices adds about the same time b. The slope is read as the time needed to process one bit, the intercept a as the parts that do not depend on the choice (Sleimen-Malkoun et al., 2013). Slopes of about 30 to 40 ms per bit are commonly reported; when signals and keys do not match in position, the slope gets steeper.
What is a good reaction time?
Laboratory studies put the average simple reaction time at about 180 to 200 ms for a light and about 140 to 160 ms for a sound (Jain et al., 2015, summarising earlier work). One reason given for the difference is that a sound reaches the brain in about 8 to 10 ms and a light in about 20 to 40 ms. Values vary a lot between people, and from try to try in the same person.
With age the two kinds slow differently: in large studies, from 20 to 65 simple reaction time grows by about 20 to 40 ms and choice reaction time by about 90 to 120 ms (Woods et al., 2015). In their own test of 1,466 adults aged 18 to 65, answering with a mouse in front of a 60 Hz screen, choice reaction time rose by 2.8 ms per year, mostly in choosing and making the response. These are averages: one result says nothing about a person's age or health.
A web page measures more than the human part. When a robot pressed keys at known moments, browser-based test platforms recorded reaction times about 80 ms longer than the real ones on average, and up to about 100 ms longer on some setups (Anwyl-Irvine et al., 2021). So there is no pass mark for this page: compare your own medians and slopes from the same setup.
Average, median and best
The average uses every try but is pulled by an odd one, such as a try where you looked away. The median is the middle try, so it is steadier. If the two are close, the run was consistent; if the average is much higher, one slow try is the reason. The best time shows what is possible on your setup, but with five tries it is the least stable number.
Getting comparable results
Your result is the human reaction plus the delays of your setup, and both change. These parts of the setup add time:
- A 60 Hz screen draws a new image every 16.7 ms, a 144 Hz screen every 6.9 ms, so the colour can appear up to one interval late. Some screens, especially televisions with image processing, hold the picture for tens of milliseconds more.
- Mice and keyboards report at a fixed rate, for example 125 times per second, which can add up to 8 ms. Touchscreens usually add more.
- Power saving can make the browser draw fewer frames per second.
- In sound mode, wired headphones add little, while wireless ones often add 100 ms or more.
The device mark lets you compare like with like. A delay that is the same on every try lifts the whole choice line but not its slope, so the slope depends less on your setup than single times do. With a mouse or a touch screen, though, moving to the box takes time that depends on where the box is, so number keys give the cleanest slope.
Your own state matters too. Lack of sleep slows responses and makes them less regular, and distractions or rushing add slow tries. Alcohol slows reactions; caffeine can modestly improve alertness in some people, mainly when tired. The first tries are often slower, and after a few runs the improvement levels off.
So use the same device, input and, in sound mode, the same headphones every time. Close other tabs and programs, do one practice run first, and compare the medians of several runs rather than single tries. Do not guess the signal: an early press only costs you a repeat.
Frequently asked questions
Why is my sound result different from my colour result?
The human part is faster for sound, but the audio output adds its own delay, small with wired headphones and large with wireless ones. The modes are not directly comparable.
Why does the page say “Too fast”?
A reaction under 100 ms is faster than people can react to an unexpected signal, so it is almost always a guess made before the signal. Such tries are not counted and are repeated.
Is this a medical or scientific test?
No. It is a simple self-test for curiosity and comparison. It cannot diagnose anything; if you are worried about your health, talk to a doctor.
Sources
- Jain A, Bansal R, Kumar A, Singh KD (2015). A comparative study of visual and auditory reaction times on the basis of gender and physical activity levels of medical first year students. International Journal of Applied and Basic Medical Research 5(2): 124–127. The laboratory values for light and sound and why sound is faster.
- Anwyl-Irvine A, Dalmaijer ES, Hodges N, Evershed JK (2021). Realistic precision and accuracy of online experiment platforms, web browsers, and devices. Behavior Research Methods 53(4): 1407–1425. How much browser-based tests add to the measured reaction time.
- Woods DL, Wyma JM, Yund EW, Herron TJ, Reed B (2015). Age-related slowing of response selection and production in a visual choice reaction time task. Frontiers in Human Neuroscience 9: 193. How simple and choice reaction time change from age 20 to 65.
- Sleimen-Malkoun R, Temprado J-J, Berton E (2013). Age-related dedifferentiation of cognitive and motor slowing: insight from the comparison of Hick–Hyman and Fitts' laws. Frontiers in Aging Neuroscience 5: 62. Hick's law, what its slope and intercept mean, and the usual slopes.