Solving a Rubik's Cube is an easy way to impress your friends, but you don't need to be a math genius to crack the algorithm. With help from this app spotted by Lifehacker, you don't even need to memorize any tricks.

The Magic Cube Solver is a free app for iOS that calculates the fastest route to solving a Rubik's Cube based on its current pattern. To use it, start by inputting your cube's information by tapping the squares in the app's model and selecting the right colors. Hit "solve" and the tool will display step-by-step visual instructions you can follow to complete the puzzle. The stages are all laid out together and each one comes with a picture of what the cube looks like before and after you make your move, making it easy to follow along. No matter what configuration you're starting with, Magic Cube Solver will show you how to solve it in no more than 22 steps.

The app acts as more than a cheat to a particularly hard pattern. If you're interested in boosting your Rubik's Cube skills, you can select the "solve and learn" option after entering your information. This not only shows you the steps to take to solve it, but why it suggests those steps in the first place. Rather than applying a one-size-fits-all trick to every cube configuration, which isn't always efficient, Magic Cube Solver will teach how to recognize different patterns and show you which tricks work best for each one. The ultimate goal is to equip you with the skills you need to solve any Rubik's Cube without the app's help.

Magic Cube Solve is available to download from the App Store for free. The free version only shows you how to solve the classic three-by-three square cube. Solutions for two-by-two, four-by-four, and void cubes cost extra. To learn more about the Rubik's Cube and its origins, check out our list.

[h/t Lifehacker]