Home › Fun & Games › 3x3 Cube Solver

3x3 Cube Solver

Paint the colors of your scrambled 3x3 puzzle cube on the unfolded net, press Solve and follow the solution one turn at a time on an animated 3D cube. Solutions are usually 18 to 22 moves.

Last updated:

1 Paint your cube

Hold the cube with the white center on top and the green center facing you. Pick a color, then click stickers.

Or type a scramble (e.g. R U R' U' F2)

2 Solve and follow the moves

Notation: R = turn the right face clockwise (as you look at it), R' = counter-clockwise, R2 = half turn. U up, D down, F front, B back, L left. Keys: 1-6 pick a color, ←/→ step through the solution, Space play/pause.

Advertisement
Advertisement

How to use the 3x3 Cube Solver

  1. Hold your cube with the white center on top and the green center facing you. Keep it that way the whole time.
  2. Paint each face: pick a color from the palette (or press 1-6) and click the stickers on the net. Top is U, front is F, right is R, back is B, left is L and bottom is D.
  3. Check the counters: every color must show 9/9 before solving.
  4. Press Solve cube. If the colors describe an impossible cube, the problem stickers are highlighted so you can fix them.
  5. Follow the moves with Next or Play. The 3D cube shows each turn, and the text explains which face to turn and in which direction.

Cube notation used in the solution

Each letter is one face of the cube. A plain letter means a quarter turn clockwise as you look at that face, an apostrophe means counter-clockwise and a 2 means a half turn (direction does not matter).

MoveFaceWhat it does (white on top, green in front)
U / U' / U2Up (white)U moves the front row of stickers to the left
D / D' / D2Down (yellow)D moves the front bottom row to the right
R / R' / R2Right (red)R moves the front right column up
L / L' / L2Left (orange)L moves the front left column down
F / F' / F2Front (green)F turns the face you are looking at clockwise
B / B' / B2Back (blue)B moves the top back row to the left side, as seen from behind

How the two-phase algorithm finds a short solution

A 3x3 cube has 43,252,003,274,489,856,000 reachable positions, far too many to search directly. Kociemba's two-phase method splits the job in two. In phase 1 it searches for moves that orient all corners and edges and put the four middle-layer edges into the middle layer. In phase 2 it finishes the cube using only U, D and half turns of the side faces (R2, L2, F2, B2), which never undo the phase 1 work. Precomputed pruning tables tell the search the minimum number of moves still needed, so it can skip hopeless branches. The tables are built in your browser in under a second, in a background thread.

Because the solver keeps trying longer phase 1 sequences with shorter phase 2 finishes, it quickly finds solutions of about 20 moves. Every scrambled position can be solved in at most 20 face turns, a number often called God's number.

Tips for entering colors correctly

  • Read each face the way the net shows it. The top face is drawn as seen from above with the back edge at the top of the square. The bottom face is drawn as seen from below with the front edge at the top.
  • Use the counters. If a color shows 10/9, a sticker of that color was painted where another color belongs.
  • Try a scramble first. Shuffle random or type a scramble to see how the moves and the 3D animation map to your physical cube.
  • Do not rotate the whole cube while following the moves. Only turn the face named by each letter.

Frequently asked questions

How does this cube solver work?

It converts your sticker colors into the positions and orientations of the 8 corner and 12 edge pieces, then runs Herbert Kociemba's two-phase algorithm. Phase 1 brings the cube into a subgroup where all pieces are correctly oriented, and phase 2 solves it using only moves that keep that property. The search keeps improving for about a second and returns the shortest solution it found.

How many moves will the solution have?

Usually 18 to 22 moves in face-turn metric, where a half turn such as R2 counts as one move. Every position of the 3x3 cube can be solved in 20 moves or fewer (proved in 2010), so these solutions are close to optimal.

Why does it say my cube is impossible?

