labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Developmental Psychology
      • Linguistics
      • Clinical & Digital Health
      • Educational Psychology
      • Cognitive & Neuro
      • Social & Personality
      • Arts Research
      • Sports & Movement
      • Marketing & Consumer Behavior
      • Economics
      • HCI / UX
      • Commercial / Industry Use
    • Labvanced Blog
  • Technology
    • Feature Overview
    • Desktop App
    • Phone App
    • Precise Timing
    • Experimental Control
    • Eye Tracking
    • Multi User Studies
    • More ...
      • Questionnaires
      • Artificial Intelligence (AI) Integration
      • Mouse Tracking
      • Data Privacy & Security
      • Text Transcription
      • Heart Rate Detection (rPPG)
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Cognitive Tests
    • Sample Studies
    • Public Experiment Library
  • Pricing
    • Pricing Overview
    • License Configurator
    • Single License
    • Research Group
    • Departments & Consortia
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
  • Appgo to app icon
  • Logingo to app icon
Research
Publications
Tasks
Researcher Interviews
Use Cases
Labvanced Blog
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
Publications
Tasks
Researcher Interviews
Use Cases
Labvanced Blog
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
  • Publications
  • Tasks
  • Researcher Interviews
    • Comparing Online Webcam- and Laboratory-Based Eye-Tracking for the Assessment of Infant Audio-Visual Synchrony Perception
    • Finding Goldilocks Influencers- How Follower Count Drives Social Media Engagement
    • The semantic interference in 9- to 36-month old infants: An at-home eye-tracking study on infants' lexical abilities
    • Song Is More Memorable Than Speech Prosody - Discrete Pitches Aid Auditory Working Memory
    • Orthographic Relatedness and Transposed-word Effects in the Grammatical Decision Task
    • Emotion Modulation through Music after Sadness Induction
    • Children Learning Non-Adjacent Dependencies
    • Personality Hear in Noise
    • Are All Eyes the Same?
    • Verbal Priming in Infants
  • Use Cases
    • Research Areas

      • Developmental Psychology
      • Linguistics
      • Clinical & Digital Health
      • Educational Psychology
      • Cognitive & Neuro
      • Social & Personality Psychology
      • Arts, Music & Digital Media
      • Sports & Movement Psychology
      • Marketing & Consumer Behavior
      • Economics
      • HCI / UX
      • Commercial / Industry Use
    • Researchers

      • Students
      • Researchers
      • Groups
  • Blog
    • Generative AI in Educational Psychology Research
    • Best Practices for Webcam Eye Tracking Research with Infants and Toddlers
    • Types of Stimuli in Delay Discounting Tasks
    • Delay Discounting Task
    • Mindfulness-based Self-Efficacy Scale - Revised (MSES-R)
    • Team Dynamics and Research
    • Stroop Task | History, Task Description, Data and Psychology
    • BKB Sentence Test | Procedure & Research
    • Dyadic Effect in Psychology | Overview & Research
    • Navon Task: Task Setup, Research & More
    • Peer-reviewed Webcam Eye Tracking
    • Corsi Block-Tapping Test: From cubes to online design
    • Dot-Probe Task | Full Guide
    • Types of Memory: Concepts to Research
    • Ultimatum Game
    • The Visual Search Task
    • Attention Tasks in Psychology Research
    • Generalized Anxiety Disorder Scale-7 (GAD-7)
    • Decision Making Tasks in Psychology
    • The Obsessive Compulsive Inventory – Revised (OCI-R)
    • Assessing Executive Function Skills | Tasks & Batteries
    • The Flourishing Scale (FS) Questionnaire
    • Labvanced and the Spirit of Open Science
    • The Psychology of the Incubation Effect
    • The Bouba-Kiki Effect and Task
    • Lexical Decision Task: Accessing the Mental Lexicon
    • Image Description Task and Game with a Chatbox
    • Smooth Data Collection Process | 6 Tips for Research
    • Music Research with Labvanced
    • 7 Classic Cognitive Tasks & Examples
    • Mental Rotation Test | A Spatial Processing Task
    • XY Coordinates in Labvanced
    • 5 Famous Social Psychology Experiments
    • The Power of Remote & Infant-friendly ET
    • The Wisconsin Card Sorting Test
    • 13 Head Tracking Use Cases for Research
    • 5 Tips for Improving Your Perception Skills
    • Introduction to the Preferential Looking Paradigm
    • Researching Cognition in Migraine & Headache Patients
    • The Landing Page - More Info Than You Think!
    • Headphone Checks - Then and Now
    • Sample Studies - Helpful Templates and Demos!
    • What Is Neuroplasticity?
    • 15 Famous Developmental Theories
    • Visual Attention and Eye Tracking
    • What Is Eye Tracking Technology?
    • Eye Tracking in Applied Linguistics Research
    • 10 Popular Linguistic Experiments
    • The Placebo Effect
    • 6 Key Concepts of Experimental Design
    • Conditioned Play Audiometry
    • Ebbinghaus Illusion
