madebykamal

How to win tic tac toe every time, going first or second

Updated October 3, 2026 by Kamal Nasir

Against an opponent who makes no mistakes, nobody can win tic tac toe every time: the game is solved, and perfect play from both sides always ends in a draw. What you can do is never lose, and win every time your opponent slips. Below is the standard strategy, going first and going second.

Why nobody can win every time

Tic tac toe is a solved game: with best play from both players it is a forced draw. It is small enough to check completely. There are 765 essentially different positions and 26,830 possible games once rotations and reflections are set aside. Counting finished boards the same way, there are 138, and with X moving first, 91 are wins for X, 44 are wins for O and 3 are draws.

The draw comes from one fact: every single threat can be blocked. You only win when you create two threats at once (a fork), and a careful opponent never lets you.

The move order that never loses

Newell and Simon's 1972 tic tac toe program played perfectly by taking the first move on this list that applies:

Jolt app icon

Jolt: Tic Tac Toe

Tic tac toe that never ends in a draw

How to win going first

Open in a corner. You can win or draw from any first move, but a corner leaves your opponent the fewest safe replies: only the center avoids a forced loss. (One analysis cited on Wikipedia found the center is the stronger opening against imperfect players, so both are worth knowing.) After a corner opening:

How to never lose going second

When a draw is off the table

Because perfect classic play always ties, variants change the rules so the game can be won. In Jolt: Tic Tac Toe each player keeps only three pieces, so placing a fourth makes your oldest vanish, and no move may put the board back exactly as it already was. Together those rules force a game to finish with three in a row. Strategy changes with them: a threat built on your oldest piece is already expiring, and Jolt fades that piece and marks it with a red dot so you can see what your next move costs.

Questions people ask

Is tic tac toe always a draw?

With perfect play from both players, yes. It is a solved game with a forced draw. Games are won only when someone makes a mistake, usually by missing a fork.

Is it better to go first in tic tac toe?

Going first gives you the initiative, and the forced wins described above are all lines for X after a weak reply. Of the 138 distinct finished boards, 91 are wins for X and 44 for O. Against a perfect opponent it still ends in a draw.

What is the best first move in tic tac toe?

A corner leaves your opponent the fewest safe replies, since only the center avoids a forced loss. One analysis found the center works better against imperfect players. Between perfect players, every opening draws.

Related