Cognitive flexibility is an intrinsic property of a cognitive system often associated with the mental ability to adjust its activity and content, switch between different task rules and corresponding behavioral responses, maintain multiple concepts simultaneously and shift internal attention between them. The term cognitive flexibility is traditionally used to refer to one of the executive functions. In this sense, it can be seen as neural underpinnings of adaptive and flexible behavior. Most flexibility tests were developed under this assumption several decades ago. Nowadays, cognitive flexibility can also be referred to as a set of properties of the brain that facilitate flexible yet relevant switching between functional brain states.

Cognitive flexibility varies during the lifespan of an individual. In addition, certain conditions such as obsessive–compulsive disorder are associated with reduced cognitive flexibility. Since cognitive flexibility is a vital component of learning, deficits in this area might have other implications.

Two common approaches to studying of cognitive flexibility focus on the unconscious capacity for task switching and conscious ability of cognitive shifting. Methods of measuring cognitive flexibility include the A-not-B task, the Dimensional Change Card Sorting Task, the Multiple Classification Card Sorting Task, the Wisconsin Card Sorting Task, and the Stroop Test. Functional Magnetic Resonance Imaging (fMRI) research has shown that specific brain regions are activated when a person engages in cognitive flexibility tasks. These regions include the prefrontal cortex (PFC), basal ganglia, anterior cingulate cortex (ACC), and posterior parietal cortex (PPC). Studies conducted with people of various ages and with particular deficits have further informed how cognitive flexibility develops and changes within the brain.

Cognitive flexibility should not be confused with psychological flexibility, which is the ability to adapt to situational demands, to balance life demands and to commit to behaviors by thinking about problems and tasks in novel, creative ways (for example by changing a stance or commitment when unexpected events occur).

Cognitive flexibility should similarly be distinguished from the broader construct of versatility, which extends beyond task-switching within controlled paradigms to encompass effective adaptation across multiple domains and professional contexts.Monsell, S. (2003). Task switching. Trends in Cognitive Sciences, 7(3), 134–140.

Definitions The American Psychological Association (APA) defines cognitive flexibility as:

Cognitive flexibility varies during the lifespan of an individual. Researchers have more specifically described cognitive flexibility as the capacity to shift or switch one's thinking and attention between different tasks or operations typically in response to a change in rules or demands. For example, when sorting cards based on specific rules, children are considered cognitively flexible if they are able to successfully switch from sorting cards based on the color of the object to sorting based on the type of object on the card.

Cognitive flexibility has been more broadly described as the ability to adjust one's thinking from old situations to new situations as well as the ability to overcome responses or thinking that have become habitual and adapt to new situations. As such, if one is able to overcome previously held beliefs or habits (when it is required for new situations) then they would be considered cognitively flexible. Lastly, the ability to simultaneously consider two aspects of an object, idea, or situation at one point in time refers to cognitive flexibility. According to this definition, when sorting cards based on specific rules, children are considered cognitively flexible if they can sort cards based on the color of the objects and type of objects on the card simultaneously. Similarly, cognitive flexibility has been defined as having the understanding and awareness of all possible options and alternatives simultaneously within any given situation.

Contributing factors Regardless of the specificity of the definition, researchers have generally agreed that cognitive flexibility is a component of executive functioning, higher-order cognition involving the ability to control one's thinking. Executive functioning includes other aspects of cognition, including inhibition, memory, emotional stability, planning, and organization. Cognitive flexibility is highly related with a number of these abilities, including inhibition, planning and working memory. Thus, when an individual is better able to suppress aspects of a stimulus to focus on more important aspects (i.e. inhibit color of object to focus on kind of object), they are also more cognitively flexible. In this sense, they are better at planning, organizing, and at employing particular memory strategies.

Researchers have argued that cognitive flexibility is also a component of multiple classification, as originally described by psychologist Jean Piaget. In multiple classification tasks, participants (primarily children, who have already developed or are in the process of developing this skill) must classify objects in several different ways at once - thereby thinking flexibly about them. Similarly, in order to be cognitively flexible they must overcome centration, which is the tendency for young children to solely focus on one aspect of an object or situation. For example, when children are young they may be solely able to focus on one aspect of an object (i.e. color of object), and be unable to focus on both aspects (i.e. both color and kind of object). Thus, research suggests if an individual is centrated in their thinking, then they will be more cognitively inflexible.

