See all steps

Step 7: Orient Last Layer Corners On Your Rubik's Cube

On this page you can find a detailed description on how to solve the last layer corners of the Rubik's Cube. In the final phase of the solution with the beginner's method we will orient the yellow corner pieces.

solved rubiks cube
The cube is solved
unfinished corners
Orient the corner pieces

When you reach this final step all the pieces are on the right spot, you just have to orient the last layer corners which are now on the top of the puzzle.

Hold the cube in your hand so the upper piece you want to orient is on the front-right-top corner, then do this algorithm twice or four times until that specific piece is oriented correctly:

R' D' R D

In the meantime it might seem like you messed up the whole cube but don't worry, it will be all right when all the corner pieces are oriented.

When a yellow corner is oriented correctly, turn the top layer only to move another yellow corner piece you want to orient to the front-right-top corner of the cube and repeat R' D' R D again until this specific piece is OK.

Keep doing this until your Cube is solved.

Important!

Many people mess up their cube in this final step because they skip the last D turn as soon as they see the yellow sticker facing up at the top. Make sure you complete the whole R' D' R D algorithm.

Don't rotate the whole cube while doing the steps! Face rotations only and follow the steps carefully.

See the diagram, animated examples and video below for a more detailed explanation!

last step diagram

Demonstration by Will Smith

You might remember The Pursuit of Happyness movie (2006) in which the character played by Will Smith solves the cube to impress his future employer and receives an invitation for a job interview. Watch the video below where he demonstrates the R' D' R D method. He's using a slightly different down, away, up, back notation though, but that's doing the same thing. He says Boom when he finishes a piece and brings another misaligned corner to the FRU position.

subscribe youtube channel

Animated examples

To see the animations just click the play button and follow the steps. Adjust the speed if it's too fast for you. We have separated the R' D' R D bits so you can see better how to apply this algorithm.

Example 1.

Two wrong pieces next to each other: do R' D' R D twice for one corner and four times for the other.

(R' D' R D)x2 U' (R' D' R D)x4  U 

When they're next to each other but the yellow stickers are facing like this the order changes

(R' D' R D)x4 U' (R' D' R D)x2  U 

Example 2.

For three corners: The algorithm has to be applied twice for each corner.

(R' D' R D)x2  U  (R' D' R D)x2 U2 (R' D' R D)x2 U

When you meet the orientation below the algorithm has to be executed 4 times for each corner.

(R' D' R D)x4  U  (R' D' R D)x4 U2 (R' D' R D)x4 U

Example 3.

Two corners on opposite sides.

U (R' D' R D)x2 U2 (R' D' R D)x4 U

Example 4.

It requires a total of 12 iterations when all yellow corners are twisted.

(R' D' R D)x4  U  (R' D' R D)x4  U  (R' D' R D)x2  U  (R' D' R D)x2 U

(R' D' R D)x2  U  (R' D' R D)x2  U  (R' D' R D)x4  U  (R' D' R D)x4 U

These algorithms may seem to be long but they're repeating the same R' D' R D sequence all the time, so you just have to memorize this short algorithm and the method how to use it. With a little practice you'll perform these very quickly.

Congratulations! You have solved your Rubik's Cube!

solve rubix cube

Is this tutorial too complicated for you? Here's what you can do:

Read another guide at Cube Solve or at how to solve a Rubix Cube.
Use the Online Rubik's Cube Solver, insert your scramble and the program will calculate the solution.

