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

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

ptrails-example.csv Detail

Click-by-click log showing every mouse click during the test

subnumtrialblocktypetypeclickshitsclicktimeposxposycorridrtrt2
aaaaa1Ppracticenumber114510104837511962962
aaaaa1Ppracticenumber22498192941212471471
aaaaa1Ppracticenumber42627510154550412941294
aaaaa1Ppracticenumber5369361050514136611955
aaaaa1Ppracticenumber647259100745114323323
aaaaa1testnumber11891212972741111131113
aaaaa1testnumber229348122026712436436
aaaaa1testnumber339925103126813577577
aaaaa1testnumber4410396113723814471471

View full file (186 rows) →

ptrails-summary-example.csv Summary

One row per trial with aggregate performance metrics

subblocktypetypedistancestudytimetotaltimemediantimetargsclicksacc
aaaaapracticenumber330.2859622749716.5460.666667
aaaaatestnumber3432.3111320347594.526270.962963
aaaaapracticeletter420.11512021912766.5441
aaaaatestletter3432.3137218647590.526261
aaaaapracticealternating353.57214341215428.5441
aaaaatestalternating3338.7412262023561826300.866667
aaaaapracticenumber528.07115801800650441
aaaaatestnumber3338.7410641619755526280.928571
aaaaapracticeletter498.01213901660612441

View full file (13 rows) →

ptrails-report-example.html

HTML report with formatted tables showing trial details and summary statistics with embedded CSS styling

<html>
<head>
<style>
body {
margin: 0;
padding: 0;
background-color: #FAFAFA;
font: 12pt "Tahoma";
}
* {

View full file (197 rows) →

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