Stockfish has been one of the strongest chess engines in the world for several years;[3][4][5] it has won all main events of theTop Chess Engine Championship (TCEC) and theChess.com Computer Chess Championship (CCC) since 2020 and, as of February 2026[update], is the strongest CPU chess engine in the world with an estimatedElo rating of 3650 in a time control of 40/15 (15 minutes to make 40 moves), according to CCRL.[6]
The Stockfish engine was developed by Tord Romstad, Marco Costalba, and Joona Kiiski, and was derived from Glaurung, an open-source engine by Tord Romstad released in 2004. It is now being developed and maintained by the Stockfish community.[7]
Stockfish historically used only a classicalhand-crafted function to evaluate board positions, but with the introduction of theefficiently updatable neural network (NNUE) in August 2020, Stockfish 12 adopted a hybrid evaluation system that primarily used the neural network and occasionally relied on the hand-crafted evaluation.[8][9][10] In July 2023, Stockfish removed the hand-crafted evaluation and transitioned to a fully neural network-based approach.[11][12]
Stockfish uses a tree-search algorithm based onalpha–beta search with several hand-designed heuristics. Stockfish represents positions usingbitboards.[13]
Stockfish supportsChess960, a feature it inherited from Glaurung.[14] Support forSyzygytablebases, previously available in afork maintained by Ronald de Man, was integrated into Stockfish in 2014.[15] In 2018 support for the 7-man Syzygy was added, shortly after the tablebase was made available. Stockfish supports an unlimited number ofCPU threads inmultiprocessor systems, with a maximumtransposition table size of 32 TB.[16]
Stockfish has been a very popular engine on various platforms. On desktop, it is the default chess engine bundled with theInternet Chess Club interface programs BlitzIn and Dasher. On mobile, it has been bundled with the Stockfish app, SmallFish andDroidfish. Other Stockfish-compatiblegraphical user interfaces (GUIs) includeFritz, Arena, Stockfish for Mac, andPyChess.[17][18] Stockfish can be compiled toWebAssembly orJavaScript, allowing it to run in the browser. BothChess.com andLichess provide Stockfish in this form in addition to a server-side program.[19] Release versions and development versions are available asC++source code and as precompiled versions forMicrosoft Windows,macOS,Linux 32-bit/64-bit andAndroid.
The program originated fromGlaurung, an open-source chess engine created by Tord Romstad and first released in 2004. Four years later, Marco Costalba forked the project, naming itStockfish because it was "produced in Norway and cooked in Italy" (Romstad is Norwegian and Costalba is Italian). The first version, Stockfish 1.0, was released in November 2008.[20][21] For a while, new ideas and code changes were transferred between the two programs in both directions, until Romstad decided to discontinue Glaurung in favor of Stockfish, which was the stronger engine at the time.[22] The last Glaurung version (2.2) was released in December 2008.
Around 2011, Romstad decided to abandon his involvement with Stockfish in order to spend more time on his new iOS chess app.[23] On 18 June 2014 Marco Costalba announced that he had "decided to step down as Stockfish maintainer" and asked that the community create a fork of the current version and continue its development.[24] An official repository, managed by a volunteer group of core Stockfish developers, was created soon after and currently manages the development of the project.[25]
Since 2013, Stockfish has been developed using adistributed testing framework namedFishtest, where volunteers can donate CPU time for testing improvements to the program.[26][27][28]
Changes to game-playing code are accepted or rejected based on results of playing of tens of thousands of games on the framework against an older "reference" version of the program, usingsequential probability ratio testing. Tests on the framework are verified using thechi-squared test, and only if the results are statistically significant are they deemed reliable and used to revise the software code.
After the inception of Fishtest, Stockfish gained 120Elo points in 12 months, propelling it to the top of all major rating lists.[29]
As of February 2026[update], the framework has used a total of more than 19,700 years of CPU time to play over 9.8 billion chess games.[30]
In June 2020, Stockfish introduced theefficiently updatable neural network (NNUE) approach, based on earlier work bycomputer shogi programmers.[31][32] Instead of using manually designed heuristics to evaluate the board, this approach introduced a neural network trained on millions of positions which could be evaluated quickly on CPU. On 2 September 2020, the twelfth version of Stockfish was released, incorporating NNUE, and reportedly winning ten times more game pairs than it loses when matched against version eleven.[33][34] In July 2023, the classical evaluation was completely removed in favor of the NNUE evaluation.[35]
Stockfish is aTCEC multiple-time champion and the current leader in trophy count. Ever since TCEC restarted in 2013, Stockfish has finished first or second in every season except one. Stockfish finished second in TCEC Season 4 and 5, with scores of 23–25 first againstHoudini 3 and later againstKomodo 1142 in the Superfinal event. Season 5 was notable for the winning Komodo team as they accepted the award posthumously for the program's creatorDon Dailey, who succumbed to an illness during the final stage of the event. In his honor, the version of Stockfish that was released shortly after that season was named "Stockfish DD".[36]
On 30 May 2014, Stockfish 170514 (a development version of Stockfish 5 with tablebase support) convincingly won TCEC Season 6, scoring 35.5–28.5 against Komodo 7x in the Superfinal.[37] Stockfish 5 was released the following day.[38] In TCEC Season 7, Stockfish again made the Superfinal, but lost to Komodo with a score of 30.5–33.5.[37] In TCEC Season 8, despite losses on time caused by buggy code, Stockfish nevertheless qualified once more for the Superfinal, but lost 46.5–53.5 to Komodo.[37] In Season 9, Stockfish defeated Houdini 5 with a score of 54.5–45.5.[37][39]
Stockfish finished third during season 10 of TCEC, the only season since 2013 in which Stockfish had failed to qualify for the superfinal. It did not lose a game but was still eliminated because it was unable to score enough wins against lower-rated engines. After this technical elimination, Stockfish went on a long winning streak, winning seasons 11 (59–41 against Houdini 6.03),[37][40] 12 (60–40 against Komodo 12.1.1),[37][41] and 13 (55–45 against Komodo 2155.00)[37][42] convincingly.[43] InSeason 14, Stockfish faced a new challenger inLeela Chess Zero, eking out a win by one point (50.5–49.5).[37][44] Its winning streak was finally ended inSeason 15, when Leela qualified again and won 53.5–46.5,[37] but Stockfish promptly wonSeason 16, defeating AllieStein 54.5–45.5, after Leela failed to qualify for the Superfinal.[37] InSeason 17, Stockfish faced Leela again in the superfinal, losing 52.5–47.5. However, Stockfish has won every Superfinal since: beating Leela 53.5–46.5 inSeason 18, 54.5–45.5 inSeason 19, 53–47 inSeason 20, and 56–44 inSeason 21.[37] In Season 22, Komodo Dragon beat out Leela to qualify for the Superfinal, losing to Stockfish by a large margin 59.5–40.5. Stockfish did not lose an opening pair in this match.[45] Leela made the Superfinal in Seasons 23 and 24, but was crushed by Stockfish both times (58.5–41.5 and 58–42).[46][47] In Season 25, Stockfish once again defeated Leela, but this time by a narrower margin of 52–48.[48]
Stockfish also took part in the TCEC cup, winning the first edition, but was surprisingly upset by Houdini in the semifinals of the second edition.[37][49] Stockfish recovered to beat Komodo in the third-place playoff.[37] In the third edition, Stockfish made it to the finals, but was defeated byLeela Chess Zero after blundering in a 7-manendgame tablebase draw. It turned this result around in the fourth edition, defeating Leela in the final 4.5–3.5.[37] In TCEC Cup 6, Stockfish finished third after losing to AllieStein in the semifinals, the first time it had failed to make the finals. Since then, Stockfish has consistently won the tournament, with the exception of the 11th edition which Leela won 8.5–7.5.
Ever sinceChess.com hosted its firstChess.com Computer Chess Championship in 2018, Stockfish has been the most successful engine. It dominated the earlier championships, winning six consecutive titles before finishing second in CCC7. Since then, its dominance has come under threat from the neural-network engines Leelenstein andLeela Chess Zero, but it has continued to perform well, reaching at least the superfinal in every edition up to CCC11. CCC12 had for the first time a knockout format, with seeding placing CCC11 finalists Stockfish and Leela in the same half. Leela eliminated Stockfish in the semi-finals. However, a post-tournament match against the loser of the final, Leelenstein, saw Stockfish winning in the same format as the main event. After finishing second again to Leela in CCC13, and an uncharacteristic fourth in CCC14, Stockfish went on a long winning streak, taking first place in every championship since.
Stockfish's strength relative to the best human chess players was most apparent in a handicap match with grandmasterHikaru Nakamura (2798-rated) in August 2014. In the first two games of the match, Nakamura had the assistance of an older version ofRybka, and in the next two games, he received White with pawnodds but no assistance. Nakamura was the world's fifth highest rated human chess player at the time of the match, while Stockfish 5 was denied use of its opening book and endgame tablebase. Stockfish won each half of the match 1.5–0.5. Both of Stockfish's wins arose from positions in which Nakamura, as is typical for his playing style, pressed for a win instead of acquiescing to a draw.[197]
In December 2017, Stockfish 8 was used as a benchmark to testGoogle divisionDeepMind's AlphaZero, with Stockfish running on CPU and AlphaZero running on Google's proprietaryTensor Processing Units. AlphaZero was trained through self-play for a total of nine hours, and reached Stockfish's level after just four.[198][199][200] In 100 games from the starting position, AlphaZero won 25 games as White, won 3 as Black, and drew the remaining 72, with 0 losses.[201] AlphaZero also played twelve 100-game matches against Stockfish starting from twelve popular openings for a final score of 290 wins, 886 draws and 24 losses, for a point score of 733:467.[202][b]
AlphaZero's victory over Stockfish sparked a flurry of activity in the computer chess community, leading to a new open-source engine aimed at replicating AlphaZero, known asLeela Chess Zero. By January 2019, Leela was able to defeat the version of Stockfish that played AlphaZero (Stockfish 8) in a 100-game match. An updated version of Stockfish narrowly defeated Leela Chess Zero in the superfinal of the14th TCEC season, 50.5–49.5 (+10 =81 −9),[37] but lost the Superfinal of thenext season to Leela 53.5–46.5 (+14 =79 −7).[37][204] The two engines remained close in strength for a while, but Stockfish has pulled away since the introduction of NNUE, winning every TCEC season since Season 18.
YaneuraOu, a strong shogi engine and the origin of NNUE.[205][206] Speaks USI, a variant ofUCI for shogi.[207]
Fairy Stockfish, a version modified to playfairy chess. Runs with regional variants (chess, shogi,makruk, etc.) as well as other variants likeantichess.[208]
Lichess Stockfish, a version for playing variants without fairy pieces.[19]
Crystal, which seeks to address common issues with chess engines such as positional or tactical blindness due to over reductions or over pruning, draw blindness due to themove horizon and displayed principal variation reliability.[209]
Brainfish, which contains a reduced version of Cerebellum, a chess opening library.[210]
BrainLearn, a derivative of Brainfish but with a persisted learning algorithm.[211]
ShashChess, a derivative with the goal to apply Alexander Shashin theory from the bookBest Play: a New Method for Discovering the Strongest Move.[212][213]
Pikafish, a free, open source, and strong UCIXiangqi engine derived from Stockfish that analyzes xiangqi positions and computes the optimal moves.[214]
Houdini 6, a Stockfish derivative that did not comply with the terms of the GPL license.[215][216]
Fat Fritz 2, a Stockfish derivative that did not comply with the terms of the GPL license.[215][217][218][216]
^"About".stockfishchess.org.Archived from the original on 20 September 2012. Retrieved5 March 2014.
^Costalba, Marco (2 November 2008)."Stockfish 1.0".talkchess.com.Archived from the original on 6 March 2014. Retrieved6 March 2014.
^Romstad, Tord (5 September 2009)."Re: Stockfish – Glaurung".wbec-ridderkerk.forumotion.com.Archived from the original on 6 March 2014. Retrieved5 March 2014.
^Logics (Kings_Logics), Kings (21 June 2022)."Stockfish".Chess.com.Archived from the original on 22 September 2022. Retrieved21 June 2022.
^Costalba, Marco (18 June 2014)."Step down".groups.google.com.Archived from the original on 21 September 2012. Retrieved19 June 2014.
^Linscott, Gary (18 June 2014)."New official repository".groups.google.com.Archived from the original on 21 September 2012. Retrieved19 June 2014.