Skip to content
Tic Tac Toe

How to win Tic Tac Toe: a strategy that never loses

A move checklist that never loses, how to build a fork, the openings that set traps as X, and the replies that keep O safe.

By Tic Tac Toe TeamPublished 5 min read

The short version

On every turn, play the first move on this list that applies:

  1. Win
  2. Block
  3. Fork
  4. Block a fork
  5. Take the center
  6. Take the opposite corner
  7. Take an empty corner
  8. Take an edge

Follow it and you will never lose. Perfect Tic Tac Toe is always a draw, so wins come from your opponent's mistakes, and the sections below show where those mistakes happen. New to the game? Start with how to play Tic Tac Toe.

The Tic Tac Toe strategy checklist

This priority list is the classic recipe for perfect Tic Tac Toe. Work down it in order and stop at the first rule that fits the board.

1. Win

If you have two in a line and the third square is empty, take it.

2. Block

If your opponent has two in a line with the third square empty, take that square.

3. Fork

Make a move that creates two lines that each need one more mark. Your opponent can block only one.

4. Block a fork

If your opponent can fork next move, take that square, or make a two-in-a-row of your own that forces them to block somewhere harmless.

5. Take the center

The center sits on four of the eight lines, more than any other square.

6. Take the opposite corner

If your opponent holds a corner, take the corner diagonally across from it.

7. Take an empty corner

Corners sit on three lines each.

8. Take an edge

The middle of a side sits on only two lines, so play it last.

Forks: how Tic Tac Toe games are won

A fork is a position with two open lines that each need one more mark. Your opponent can block only one, so you win on the next move. Corners and the center sit on three or four lines each, so they create more forks than the edges, which sit on two.

X has forked: O can block only one of the two highlighted squares.

How to win Tic Tac Toe as X: the first move

Every first move draws with perfect play, but they don't all give O the same chances to go wrong:

  • A corner leaves O just one safe reply, the center. Any other square lets X force a win.
  • The center leaves O four safe replies, the corners. An edge reply lets X force a win.
  • An edge also leaves O four safe replies: the center, either corner next to X, or the opposite edge.

How to never lose as O

  • If X opens in a corner, take the center.
  • If X opens in the center, take a corner.
  • If X opens on an edge, take the center, one of the two corners next to X, or the opposite edge.
  • If X holds two opposite corners and you hold the center, play an edge. Taking a corner lets X fork.
O to move: any highlighted edge square holds the draw.

The corner trap

A common beginner loss: X opens in a corner and O answers on an edge next to it. X now has a forced win. X can take the center, or either of the other two squares in its own column, and each one leads to a fork O can't stop.

X to move: each highlighted square leads to a forced win.

Practice against the computer

The Medium computer always takes a win and always blocks a line one mark short, but about half of its other moves are random, so it can walk into a fork. That makes it a good opponent for practicing forks. The Hard computer checks every possible ending on 3×3 and never makes a mistake: if you can hold it to a draw as O, you know the defense.

How to win Tic Tac Toe on bigger boards

The first three rules still apply on bigger boards: win, block, fork. You need four in a row on 4×4 and five on 6×6 and 9×9, and the longer lines add new patterns such as open threes and open fours. Each board has its own strategy tips: 4x4 Tic Tac Toe, 6x6 Tic Tac Toe, and 9x9 Tic Tac Toe. To play a friend on one device, try 2 player Tic Tac Toe, and for a game where every move picks your opponent's next board, try Ultimate Tic Tac Toe.

How to win Tic Tac Toe: common questions

Is there a way to always win Tic Tac Toe?

No. With perfect play from both sides, every game is a draw. You can only win when your opponent makes a mistake, but you can make sure you never lose.

Where should X move first in Tic Tac Toe?

Every first move draws with perfect play. A corner leaves O only one safe reply, the center. The center and the edges each leave O four safe replies.

How do you win Tic Tac Toe as O?

Play safe first: answer a corner with the center, the center with a corner, and an edge with the center. Then wait for X to leave a fork open and take it.

What is a fork in Tic Tac Toe?

A move that creates two lines at once that each need one more mark. The opponent can block only one, so the other wins.

Who wins more often, X or O?

X. Counting every possible sequence of moves, there are 255,168 games of 3×3 Tic Tac Toe: X wins 131,184 (51.4%), O wins 77,904 (30.5%), and 46,080 (18.1%) end in a draw. With perfect play from both sides, every game is a draw.

Can you beat the Hard computer?

Not on 3×3. Hard checks every possible ending there, so you can draw but never win. On 4×4, 6×6, and 9×9 it searches ahead for about 0.3 seconds a move and isn't perfect, so a win is possible.

Can I practice against a computer?

Yes. Play the Medium computer to practice forks: it always blocks a line one mark short, but about half its other moves are random. Play Hard to practice holding the draw.

Does this strategy work on 4x4 and bigger boards?

The first three rules do: win, block, fork. Longer lines add patterns such as open threes, so each board has its own tips: 4x4, 6x6, and 9x9.

Put it into practice

Try a fork against the Medium computer, then see whether you can hold Hard to a draw.