Trail Making Test
System Requirements
Minimum: 800×600
Recommended: 1280×800
Description
A test of visual search, attention, mental flexibility, and motor function where participants connect numbered or lettered circles in sequence as quickly as possible.
About This Test
The Trail-making test is used for detecting brain injury and assessing eye-hand coordination and procedural skill. The most common version is by Reitan (Halstead-Reitan Battery), but it dates back to tests like the Taylor Number Series and Partington Pathways test from WWII Army testing batteries. The PEBL version can use either Reitan's original configurations or automatically-generated sets of new problems (default and recommended). Auto-generated problems allow more runs for better reliability and run each problem in both forms (A and B) with reflected points to obscure similarity, providing better comparison between forms.
Test Details
ptrailsptrails.pbl🚀 Try Without Registration
Run this test immediately without creating an account. Data stays in your browser.
Researcher Access Benefits
To save configurations, upload data, use translations, track completion, and manage studies, please log in or register for an account.
Scientific Background
Original Task References:
These references describe the original task that this PEBL implementation is based on.
- Atkinson, T. M., & Ryan, J. P. (2008). The use of variants of the Trail Making Test in serial assessment: A construct validity study. Journal of Psychoeducational Assessment, 26(1), 42-53. doi:10.1177/0734282907301592
- Buck, K. K., Atkinson, T. M., & Ryan, J. P. (2008). Evidence of practice effects in variants of the Trail Making Test during serial assessment. Journal of Clinical & Experimental Neuropsychology, 30(3), 312-318.
PEBL-Specific References:
These studies used the PEBL version of this task.
- Piper, B. J., Li, V., Eiwaz, M. A., Kobel, Y. V., Benice, T. S., Chu, A. M., Olsen, R. H. J., et al. (2011). Executive function on the Psychology Experiment Building Language tests. Behavior Research Methods. doi:10.3758/s13428-011-0096-6
Data Output
ptrails-{subnum}.csv
Data Columns
| Column Name | Description |
|---|---|
| subnum | Participant ID |
| trial | Trial/problem number (with P suffix for practice) |
| type | Problem type: 1=Form A (numbers only), 2=Form B (alternating numbers/letters) |
| clicks | Total clicks so far in this trial |
| hits | Successful/correct clicks so far |
| clicktime | Time of click in milliseconds since program start |
| posx | X position of click |
| posy | Y position of click |
| corr | Correct click (1=yes, 0=no) |
| id | Target ID that was clicked |
| rt | Time since last click (ms) |
| rt2 | Time since last successful click (ms) |
Scoring and Interpretation
Form A (numbers): Total completion time (totaltime) for numbers-only sequencing.
Form B (letters+numbers): Total completion time for alternating sequence - measures cognitive flexibility and task switching.
B-A difference: Difference between Form B and Form A times indicates switching cost.
Efficiency: Accuracy (acc) should be 1.0 for perfect performance (clicks = targs).
Longer times and lower efficiency indicate impaired visual search, motor speed, or executive function.
Example Data
example-data.csv Detail
Click-by-click log showing every mouse click during the test
| subnum | trial | type | clicks | hits | clicktime | posx | posy | corr | id | rt | rt2 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 11 | 1P | 1 | 1 | 1 | 6876 | 991 | 533 | 1 | 1 | 1148 | 1148 |
| 11 | 1P | 1 | 2 | 2 | 7261 | 976 | 481 | 1 | 2 | 385 | 385 |
| 11 | 1P | 1 | 3 | 3 | 7709 | 955 | 522 | 1 | 3 | 448 | 448 |
| 11 | 1P | 1 | 4 | 4 | 8294 | 1060 | 571 | 1 | 4 | 585 | 585 |
example-data-summary.csv Summary
One row per trial with aggregate performance metrics
| sub | type | distance | studytime | totaltime | mediantime | targs | clicks | acc |
|---|---|---|---|---|---|---|---|---|
| 11 | 1 | 245.841 | 1148 | 1418 | 516.5 | 4 | 4 | 1 |
Sample data showing typical output format. Actual values will vary by participant.
About This Test
A test of visual search, attention, mental flexibility, and motor function where participants connect numbered or lettered circles in sequence as quickly as possible.
Category: Executive Function
Estimated Duration: 10 minutes
Available Translations: 8 languages
Documentation Sources:
Test description file, Test implementation, Parameter schema
Documentation Status: Complete