The Six-Rock Puzzle: The Mathematics Of Double Counting

Jonas Bronck
Published on December 03, 2026, 12:56 pm
FavoriteLoadingAdd to favorites 12 mins

At first glance, it looks impossible. A square has six rocks along each of its four sides. Four additional rocks sit inside the square. Then, as rocks are added and others are moved from one position to another, something seemingly extraordinary happens: the number of rocks along every side remains exactly six.

How can that be possible? How can the arrangement change, additional rocks enter the picture, and yet the count along all four sides remain unchanged?

The puzzle, widely circulated on social media under the name “Einstein’s Rock Paradox,” has attracted attention because it challenges something people generally take for granted: counting.

The explanation does not involve quantum mechanics, relativity, hidden dimensions, or complicated mathematical formulas. It involves a much more elementary concept that is surprisingly easy to overlook: the same object can be counted more than once.

The secret lies in the four corners of the square.

Understanding The Einstein’s Rock Paradox

Imagine a square with six rocks assigned to each of its four sides.

The top side contains six rocks. The bottom side contains six rocks. The left side contains six rocks, and the right side contains six rocks.

A straightforward calculation produces the following result:

  • Top: 6 rocks
  • Bottom: 6 rocks
  • Left: 6 rocks
  • Right: 6 rocks

Adding the four numbers gives 24.

It is tempting to conclude that the square must contain exactly 24 rocks along its perimeter.

However, that conclusion is not necessarily correct.

The problem is that the four sides are not four completely independent collections of objects. They meet at the corners, and the rocks occupying those positions belong to two sides simultaneously.

A rock positioned at the upper-left corner, for example, is counted as part of both the top side and the left side.

The same applies to the upper-right, lower-left, and lower-right corners.

Consequently, when the number of rocks on each side is added together, every occupied corner is counted twice.

This is the fundamental mathematical trick behind the puzzle.

The Four Corners Change Everything

Consider a square with a rock occupying each of its four corners.

When counting the rocks on the top side, the upper-left and upper-right corner rocks are included.

When counting the left side, the upper-left and lower-left corner rocks are included again.

The same duplication occurs on the other two sides.

Therefore, simply adding the number of rocks on all four sides produces a larger number than the actual number of individual rocks.

If there are six rocks on each side, the combined side count is 24. If all four corners contain rocks, four of those counts are duplicates.

The actual number of perimeter rocks is therefore:

24 – 4 = 20.

That is the first important discovery.

The square has 20 individual rocks along its perimeter, even though adding the four side counts produces 24.

Now introduce the four additional rocks placed in the middle of the square.

These rocks are not positioned on any of the four sides. Consequently, they are not included in the side-by-side calculation.

Adding them gives:

20 + 4 = 24 individual rocks.

The apparent contradiction disappears once the counting method is understood.

Why Moving Rocks Does Not Necessarily Change The Side Counts

The most interesting part of the viral demonstration is not simply the initial arrangement. It is what happens when the rocks are moved.

The demonstration starts with four rocks inside the square. These rocks are subsequently moved toward the perimeter, while other rocks are repositioned to preserve the required number along each side.

The viewer sees individual rocks changing locations, but the displayed count remains six on every side.

The trick is that a rock can change how it contributes to the total side count depending on where it is placed.

There are three possible positions:

1. Inside the square

A rock placed in the interior does not contribute to the count of any side.

2. Along a side, away from a corner

A rock in this position contributes one to the count of that particular side.

3. At a corner

A rock in this position contributes one to each of the two adjoining sides.

This third possibility is particularly important. Moving a rock from an ordinary position along one side to a corner can change the way the individual side counts are distributed without increasing the number of physical rocks.

Similarly, moving an interior rock onto the perimeter changes the side count, but repositioning other rocks can compensate for that change.

The arrangement can therefore look different while preserving the same numerical requirement.

The Mathematics Behind The Illusion

The puzzle can be explained with a simple equation.

Let:

  • S represent the combined number of rocks counted across all four sides.
  • C represent the number of occupied corners.
  • I represent the number of rocks inside the square.

The actual number of individual rocks is:

[
N=S-C+I
]