Flanker task preview for online and inlab use.

Flanker Task

The Flanker Task is a widely used cognitive control paradigm that measures selective attention and inhibitory control. Participants must respond to a central target stimulus while ignoring surrounding distracting stimuli that may be congruent or incongruent.

Table of Contents

  • Task Format
  • Data Collected
  • Technology
  • Customization
  • Recommended Use

Task Format | Flanker Task Online & In-Lab

In the Flanker Task, participants are presented with a row of five symbols displayed briefly in the center of the screen. The central symbol is the target, while the two symbols on either side act as distractors called flankers. The participant’s task is to identify the direction of the central arrow as quickly and accurately as possible while completely ignoring the flanking symbols. Each session begins with a practice block that allows participants to become familiar with the task structure and response rules before proceeding to the main trials.


Test it out!

Two versions of the task are available, each optimized for the type of device and input method being used:

Desktop Version

In the desktop version, participants view a horizontal array of five symbols presented at the center of the screen, with the central arrow serving as the target stimulus. Responses are made using the keyboard. Participants press the D key when the central arrow points to the left and the K key when the central arrow points to the right. Each trial begins with a fixation cross displayed in the center of the screen. After the fixation cross disappears, the stimulus array is shown for 200 ms, followed by a response window of 1800 ms during which participants must respond. If no response is made within this window, the trial is recorded as a ‘no response’ and the task advances to the next trial.


Mobile Version

The mobile version is optimized for touchscreen interaction. Participants see the same horizontal array of five symbols, with the central arrow as the target and the surrounding symbols serving as flankers. Responses are made by tapping on on screen buttons. Participants tap the < button when the central arrow points left and the > button when the central arrow points right. As in the desktop version, each trial starts with a fixation cross, followed by a 200 ms presentation of the stimulus array and a response window of 1800 ms. If the participant does not respond within this window, the trial is logged as a ‘no response’.

Participants in both versions are instructed to respond as quickly and accurately as possible while focusing only on the central arrow and ignoring the flankers. A practice block of 24 trials is included before the main task to help participants familiarize themselves with the timing and response mapping.

Flanker Task Metrics and Data Collected

The Flanker Task captures a range of behavioral measurements that reveal how attention is focused on a target stimulus while suppressing interference from surrounding distractors. The variables recorded enable researchers to measure reaction times, response accuracy, congruency. These metrics help quantify attentional control, conflict monitoring, and response inhibition. All variables can be viewed and customized within the task’s Variables Tab.

Below are examples of variables collected in the Labvanced version of the Flanker Task:

