Rubik's Cube Online: Play, Solve, Time and Learn

Play a free 3D Rubik's Cube online, solve any scramble in about 20 moves, time your solves and learn the 7 easy steps. Works on your phone, no app needed.

Moves: 0   Time: 0.00

Solve it

Copy link to this cubeFull screenKeyboard keys
Keys: U, D, L, R, F, B turn that face clockwise. M, E, S turn the middle slices. X, Y, Z rotate the whole cube. Hold Shift to turn the other way (Shift+R = R'). Space = scramble, Backspace = undo.

Pick a color, then tap the stickers on the 3D cube. Drag outside the cube to turn it around. Hold your real cube white on top, green in front, or paint the centers the way you hold it.

0.00

Hold the time (or the Space bar) until it turns green, release to start, tap to stop. The scramble is on the 3D cube.

...

The beginner method has 7 steps. Pick a step to practice on the 3D cube, or scramble it and ask for a hint at any point.

    Read the full tutorial

    What you can do here

    The Rubik's Cube has 43 quintillion possible positions. That sounds scary, but you only need 7 steps and a few short move patterns to solve it. The cube above is one cube with four tools around it. Scramble it in Play, press Solve, and the solver already knows the same state. ðŸ§©

    There is nothing to install and no account to make. Everything runs in your browser, on a phone too.

    How to play with the cube

    Drag a sticker to turn that side. Drag the empty space next to the cube to spin the whole cube and look at the back. On a phone, do the same with one finger. Scroll or pinch to zoom.

    If you prefer the keyboard, each key is the letter of the move: R turns the right side, U the top, F the front. Hold Shift to turn the other way, so Shift+R is R'. Space gives you a new scramble and backspace undoes a move. The full key list is on the play page.

    Stuck? Press Hint. The cube finds which of the 7 steps you are at, makes the pieces you need glow, and tells you what to do in one sentence. Press it again and it plays the next few moves slowly. This is the button we wish we had when we started. ðŸ˜Š

    A scrambled cube, a finger pressing the Hint button, and then the same cube greyed out except the white-green edge, with the moves L2 and F under it
    Hint greys out the cube, lights up the piece you need and shows the next moves.

    Try this four-move pattern first. Cubers call it the "sexy move" because it shows up in so many algorithms. R means turn the right side clockwise, U the top, and the apostrophe means counterclockwise. Do it six times and the cube is back where it started. The notation page explains all the letters.

    R U R' U'

    How the solver finds a solution in about 20 moves

    Every one of those 43 quintillion positions can be solved in 20 moves or fewer. This number is called God's number. Tomas Rokicki, Herbert Kociemba, Morley Davidson and John Dethridge proved it in 2010, with about 35 CPU-years of computer time donated by Google. The whole story is on cube20.org.

    Finding the true shortest solution for one position still takes a lot of computing. Our solver uses a shortcut from 1992 called the Kociemba two-phase algorithm. It finds a solution of about 20 moves in a fraction of a second, right in your browser. Ruwix's page on God's number explains why 20 moves is always enough. The solver has three modes.

    ModeOptimalBeginner's methodCFOP
    LengthAbout 20 movesAbout 120 movesAbout 60 moves
    MethodKociemba two-phaseThe 7 step beginner methodCross, F2L pairs, OLL and PLL
    Good forGetting the cube solved nowLearning, each step is labeledSpeedcubers who learn the CFOP algorithms
    Time to computeUnder a secondUnder a secondUnder a second
    Can you follow along?Yes, with the step playerYes, and you see why each move is madeYes, and each step names its case

    Time your solves like at a competition

    Hold the space bar until the time turns green, let go to start, and hit any key to stop. On a phone, hold your finger on the timer. Turn on inspection and you get the same 15 seconds as at a real competition. The WCA Regulations add 2 seconds if you start between 15 and 17 seconds. After 17 seconds the solve does not count.

    Cubers rarely talk about single times. They talk about ao5, the average of 5. Take five solves, drop the best and the worst, and take the mean of the other three. One lucky solve does not help you, and one bad one does not hurt. Your times stay in your browser; nothing is sent to us. The timer page explains every stat.

    A big time of 12.84 next to a scrambled cube, and a list of the last five solves with the best in green, the worst in red and an ao5 of 12.80 below them
    The Timer tab: the scramble is already on the 3D cube, and your last five solves and ao5 sit next to it.

    Learn in 7 steps

    Our beginner method solves the cube layer by layer. You build the white cross first, then the white corners, then the middle layer. The yellow side comes last, in four small steps. You need to remember five short move patterns in total. Most people get their first solve in an afternoon with the tutorial open. ðŸŽ‰

    Each step of our tutorial on how to solve a Rubik's Cube has a moving cube, the moves you need and a practice button that sets up the cube above at exactly that step. Our team's average with this method is about 1:30, and under a minute is realistic after a few weeks.

    Seven numbered cubes in a rising row, one for each step from the white cross to the solved cube, above a button that says Show me the next step
    The Tutorial tab lists the 7 steps. Practice sets up the cube at that step, and "Show me the next step" explains what to do.

    Where the name TwistyCube comes from

    Our name, our web address and our logo were all inspired by a real puzzle: the LeFun Twisty Magic Cube. It is a 3x3x3 cube that turns just like the classic one, but its sides look twisted into an hourglass, even when it is solved. We liked how it shows in one shape what every cube is about: twisting. So the site became TwistyCube.com.

    The drawing below shows that kind of twisted 3x3. Our logo keeps only its outline: one cube, bent into an hourglass, with a white top and red, blue and green sides. The tools on this site are made for the standard 3x3 cube, and they work with any brand.

    Drawing of a twisted 3x3x3 puzzle cube with a yellow top and blue, red and orange sides, its middle bent into an hourglass shape
    The twisted 3x3 that gave TwistyCube its name and its logo.

    A few cube facts

    Erno Rubik, a Hungarian architect and professor, built the first working cube in 1974 in Budapest. He wanted a model that shows how parts can move on their own while the whole thing holds together. He applied for a patent in 1975, and the first batches reached toy shops in Budapest in 1977 under the name Magic Cube.

    YearWhat happened
    1974Erno Rubik builds the first working prototype in Budapest
    1977The Magic Cube goes on sale in Hungary
    1980Renamed Rubik's Cube and sold worldwide by Ideal Toy
    1982First World Championship in Budapest, won by Minh Thai in 22.95 seconds
    2010God's number is proved: every position needs at most 20 moves

    The cube is made of 26 small blocks that turn around a hidden center cross, as Britannica describes it. Around 500 million cubes have been sold since 1977. The fastest people solve it in a blink. In October 2026, Xuanyi Geng set a world record single of 2.51 seconds. Records fall often, so check the WCA records page for the latest one.

    Ready? Scramble the cube above, press Hint, and start with the white cross.

    Questions people ask

    Does it work on my phone?

    Yes. The 3D cube, the solver and the timer all work with touch. The flat view of the solver is made for small screens.

    Do I need to install anything?

    No. Everything runs in the browser you already have. There is no app, no account and no sign up. Your timer data stays on your device.

    Can it solve any scramble?

    Yes, any real position of a 3x3 cube. If a sticker is painted wrong, the solver tells you which piece to check instead of guessing. Positions that cannot exist on a real cube, like a single twisted corner, are caught before solving.

    Is it free?

    Yes, all of it. A few ads pay for the server. There is no paid version and nothing is locked.

    Can every cube really be solved in 20 moves?

    Yes. That is what the 2010 proof of God's number showed. Our Optimal mode usually lands at 19 to 22 moves, because finding the exact shortest path for every position would take far more computing than a browser can do in a second.