Cognitive Flexibility

Measure your "Switch Cost" · the mental friction required to change the rules.

RULE CHANGED!
LEFT
RIGHT
touch_app
Classify the shape, but adapt instantly when the rule switches!
1Sometimes the rule switches sides · stay sharp!
2Arrow keys also work ·

~1 minute · Includes Practice

Task Switching 1 / 20
Rule: Circle=Left, Square=Right
RULE CHANGED!
Keyboard: Use Left/Right Arrow keys
·ms
Your Switch Cost
Higher CostAverageHighly Flexible
0
Repeat RT
0
Switch RT
0
Switch Cost
🏆 Score Ranges
Excellent
< 100ms
Top 5%
Good
100–200ms
Top 25%
Average
200–400ms
Most adults
High Cost
> 400ms
Bottom 25%
🧠 Executive Function

Switch Cost represents the time lost when your brain has to reconfigure its internal rules.

High switch costs are associated with executive dysfunction. Individuals with high stress, fatigue, or ADHD often show higher switch costs, struggling to "pivot" when rules change.

What Affects It?
📱MultitaskingFrequent multitasking paradoxically worsens switching.
😴SleepFatigue dramatically increases switch cost.
🧘MeditationMindfulness practice reduces cognitive rigidity.
🏃ExerciseAerobic fitness improves cognitive flexibility.

What Does the Task Switching Test Measure?

This test measures cognitive flexibility — specifically your switch cost, which is the measurable time penalty your brain pays when it has to reconfigure from one set of rules to another. A shape (circle or square) appears on screen. The mapping rule periodically flips: “Circle=Left, Square=Right” switches to “Circle=Right, Square=Left.” Your switch cost is the difference in reaction time between trials immediately after a rule change vs. trials where the rule repeats.

Switch cost is scored in milliseconds. Lower is better. It's one of the cleanest measures of executive control in psychology because it isolates the rule-reconfiguration process from raw reaction time — you can be slow overall but still show low switch cost (flexible), or fast overall but high switch cost (rigid).

How This Test Works

A shape appears on screen. A rule badge displays the active mapping. Classify the shape using the Left/Right buttons (or arrow keys for faster input). Periodically, a “RULE CHANGED!” banner flashes and the bindings swap. 20 trials total. Your average repeat-trial RT is compared to your average switch-trial RT. The difference is your switch cost.

The test includes a brief practice phase to get you familiar with the mechanics before scoring begins. Keyboard arrow keys (Left ←, Right →) are recommended for fastest input — mouse clicking adds physical movement time that inflates switch cost measurements.

Why Cognitive Flexibility Matters

  • ADHD and executive dysfunction: High switch cost is one of the most consistent neuropsychological findings in ADHD. Individuals with ADHD struggle to suppress the previous task-set and load the new one efficiently, creating elevated switch costs of 300–500ms vs. the typical 150–250ms range.
  • Age-related cognitive decline: Switch cost increases with age, beginning in the mid-50s. It’s one of the more sensitive markers of early frontal lobe decline. Annual tracking provides early warning of executive function aging.
  • Professional performance: Surgeons switching between procedures, project managers pivoting between contexts, pilots managing multiple aircraft systems — all require rapid, low-cost task switching. High switch cost creates dangerous delays when rules change rapidly.
  • Academic multitasking: Students who switch frequently between tasks (checking phones, alternating subjects) show progressive switch cost inflation over a study session. Understanding your switch cost helps design smarter work blocks.

Cognitive flexibility is one component of the executive function triad. Compare with our Sustained Attention Test (vigilance) and our Stroop Test (interference control) for a complete executive profile.

Switch Cost Scores by Percentile

Switch cost in milliseconds. Lower is better. Scores are the difference between switch-trial RT and repeat-trial RT, averaged across 20 trials.

Percentile Switch Cost (ms) Classification Typical Profile
Top 5% < 100 ms Exceptional High executive control, mindfulness practice
Top 25% 100–200 ms Good Well-rested, regular cognitive training
Median (50th) ~250 ms Average Most healthy adults
Bottom 25% 300–400 ms High Cost Fatigue, ADHD, chronic multitasking
Bottom 10% > 400 ms Very Rigid Sleep-deprived, executive dysfunction

Frequently Asked Questions

Does a high switch cost mean I am bad at multitasking?

Not exactly. “Multitasking” is a misnomer — the brain can’t consciously process two complex tasks simultaneously. Instead, it switches rapidly between them. A high switch cost means each switch is costly in time and cognitive resources. This is normal: even healthy adults with excellent intelligence show switch costs of 150–300ms. The test is most useful for tracking your own trend over time, not as a pass/fail metric.

Why do we experience a switch cost?

Switch cost arises from task-set inertia: the mental pathways activated by the previous rule remain partially active for a brief period after the switch, creating interference when you apply a new rule to the same stimuli. The prefrontal cortex must actively suppress the old task-set (reactive inhibition) and load the new one (proactive control). This reconfiguration process takes 100–300ms, which is the switch cost you measure.

Can brain training improve cognitive flexibility?

Yes. Cognitive flexibility is highly trainable. Task-switching practice directly trains the prefrontal-ACC rule-switching circuit. Strategic video games (StarCraft, chess) that require rapid context switching show measurable transfer. Mindfulness meditation reduces cognitive rigidity by strengthening the ability to release current mental states. Regular aerobic exercise improves frontal lobe function broadly, including flexibility.

How does ADHD affect switch cost?

ADHD is associated with elevated switch cost, typically in the 300–500ms range vs. the typical 150–250ms. The mechanism is impaired cognitive inhibition — ADHD individuals have difficulty suppressing the previous task-set’s activation. Notably, stimulant medication (e.g., methylphenidate) reduces switch cost in ADHD, providing a measurable effect-size benchmark that makes task-switching a useful treatment-monitoring tool.

Why do chronic multitaskers perform worse on this test?

Counterintuitively, people who multitask frequently show higher switch costs than focused workers. Stanford research by Ophir, Nass, and Wagner (2009) showed that heavy media multitaskers are less effective at task-switching because they filter irrelevant information less efficiently. Frequent context-switching trains impulsive switching rather than deliberate, efficient switching — creating a cognitive overhead that worsens performance on controlled task-switching tests.