Skip to content

Play a 3D Rubik's cube online, 2×2 to 5×5, with scramble, timer and undo, and a solver when stuck.

Found it useful? or .

What is Rubik's Cube Simulator?

Rubik's Cube Simulator is a 3D Rubik's cube you play in your browser. Drag a sticker and its layer turns under your finger or your mouse; drag around the cube to turn the view and see the back. Press Scramble for a well-mixed cube, and a timer starts with your first turn and stops when every side is one colour again. It is a virtual Rubik's cube for practice when your own cube is not to hand, for trying an algorithm before you learn it on a real one, or just for playing the classic puzzle online.

The simulator plays four cubes: the 2×2 pocket cube, the standard 3×3, the 4×4 Rubik's Revenge and the 5×5 Professor's cube. When you are stuck, Stuck? Solve this cube sends the exact position to our solver for that size, so you see how to finish from where you are, not from the start.

Rubik's cube simulator showing a scrambled 3D Rubik's cube online with a layer turning, a virtual 3x3 cube played in the browser
Rubik's cube simulator showing a scrambled 3D Rubik's cube online with a layer turning, a virtual 3x3 cube played in the browser

How to play the Rubik's cube online

  1. Choose the size: 2×2, 3×3, 4×4 or 5×5. The 3×3 is open when the page loads.
  2. Press Scramble. The cube is mixed with a long random sequence of turns, and the scramble is written below the cube so you can repeat it on a real cube.
  3. Turn the layers. Press on any sticker and drag it up, down, left or right. On a keyboard, the letters R, U, F, L, D and B turn the faces and Shift turns them the other way.
  4. Look around. Drag on the background to turn the whole view. The reset button in the corner puts it back.
  5. Solve it, and the timer stops by itself with your time and the number of moves. If you get lost, press Undo or use Stuck? Solve this cube.

A 3D Rubik's cube simulator made for touch and mouse

Most online cube games were made for a mouse and turn badly on a phone: the page scrolls while you drag, or a whole face turns when you meant a middle layer. Here the cube takes the touch for itself, so dragging a sticker never scrolls the page, and the layer that turns is always the one that moves the sticker the way your finger went. Each turn is animated, so you can follow what happened, and a speed setting makes the turns slow for learning or fast for speed.

Everything runs on your own device. The cube is drawn with WebGL in your browser, nothing is installed, and the page works without an account. Nothing covers the cube: no advert, no pop-up, no banner over the puzzle you are trying to solve.

Rubik's cube notation

Cubers write moves in a short notation, and the simulator both shows your moves in it and plays moves you type. Type R U R' U' in the Type moves box and the cube plays the four turns, so you can watch an algorithm from a book or a video before you try it with your hands.

  • R, L, U, D, F, B: a quarter turn of the right, left, up, down, front or back face, clockwise as you look at that face.
  • ' (prime): the same turn anticlockwise, e.g. R'.
  • 2: a half turn, e.g. U2.
  • M, E, S (3×3): the middle layers. M turns like L, E like D and S like F.
  • Rw or r: a wide turn of the outer two layers together; on a 5×5, 3Rw turns three layers.
  • 2R, 3R (4×4 and 5×5): a single inner layer, counted from the right.
  • x, y, z: turn the whole cube, as R, U and F turn.

2x2, 4x4 and 5x5 cube simulators

The 2×2 cube has only corners, so it is the gentlest start: any position can be solved in 11 moves or fewer, and beginners usually solve it with a few algorithms from the 3×3. The 4×4 cube has no fixed centres, which means you build the centres first, then pair the edges, and then solve it like a 3×3, with the famous parity cases that never happen on a 3×3. The 5×5 cube is solved the same way, but with more pieces per side and more patience. Switching the size gives a fresh solved cube of that size; your timer and moves start again.

When you are stuck: from the simulator to the solver

Rubik's cube solvers usually ask you to enter every colour by hand. Here nothing has to be entered: Stuck? Solve this cube opens the Rubik's Cube Solver for a 3×3, or the 2x2, 4x4 or 5x5 solver, with your cube already in it, and the solution starts at once. On the 3×3 solver you can also switch to the layer-by-layer method and learn the beginner way to solve the cube, stage by stage, from the position you had.