Variable NameDescription
reaction_timeTime taken in milliseconds by the participant to respond to the stimulus presented.
choiceResponse of the participant (Desktop: D or K, Mobile: < (Left) or > (Right)
flanker_effectDifference in mean RT between incongruent and congruent trials (flanker_effect = avg_incongruent_RT - avg_congruent_RT)
avg_congruent_RTMean of reaction times of congruent trials with accurate response
avg_incongruent_RTMean of reaction times of incongruent trials with accurate response

Data preview of behavioral measures and responses collected using the Flanker Task template for online research.

Data table showing individual trial level outputs from the online Flanker Task in Labvanced.


Flanker Task

This study measures selective attention and inhibitory control using the Flanker Task. Participants respond to the direction of a central arrow while ignoring surrounding distractors. Reaction time and accuracy are recorded as performance indicators.



Technology Driving the Flanker Task for Online & In-Lab Research

Labvanced includes several technologies that make the Flanker Task highly accurate, flexible, and suitable for both laboratory and online research:

  • High Precision Timing: The Flanker Task relies on millisecond level timing to detect subtle differences in reaction time between trial types. Labvanced ensures precise stimulus presentation and response logging for reliable cognitive measurement.

  • Web Based and Desktop Deployment: The task can be administered remotely through a browser or run in controlled lab settings using the desktop app, supporting both large scale data collection and in lab experiments.

  • Webcam Eye Tracking Compatibility: Optional webcam based eye tracking can be added to examine attentional focus, fixation patterns, and distraction effects during stimulus presentation.

  • Longitudinal Study Support: The Flanker Task can be deployed across multiple sessions to track changes in attentional control over time while maintaining consistent task parameters.

  • Flexible Input Handling Across Devices: Labvanced supports both keyboard based and touchscreen based input. This allows the same experimental design to be deployed across desktops, tablets, and mobile devices while preserving data consistency.

  • Event-based Data Logging: Every stimulus event and participant response is logged with precise timestamps, enabling detailed trial level analysis of reaction times, missed responses, and error patterns.

  • Optional Integration With Additional Data Streams: The Flanker Task can be combined with other Labvanced supported technologies such as webcam eye tracking, external hardware via LSL, or concurrent tasks to create richer multimodal study designs when required.

A person looking at a webcam eye tracking task created with Labvanced during a flanker task

Webcam Eye Tracking

Capture gaze patterns and visual attention with built-in, code-free and peer-reviewed webcam eye-tracking.

An icon of a clock symbolizing accurate reaction times from this flanker task template

Timing Precision

Capture reaction times, task performance, and more with millisecond accuracy for time-sensitive tasks.

An image of the desktop app of Labvanced used to modify the flanker task template

Desktop App

Run in-lab studies using the Desktop App, compatible with EEG and other LSL-connected lab hardware.

Customization of the Flanker Task

There are many ways to adapt this Flanker Task template to meet specific research questions. Below are several customization themes researchers commonly explore when modifying this task.


Visual Layout and Display Properties

The central target arrow and surrounding flanker symbols are rendered as individual on screen objects. Each object can be edited directly in the editor to adjust visual properties such as size, color, opacity, and alignment using the Object Properties panel. Object visibility can also be controlled dynamically through Events, enabling stimuli to appear or disappear conditionally based on trial state, response timing, or participant performance.


Condition Assignment and Trial Flow

In the Flanker Task, different types of trials are defined by conditions that specify which stimulus setup appears on each trial. You could use the Trials & Conditions panel to determine the trial type like the direction of the central arrow and whether the surrounding flankers match or conflict with it. You could further utilize the event system to read the active condition on each trial and update the stimuli accordingly.


Input Handling and Response Evaluation

Participant responses are captured through key presses or button selections. These inputs are evaluated in real time to determine response direction and response validity. Response evaluation logic can be modified by editing the conditional checks within Events, allowing you to change what counts as a correct response, how errors are handled, or whether multiple response attempts are allowed within a trial.


Trial Progression and Feedback Control

The progression from one trial to the next is managed through event based transitions rather than fixed timing alone. This makes it possible to alter how and when feedback is shown, how long feedback remains visible, and under what conditions the task advances. Stimulus duration, inter stimulus intervals, and feedback timing can be modified to match the needs of the study. These can be modified through Delayed Action (Time Callback) or frame specific timing controls.


If you need help customizing this task, please feel welcome to write to us and ask:


Contact Us

Recommended Use and Applications of the Flanker Task

The Flanker Task is widely used across research, clinical, and performance settings to measure selective attention and inhibitory control. It is a validated measure of interference and cognitive control, with extensive evidence supporting its use.

  • Healthy Adult Cognitive Research: Extensively used to investigate attentional selection and executive control processes in typical adult populations, including studies of how people suppress distracting information and resolve response conflict.

  • Developmental and Lifespan Research: Used to characterize developmental changes in inhibitory control and selective attention from childhood through adulthood, and to assess how these processes evolve with age.

  • Attention and Inhibitory Control Disorders: Frequently employed in studies of ADHD and other conditions with inhibitory control deficits, showing increased interference effects in clinical groups relative to controls.

  • Cognitive Neuroscience and Brain Function Studies: Applied in neuroimaging and electrophysiological research to study brain mechanisms of conflict monitoring and cognitive control, often highlighting the role of the anterior cingulate cortex and related networks.

  • Applied Cognitive Performance and Interference Studies: Used in research on how factors such as physical exertion or multitasking influence attention and conflict resolution, offering insight into cognitive flexibility under varied conditions.


Sign Up


References

  • Mulvihill, A., Matthews, N., Chidley, K., Macmahon, S., Armitage, K. L., Sherlock, D., Dux, P. E., & Carroll, A. (2025). The meta-attention knowledge questionnaire (MAKQ): A new instrument for investigating meta-attention in a young adolescent sample. Metacognition and Learning, 20(1).

  • Kinder, K. T., Buss, A. T., & Tas, A. C. (2022). Tracking flanker task dynamics: Evidence for continuous attentional selectivity. Journal of Experimental Psychology: Human Perception and Performance, 48(7), 771.