Trail Making Test

Executive Function Duration: ~10 minutes
Trail Making Test screenshot

System Requirements

🖥️
Screen Size:
Minimum: 800×600
Recommended: 1280×800
🖱️
Mouse required (touchpad OK)

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

Test ID:
ptrails
Main File:
ptrails.pbl
Parameters:
13 configurable parameters
Languages:
German English Spanish French Italian Dutch Portuguese Slovenian

🚀 Try Without Registration

Run this test immediately without creating an account. Data stays in your browser.

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

Output File:
ptrails-{subnum}.csv
Format:
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

Primary measures:

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

subnumtrialtypeclickshitsclicktimeposxposycorridrtrt2
111P11168769915331111481148
111P122726197648112385385
111P133770995552213448448
111P1448294106057114585585
example-data-summary.csv Summary

One row per trial with aggregate performance metrics

subtypedistancestudytimetotaltimemediantimetargsclicksacc
111245.84111481418516.5441

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