Why?

Every non-corner perimeter rock is counted once. Every corner rock is counted twice, so one duplicate count must be removed. Interior rocks are not counted on any side, so they must be added separately.

In the six-rock-per-side example, the combined side count is:

[
S=4\times6=24
]

If all four corners are occupied:

[
C=4
]

And if there are four rocks inside the square:

[
I=4
]

The result is:

[
N=24-4+4=24
]

There are 24 individual rocks.

The formula also explains why different arrangements can produce the same side counts while having different total numbers of physical rocks.

For example, if the number of occupied corners increases, the number of duplicate counts increases. If additional rocks are placed inside the square, they increase the physical total without affecting any side count.

The important distinction is between the number of individual objects and the number of times those objects are included in a calculation.

They are not necessarily the same thing.

Why The Human Brain Gets Fooled

The reason this puzzle is so effective is that most people instinctively assume that four groups of six objects must represent 24 separate objects.

In ordinary situations, this assumption is often perfectly reasonable.

If four people each have six different apples, there are 24 apples in total.

But the situation changes when the groups overlap.

Imagine four employees standing around a square table. Each employee is counted as belonging to two adjoining sides. Adding the number of people assigned to each side would count some individuals twice.

The same mathematical principle applies to the rocks.

The human brain tends to process the four sides as separate units instead of recognizing that they share common boundary positions.

This is an example of a counting error caused by overlapping categories.

It is also why the visual demonstration is more effective than simply presenting the mathematical formula. Watching rocks move creates the impression that something impossible is happening, even though the underlying arithmetic is entirely consistent.

Is It Really Einstein’s Paradox?

There is an important historical distinction worth making.

Although the puzzle is widely called Einstein’s Rock Paradox, there is no reliable historical documentation establishing that Albert Einstein invented it.

The name should therefore be understood as a popular attribution rather than a verified historical fact.

It should also not be confused with the Einstein-Podolsky-Rosen paradox, commonly abbreviated as the EPR paradox.

The EPR paradox was introduced in 1935 by Albert Einstein, Boris Podolsky, and Nathan Rosen in a scientific paper examining whether quantum mechanics provides a complete description of physical reality.

That debate concerns quantum mechanics, entanglement, and the relationship between physical properties and measurement.

The rock puzzle, by contrast, is an elementary mathematical exercise involving counting, overlapping categories, and geometric arrangements.

The two subjects have virtually nothing in common mathematically.

Nevertheless, the popular name has helped the rock puzzle attract an audience far beyond traditional mathematics classrooms.

What The Rock Paradox Actually Teaches Us

The most valuable lesson is not about rocks or squares. It is about understanding what a number represents before using it in a calculation.

Counting is not always as straightforward as it appears.

Whenever objects belong to multiple categories, simply adding the number in each category can produce an incorrect result.

This principle is relevant to mathematics, statistics, business accounting, inventory management, and data analysis.

For example, a company might report 100 customers who purchased Product A and 100 who purchased Product B. It would be incorrect to automatically conclude that the company has 200 different customers. Some individuals may have purchased both products.

Likewise, a population study might count people belonging to several overlapping demographic or geographic categories. Adding the individual category totals without accounting for overlap would exaggerate the actual population.

In mathematics, this principle is addressed through the inclusion-exclusion principle, a method used to calculate the size of overlapping sets without counting the same elements more than once.

The square of rocks offers a simple visual introduction to that broader mathematical idea.

The apparent mystery disappears once the observer stops counting appearances and starts identifying individual objects.

The rocks have not broken the laws of mathematics. The arithmetic was never wrong. The mistake was assuming that every time a rock appeared in a side count, it represented a different physical object.

Sometimes the most convincing mathematical illusions are created not by complicated equations, but by something as ordinary as counting the same object twice.

Jonas Bronck
Jonas Bronck is the pseudonym under which we publish and manage the content and operations of The Bronx Daily.™ | Bronx.com - the largest daily news publication in the borough of "the" Bronx with over 1.5 million annual readers. Publishing under the alias Jonas Bronck is our humble way of paying tribute to the person, whose name lives on in the name of our beloved borough.