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
N-back (2-back) task preview for online and inlab use.

N-back (2-back) Task

The N-Back Task is a cognitive paradigm used to assess working memory and continuous updating of information. Participants must monitor a stream of stimuli and decide whether the current stimulus matches one presented a specified number of steps earlier.

Table of Contents

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

Task Format | N-back Task Online & In-Lab

The N-Back Task is a continuous performance task used to assess working memory. In this task, participants view a sequence of stimuli presented one at a time and must decide whether the current stimulus matches the one shown a fixed number of steps earlier in the sequence. Task difficulty is determined by the value of N, with higher values placing greater demands on working memory. In the 2-back version of the task, participants compare each stimulus to the one presented two trials earlier.



Test it out!

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

Desktop Version

In the desktop version, letters are presented one at a time in the center of the screen. Participants decide whether the current letter matches the letter shown two trials earlier. Responses are made using the A and L keys, with the match and non-match key mapping counterbalanced across participants. Timing parameters and response mappings can be adjusted in the task settings.


Mobile Version

In the mobile version, letters are presented sequentially in the center of the screen. Participants indicate whether the current letter matches the one shown two trials earlier by tapping clearly labeled on-screen buttons such as “Match” and “Non-Match.” This version is optimized for touchscreen interaction across mobile devices.

At the beginning of each session, participants complete a short practice block to learn the task rules and response mapping before proceeding to the main task.

Outcome Measures & Performance Indicators of the N-back Task

The N-Back Task captures a range of behavioral measurements that reveal how information is actively maintained and updated in working memory. The variables recorded enable researchers to assess reaction times, response accuracy, hit rates, false alarms, and performance differences across load conditions. These measures help quantify working memory capacity, updating efficiency, and sensitivity to cognitive load. 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 N-back Task:

Variable NameDescription
correct_rejectionCorrect non-response to a non-target (clicks "different" to a non-target) ((1= correct rejection, 0= no correct rejection)
displayed_letterLetter displayed to the participant in the current trial
false_alarmIncorrect response to a non-targets (wrongly clicks “same” to a non-target) (1= false alarm, 0= no false alarm)
hitCorrect response to a target stimuli (correctly clicks “same” to a target) (1= hit, 0= no hit)
missMissed response to a target (clicks "different" to a target) ((1= miss, 0= no miss)
reaction_timeTime taken in milliseconds by the participant to respond to the stimulus presented.
responseResponse given by the participant ("Different"/ "Same" button for Mobile-based task or keypress recording for Desktop-based task)

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

Data table showing individual trial level outputs from the online N-back (2back) Task in Labvanced.


N-back (2back) Task

This task examines working memory capacity using the 2-back task. Participants complete a series of trials where they must indicate if the current stimulus matches the one presented two steps earlier. Training trials and immediate feedback are provided to support learning and engagement.



Technology Driving the N-back Task for Online & In-Lab Research

The N-Back Task requires precise timing, flexible condition handling, and reliable response recording, all of which are supported within the Labvanced platform:

  • High Precision Timing: The N-back Task relies on millisecond level timing to detect subtle differences in reaction time across trial types. Labvanced ensures precise stimulus presentation and response logging for reliable cognitive measurement, even in online testing environments.

  • Frame Based Stimulus Control: Stimulus presentation can be precisely timed using frame durations and event logic, ensuring consistent delivery across trials.

  • Cross Device Input Support: Works seamlessly with mouse, keyboard, and touchscreen devices. This makes it accessible across desktops, laptops, tablets, and mobile phones. This flexibility allows participants to complete the task using whichever device is available.

  • Desktop App Mode: A desktop application can be used when stronger control over the task or hardware integration is required. This mode supports offline testing and compatibility with equipment such as EEG and other LSL based systems.

  • Longitudinal and Remote Testing: The task can be delivered consistently across multiple time points, which is ideal for monitoring changes in attentional bias over longer intervals. Remote testing options make it possible to reach wider and more diverse participant samples while maintaining data integrity.

  • Webcam Eye Tracking: The task can be combined with webcam based eye tracking to capture gaze direction, fixation duration, and visual scanning patterns during the task.

A person looking at a webcam eye tracking task created with Labvanced during a nback 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 nback task online 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 nback task template

Desktop App

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

Customization of the N-back Task

There are many ways to adapt this N-Back Task template to meet specific research questions. Below are a few themes researchers commonly ask when it comes to modifying this task.


Stimulus Content and Presentation

The stimuli used in the task can be replaced or modified by editing the visual objects directly in the editor. Researchers can use letters, numbers, images, or spatial locations and adjust their size, position, or appearance through the Object Properties panel


Memory Load and Condition Logic

Different N levels are defined as task conditions that determine how far back the current stimulus should be compared. These condition values are read during each trial to control match logic and stimulus evaluation. You can define the value of n by simply editing the events that reflect the condition structure.


Response Handling and Scoring

Participant responses are captured through key presses or button taps and evaluated using event logic. Researchers can modify what counts as a correct response or how non responses are handled. The event system manages all triggers and actions. Simple modifications to the relevant events allows the implementation of the desired response mapping and accuracy criteria.


Trial Flow and Practice Design

Practice trials are typically implemented as a separate block, allowing researchers to adjust trial count, feedback presence, and progression rules independently from the main task. Frame navigation and block transitions can be customized by editing events and frame logic.


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


Contact Us

Recommended Use and Applications of the N-back Task

The N-Back Task is widely applicable across research, clinical, and applied settings, making it valuable for assessing working memory and cognitive load across diverse populations.

  • Working Memory and Cognitive Control Research: Commonly used in cognitive psychology and neuroscience studies to investigate working memory updating, attentional control, and executive functioning in healthy adults.

  • Developmental and Lifespan Research: Used to examine how working memory capacity changes across childhood, adolescence, adulthood, and aging by adjusting task difficulty through different N levels.

  • Clinical and Neuropsychological Populations: Applied in research involving conditions such as ADHD, schizophrenia, depression, and neurological disorders where working memory deficits are commonly observed.

  • Training and Cognitive Load Studies: Frequently used in studies exploring cognitive training, mental workload, and task difficulty manipulation due to its ability to systematically vary memory demands.

  • Neuroimaging and Brain Function Research: Widely paired with neuroimaging and electrophysiological methods to study neural correlates of working memory and cognitive effort.


Sign Up


References

  • Kirchner, W. K. (1958). Age differences in short-term retention of rapidly changing information. Journal of experimental psychology, 55(4), 352.

  • Zhu, S., Wang, Q., Kan, C., Geng, A., Sui, Y., Zhuang, R., ... & Guo, C. (2024). Age-related cerebral changes during different n-back tasks: a functional near-infrared spectroscopy study. Frontiers in aging neuroscience, 16, 1437587.