How to solve the
Rubik's Cube
×
Messages will be shown. For example when a cube is not scrambled properly.
Calculating the solution.
cube gif
Please wait!

Rubik's Cube Solution - Step-by-Step Moves

This page displays the step-by-step Rubik's Cube solution generated by our free online 3×3×3 cube solver. The algorithm calculates a near-optimal solution in 20 - 25 moves using the Kociemba two-phase method. Follow the moves exactly as shown to transform your scrambled cube into the solved state.

💡 How To Apply The Solution?

Hold the cube in your hands as the program shows the starting position. This is the same orientation you used when you input the colors.

FRULBD

If you know what the letters mean in the solution (explained below) you can easily apply the steps. Alternatively you can click through them one by one or play the solution with the desired speed, while you're following the rotations.

You can find images of all steps from the starting position to the solved state. The images have marked faces showing which has to be turned in which direction.

This solution works for any valid 3×3×3 Rubik's Cube scramble.

Apply the moves carefully and in the correct orientation. If the cube doesn't match after a few steps, return to the scramble page and verify your setup.

🤖 How Does It Find The Solution?

The program is using the algorithm of Herbert Kociemba's Cube Explorer (open-source program from kociemba.org). This method is able to find the solution for any initial scramble in 20 half-turn metric steps (180° rotations count as one step), however we had to limit this solver to protect our server.
First it's looking for the solution in 20 steps (God's Number) but if the program doesn't return any result below the time threshold then it's switching to 24 steps and returns a nearly optimal solution.

🔀 Impossible Scramble Error Message

If you get this warning then go back to the scramble page and make sure you entered the colors correctly. If the program keeps returning this error message then your cube might have been taken apart and put back together in an unsolvable configuration. There's only a 8.3% (1/12) chance that your cube will be solvable if you take it apart and rebuild it in a randomly scrambled position.

unsolvable Rubik's Cube - Invalid scramble
Impossible / unsolvable cases

If your cube is unsolvable then you have to take it apart and rebuild the pieces in the solved position or flip an edge and rotate a corner, according to the instructions given by the program.

If the program says "An edge needs to be flipped", it doesn't matter which one, because of the parity rule. Edge flips always occur in pairs so it doesn't matter which edge you choose to flip.

What Do The Letters Mean In The Solution?

Rubik's Cube rotation notation
D turn: Down clockwise

The rotations of the six sides of the puzzle are marked with letters:

FRUR2BR'

F - Front, R - Right, U - Up, D - Down, L - Left, B - Back
  🔄 Counterclockwise 90° turns are marked by an apostrophe '
  ✌️ Double turns (180°) are marked by 2.

Each letter means a ninety-degree clockwise rotation of the marked side. Counterclockwise turns are marked with an apostrophe, while double-turns are marked with the number 2. Activate the Animate rotations option to see these explained during the playback.

Find the animated demonstration of the Rubik's Cube notations on this page.

Frequently Asked Questions

Does this show the shortest possible solution?

The solver finds solutions in 20 moves, but for slower devices this can go up to 25, which are near optimal.

Why is my solution different from the moves I scrambled with?

The algorithm calculates a new optimal path to the solved state, not simply the reverse of your scramble.

Why does the solver say my cube is impossible?

This usually means one piece is flipped or twisted in a way that cannot occur in normal scrambling.

🎓 How To Solve The Rubik's Cube?

You can learn the Rubik's Cube beginner's method if you want to solve the cube by yourself without using this program. In a couple of days you can master it, if you practice consistently and follow the steps patiently.

Other Puzzle Solvers

Beside the classic 3x3 cube we have online solvers on this website for the 2x2 cube and the Pyraminx.

I hope that our website helped you solve your scrambled puzzle!

Each color must be added exactly 9 times Every edge must be added once An edge needs to be flipped Every corner must be added once A corner needs to be twisted Two corners or two edges need to be swapped rotations Impossible scramble Couldn't find the solution Set the starting orientation Back to scramble Set the colors before asking for the solution Close this window and check your cube! Set the colors of your scrambled cube, press the Solve button and follow the steps calculated by the Rubik's Cube solver! Solve Each color can be used once as a center field. Clear Reset Scramble Error Like And Share /the-rubiks-cube/how-to-solve-the-rubiks-cube-beginners-method/ How to solve the
Rubik's Cube
There are uncolored fields Please disable Calculating the solution. Please wait patiently! Black And White Mode Enabled white orange green red blue yellow Start Done! You can still use the website but it looks much better in color. Please whitelist this website to revert to normal operation.
DisableAdBlock.com
Thank you!
Saif Ullah
It worked for me. Thanks
Any one guide or share with me some sources /links for ROUX method.
I want to learn ROUX method.
Dylan Fayette
awesome it helped i got paid 300 dollars yas
Pho Hol
I'm jealous because I actually know how to solve one
Tanthai Farrell-Wall
This Is atualy VERY COOL
Cong Hong Tan
this is not working??
John Brown
your child switched stickers.
Christian Briggs
Or a corner got twisted
Mun Arthur
My brother was seven when he solved the puzzle without this app! I am still struggling, even with the solver.
Subhan Ahmad
Yes this is useful
Mathew V Roy
They keep saying my corner is twisted, but they didnt say which corner
Angelica Perez Lopez
It doesn't matter which one, just twist one and see if it works;
Papp Kasza Zétény
Niiiiiiiiiiiii cccccccccccccc eeeeeeeeeeeeee !!!!!!!!!!!!!!!!!!!
Tyrone Joze' Ralphy Veloso
Finally, I solved my cube! Unbelievable
Alessandro Ruzzier
At first it didn't work for me either but After some attempts It worked.
Mensajería
is amazing but some kid twisted a corner and i found it but i cant twist it back to im not able to complete it oterwise very good instrustions work a 100%
Pramod Ghuge
Just unscrew the cube and put it back together in 5 mins
Solution:
×
Learn how to solve the Rubik's Cube!

Like and Share if You Managed to Solve Your Cube

Thanks