Research has suggested that cognitive flexibility is related to other cognitive abilities, such as fluid intelligence, reading fluency, and reading comprehension. Fluid intelligence, described as the ability to solve problems in new situations, enables fluid reasoning ability. When one is able to reason fluidly, they are in turn more likely to be cognitively flexible. Furthermore, those who are able to be cognitively flexible have been shown to have the ability to switch between and/or simultaneously think about sounds and meanings, which increases their reading fluency and comprehension. Cognitive flexibility has also been shown to be related to one's ability to cope in particular situations. For example, when individuals are better able to shift their thinking from situation to situation they will focus less on stressors within these situations.

In general, researchers in the field focus on development of cognitive flexibility between the ages of three and five. However, cognitive flexibility has been shown to be a broad concept that can be studied with all different ages and situations. Thus, with tasks ranging from simple to more complex, research suggests that there is a developmental continuum that spans from infancy to adulthood.

Measures/assessments A variety of assessments are appropriate for distinguishing between different levels of cognitive flexibility at different ages. Below are the common tests used to assess cognitive flexibility in the order of the developmentally appropriate age.

A-not-B task In the A-not-B task, children are shown an object hidden at Location A within their reach, and are then prompted to search for the object at Location A, where they find it. This activity is repeated several times, with the hidden object at Location A. Then, in the critical trial and while the child is watching, the object is hidden in Location B, a second location within easy reach of child. Researchers have agreed that the A-not-B task is a simple task that effectively measures cognitive flexibility during infancy.

Dimensional Change Card Sorting Task

In the Dimensional Change Card Sorting Task (DCCS), children are initially asked to sort cards by a single dimension (such as color), and are subsequently required to alter their strategy to sort cards based on a second dimension (such as shape). Typically, three-year-old children are able to sort cards based on a single dimension, but are unable to switch to sort the cards based on a second dimension. However, five-year-old children are able to sort cards based on one dimension and can then switch to sorting cards on a second dimension.

Multiple Classification Card Sorting Task

In the Multiple Classification Card Sorting Task, children are shown cards and asked to sort them based on two different dimensions (e.g. by color, such as yellow and blue, and object type, such as animals and food) simultaneously into four piles within a matrix (e.g. yellow animals, yellow foods, blue animals and blue foods). This task appears to be more difficult as research has shown that seven-year-old children were incapable of sorting cards based on the two dimensions simultaneously. These children focused on the two dimensions separately, whereas at the age of eleven, children were capable of sorting cards based on these two dimensions simultaneously. This demonstrates an increase in cognitive flexibility between the ages of seven and eleven.

Wisconsin Card Sorting Test

The Wisconsin Card Sorting Test (WCST) is used to determine an individual's competence in abstract reasoning, and the ability to change problem-solving strategies when needed.

In this test, a number of cards are presented to the participants. The figures on the cards differ with respect to color, quantity, and shape. The participants are then told to match the cards, but not how to match; however, they are told whether a particular match is right or wrong. The ability to switch matching rules is measured. Typically, children between ages nine and eleven demonstrate the cognitive flexibility needed for this test.

Stroop Test The Stroop Test is also known as the Color-word Naming Test. In this measure, there are three types of cards in the deck. The "color card" displays patches of different colors, which participants are asked to identify as quickly as possible. The "word card," displays the names of colors printed in black and white ink, which participants are again asked name as quickly as possible. The final card type is the "color-word card", which displays the names of the colors printed in an ink of a conflicting color (e.g. the word RED would be printed in yellow), and requires participants to name the ink colors while ignoring the conflicting color names. The basic score on each card is the total time (in seconds) that the participant takes to respond verbally. Typically, naming the color of the word takes longer and results in more errors when the color of the ink does not match the name of the color. In this situation, adults tend to take longer to respond than children because adults are more sensitive to the actual color of the word and thus are more likely to be influenced by it when naming the conflicting color word printed.

Neural underpinnings Understanding of the mechanisms underlying cognitive flexibility is a subject of current research. It remains an elusive property of distributed brain function that instantiates itself in many ways. Human studies using functional magnetic resonance imaging (fMRI) and animal studies using optogenetics have shown that cognitive flexibility relies on a variety of distinct regions of the brain that work in concert, including the prefrontal cortex (PFC), anterior cingulate cortex (ACC), posterior parietal cortex (PPC), basal ganglia, and thalamus.