Home▸Articles▸Cognitive Science

The A-not-B Error: Object Permanence and Infant Working Memory

A fundamental experiment in developmental psychology that explores how infants understand object permanence.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

What is the A-not-B Error?

The A-not-B error is a pivotal experiment designed by Jean Piaget to study how infants understand that objects continue to exist even when they are out of sight. In this test, an infant is shown a toy in box A and allowed to reach for it. After the toy is hidden in box B, the infant often reaches back into box A, demonstrating their belief that the toy still exists where they last saw it.

This behavior highlights infants' developing ability to understand object permanence, which is crucial for more complex cognitive functions such as memory and problem-solving.

How Does Age Influence the A-not-B Error?

The age of the infant significantly influences their performance in the A-not-B task. Typically, infants under 9 months old are more likely to make the A-not-B error because they have not yet developed a robust working memory that can hold information about an object's new location.

As infants grow older and their working memory improves, they become better at understanding that objects persist even when out of sight. This development is closely tied to brain maturation and cognitive growth.

live demo · related simulation● LIVE

The Role of Delay in the A-not-B Error

In the A-not-B task, a delay between hiding the toy at box B and allowing the infant to reach for it can also affect their performance. Short delays may not give infants enough time to update their memory of the object's location, leading to more errors.

Longer delays provide more time for the working-memory trace to decay or be updated, potentially reducing the likelihood of the A-not-B error and allowing infants to reach box B.

Training Trials and Habituation

Repeating the A-not-B task multiple times (training trials) can help infants learn that objects persist in their new locations. Over time, repeated exposure to hiding the toy at box B can strengthen the infant's memory trace for this location.

The dynamic-neural-field nodes in the simulation model this process by simulating a race between an old habit (reaching for box A) and a new memory (box B). As training progresses, the memory trace for box B becomes stronger, reducing the likelihood of the A-not-B error.

Frequently asked questions

What does the A-not-B error reveal about infant cognition?

The A-not-B error reveals that infants have a developing understanding of object permanence and working memory. It shows how their cognitive abilities change as they grow older.

How can parents support their child's development in understanding object permanence?

Parents can help by frequently hiding objects and then showing them again, reinforcing the concept that objects continue to exist even when out of sight. This practice supports the infant’s developing working memory.

Why is the A-not-B error important in developmental psychology?

The A-not-B error is crucial because it provides a clear and measurable way to assess infants' cognitive development, particularly their understanding of object permanence. It helps researchers understand how children's minds develop over time.

Can the A-not-B task be used with adults?

While the A-not-B error is primarily studied in infants, similar tasks can be adapted for adults to study memory and cognitive flexibility. However, adult performance typically does not show the same errors as seen in young infants.

Try it live

Everything above runs in your browser — open The A-not-B Error: Object Permanence and Infant Working Memory and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open The A-not-B Error: Object Permanence and Infant Working Memory simulation

What did you find?

Add reproduction steps (optional)