AI solves Rubik's cube in under a second

If you think you're good at solving Rubik's cubes, think again.
 By 
Alex Perry
 on 
AI solves Rubik's cube in under a second
Solving Rubik's cubes at inhuman speeds might be a worthwhile hobby for algorithms. Credit: Amy T. Zielinski/Redferns via Getty Images

If civilization as we know it ends at the hands of artificial intelligence, at least we know those hands are really good at solving puzzles.

Researchers at the University of California, Irvine programmed a machine learning algorithm that can solve that most beguiling of human puzzles, the Rubik's cube, in less than a second.

That's all well and good, but robots have been solving Rubik's cubes for a while. What makes this one special is that it learned how to do it by itself, "without any specific domain knowledge or in-game coaching from humans," according a press release from the university.

The algorithm, dubbed DeepCubeA, was the subject of a study published this week in Nature Machine Intelligence. Unlike some previous robot or AI efforts to quickly solve Rubik's cubes, DeepCubeA had to learn from scratch. It passed the test with flying colors, solving 100 percent of the tests given to it and finding the fastest route to the end goal 60 percent of the time.

If you want to know what it looks like to see our future robot overlords solve a Rubik's cube, this is what another research project from 2018 looked like.

To put it in a slightly different perspective, the UC Irvine researchers said their AI can solve a Rubik's cube in about 20 moves. Humans who are good at solving the puzzle boxes, meanwhile, still take about 50 moves.

Whether it's a prelude to a horrible dystopia or a sign of a glorious tech future, DeepCubeA is definitely impressive at this moment. The press release noted that Rubik's cubes can't really be solved with random movements, so the AI had to learn and reason its way to success.

By comparison, there are plenty of humans who could stare at one of those things for hours without finding a solution. We might be doomed.

journalist alex perry looking at a smartphone
Alex Perry
Tech Reporter

Alex Perry is a tech reporter at Mashable who primarily covers video games and consumer tech. Alex has spent most of the last decade reviewing games, smartphones, headphones, and laptops, and he doesn’t plan on stopping anytime soon. He is also a Pisces, a cat lover, and a Kansas City sports fan. Alex can be found on Bluesky at yelix.bsky.social.

Mashable Potato

Recommended For You


Hack your streaming in 2026 — get $30 off the Fire TV Cube at Amazon
fire tv cube and box against a purple patterned background

'Jury Duty Presents: Company Retreat' review: Prank show's return is comedy magic
The ensemble of "Jury Duty Presents: Company Retreat."

Pinterest CEO says ban kids under 16 from social media
Child on smartphone

Trending on Mashable
NYT Connections hints today: Clues, answers for April 3, 2026
Connections game on a smartphone

Wordle today: Answer, hints for April 3, 2026
Wordle game on a smartphone

What's new to streaming this week? (April 3, 2026)
A composite of images from film and TV streaming this week.

Google launches Gemma 4, a new open-source model: How to try it
Google Gemma

The biggest stories of the day delivered to your inbox.
These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.
Thanks for signing up. See you at your inbox!