Rubik's Cube Mechanism

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration simulates the mechanism of a 3×3×3 Rubik's cube.


A Rubik's cube consists of 26 movable cubelets and a central core. There are six center cubelets, eight corner cubelets, and 12 edge cubelets. The central core holds the six center cubelets together and forms the three axes of rotation. Rotations are done per face (front, back, left, right, bottom, and top), and each face groups one center, four corner, and four edge cubelets.

The corner and edge cubelets have extensions that keep them connected to the center cubelets and the core so that each face can rotate as a unit.

Inspect the inner workings of Rubik's cube by expanding the entire cube and adjusting the opacities. Select the face to be twisted by the color of its center.


Contributed by: Erik Mahieu (February 2013)
Suggested by: George Beck
Open content licensed under CC BY-NC-SA




[1] Pirates of the Cyber World. "Projects: Rubik's Cube." (Feb 11, 2013)

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.