Unspash.com
The Theory of Math and Chess
Chess is pure math disguised as a game.Combinatorics, recreational, geometry, probabilistic algorithms... These are words that you might never even heard of—But yet every time you open up Lichess and play a game, you are actually using all of these complicated mathematical concepts. This idea might feel unfamiliar to your brain, or you might be similar to me: A chess grinder with a low grade in math. If you believe chess and math have no logical relation between each other, what you’ll read next will most likely surprise you.
Chess doesn't directly affect your math class because of how it varies compared to normal math problems, but it can relate. For example, pretend we were in class, and our teacher given us the coordinates (-7,3) and told us to plot this on the coordinate table. It would probably be hard to relate this to chess, right? But if you think about it, a chess board has a lot of similarities with a coordinate table. Every time you go to a classical tournament, most of the time you're required to do algebraic notation.
Algebraic notation is the chess algorithm for how you can record your game over paper, and it's used to determine if a player's claim is correct, like a threefold repetition or an illegal move. To do algebraic notation, you write the letter representing your piece (K=King, Q=Queen, N=Knight, B=Bishop, R=Rook, P=Has no direct letter notation), then you write the coordinate of where your piece had landed (e.g Nf3). To determine if the piece captures another piece or puts the king in check, other variables and symbols can be used to notate that (x, +, #). This chess formula actually follows everything you use for a coordinate table, and also actually includes other math concepts too. X and Y are both the horizontal and vertical sides of the chess board; the coordinate point is the location where a piece is placed, and the symbols represent the functions used in an equation or expression.
This idea might feel odd, but if you can visualize this idea, then you could turn any chess move, plan, or board into a real math equation.
If you still are doubting that chess and math can be paired with each other, then let’s move onto a new math/chess idea known as combinatorics. Combinatorics is a branch of mathematics focused on counting, arranging, and analyzing finite sets. It deals with problems of selection, arrangement, and operation within discrete systems, and includes the study of combinations and permutations.
Now if you tried to visualize this on a chess board, your first thought might be that you’re doing something impossible, but actually, combinatorics is supposedly a mathematical idea that relates to chess the most.
Combinatorics in chess is the study of counting, arranging, and selecting objects. Taking a real mathematical example, pretend we were trying to count the number of possible combinations of chess positions on a board. Little do you know, it is actually impossible for a multi-million-dollar supercomputer to count the number of chess positions on the board, much less a human brain.
There are 10^50 legal combinations of chess positions, and 10^120 possible games (novemtrigintillion possible games), which is two times larger than the benchmark for computational limits. Now this number is actually known as the “Shannon’s Number,” named after the American mathematician Claude Shannon who discovered this chess concept. Combinatorics in chess specifically relates to the number of possible moves simply after the first 4 moves in a game (319 billion combinations after the first four moves).
Beyond plotting points on a grid and calculating billions of permutations, chess is fundamentally governed by another bedrock of mathematics: algebra. More specifically, every second you spend evaluating a position or planning a sequence, your brain is actively solving complex equations and calculating strict inequalities. If you have ever chosen a tactical trade or maneuvered a pawn into an endgame, you have already put these algebraic concepts into practice. Here is how equations and inequalities quietly rule the 64 squares.
The most basic math equation in chess is one every beginner learns: the standard evaluation system. We assign numerical values to the pieces:
- Pawns (P) = 1
- Knights (N) = 3
- Bishops (B) = 3
- Rooks (R) = 5
- Queens (Q) = 9
Every time you consider a trade, you are balancing an equation. If you trade a Rook and a pawn for a Knight and a Bishop, your brain sets up a system of addition:
Your side: R + P --> 5 + 1 = 6
Opponent side: N + B --> 3 + 3 = 6
Because 6 = 6, the equation is perfectly balanced. This is a material equation. However, chess becomes a true mathematical art when we introduce "positional variables." A knight on a closed board might actually be worth 3.5, while a trapped bishop might drop to 2.
Grandmasters excel at constantly rewriting these equations on the fly, adding variables for king safety, space, and pawn structure to see if the final sum favors them.
While equations represent balance, inequalities represent the fight for an advantage. In math, an inequality states that one side is greater than (>) or less than (<) the other. In chess, you are constantly trying to force an inequality in your favor. Consider the concept of "local material advantage." The entire board might have equal material (15 = 15), but you decide to launch a four-pawn storm against your opponent’s two defensive pawns on the kingside.
Attacking Force > Defending Force
4p > 2p
By creating this inequality in one specific sector of the coordinate grid, you guarantee a breakthrough. Similarly, when a chess engine like Stockfish tells you the position is +1.5, it is stating an inequality: White’s positional advantages outweigh Black’s by a margin of one and a half pawns.
Nowhere are inequalities more strict than in pawn endgames. If an opponent's pawn is sprinting to promote, you don't have to guess if your king can catch it; you use the Rule of the Square.
By drawing an imaginary square from the pawn to the promotion rank, you create a geometric boundary. If your king can step inside that square, the algebraic inequality is satisfied:
King's Distance to Pawn <= Pawn's Moves to Promote
If the king's distance is greater than (>) the pawn's remaining steps, the pawn promotes, and you lose.
Furthermore, masters use a technique called "triangulation" to win endgames. This is a direct application of the Triangle Inequality Theorem in geometry, which states that the sum of the lengths of any two sides of a triangle must be greater than the length of the third side. By moving the king in a triangular path (e.g., e3-d3-e4) while the opponent can only move back and forth in a straight line, you lose a tempo on purpose. You force the opponent into zugzwang—a mathematical state where any move they make worsens their position.
You are better at math than you think.
If you are a chess grinder who struggles in math class, it is not because your brain lacks logical processing power. It is simply a translation error. Math class forces you to look at abstract numbers on a whiteboard, whereas chess allows you to see those exact same numbers transformed into battlefield tactics, geometric squares, and structural balances.
You don't need a high grade in algebra to play a brilliant game of chess. But the next time you write down a move, calculate a trade, or box out an enemy king, remember: you aren't just outplaying your opponent. You are solving the equations.
