Rubik's cube general solution

Exchanging edges without changing anything else

swap 3 edges swap 2x2 edges swap 5 edges
swap3edges swap3edges swap2x2edges swap2x2edges swap5edges
R2
F2
T2
F2
R2
F2
T2
F2





-T
R
T
2R -R
-T
-R
T
R -2R




R2
T2
R2
T2
R2
T2






2R2 R2
-T
F2
2R2 R2
F2
2R2 R2
T
2R2 R2




T
R2
T
R2
T
R2
T
R2
T
R2
T
R2
3 sides
8 moves
3 sides
10 moves
2 sides
6 moves
3 sides
12 moves
2 sides
12 moves
Variants Variants Variants Variants Variants



Rotating edges without changing anything else

rotate 2 edges rotate 4 edges rotate 6 edges rotate 8 edges
rotate2edges rotate2edges rotate2edges rotate4edges rotate6edges rotate8edges
-T
R
T
F
R2
-F
2R -R
F
-R2
-F
-T
-R
T
-2R R
-F
-R
F
-2R R
-F
R
F
D
R2
-D
2R -R
D
R2
-D
-T
-2B B
T2
-2B2 B2
-T
-F
T
-2B2 B2
T2
2B -B
T
F


R
-B
-R
B
-T
B
T
-2B
2R -R
B
-T
-B
T
-B
R
B
-2R
2B -B
-F
-T
F
T
-F
-T
F
T
-F
-T
F
-2F
T
2F
-T
-2F
T
2F
-T
-2F
T
2F
L R
-T -D
F B
-L -R
T D
-F -B
3 sides
16 moves
3 sides
16 moves
3 sides
16 moves
3 sides
20 moves
2 sides
22 moves
2 sides
12 moves
Variants Variants Variants Variants Variants Variants



Exchanging corners without changing anything else

swap 3 corners swap 2x2 corners swap 5 corners
swap3corners swap3corners swap2x2corners swap5corners swap5corners
-T
-R
T
L
-T
R
T
-L




-B
R
B
L2
-B
-R
B
L2




R
T
-R
-T
R
T
-R
-T

R
T
-R
-T
R2
B
T2
-B
R2
B
T2
-B
R2
B
T2
-B
R2
B2
L2
F2
D
F2
L2
B2
R2
T
3 sides
8 moves
3 sides
8 moves
2 sides
12 moves
3 sides
12 moves
6 sides
10 moves
Variants Variants Variants Variants Variants



Rotating corners without changing anything else

Rotate 2 corners Rotate 3 corners Rotate 4 corners Rotate 5 corners
rotate2corners rotate2corners rotate2corners rotate3corners rotate3corners rotate4corners rotate5corners
T
-B
-T
-L
-B
L
-F
-L
B
L
T
B
-T
F


-L
T2
L
T
-L
T
L
R
T2
-R
-T
R
-T
-R


-B
L2
B
-T
R2
T
-B
L2
B
-T
R2
T





-R
-F
-L
F
R
-F
L2
D
-L
T2
L
-D
-L
T2
F

-B
R
B
L2
-B
-R
B
L2
F2
-D
B
D
F2
-D
-B
D
R
-T
-R
T
-F
T
F
-T
R
-T
-R
T
-F
T
F
-T

R
-T
-R
T
R
T2
-R
T2
R
-T
-R
T
R
T2
-R
T2
4 sides
14 moves
3 sides
14 moves
4 sides
12 moves
5 sides
15 moves
5 sides
16 moves
3 sides
16 moves
2 sides
16 moves
Variants Mikias Ayalew Steve Hassenplug Variants Variants Variants Variants



Exchanging centers without changing anything else

swap 2x2 centers swap 2x3 centers
swap2x2centers swap2x3centers
-2R2 R2
-2D D
-2R2 R2
2D -D
-2R R
-2D D
2R -R
2D -D
4 sides
8 moves
4 sides
8 moves
Variants Variants


Rotating centers without changing anything else
Although there is no need to rotate centers on a standard cube, if you have a customized cube with centers that need to be oriented a certain way, you will need these formulas:

rotate 2 centers rotate 4 centers
rotate2centers rotate2centers rotate2centers
-2R R
-2D D
2R -R
2D -D
-R
-2D D
-2R R
2D -D
2R
-2R2 -R
-2D D
-2R2 R2
2D -D
-2R2 R
-2D D
-2R2 R2
2D -D
-2R R
-2D D
2R -R
2D -D
2F -F
2D -D
-2F F
-2D D
2 sides
16 moves
3 sides
16 moves
3 sides
16 moves
Variants Variants Variants

Click here if you need to understand the notation used on this page