A real cube must have 9 stickers of each color, every corner and edge must have a valid color combination, and the twist, flip and parity rules must hold. If one corner is twisted, one edge is flipped or two pieces are swapped, the state cannot be reached by turning, which usually means a sticker was entered wrongly or the cube was taken apart and rebuilt incorrectly.

Which way is clockwise?

Clockwise is judged as if you are looking straight at the face being turned. For example, R turns the right face clockwise from the right side, which moves the front stickers of that face upward. L moves the front stickers down, U moves the front stickers to the left.

My cube has different colors. Can I still use it?

The solver uses the standard color scheme: white opposite yellow, green opposite blue and red opposite orange, with red on the right when white is up and green faces you. If your cube uses another scheme, map each of your colors to the face position it sits on (use the color of each center) and paint accordingly.

Do I need to keep the cube in the same orientation?

Yes. Hold the cube with the white center on top and green center facing you while entering colors and while doing the moves. If you turn the whole cube in your hands, the letters no longer point to the same faces.

Is anything sent to a server?

No. The colors, the validation and the solving algorithm all run in your browser with JavaScript. Your last painted cube is kept in local storage on this device so you can continue later.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Sudoku SolverType in any Sudoku and solve it instantly, get step-by-step hints and check it has one solution.Sliding PuzzlePlay the 15 puzzle and 3×3 to 6×6 sliding tile puzzles with numbers or your own photo.Jigsaw PuzzleTurn a sample picture or your own photo into a 12 to 150 piece jigsaw puzzle and solve it.Lights Out GameTurn off every light in the classic 5x5 puzzle, with solvable random boards and a solver.Cube SimulatorTurn a 3D 2x2 to 5x5 puzzle cube online: drag or type moves, scramble, time solves and undo.SolitairePlay classic Klondike Solitaire with Draw 1 or Draw 3 and undo.Spider SolitairePlay Spider Solitaire online with 1, 2 or 4 suits, hints, unlimited undo and a timer.Play Chess vs ComputerPlay chess online against the computer at 8 difficulty levels.Connect FourPlay Connect 4 online against the computer or a friend.Snake GamePlay classic Snake online with speeds, wall modes and high scores.Tic Tac ToePlay tic tac toe against an unbeatable AI or a friend.Block Puzzle GameClassic falling blocks puzzle game with levels and high score.MinesweeperPlay classic Minesweeper: 3 difficulties, flags, timer and a safe first click.2048 GamePlay 2048 online with swipe controls, undo and best score.Sudoku OnlinePlay free Sudoku with 4 difficulty levels, notes, hints and a timer.Word Guess GameGuess the hidden five-letter word in six tries. Unlimited games, stats and hard mode.HangmanClassic friendly hangman word game with categories, hints and difficulty levels.Memory Card GameFlip cards and match emoji pairs on 4×3 to 6×6 grids, with moves, timer and best scores.Flappy GameTap to flap a round chick through bamboo gaps and beat your high score.Dino Runner GameJump cacti and duck buzzing beetles in an original endless desert runner.Typing GameType the falling words before they land; level up and track your WPM and accuracy.Math Quiz GameTimed mental math rounds with four operations, five levels, streaks and high scores.Flag QuizGuess the flags of all 196 countries in four modes, from multiple choice to timed.Map QuizFind countries on a clickable world map or name the highlighted one, by continent.Periodic Table QuizLearn all 118 elements: quiz symbols, names and atomic numbers or click them on the table.Spelling Bee GameMake words from 7 honeycomb letters, always using the center letter. New daily puzzle.Mahjong SolitaireMatch pairs of free tiles to clear the Turtle and two smaller layouts, with hints, shuffle and undo.Scrabble Word FinderFind the highest-scoring words from your rack, with blank tiles, patterns and bingo bonus.Wordle SolverEnter your guesses and colours to see every possible answer and the best next guess.Crossword SolverFind words that fit a crossword pattern like c?t from the length and the letters you know.Word Search GeneratorMake a word search puzzle from your words, play it online or print it with an answer key.Pong GamePlay classic Pong online against the computer on 3 levels or with a friend, first to 11.Breakout GameClassic brick breaker game with levels, power-ups and lives. Play with mouse, touch or keyboard.Whack-a-MoleWhack the moles before they hide in 30 or 60 second rounds. Speed increases, best score saved.Simon Says GameRepeat the growing color and sound sequence. Classic memory game with strict mode and high score.CheckersPlay checkers online against the computer or a friend, with kings, undo and hints.ReversiPlay Reversi (Othello rules) online vs a 3-level computer or a friend, with move hints.GomokuGet five in a row on a 15×15 board against a smart computer or a friend.24 GameCombine four numbers with + − × ÷ to make 24. Endless solvable hands, timer and a solver.Asteroids GameClassic vector Asteroids arcade: rotate, thrust and blast space rocks into pieces, wave after wave.Basketball Shooting GameDrag and release to shoot hoops against a 60-second clock, with moving-hoop levels and combo bonuses.Bible Trivia QuizMultiple-choice Bible trivia by book and difficulty, with verse references and a kids mode.Contract BridgePlay contract bridge with 3 computer players: SAYC-style bidding, declarer play, duplicate scoring.Chess Analysis BoardSet up positions, paste FEN or PGN and step through moves with an engine evaluation bar.Guess the Country by ShapeWorldle-style geography game: name the country from its outline in six tries, with distance hints.Cryptogram PuzzleCrack a substitution cipher letter by letter to reveal a famous saying. Daily puzzle, hints, timer.Element Mixing GameMix water, fire, earth and air to discover 400+ items. Discovery book, hints, works offline.EuchrePlay Euchre online with a computer partner: order up trump, use the bowers, go alone, race to 10.Falling Sand GameSandbox with sand, water, fire, plants, lava and more that flow, burn, grow and react. Save your scene.Forehead Guessing GameHeads-up style party game: hold the phone to your forehead, tilt down if correct, up to pass.Fruit Merge GameDrop fruits into the box and merge matching ones into bigger fruit, all the way to a watermelon.Fruit Slice GameSwipe to slice tossed fruit, dodge the rocks and chain combos. Three lives, mouse or touch.Conway's Game of LifeDraw cells and watch them evolve: play, step, change speed, load gliders and guns, import RLE.Online Game Show BuzzerQuiz buzzer for 2–8 teams on one device: first key or tap locks out the rest with sound.Games for CatsFull-screen mice, laser dot, fish and bugs for cats to chase on a tablet, with squeaks and a tap counter.Kids General Knowledge QuizFun quiz for kids aged 5–12 on animals, space, geography and science, with read-aloud and stars.Go FishKid-friendly Go Fish card game vs the computer: ask for ranks, make books of four, voice prompts.Go Game (Baduk)Play Go on 9×9, 13×13 or 19×19 vs a simple AI or a friend, with ko, scoring and SGF export.Higher or Lower GameIs the next one higher or lower? Compare country populations, areas, buildings and mountains.Imposter Word GamePass-the-phone party game: everyone gets the secret word except the imposter. Clue, vote, reveal.Calcudoku Math PuzzleSolve KenKen-style cage arithmetic puzzles from 3×3 to 9×9, each with a unique solution.Logic Grid PuzzlesSolve Einstein-style deduction puzzles with clues and an ✗/✓ grid, from easy to hard.Math Equation Guess GameNerdle-style math puzzle: find the hidden 8-character equation in six tries. Daily and unlimited.Maze Chase GameArcade maze game: eat every dot, grab power pellets and dodge four ghosts. Levels, lives and high score.Mini Golf GamePlay 18 holes of top-down mini golf: drag to putt past windmills, water and sand, with a scorecard.Connect the Dots Flow PuzzleDraw lines to join matching colored dots and fill the whole board without crossings. 5×5 to 12×12.Car Parking PuzzleSlide the blocking cars and trucks to free the red car. 120 graded levels with hints.Peg SolitaireJump pegs over each other until only one is left. English, European and triangle boards with hints.
See all 141 Online Games →