```

Is Tic Tac Toe Always a Draw? The Math and Strategy

If you’ve played tic tac toe against a friend who knows what they’re doing, you know how it goes. Game after game ends with a full board and no winner. At some point, everyone asks the same question: can anyone actually win this game?

The short answer: yes, tic tac toe always ends in a draw when both players play perfectly. Mathematicians call it a solved game: every possible move has been analyzed, and with best play from both sides, neither player can force a win. The catch is that most people don’t play perfectly, and that’s where wins come from.

Here’s the math behind those nine squares, the exact strategy that never loses, and how to take advantage of an opponent who makes one small mistake.

The Numbers Behind Nine Squares

Tic tac toe looks tiny, but there are more possible games than you might guess. If you count every possible sequence of moves until someone wins or the board fills up, there are 255,168 different games. Here’s how they end:

ResultNumber of gamesShare
X (first player) wins131,184about 51%
O (second player) wins77,904about 31%
Draw46,080about 18%
Total255,168 

Notice something strange? Only about 18% of all possible games end in a draw. If both players moved at random, X would win more than half the time.

So why does every serious game end in a tie? Because good players never play random moves. Most of those 255,168 games include at least one blunder: a missed block or an ignored threat. Take out the mistakes, and all that’s left is a draw.

If you treat rotated and mirrored boards as the same, the game shrinks a lot: only 765 essentially different positions and 138 different final boards. That’s small enough for people to have worked out every line by hand, long before computers.

Why Perfect Play Always Ends in a Draw

Two things make tic tac toe a guaranteed draw.

Every threat can be blocked. When your opponent has two in a row, you simply place your mark in the third square. On a 3×3 board, a single threat is always easy to see and stop.

The only way to win is a fork, and forks can be prevented. A fork is when you create two threats at once. Your opponent can block one, but not both. Forks are the only way to beat a careful player, and a careful player always makes the move that stops a fork from forming.

When both players block every threat and prevent every fork, the board fills up with no winner. Every time.

The 8 Rules That Never Lose

In 1972, computer scientists Allen Newell and Herbert Simon described a simple priority list for playing tic tac toe. On each turn, use the first rule that applies:

  1. Win. If you have two in a row, complete the line.
  2. Block. If your opponent has two in a row, take the third square.
  3. Fork. Create two winning threats at once.
  4. Block a fork. Stop your opponent from setting one up.
  5. Center. Take the middle square.
  6. Opposite corner. If your opponent holds a corner, take the one diagonally across from it.
  7. Empty corner. Take any free corner.
  8. Empty side. Take any free edge square.

Follow this list carefully and you’ll never lose a game. Against an equally careful opponent, you’ll never win one either.

Best Opening Moves (and How to Respond)

To make this easier to follow, number the squares like a phone keypad:

 

 1 | 2 | 3 ----------- 4 | 5 | 6 ----------- 7 | 8 | 9

As X (going first): a corner, the center and an edge can all lead to a draw with perfect play, so none of them loses outright. The corner is the trickiest for your opponent, because it leaves O the fewest safe replies.

As O (going second), your reply depends on X’s first move:

X opens with…O’s safe reply
A cornerThe center, and nothing else
The centerA corner
An edgeThe center, a corner next to X, or the opposite edge

The first row of that table matters most. When X takes a corner, every reply except the center loses against good play. Most casual players don’t know this, and that’s your opening.

How to Win Against Real People

Here’s the corner trap in action. You’re X.

Example 1: O replies on an edge.

  • You play 1 (top-left corner).
  • O plays 2 (an edge). This is the mistake.
  • You play 5 (center), threatening 1-5-9. O must block at 9.
  • You play 7. Now you threaten both 4 (the 1-4-7 column) and 3 (the 3-5-7 diagonal). That’s a fork. O can only block one, so you win.

Example 2: O replies in the opposite corner.

  • You play 1. O plays 9.
  • You play 7, threatening 1-4-7. O blocks at 4.
  • You play 3. Now you threaten 2 (the top row) and 5 (the 3-5-7 diagonal). That’s another fork, and another win.

In both games, O made one wrong move on turn one, and the rest was forced. That’s the real secret of tic tac toe. You don’t beat good players. You beat players who don’t know the corner rule.

When you’re O, flip it around: answer a corner with the center, and you’re safe.

From Ancient Rome to the First Video Games

Three-in-a-row games are surprisingly old. Boards like this appear on Egyptian roofing tiles from around 1300 BC. In ancient Rome, people played a game called terni lapilli, where each player had only three pieces and had to move them around the board, and grids for it have been found scratched into stone around the city.

The name “noughts and crosses” appeared in print in Britain in 1858, while “tick-tack-toe” shows up in 1884, and the American spelling “tic-tac-toe” came later.

The game also has a special place in computing history:

  • 1952: OXO. Sandy Douglas, a PhD student at the University of Cambridge, programmed noughts and crosses on the EDSAC computer. Players chose squares using a rotary telephone dial, and the computer played a perfect game. It’s often listed among the first video games ever made.
  • 1961: MENACE. Researcher Donald Michie built a “computer” from 304 matchboxes filled with colored beads, one box per board position. Winning moves were rewarded with extra beads, and losing moves were punished by removing them. After about 20 games against a perfect opponent, the matchboxes were drawing consistently. It’s an early, very hands-on example of a machine that learns.
  • 1975: Tinkertoy computer. MIT students built a tic tac toe machine from Tinkertoy construction pieces. It plays perfectly, and it’s now on display at the Computer History Museum.

So Why Play a Solved Game?

If perfect play always ends in a draw, is there any point in playing? Yes, for a few good reasons.

For children, tic tac toe is often their first strategy game. It teaches them to look one move ahead, check for threats, and notice that the opponent has a plan too. That’s a lot of thinking packed into 30 seconds.

For adults, the fun is in the trap. Setting up a fork against someone who doesn’t see it coming is still satisfying, even when you know the math.

And for anyone who thinks they’ve mastered it, there’s always a bigger board. Larger and 3D versions of the game get much harder. A 4×4×4 version called Qubic wasn’t solved until 1980, when it was proven to be a first-player win.

Test Yourself Against the Computer

The best way to learn the corner trap is to try it. You can play free tic tac toe in your browser at Online Timepass Games, against a smart AI or in two-player mode with a friend on the same screen. Open with a corner, see if the AI takes the center, and then try to hold it to a draw as O. No download or sign-up needed.

7. FAQs

Is tic tac toe always a draw?
Only when both players play perfectly. Tic tac toe is a solved game: with best play from both sides, it always ends in a draw. Most real games are decided by a single mistake.

What is the best first move in tic tac toe?
A corner. It doesn’t guarantee a win, but it gives your opponent the fewest safe replies. Only the center is safe for O after a corner opening.

Can the second player ever win tic tac toe?
Yes, but only if the first player makes a mistake. Against perfect play, O’s best result is a draw.

How many possible games of tic tac toe are there?
255,168, if you count every sequence of moves until the game ends. If you treat rotated and mirrored boards as the same, there are 765 essentially different positions.

What is a fork in tic tac toe?
A move that creates two winning threats at once. Your opponent can only block one of them, so a fork wins the game. Preventing your opponent’s forks is the key to never losing.

About Premium Author

This post has been authored and published by one of our premium contributors, who are experts in their fields. They bring high-quality, well-researched content that adds significant value to our platform.