Practise for speedcubing

A simulator will not replace a real speedcube for finger tricks, but it is a good place to learn the moves. Type an OLL or PLL case from its setup and watch it solve, practise the cross in as few moves as you can, or replay a scramble you could not solve and go through it slowly. Share a position with the link button and a friend gets exactly the same cube. When you are ready to time real solves, the Rubik's Cube Timer gives WCA-style scrambles, inspection and ao5 and ao12 averages.

Tips for solving the cube on screen

  • Keep the same side facing you. Turning the view is free, but solving is easier when white stays on top and green in front, as it does when the page opens.
  • Use the keyboard for sequences. R U R' U' typed on the keys is faster and more exact than dragging four times.
  • Turn the speed down while you learn an algorithm and up when you know it.
  • Use Undo instead of turning back by hand: it does not count as a move.
  • On a phone, drag from the middle of a sticker in a clear straight line; a short drag is enough.

Why play a virtual Rubik's cube?

A real cube is the best way to get fast, but a Rubik's cube online has its own uses. You can play it anywhere a browser runs: at school, at work, on a train, or on a phone when the cube is at home. You can try a 4×4 or a 5×5 before you buy one, and see whether you like the bigger puzzles. You can undo a wrong turn, which no real cube allows, so a mistake in the middle of a long algorithm does not cost you the whole solve. And you can set up exactly the position you want to study, from a typed sequence or a shared link, without turning a real cube into it by hand.

Teachers use a 3D Rubik's cube on a big screen to show the whole class what a move does, slowly and from every side. Parents use it to learn the moves before teaching a child. Cubers use it to share a position that puzzles them: copy the link, paste it in a chat, and the other person sees the very same cube, ready to turn.

How the simulator works

The cube is a model of every sticker: 24 on a 2×2, 54 on a 3×3, 96 on a 4×4 and 150 on a 5×5. Each turn moves the stickers of one layer to their new places, the same way the pieces of a real cube move, so any position you can reach here can be reached on a real cube, and the other way round. The picture is drawn in 3D with rounded pieces, soft light and a shadow, and every turn is animated in a fraction of a second. A drag is read from the sticker you press and the direction your finger or mouse moves, so you can turn any layer, the middle ones included, from whichever side you are looking at.

A scramble is a long random sequence of turns, 22 moves on a 3×3 and more on the bigger cubes, so the cube is mixed as well as a cuber would mix it by hand. The scramble is written in standard notation, so you can apply it to your real cube and compare the two, or race a friend on the same scramble. The solved check looks at every face, so it works however you hold the cube when you finish.

FAQ

Is this Rubik's cube simulator free?

Yes. There is no sign-up, no download and no advert over the cube. It runs in your browser, on a computer, a tablet or a phone.

How do I turn a layer?

Press on a sticker and drag it the way you want it to go. The layer that carries that sticker in that direction turns with it. Drag on the empty space around the cube to look at it from another side, or use the reset button in the corner to bring the view back.

Can I play a 2x2, 4x4 or 5x5 cube?

Yes. Switch between 2×2, 3×3, 4×4 and 5×5 above the Scramble button. On the bigger cubes every layer can be dragged, including the inner ones, and you can type wide moves such as Rw or 3Rw.

What happens when I press "Stuck? Solve this cube"?

The exact cube you have on screen, every sticker, is sent in the link to our solver for that size. The solver opens with your cube already filled in and works out the solution, which you can follow move by move on a 3D cube.

Does the timer count inspection?

No. After a scramble you can look at the cube for as long as you like; the timer starts with your first turn and stops by itself the moment the cube is solved. For a competition-style timer with inspection and averages, use the Rubik's Cube Timer.

How do I share a position?

Press the link button next to the speed setting. The link it copies opens this simulator with the same cube size and the same position, so a friend can try the same scramble or see where you got stuck.

Which colour scheme does the cube use?

The standard Western scheme used by almost every cube sold today: white opposite yellow, green opposite blue, red opposite orange. With white on top and green in front, red is on the right.