Cherry Cherxtry
⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ Winner, done it :) life gools ✅️
I will give 10 stars it's very good it will be used great 👍 👍 🤩
Jeremy Viermann
Made it to the last step. Everything was right excpet the yellow corners. Did this move until the yellow was solved....and the rest of the cube was
MESSED UP!! (。•̀ ⤙ •́ 。🧊) !!!
Steve Barham
OK... you have to read the part under the STEPS...VERY CAREFULLY... when the corner piece is oriented... turn the TOP Level to the next piece needing orientation (not the entire cube).
Do not repeat, until the white is aligned again... this was the key for me... I simple turned the top level to the next corner... continued the sequence...when that corner was aligned...moved to the next corner needed... did the sequence...and BOOM... done... WHEW!!!!!!
Only about 3 hours.... SHOOOT....
You have to read this last step VERY carefully....
Shaheema Shaw
Follow the video... They explain it so well there. We are only doing R' D' R' D and moving in a new piece from the top layer.
My failed at first because I didn't complete the whole algorithm when I saw the yellow piece aligned. You need to complete the whole R' D' R' D
Kris Park
❗Ruins entire cube📢
Don't follow this guide.
Sarah Lily Threewits
Worked! Just need to pay very close attention to the directions. My problem was turning the whole cube instead of top layer to solve the next corner.
Phuong Oanh Ngo Thi
I think these formulas are slow and are quite suitable for beginners. You just have to memorize 4 steps and the trick how to do it.
Xian Fujiwara
ayo i solved this cube in under 1 minute, now i solve in 40 seconds thanks to this website
Ryan Bennitt
Omg, my almost 2 year old daughter has been repeatedly playing these animations and giggling with absolute delight while holding a Rubik's cube. I'm a bit worried she thinks it's supposed to solve itself though.
Margaret Kingbird
My cube is almost done but one corner; the green-orange and yellow. The orange is on the green side, and the yellow is on the orange side and the the green on on the yellow side. How do I switch it around. I'm doing the R' D' R D x2 and it gets the corner oriented but idk how to fix it from there. I'm so confused.
Russ Lehman
Unfortunately, your cube has somehow gotten into an unsolvable state. It has been disassembled and reassembled, stickers rearrange or a corner has gotten twisted.
A solvable cube with the first two layers sovled and the corners position will always have 0, 2, 3. or 4 corners in the wrong orientation. Read the page on ths site on disassembling the cube. You will need to diassembe your cube and reassemble it solved to fix this.
Jaikishan Arora
I had 1 yellow corner left. Thanks I found your comment.
Swati Pradhan
Thanks to ruwix I solved my rubix cube I will give it a 8/10 cause it took me 2 days to solve
Arif Saifee
The best site ever! 👍👍👍🙏🙏🙏
Great animations, clear succinct structured instructions with links to detailed explanations and other useful resources. Thank you for your effort!!!
My 8 year-old twins got hooked up into solving the Rubix cube due to this site and have mastered nearly all algorithms.
Todd Learn
Thank you so much! Your Important reminder about the last rotation while solving the yellow corners saved me.
2 days of messing up the cube every time I tried to solve the final layer. Searching the internet high and low but continuing to make the same mistake.
Thanks again!!
Markie Hoover
I HIGHLY recommend watching the very quick video they linked about this last step that visually shows you what to do. That very last step is a dozy because it's easy to misinterpret.
Heres a link to that same video if you don't see it: https://youtu.be/kY4eWhvrVo0
Jiya Taunk
So lucky to find this i was able to finish this from the instructions which are given there are very nicely given in detail if you follow it properly it really works thank you so much for the instructions...:-)
Ambin Suarez
OMGGG Now! i can solve a rubiks cube. Other people don't know how to solve it because they're not focusing and I'm 10 years old
Shawn Irvine
This step was a major sticking point for me until continued practice helped me break through.
It's like the final obstacle in Indiana Jones and the Last Crusade.
Step of the ledge, pay attention and you'll be fine. Yes the cube looks messed up and sometimes you'll get it wrong but IT DOES WORK.
Ezio Auditore
No, the last step is not just R' D' R D. It is a combination of multiple R' D' R D. Depending on the scenario, it requires a multiple of R' D' R D and U, etc.
Please read the instruction carefully.
Trần Vũ Mạnh Đức
I've just learnt how to solve it the whole yesterday's afternoon, now my PB is 3 minutes 30 secs. Thank you so much for this helpful tutorial.
Pritesh Desai
Solved. Instructions are spot on. You do have to manipulate some parameters. Try to study multiple instructions on other website. Once you have some basics done. You will be able to manipulate instructions. Notice the pattern instead of colors, you will be closer to your goal
Russ Lehman
Here's a shortcut for the last step:
If the yellow side of your corner is facing front, you can do D' R' D R, and you will only need to do it twice, rather than four times.

Some detail about why this works, to the best of my understanding:

The R' D' R D algorithm is cyclical. If you repeat it six times, it will return the cube to the same state that you started with. You can demonstrate this for yourself. Take a solved cube, and repeat R' D' R D six times, the cube will be solved.

Each two repetitions of R' D' R D will bring The front right corner back to its original position, oriented differently. It will also throw some first and second layer pieces out of position. If a the yellow side of the corner piece is facing right, two repetitions of R' D' R D will bring it to the top. If it is facing front, you will need to do it four times. But if you reverse the algorithm (D' R' D R) it will only take two repetitions. The whole cube will be exactly the same as if you had done R' D' R D four items.

This is also related to why you rotate just the top layer rather than the whole cube. It will always take a total of either 6 or 12 repetitions of R' D' R D to bring all the top layer corners into orientation. By rotating the top layer this insures that all the first and second layer pieces will be brought back to their correct position.